joyce8/EMBER2024-capa huggingface dataset:
Function at 0x474510
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x47451b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x47461e
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4b846c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4b846c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4b846c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4b846c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4b846c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4b846c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4b846c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4b846c]
xor eax, edx
inc ecx
dec edi
jne 0x474536
pop edi
test esi, esi
je 0x474640
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4b846c]
xor eax, edx
inc ecx
dec esi
jne 0x474622
pop esi
pop ebx
not eax
ret

Function at 0x474fd0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x475011
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x475006
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x475024
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x475f60
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
cmp dword [ebp], 0
jne 0x476015
cmp dword [ebp + 4], 0xffffffff
jne 0x476015
push ebx
lea ebx, [ebp + 0x138]
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, 0x4d689c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
pop ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x14]
cmp esi, 1
jne 0x475fdd
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x475fdd
pop edi
pop esi
mov eax, 0x2000000
pop ebp
pop ecx
ret 0xc
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push esi
push ecx
push edi
call fcn.00474d60
add esp, 0x10
test eax, eax
jne 0x476000
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
push eax
call fcn.004752a0
add esp, 4
mov dword [ebp], eax
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 0xc
pop edi
pop esi
mov eax, 0x1000000
pop ebp
pop ecx
ret 0xc

Function at 0x476470
Capabilities:
Create directory

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x208
test ecx, ecx
je 0x476538
mov al, byte [ecx]
test al, al
je 0x476538
push ebx
push esi
push edi
mov ebx, ecx
mov esi, ecx
cmp al, 0x2f
je 0x47649b
cmp al, 0x5c
jne 0x47649d
mov ebx, esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x476493
mov edi, dword [esp + 0x218]
cmp ebx, ecx
je 0x4764d4
mov esi, ebx
lea eax, [esp + 0xc]
sub esi, ecx
push esi
push ecx
push eax
call fcn.00482b5c
lea ecx, [esp + 0x18]
mov byte [esp + esi + 0x18], 0
push ecx
push edi
call fcn.00476470
add esp, 0x14
inc ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x110]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x110]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
pop esi
pop ebx
add esp, 0x208
ret
Function at 0x4829d9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4829f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00483feb
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x482a1c
test byte [esp + 8], 2
je 0x482a1c
call fcn.0048405e
mov dword [eax], 0xd
call fcn.00484067
mov dword [eax], 5
jmp 0x4829f5
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bca20
push 0x481c54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
mov eax, dword [fcn.0048870c]
test eax, eax
je 0x4887b5
mov dword [ebp - 4], 1
call eax
jmp 0x4887b1
and dword [ebp - 4], 0
or dword [ebp - 4], 0xffffffff
call 0x4887be
jmp fcn.0048870c

Function at 0x493b74
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x493bac
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00491c2b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00491c03
jmp 0x493bb8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x495266
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4952a8
call fcn.0049b316
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4952a8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49529f
xor eax, eax
jmp 0x4952b0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004952b6
pop edi
pop esi
pop ebx
ret 4

Function at 0x49b846
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x49b874
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x49b892
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0049b7ac
jmp 0x49b892
mov eax, dword [esi + 0x14]
test eax, eax
je 0x49b892
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0049b7ac
test edi, edi
mov eax, edi
jne 0x49b87c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4031f4
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x40324d
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call fcn.004012e4
lea edx, [ebp - 8]
call fcn.00403090
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00403090
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x403237
inc ebx
jmp 0x403220
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403254
lea eax, [ebp - 8]
call fcn.00404d20
ret

