joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f893e92
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x4f893ea8
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x4f893eb9
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.4f893efa
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x4f896266
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x4f8961af
add ebx, 0
push ecx
call 0x4f8961c4
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6c6291bc
sub ebx, dword [0x6c6489fb]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6c6489eb
call fcn.4f891c8e
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.4f89119c
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x4f896322
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x4f896322
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x4f8962d9
mov eax, 1
lock xchg dword [0x6c6489f7], eax
push 0x3dd1fc71
call 0x4f896266
push esi
add esp, 8
cmp eax, 0
jne 0x4f89624f
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x4f896275
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x4f89628a
cmp ecx, edx
cmp eax, 0
je 0x4f8962af
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x4f896299
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.4f8962c8
dec eax
loope 0x4f8962cb
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6c6489f7], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x4f8962ff
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x4f896314
jmp 0x4f89631f
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x4f89620d
Function at 0x4f89d387
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x4f89d65d
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6c63566f
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6c62c635
push 0xffffffffffffffff
call fcn.4f894587
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x4f89d3f1
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.4f89d409
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x4f89d651
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x4f89d625
Function at 0x4f8ace57
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4f8ace79
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4f8ace79
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4f8ace79
ret
cmp word [ebx + 4], 0x14c
jne 0x4f8ace79
test word [ebx + 0x16], 2
je 0x4f8ace79
test word [ebx + 0x16], 0x100
je 0x4f8ace79
cmp word [ebx + 0x18], 0x10b
jne 0x4f8ace79
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4f8ace79
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4f8acf05
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4f8ace99
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.4f893de4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4f8ace79
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x4f8acf05
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x4f8ace79
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x4f8ace79
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x4f8ace79
ret
cmp word [ebx + 4], 0x14c
jne 0x4f8ace79
test word [ebx + 0x16], 2
je 0x4f8ace79
test word [ebx + 0x16], 0x100
je 0x4f8ace79
cmp word [ebx + 0x18], 0x10b
jne 0x4f8ace79
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x4f8ace79
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x4f8acf05
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4f8ace99
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.4f893de4
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x4f8ace79
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x4f8acfbc
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f8ad015
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f8acfbc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f8acfcb
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x4fcb2c6e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f8ad01c
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.4f893e92
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f8ad0bb
add edi, 4
add eax, 2
dec ecx
jne 0x4f8ad001
call 0x4f8ad068
loope 0x4f8ad05e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f8ad0b8
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f8ad0c9
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f8ad07c
cmp eax, ecx
ja 0x4f8ad07c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f8ad106
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f8ad0fc
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.4f894371
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4f8acfcb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x4f8ad015
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4f8acfbc
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4f8acfcb
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x4fcb2c6e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x4f8ad01c
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.4f893e92
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4f8ad0bb
add edi, 4
add eax, 2
dec ecx
jne 0x4f8ad001
call 0x4f8ad068
loope 0x4f8ad05e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4f8ad0b8
mov dh, pe_nt_image_headers32
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4f8ad0c9
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x4f8ad07c
cmp eax, ecx
ja 0x4f8ad07c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x4f8ad106
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x4f8ad0fc
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.4f894371
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x40942f
pop dword [ebp - 0x28]
mov eax, 0x321256aa
sub eax, 0x31d1c27b
sub dword [ebp - 0x28], eax
mov dword [ebp - 0x38], 0x29c45d87
sub dword [ebp - 0x38], 0xdb72183c
mov dword [ebp - 0x34], 0x954895d8
sub dword [ebp - 0x34], 0x63154993
mov dword [ebp - 0x30], 0x2b4563fc
add dword [ebp - 0x30], 0x2106e032
mov dword [ebp - 0x2c], 0x3c8fb32b
add dword [ebp - 0x2c], 0xc3704cd5
lea eax, [ebp - 0x38]
push eax
mov eax, 0xec33623c
add eax, 0x140d6e18
add eax, dword [ebp - 0x28]
call dword [eax]
mov dword [ebp - 0x38], 0xeb295012
sub dword [ebp - 0x38], 0x76b6e6bc
mov dword [ebp - 0x34], 0xae374708
add dword [ebp - 0x34], 0x93351a6d
mov dword [ebp - 0x30], 0x555ddf3
sub dword [ebp - 0x30], 0xa1e67187
mov dword [ebp - 0x2c], 0x3befdb07
sub dword [ebp - 0x2c], 0x3befdb07
lea ebx, [ebp - 0x38]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x28]
call dword [eax]
push 0x40
push 0x1000
push 0x3912a
push 0
call eax
mov ecx, 0x354b18e8
add ecx, 0xcab52d3b
xor esi, esi
add esi, eax
mov edi, 0xbb3f61fd
add edi, 0x45024e03
add edi, dword [ebp - 0x28]
mov edx, 0xd7d2d6b4
mov ebx, dword [edi]
sub dword [ebp - 0x20], edi
xor ebx, edx
mov dword [esi], ebx
add dword [ebp - 0x10], edi
add esi, 0xff1e36a7
add esi, 0xe1c95d
add edi, 0x2dd0fa05
add edi, 0xd22f05ff
loop 0x409548
add eax, 0xc93225e7
sub eax, 0xc9311a88
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..idata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4ce50498
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x50bf6a60
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x402d98
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402dd5
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402df5
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404f90
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40303c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404d20
test esi, esi
jne 0x403073
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404e10
jmp 0x403094
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402ed8
mov dword [esp], eax
test esi, esi
je 0x403094
cmp dword [ebx], 0
je 0x403094
dec esi
jmp 0x40307b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403634
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x403bf4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d7024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c8c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403c6c
xor eax, eax
push ebp
push 0x403c65
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403ca8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c6c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4d7024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d7024], ax
mov esp, ebp
pop ebp
ret
Function at 0x404918
Capabilities:
Terminate process

