joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca54
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cb2a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404ccc
lea eax, [ebp - 4]
call fcn.00405148
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004050f8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cb14
mov eax, ebx
call fcn.00402cdc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cb0d
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 - 4]
call fcn.004050f8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40caf7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cb3c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40caf7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb14
mov eax, dword [ebp - 0x10]
call fcn.00402cf8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb31
lea eax, [ebp - 4]
call fcn.00404c34
ret

Function at 0x40de24
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00404c34
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.004050f8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x40de69
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00404d24
jmp 0x40de82
mov edx, ebx
dec edx
mov eax, esi
call fcn.00405380
push ebx
mov eax, dword [esi]
call fcn.004050f8
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41bd24
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4ce300
cmp dword [edi], 0
jne 0x41bda0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4ce2fc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45eadc
mov ecx, 2
call fcn.00402ecc
mov edx, 0x41bcfc
lea eax, [esi + 5]
call fcn.0041bd1c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041bd1c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x41bd75
mov dword [0x4ce2fc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41e2c4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004050f8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x41e31c
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ca770]
mov dl, 1
mov eax, dword [0x41dde8]
call fcn.0040c304
call fcn.0040467c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0041def0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41f178
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41f17e
ret
Function at 0x411809
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], ecx
mov dword [eax], 0x41d040
mov dword [eax + 8], 0x41d038
mov dword [eax + 0x10], 0x67452301
mov dword [eax + 0x14], 0xefcdab89
mov dword [eax + 0x18], 0x98badcfe
mov dword [eax + 0x1c], 0x10325476
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], ecx
ret

Function at 0x414fe5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
push 0x10
pop ecx
mov esi, eax
lea edi, [ebp - 0x148]
push 0x40
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x140]
pop ecx
mov edx, dword [eax + 0x2c]
xor edx, dword [eax + 0x18]
xor edx, dword [eax - 8]
xor edx, dword [eax]
add eax, 4
dec ecx
mov dword [eax + 0x34], edx
jne 0x415006
and dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov eax, dword [esi]
mov edx, dword [ebp + 0x14]
mov ecx, eax
shl eax, 5
shr ecx, 0x1b
or ecx, eax
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x148]
push 0x14
add ecx, dword [edx]
cdq
pop edi
idiv edi
sub eax, 0
je 0x41509a
dec eax
je 0x415085
dec eax
je 0x415065
dec eax
jne 0x4150b5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax - 0x359d3e2a]
jmp 0x4150b5
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
mov edi, eax
or edi, edx
and edi, dword [ebx]
and eax, edx
or edi, eax
mov dword [ebp - 8], edx
lea ecx, [ecx + edi - 0x70e44324]
jmp 0x4150b5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [ebp + 0x10]
xor eax, dword [edx]
xor eax, dword [ebx]
lea ecx, [ecx + eax + 0x6ed9eba1]
jmp 0x4150b5
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov edi, dword [edi]
mov edx, eax
not edx
and edx, dword [ebx]
and edi, eax
or edx, edi
lea ecx, [ecx + edx + 0x5a827999]
mov eax, dword [ebx]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, eax
shr eax, 2
shl edi, 0x1e
or edi, eax
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x50
mov dword [edx], edi
mov eax, dword [esi]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov dword [esi], ecx
jl 0x41501e
pop edi
pop esi
leave
ret

Function at 0x427432
Capabilities:
Encode data using xor