Function at 0x40325c
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 0x403293
push 0x105
lea eax, [esp + 8]
push eax
push 0
call fcn.004012fc
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404e10
jmp 0x4032b4
call fcn.004012e4
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00403090
mov dword [esp], eax
test esi, esi
je 0x4032b4
cmp dword [ebx], 0
je 0x4032b4
dec esi
jmp 0x40329b
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403de0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47b020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403e78
push 0x80000002
call fcn.00401354
test eax, eax
jne 0x403e58
xor eax, eax
push ebp
push 0x403e51
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 0x403e94
mov eax, dword [ebp - 4]
push eax
call fcn.0040135c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e58
mov eax, dword [ebp - 4]
push eax
call fcn.0040134c
ret
mov ax, word [0x47b020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47b020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404b7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47e04c], 0
je 0x404bdd
cmp word [0x47e220], 0xd7b2
jne 0x404ba5
cmp dword [0x47e228], 0
jbe 0x404ba5
mov eax, 0x47e21c
call dword [0x47e238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47b070
push 0xfffffffffffffff5
call fcn.00401274
push eax
call fcn.004012ac
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404c04
push 0xfffffffffffffff5
call fcn.00401274
push eax
call fcn.004012ac
pop edx
ret
cmp byte [0x47b030], 0
jne 0x404bf9
push 0
push 0x47b068
push 0x47b070
push 0
call fcn.004012c4
pop edx
ret
Function at 0x40635c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x121]
push eax
push 0
call fcn.004012fc
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065a0
push 0x80000001
call fcn.00401354
test eax, eax
je 0x4063de
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065a0
push 0x80000002
call fcn.00401354
test eax, eax
je 0x4063de
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065bc
push 0x80000001
call fcn.00401354
test eax, eax
jne 0x406467
xor eax, eax
push ebp
push 0x406460
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x121]
mov edx, 0x105
call fcn.00406184
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x121]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040135c
test eax, eax
je 0x406445
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4065dc
mov eax, dword [ebp - 8]
push eax
call fcn.0040135c
test eax, eax
je 0x406445
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406467
mov eax, dword [ebp - 8]
push eax
call fcn.0040134c
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x121]
push eax
call fcn.00401334
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call fcn.0040131c
push eax
call fcn.004012f4
xor ebx, ebx
cmp byte [ebp - 0x121], 0
je 0x406597
cmp byte [ebp - 0xd], 0
jne 0x4064ae
cmp byte [ebp - 0x12], 0
je 0x406597
lea eax, [ebp - 0x121]
push eax
call fcn.0040133c
lea edx, [ebp - 0x121]
add eax, edx
mov dword [ebp - 0x1c], eax
jmp 0x4064ca
dec dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0x2e
je 0x4064dd
lea eax, [ebp - 0x121]
cmp eax, dword [ebp - 0x1c]
jne 0x4064c7
lea eax, [ebp - 0x121]
cmp eax, dword [ebp - 0x1c]
je 0x406597
inc dword [ebp - 0x1c]
cmp byte [ebp - 0x12], 0
je 0x406521
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401334
push 2
push 0
lea eax, [ebp - 0x121]
push eax
call fcn.00401324
mov ebx, eax
test ebx, ebx
jne 0x406597
cmp byte [ebp - 0xd], 0
je 0x406597
lea eax, [ebp - 0x121]
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401334
push 2
push 0
lea eax, [ebp - 0x121]
push eax
call fcn.00401324
mov ebx, eax
test ebx, ebx
jne 0x406597
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x121]
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401334
push 2
push 0
lea eax, [ebp - 0x121]
push eax
call fcn.00401324
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406467
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x121]
push eax
push 0
call fcn.004012fc
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065a0
push 0x80000001
call fcn.00401354
test eax, eax
je 0x4063de
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065a0
push 0x80000002
call fcn.00401354
test eax, eax
je 0x4063de
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4065bc
push 0x80000001
call fcn.00401354
test eax, eax
jne 0x406467
xor eax, eax
push ebp
push 0x406460
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x121]
mov edx, 0x105
call fcn.00406184
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x121]
push eax
mov eax, dword [ebp - 8]
push eax
call fcn.0040135c
test eax, eax
je 0x406445
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4065dc
mov eax, dword [ebp - 8]
push eax
call fcn.0040135c
test eax, eax
je 0x406445
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406467
mov eax, dword [ebp - 8]
push eax
call fcn.0040134c
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x121]
push eax
call fcn.00401334
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call fcn.0040131c
push eax
call fcn.004012f4
xor ebx, ebx
cmp byte [ebp - 0x121], 0
je 0x406597
cmp byte [ebp - 0xd], 0
jne 0x4064ae
cmp byte [ebp - 0x12], 0
je 0x406597
lea eax, [ebp - 0x121]
push eax
call fcn.0040133c
lea edx, [ebp - 0x121]
add eax, edx
mov dword [ebp - 0x1c], eax
jmp 0x4064ca
dec dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp byte [eax], 0x2e
je 0x4064dd
lea eax, [ebp - 0x121]
cmp eax, dword [ebp - 0x1c]
jne 0x4064c7
lea eax, [ebp - 0x121]
cmp eax, dword [ebp - 0x1c]
je 0x406597
inc dword [ebp - 0x1c]
cmp byte [ebp - 0x12], 0
je 0x406521
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401334
push 2
push 0
lea eax, [ebp - 0x121]
push eax
call fcn.00401324
mov ebx, eax
test ebx, ebx
jne 0x406597
cmp byte [ebp - 0xd], 0
je 0x406597
lea eax, [ebp - 0x121]
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401334
push 2
push 0
lea eax, [ebp - 0x121]
push eax
call fcn.00401324
mov ebx, eax
test ebx, ebx
jne 0x406597
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x121]
mov edx, dword [ebp - 0x1c]
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00401334
push 2
push 0
lea eax, [ebp - 0x121]
push eax
call fcn.00401324
mov ebx, eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406cc0
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 0x406d26
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call fcn.004012f4
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.0040383c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406d10
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406d2d
lea eax, [ebp - 0x10]
call fcn.00404d20
ret