Disassembly:
push ecx
push esi
push edi
mov esi, 0x4e0638
lea edi, [ebp - 0x3c]
mov ecx, 0xb
rep movsd dword es:[edi], dword [esi]
pop dword [0x4e0658]
pop dword [0x4e0654]
mov dword [0x4e064c], ebp
mov dword [0x4e0650], ebx
mov dword [0x4e0640], eax
mov dword [0x4e0648], edx
lea ecx, [ebp - 0x3c]
mov dword [0x4e0638], ecx
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x404960
mov ecx, dword [eax]
mov dword [0x4e0644], ecx
mov eax, 0x4012dc
mov dword [0x4e0014], eax
mov eax, 0x4012ec
mov dword [0x4e0018], eax
call fcn.004047f0
mov eax, dword [ebp + 0xc]
inc eax
mov byte [0x4e0660], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [0x4e065c], edx
je 0x40499b
cmp al, 3
jge 0x40499b
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x4049ac
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x4049b7
call dword [ecx + eax*4]
cmp dword [0x4e0030], 0
jne 0x4049cd
mov byte [0x4e0038], 1
fnstcw word [0x4d7024]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00404b84
call fcn.004048a8
ret 4
Function at 0x406f9c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x407002
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404f90
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403650
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406fec
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407009
lea eax, [ebp - 0x10]
call fcn.00404d20
ret
Function at 0x40c318
Capabilities:
Enumerate network shares

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40c56c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404d74
cmp dword [0x4d70f0], 1
jne 0x40c363
cmp dword [0x4d70f4], 4
jle 0x40c3a2
mov dword [ebp - 0x18], 0x400
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x424]
push eax
push 1
mov eax, dword [ebp - 4]
call fcn.004051fc
push eax
call sub.mpr.dll_WNetGetUniversalNameA
test eax, eax
jne 0x40c54e
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x424]
mov edx, dword [edx]
call fcn.00404f18
jmp 0x40c54e
mov eax, dword [ebp - 4]
mov al, byte [eax]
call fcn.004030e4
mov byte [ebp - 0x19], al
cmp byte [ebp - 0x19], 0x41
jb 0x40c54e
cmp byte [ebp - 0x19], 0x5a
ja 0x40c54e
mov eax, dword [ebp - 4]
call fcn.00404ffc
cmp eax, 3
jl 0x40c54e
mov eax, dword [ebp - 4]
cmp byte [eax + 1], 0x3a
jne 0x40c54e
mov eax, dword [ebp - 4]
cmp byte [eax + 2], 0x5c
jne 0x40c54e
lea eax, [ebp - 0x20]
push eax
push 0
push 0
push 1
push 1
call sub.mpr.dll_WNetOpenEnumA
test eax, eax
jne 0x40c54e
xor eax, eax
push ebp
push 0x40c547
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0x640
mov eax, dword [ebp - 0xc]
call fcn.00402b48
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x40c529
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.mpr.dll_WNetEnumResourceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xea
jne 0x40c476
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00402b98
jmp 0x40c435
cmp dword [ebp - 0x10], 0
je 0x40c48b
call fcn.00404698
call fcn.00404698
jmp 0x40c54e
mov esi, dword [ebp - 0x14]
dec esi
test esi, esi
jl 0x40c435
inc esi
xor edi, edi
mov eax, edi
shl eax, 2
mov edx, dword [ebp - 0x24]
lea ebx, [edx + eax*8]
cmp dword [ebx + 0x10], 0
je 0x40c507
mov eax, dword [ebx + 0x10]
mov al, byte [eax]
call fcn.004030e4
cmp al, byte [ebp - 0x19]
jne 0x40c507
lea eax, [ebp - 0x428]
push eax
mov eax, dword [ebp - 4]
call fcn.00404ffc
mov ecx, eax
sub ecx, 2
mov edx, 3
mov eax, dword [ebp - 4]
call fcn.0040525c
mov eax, dword [ebp - 0x428]
push eax
lea eax, [ebp - 0x42c]
mov edx, dword [ebx + 0x14]
call fcn.00404f18
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 8]
pop ecx
call fcn.00405048
call fcn.00404698
call fcn.00404698
jmp 0x40c54e
inc edi
dec esi
jne 0x40c496
jmp 0x40c435
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c573
lea eax, [ebp - 0x42c]
mov edx, 2
call fcn.00404d44
ret
Function at 0x40f6fc
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_1
test eax, eax
jle 0x40f735
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e10
jmp 0x40f73e
mov eax, ebx
mov edx, esi
call fcn.00404d74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f748
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40f769
mov al, byte [esp]
jmp 0x40f76b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410798
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41086e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00404db8
lea eax, [ebp - 8]
call fcn.0040524c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004051fc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x410858
mov eax, ebx
call fcn.00402b48
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x410851
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004051fc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x41083b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x410880
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x41083b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410858
mov eax, dword [ebp - 0x10]
call fcn.00402b78
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410875
lea eax, [ebp - 8]
call fcn.00404d20
ret

Function at 0x410f14
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x410f78
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f90
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040ba24
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x410f7f
lea eax, [ebp - 0xc]
call fcn.00404d20
ret