Disassembly:
pop ebp
clc
pushal
lea edi, [ebp + 0x42]
mov si, 0x256
cld
mov cl, byte [edi]
xor cl, 0x59
rol cl, 0xc4
xor cl, 0x18
mov byte [edi], cl
inc edi
dec si
jne 0x42743d
jmp 0x427495
fmul st(0)
fdivr dword [esi + 0x7d0c6bc0]
invalid
Function at 0x4047d0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.00406d14
test esi, esi
jne 0x404808
push 0x105
lea eax, [esp + 4]
push eax
push 0
call fcn.00402758
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406e50
jmp 0x404826
call fcn.00402738
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404714
mov edi, eax
test esi, esi
je 0x404826
cmp dword [ebx], 0
je 0x404826
dec esi
jmp 0x40480f
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x406068
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x554054], 0
je 0x4060c9
cmp word [0x554330], 0xd7b2
jne 0x406091
cmp dword [0x554338], 0
jbe 0x406091
mov eax, 0x55432c
call dword [0x554348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call fcn.004026c0
push eax
call fcn.004026e0
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4060f4
push 0xfffffffffffffff5
call fcn.004026c0
push eax
call fcn.004026e0
pop edx
ret
cmp byte [0x550030], 0
jne 0x4060e5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call fcn.00402718
pop edx
ret

Function at 0x4060f8
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, 0x556aec
mov edi, 0x554050
cmp dword [0x550004], 0
je 0x406120
call fcn.00405fd8
call fcn.00406068
xor eax, eax
mov dword [0x550004], eax
cmp dword [0x556b20], 0
je 0x40614a
call fcn.004027f0
cmp eax, dword [0x556b48]
jne 0x40614a
mov eax, 0x556b1c
call fcn.00405d74
mov eax, 0x556b1c
call fcn.0040603c
cmp byte [ebx + 0x28], 0
jne 0x406164
cmp dword [edi], 0
je 0x406164
mov eax, dword [edi]
mov esi, eax
xor eax, eax
mov dword [edi], eax
call esi
cmp dword [edi], 0
jne 0x406155
cmp byte [ebx + 0x28], 2
jne 0x406178
cmp dword [section..data], 0
jne 0x406178
xor eax, eax
mov dword [ebx + 0xc], eax
call fcn.00405d9c
cmp byte [ebx + 0x28], 1
jbe 0x40618c
cmp dword [section..data], 0
je 0x4061af
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x4061af
mov eax, edi
call fcn.00409b1c
mov ebp, dword [ebx + 0x10]
mov esi, dword [ebp + 0x10]
cmp esi, dword [ebp + 4]
je 0x4061af
test esi, esi
je 0x4061af
push esi
call fcn.00402730
mov eax, ebx
call fcn.00405d74
cmp byte [ebx + 0x28], 1
jne 0x4061bf
call dword [ebx + 0x24]
cmp byte [ebx + 0x28], 0
je 0x4061cc
mov eax, ebx
call fcn.0040603c
cmp dword [ebx], 0
jne 0x4061eb
cmp dword [0x554030], 0
je 0x4061e0
call dword [0x554030]
mov eax, dword [section..data]
push eax
call fcn.00402710
mov eax, dword [ebx]
mov esi, eax
mov edi, ebx
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
jmp 0x406164
Function at 0x406274
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x550034], 0
je 0x40629a
mov edx, esi
mov eax, ebx
call dword [0x550034]
jmp 0x4062a9
mov eax, 8
call fcn.0040445c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x554055], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40623c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call fcn.00402700
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc

Function at 0x408d24
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408e8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406d14
cmp si, word [0x5507dc]
jb 0x408dbe
cmp si, word [0x5509dc]
ja 0x408dbe
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x408dbe
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x5507dc]
jae 0x408d98
mov edi, ebx
dec edi
jmp 0x408db9
cmp si, word [ebx*8 + 0x5507dc]
jbe 0x408da8
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x408db9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x5507e0]
call fcn.00408c34
jmp 0x408dbe
cmp edi, dword [ebp - 0xc]
jae 0x408d82
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x408e6d
push 2
movzx eax, si
push eax
call fcn.00402780
test eax, eax
je 0x408e6d
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call fcn.00402748
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call fcn.00402748
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406efc
push dword [ebp - 0x164]
push 0x408ea8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406efc
push dword [ebp - 0x168]
push 0x408eb8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406efc
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004072b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e92
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.00406d0c
ret
Function at 0x409044
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409149
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x556b5c
call fcn.004026a8
cmp bx, word [0x556b74]
jne 0x409090
mov eax, esi
mov edx, 0x556b78
mov ecx, 0x55
call fcn.00406efc
push 0x556b5c
call fcn.004026b0
jmp 0x409133
push 0x556b5c
call fcn.004026b0
mov eax, esi
xor edx, edx
call fcn.00406d14
push 2
movzx eax, bx
push eax
call fcn.00402780
test eax, eax
je 0x409101
cmp byte [0x556b58], 0
je 0x4090c6
mov edx, esi
mov eax, ebx
call fcn.00408f24
jmp 0x409101
mov edx, esi
mov eax, ebx
call fcn.00408d24
call fcn.00402778
cmp bx, ax
je 0x409101
cmp dword [esi], 0
je 0x4090ea
mov eax, esi
mov edx, 0x409164
call fcn.00407110
call fcn.00402778
lea edx, [ebp - 4]
call fcn.00408d24
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00407110
push 0x556b5c
call fcn.004026a8
mov word [0x556b74], bx
push 0xaa
mov eax, dword [esi]
call fcn.00406da0
push eax
push 0x556b78
call fcn.00402798
push 0x556b5c
call fcn.004026b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409150
lea eax, [ebp - 4]
call fcn.00406d04
ret
Function at 0x409388
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406cfc
xor eax, eax
push ebp
push 0x40956d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x4093c8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call fcn.00402758
jmp 0x4093e2
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406da0
push eax
lea eax, [ebp - 0x21a]
push eax
call fcn.00402798
cmp word [ebp - 0x21a], 0
je 0x409557
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40957c
push 0x80000001
call fcn.004027b8
test eax, eax
je 0x409471
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40957c
push 0x80000002
call fcn.004027b8
test eax, eax
je 0x409471
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095b0
push 0x80000001
call fcn.004027b8
test eax, eax
je 0x409471
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4095e4
push 0x80000001
call fcn.004027b8
test eax, eax
jne 0x409557
xor eax, eax
push ebp
push 0x409550
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0040918c
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004027c0
test eax, eax
jne 0x4094e0
mov eax, dword [ebp - 0x10]
call fcn.0040445c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.004027c0
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ec0
jmp 0x40952b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409624
mov eax, dword [ebp - 0xc]
push eax
call fcn.004027c0
test eax, eax
jne 0x40952b
mov eax, dword [ebp - 0x10]
call fcn.0040445c
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409624
mov eax, dword [ebp - 0xc]
push eax
call fcn.004027c0
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406ec0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409557
cmp dword [ebp - 8], 0
je 0x409546
mov eax, dword [ebp - 8]
call fcn.00404478
mov eax, dword [ebp - 0xc]
push eax
call fcn.004027b0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409574
lea eax, [ebp - 4]
call fcn.00406d04
ret
Function at 0x409838
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.00406cfc
mov eax, dword [ebp - 0x21c]
call fcn.00406cfc
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4099d7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406d14
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406da0
push eax
lea eax, [ebp - 0x20a]
push eax
call fcn.00402798
lea eax, [ebp - 0x20a]
push eax
call fcn.004027a0
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x4098d8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4098ea
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4098d5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x4099a3
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x409913
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00409388
cmp dword [ebp - 0x220], 0
je 0x40994b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040972c
pop ecx
mov ebx, eax
jmp 0x4099a3
push ebp
call fcn.00402750
lea edx, [ebp - 0x224]
call fcn.00409044
mov eax, dword [ebp - 0x224]
call fcn.0040972c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409996
cmp byte [0x556b58], 0
jne 0x409996
push ebp
call fcn.00402778
lea edx, [ebp - 0x228]
call fcn.00409044
mov eax, dword [ebp - 0x228]
call fcn.0040972c
pop ecx
mov ebx, eax
test bl, bl
jne 0x4099a3
push ebp
call fcn.004097dc
pop ecx
mov ebx, eax
test bl, bl
je 0x4099b9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406efc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4099de
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.00406d0c
ret

