joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb6d0e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4d5000]
push edi
jmp 0xb6d0fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xb6d101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb6d0f0
mov eax, 1
add ebx, ebx
jne 0xb6d113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xb6d124
jne 0xb6d143
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb6d143
dec eax
add ebx, ebx
jne 0xb6d130
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xb6d108
add ebx, ebx
jne 0xb6d13f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xb6d195
xor ecx, ecx
sub eax, 3
jb 0xb6d15b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xb6d1ca
sar eax, 1
mov ebp, eax
jmp 0xb6d166
add ebx, ebx
jne 0xb6d166
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb6d134
inc ecx
add ebx, ebx
jne 0xb6d174
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xb6d134
add ebx, ebx
jne 0xb6d181
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xb6d176
jne 0xb6d192
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xb6d176
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xb6d1b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xb6d1a6
jmp 0xb6d0f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xb6d1b4
add edi, ecx
jmp 0xb6d0f6
pop esi
mov edi, esi
mov ecx, 0xd3ac
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xb6d1d2
cmp byte [edi], 0x22
jne 0xb6d1d2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xb6d1d7
lea edi, [esi + 0x769000]
mov eax, dword [edi]
or eax, eax
je 0xb6d24f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x773d4c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x773e84]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xb6d204
mov ecx, edi
jns 0xb6d233
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x773e8c]
or eax, eax
je 0xb6d249
mov dword [ebx], eax
add ebx, 4
jmp 0xb6d221
call dword [esi + 0x773e88]
mov ebp, dword [esi + 0x773e90]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x247]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xb6d283
sub esp, 0xffffff80
jmp 0x5b8af1
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x5a1008], 0x8088405
inc edx
mov dword [ebx + 0x5a1008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x58554a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x585551
ret
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x5868af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x5a354c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x5a354c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x5a2378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5868b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x6c3400
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1e5000]
push edi
or ebp, 0xffffffff
jmp 0x6c3422
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6c3429
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c3418
mov eax, 1
add ebx, ebx
jne 0x6c343b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6c344c
jne 0x6c346b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c346b
dec eax
add ebx, ebx
jne 0x6c3458
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6c3430
add ebx, ebx
jne 0x6c3467
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6c34bd
xor ecx, ecx
sub eax, 3
jb 0x6c3483
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x6c34f2
sar eax, 1
mov ebp, eax
jmp 0x6c348e
add ebx, ebx
jne 0x6c348e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c345c
inc ecx
add ebx, ebx
jne 0x6c349c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6c345c
add ebx, ebx
jne 0x6c34a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6c349e
jne 0x6c34ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6c349e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x6c34dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6c34ce
jmp 0x6c341e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x6c34dc
add edi, ecx
jmp 0x6c341e
pop esi
mov edi, esi
mov ecx, 0xd086
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x6c34fa
cmp byte [edi], 0x1d
jne 0x6c34fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x6c34ff
lea edi, [esi + 0x2ae000]
mov eax, dword [edi]
or eax, eax
je 0x6c3577
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31ddf0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x31df58]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6c352c
mov ecx, edi
jns 0x6c355b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x31df5c]
or eax, eax
je 0x6c3571
mov dword [ebx], eax
add ebx, 4
jmp 0x6c3549
call dword [esi + 0x31df6c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x6c35a8
cmp al, 0xef
ja 0x6c359b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6c357d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6c358a
mov ebp, dword [esi + 0x31df60]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6c35dc
sub esp, 0xffffff80
jmp 0x55e6a7
Function at 0x100027ba
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
leave
ret

Function at 0x100027dd
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 0x14], 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push dword [ebp + 8]
call sub.KERNEL32.dll_K32EnumProcessModules
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10002806
cmp dword [ebp - 4], 0
jne 0x10002819
push 0x100062dc
call fcn.1000437a
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push dword [ebp - 4]
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x10002840
push str.____Error_allocating_memory_to_store_process_modules_handles_n
call fcn.1000437a
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.KERNEL32.dll_K32EnumProcessModules
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000287d
push str.____Error_enumerating_process_modules_n
call fcn.1000437a
pop ecx
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax]
mov dword [ebp - 0x14], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x14]
leave
ret