Function at 0x40cfbc
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 fcn.00407220
test eax, eax
jle 0x40cff5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404e10
jmp 0x40cffe
mov eax, ebx
mov edx, esi
call fcn.00404d74
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d008
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 fcn.00407220
test eax, eax
jle 0x40d029
mov al, byte [esp]
jmp 0x40d02b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40d6c0
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d528
mov eax, dword [0x47d440]
cmp byte [eax], 0
je 0x40d73c
mov eax, dword [0x47d230]
call fcn.0040369c
call fcn.00402fbc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call fcn.00407618
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a73c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call fcn.00407240
push eax
call fcn.00407388
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40d784
push 0xfffffffffffffff4
call fcn.00407240
push eax
call fcn.00407388
jmp 0x40d772
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47d1dc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47e668]
call fcn.00406110
push eax
call fcn.00407918
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call fcn.00407930
add esp, 0x444
ret
Function at 0x40e058
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 0x40e12e
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.00405230
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004051e0
push eax
call fcn.004073a0
mov ebx, eax
test ebx, ebx
je 0x40e118
mov eax, ebx
call fcn.00402dc8
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e111
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.004051e0
push eax
call fcn.00407398
test eax, eax
je 0x40e0fb
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e140
mov eax, dword [ebp - 0x10]
push eax
call fcn.004073a8
test eax, eax
je 0x40e0fb
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 0x40e118
mov eax, dword [ebp - 0x10]
call fcn.00402df8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e135
lea eax, [ebp - 8]
call fcn.00404d20
ret

Function at 0x40e694
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 0x40e6f8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call fcn.00407220
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404f90
mov eax, dword [ebp - 0xc]
push eax
call fcn.004071c8
mov edx, eax
pop eax
call fcn.0040a034
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e6ff
lea eax, [ebp - 0xc]
call fcn.00404d20
ret

Function at 0x41fb64
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x48241c
cmp dword [edi], 0
jne 0x41fbe0
push 0x40
push 0x1000
push 0x1000
push 0
call fcn.00407368
mov esi, eax
mov eax, dword [0x482418]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47b698
mov ecx, 2
call fcn.00403050
mov edx, 0x41fb3c
lea eax, [esi + 5]
call fcn.0041fb5c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041fb5c
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 0x41fbb5
mov dword [0x482418], 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 0x421214
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 0x42121a
ret
Function at 0x423718
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00407250
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x423769
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x423750
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x423740
jmp 0x423769
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x423751
pop ebx
mov esp, ebp
pop ebp
ret