Function at 0x40d428
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x556c50
push 0xa
push 0x40d4bc
mov eax, dword [0x556c40]
push eax
call fcn.0040b834
mov ebx, eax
test ebx, ebx
jne 0x40d44c
call fcn.0041bd28
push ebx
mov eax, dword [0x556c40]
push eax
call fcn.0040ba28
mov ebx, eax
test ebx, ebx
jne 0x40d463
call fcn.0041bd28
push ebx
call fcn.0040ba30
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40d475
call fcn.0041bd28
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x556c54], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x556c58], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x556c5c], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x556c60], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x556c64], ecx
add edx, dword [eax + 0x14]
mov dword [0x556c68], edx
pop esi
pop ebx
ret
Function at 0x412760
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x412809
test eax, edx
je 0x41280c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x412789
push edx
mov edx, eax
mov eax, esp
call fcn.00406f18
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41279f
push eax
lea eax, [esp + 8]
call fcn.00406f18
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4127ae
movzx eax, word [eax]
sub eax, ecx
jmp 0x4127d5
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4127ef
add ecx, 4
js 0x4127c6
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x4127ec
push eax
mov eax, ecx
mov edx, 2
call fcn.00406314
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4127d3
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4127d5
xor eax, eax
ret
test eax, eax
je 0x41281c
test edx, edx
jne 0x412770
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x413d30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406da0
push eax
call fcn.0040b8d4
cmp eax, 0xffffffff
je 0x413d4e
test al, 0x10
sete al
pop esi
pop ebx
ret
call fcn.0040b8ec
mov ebx, eax
cmp ebx, 2
je 0x413d6f
cmp ebx, 3
je 0x413d6f
cmp ebx, 0x7b
je 0x413d6f
mov eax, esi
call fcn.00413cf0
test al, al
jne 0x413d73
xor eax, eax
jmp 0x413d75
mov al, 1
pop esi
pop ebx
ret

Function at 0x413d78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00406da0
push eax
call fcn.0040b8d4
cmp eax, 0xffffffff
je 0x413d91
test al, 0x10
jne 0x413d95
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x418d64
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call fcn.0040b8fc
test eax, eax
jle 0x418d9d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406e50
jmp 0x418da6
mov eax, ebx
mov edx, esi
call fcn.00406d14
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x418db0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call fcn.0040b8fc
test eax, eax
jle 0x418dd2
movzx eax, word [esp]
jmp 0x418dd4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x419564
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x419689
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00419374
mov esi, eax
mov eax, dword [0x553c50]
cmp byte [eax], 0
je 0x419631
mov eax, dword [0x5537c8]
call fcn.00404904
call fcn.004045c4
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call fcn.0040bb28
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41953c]
call fcn.0040860c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call fcn.0040bb28
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call fcn.0040b990
push eax
call fcn.0040bb30
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4196a4
push 0xfffffffffffffff4
call fcn.0040b990
push eax
call fcn.0040bb30
jmp 0x41966d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x553724]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x556c40]
call fcn.00408814
push eax
call fcn.0040c230
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call fcn.0040c248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419690
lea eax, [ebp - 4]
mov edx, dword [0x41953c]
call fcn.0040872c
ret

Function at 0x41a868
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41a93e
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406d68
lea eax, [ebp - 4]
call fcn.00407700
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406da0
push eax
call fcn.0040bb48
mov ebx, eax
test ebx, ebx
je 0x41a928
mov eax, ebx
call fcn.0040445c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41a921
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 - 4]
call fcn.00406da0
push eax
call fcn.0040bb40
test eax, eax
je 0x41a90b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41a950
mov eax, dword [ebp - 0x10]
push eax
call fcn.0040bb50
test eax, eax
je 0x41a90b
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a928
mov eax, dword [ebp - 0x10]
call fcn.00404478
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41a945
lea eax, [ebp - 4]
call fcn.00406d04
ret