Function at 0x1000289a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call fcn.100027dd
pop ecx
mov dword [ebp - 8], eax
push 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call sub.KERNEL32.dll_K32GetModuleInformation
mov eax, dword [ebp - 0x18]
cdq
push edx
push eax
push str.Base_Address:_0x_llu_n
call fcn.1000437a
add esp, 0xc
push dword [ebp - 0x14]
push str.Image_Size:____u_n
call fcn.1000437a
pop ecx
pop ecx
mov eax, dword [ebp - 0x10]
cdq
push edx
push eax
push str.Entry_Point:__0x_llu_n
call fcn.1000437a
add esp, 0xc
push 0x100063b0
call fcn.1000437a
pop ecx
mov eax, dword [ebp - 0x18]
cdq
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [edx + 4], ecx
lea eax, [ebp - 0xc]
push eax
push 0x40
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
leave
ret
Function at 0x10003004
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
call fcn.100027ba
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
add eax, 0x78
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
add ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 4]
mov dword [ebp - 0x2c], eax
and dword [ebp - 8], 0
jmp 0x1000307b
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x24]
jae 0x100030f8
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + eax*4], 0
jne 0x10003091
jmp 0x10003074
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x3c], eax
and dword [ebp - 0x10], 0
jmp 0x100030aa
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x28]
jae 0x100030f3
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x2c]
movzx eax, word [ecx + eax*2]
cmp eax, dword [ebp - 8]
jne 0x100030f1
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx + eax*4]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
push str.GetProcAddress
push dword [ebp - 0x38]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
pop ecx
pop ecx
test eax, eax
jne 0x100030f1
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 4]
jmp 0x100030f8
jmp 0x100030a3
jmp 0x10003074
leave
ret
Function at 0x1000396c
Capabilities:
Enumerate system firmware tables

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0
push 0
push 0x41435049
call dword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
mov dword [ebp - 0x10], eax
and dword [ebp - 0xc], 0
and dword [ebp - 8], 0
cmp dword [ebp - 0x10], 0
jne 0x10003998
jmp 0x10003acf
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100039b0
jmp 0x10003acf
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0x41435049
call dword [sym.imp.KERNEL32.dll_EnumSystemFirmwareTables]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x100039cf
jmp 0x10003acf
mov byte [ebp - 1], 0
and dword [ebp - 0x1c], 0
and dword [ebp - 0x14], 0
jmp 0x100039e4
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
shr eax, 2
cmp dword [ebp - 0x14], eax
jae 0x10003aab
mov eax, dword [ebp - 0xc]
cdq
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
mov al, byte [eax]
mov byte [ebp - 2], al
xor eax, eax
mov dword [ebp - 0x2c], eax
mov word [ebp - 0x28], ax
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 4
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 6
mov eax, dword [ebp - 0x18]
add eax, 0xa
push eax
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push 4
push str.WAET
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10003a5b
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x10003a7e
push 4
push str.HPET
lea eax, [ebp - 0x34]
push eax
call sub.VCRUNTIME140.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x10003a7e
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
and eax, 0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x3c]
or eax, dword [ebp - 0x38]
jne 0x10003a9f
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x100039dd
cmp dword [ebp - 0x1c], 8
jge 0x10003ab8
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, byte [ebp - 1]
test eax, eax
jne 0x10003ac7
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
xor eax, eax
jne 0x1000398d
cmp dword [ebp - 0xc], 0
je 0x10003adf
push dword [ebp - 0xc]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push 0x28
push 0xf
call fcn.10003c93
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
cmp dword [ebp - 8], 0
jne 0x10003b0d
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x44]
call fcn.100010ae
push eax
call fcn.10001e18
pop ecx
mov eax, dword [ebp - 0x20]
jmp 0x10003b22
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x24]
call fcn.10001096
push eax
call fcn.10001dfc
pop ecx
xor eax, eax
pop edi
leave
ret
Function at 0x4038b8
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4038e1
cmp al, 0x22
je 0x4038d9
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4038cd
cmp byte [esi], 0x22
jne 0x4038eb
inc esi
jmp 0x4038eb
cmp al, 0x20
jle 0x4038eb
inc esi
cmp byte [esi], 0x20
jg 0x4038e5
mov al, byte [esi]
test al, al
je 0x4038f5
cmp al, 0x20
jle 0x4038de
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00403963
push 0x405004
push section..data
call fcn.00403949
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x403925
movzx eax, word [ebp - 0x14]
jmp 0x403928
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040397b
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0xdb48e0
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdb48ea
pushal
call 0xdb48f0
pop ebp
sub ebp, 0x10
sub ebp, 0x9b48e0
jmp 0xdb4906
mov eax, 0x9b48e0
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bb
mov edx, 0xb575b241
xor byte [eax], dl
inc eax
dec ecx
jne 0xdb491d
jmp 0xdb4930
retf 0xca8c
Function at 0x40515c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405195
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40519e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406a10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406a9e
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x406a5b
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, esi
call fcn.00403278
jmp 0x406a88
call sub.kernel32.dll_GetCommandLineA_1
cmp byte [eax], 0
jne 0x406a6f
lea eax, [ebp - 4]
call fcn.00403198
jmp 0x406a7e
lea edx, [ebp - 4]
call fcn.004068d4
test ebx, ebx
je 0x406a7e
dec ebx
jmp 0x406a60
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040322c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406aa5
lea eax, [ebp - 4]
call fcn.00403198
ret
Function at 0x4091c8
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x409222
inc esi
xor edi, edi
cmp edi, 1
jne 0x4091ee
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep
jmp 0x4091fc
cmp edi, 1
jle 0x4091fc
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00408c84
test eax, eax
jne 0x409222
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x409222
call sub.kernel32.dll_GetLastError_1
cmp eax, 3
je 0x409222
inc edi
dec esi
jne 0x4091de
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8