joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ddcc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.USER32.DLL_GetMessagePos
call fcn.00417218
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.00458b78
test ebx, ebx
jne 0x45de1f
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0045dd08
mov ebx, eax
test ebx, ebx
je 0x45df0a
cmp esi, ebx
je 0x45de48
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x45de5d
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x45de95
add eax, 0xffffff5f
sub eax, 2
jb 0x45dead
dec eax
sub eax, 2
jb 0x45dec1
dec eax
sub eax, 2
jb 0x45deb7
jmp 0x45decb
add eax, 0xfffffdff
sub eax, 2
jb 0x45dead
dec eax
sub eax, 2
jb 0x45dec1
dec eax
sub eax, 2
jb 0x45deb7
jmp 0x45decb
mov byte [esp + 0x120], 0
jmp 0x45ded3
mov byte [esp + 0x120], 2
jmp 0x45ded3
mov byte [esp + 0x120], 1
jmp 0x45ded3
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.USER32.DLL_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.00445b28
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0045a314
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x45df0c
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x4661b4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4b6dcc]
cmp byte [eax + 0xc], 0
je 0x466321
push 0x8000
call sub.KERNEL32.DLL_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46631a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bc198], 0
jne 0x466208
push 0x466328
call sub.KERNEL32.DLL_GetModuleHandleA
mov ebx, eax
push 0x466330
push ebx
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc198], eax
cmp dword [0x4b04ac], 0
jne 0x466303
push 0x466340
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [0x4b04ac], eax
cmp dword [0x4b04ac], 0
je 0x466303
push 0x46634c
mov eax, dword [0x4b04ac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc19c], eax
push 0x46635c
mov eax, dword [0x4b04ac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc1a0], eax
push 0x466370
mov eax, dword [0x4b04ac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc1a4], eax
push 0x466388
mov eax, dword [0x4b04ac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc1a8], eax
push 0x4663a0
mov eax, dword [0x4b04ac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc1ac], eax
push 0x4663b4
mov eax, dword [0x4b04ac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc1b0], eax
push 0x4663cc
mov eax, dword [0x4b04ac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc1b4], eax
push 0x4663e4
mov eax, dword [0x4b04ac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc1b8], eax
push 0x466400
mov eax, dword [0x4b04ac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc1bc], eax
push 0x46640c
mov eax, dword [0x4b04ac]
push eax
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x4bc1c0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466321
mov eax, dword [ebp - 4]
push eax
call sub.KERNEL32.DLL_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x497550
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x4b1364
call fcn.004a06cc
mov word [ebp - 0x18], 0xc
mov edx, 0x4b1868
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.0049c0e0
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x49759d
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.0049a8c4
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x4975a0
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49cef0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
lea ebx, [ebp + 8]
mov eax, 0x4b27dc
call fcn.004a06cc
mov word [ebp - 0x18], 0xc
mov edx, 0x4b2b64
mov ecx, dword [ebx]
mov dword [ecx], edx
push 0x10
call fcn.0049c0e0
pop ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x49cf3d
mov word [ebp - 0x18], 0x30
mov edx, dword [ebp - 4]
push edx
call fcn.0049a8c4
pop ecx
mov word [ebp - 0x18], 0x24
mov ecx, dword [ebp - 4]
jmp 0x49cf40
mov ecx, dword [ebp - 4]
mov eax, dword [ebx]
mov dword [eax + 0x3c], ecx
mov word [ebp - 0x18], 0x18
mov eax, dword [ebx]
mov edx, dword [ebx]
add edx, 0xc
mov dword [eax + 0x14], edx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x10
mov dword [ecx + 0x18], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x1c
mov dword [edx + 0x24], eax
mov eax, dword [ebx]
mov ecx, dword [ebx]
add ecx, 0x20
mov dword [eax + 0x28], ecx
mov ecx, dword [ebx]
mov edx, dword [ebx]
add edx, 0x2c
mov dword [ecx + 0x34], edx
mov edx, dword [ebx]
mov eax, dword [ebx]
add eax, 0x30
mov dword [edx + 0x38], eax
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x18]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x28]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x38]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x14]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x24]
mov dword [eax], edx
xor edx, edx
mov ecx, dword [ebx]
mov eax, dword [ecx + 0x34]
mov dword [eax], edx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
mov eax, dword [ebx]
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4a1558
call fcn.004a26ac
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4a1577
test bl, 1
je 0x4a1577
call fcn.004a7880
mov dword [eax], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x4a47fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea eax, [ebp - 0x200]
push eax
push 0x1001
mov edx, dword [ebx + 4]
push edx
call sub.KERNEL32.DLL_GetLocaleInfoA
push str._._n
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a0374
add esp, 8
lea eax, [ebp - 0x200]
push eax
call fcn.004a0404
pop ecx
mov edx, pe_nt_image_headers32
sub edx, eax
push edx
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a0404
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
push 0x1002
mov eax, dword [ebx + 4]
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
push 0x4b48fd
lea ecx, [ebp - 0x200]
push ecx
call fcn.004a0374
add esp, 8
push 0xa
lea eax, [ebp - 0x200]
push eax
call fcn.004a0404
pop ecx
lea edx, [ebp - 0x200]
add eax, edx
push eax
mov ecx, dword [ebx]
push ecx
call fcn.004a5998
add esp, 0xc
cmp dword [ebx + 0x24], 0
jne 0x4a490d
push esi
call fcn.004a0404
pop ecx
mov edi, eax
lea eax, [ebp - 0x200]
push eax
call fcn.004a0404
pop ecx
add edi, eax
add edi, 3
push edi
call fcn.0049ffcc
pop ecx
mov edi, eax
mov dword [ebx + 0x24], edi
test edi, edi
jne 0x4a48e4
xor eax, eax
jmp 0x4a4994
push esi
call fcn.004a0404
pop ecx
push eax
lea edx, [ebp - 0x200]
push edx
call fcn.004a0404
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push 0
push edi
call fcn.004a02cc
add esp, 0xc
jmp 0x4a494d
mov edi, dword [ebx + 0x24]
push edi
call fcn.004a0404
pop ecx
push eax
push esi
call fcn.004a0404
pop ecx
pop edx
add edx, eax
push edx
lea eax, [ebp - 0x200]
push eax
call fcn.004a0404
pop ecx
pop ecx
add ecx, eax
add ecx, 3
push ecx
push edi
call fcn.0049ffec
add esp, 8
mov dword [ebx + 0x24], eax
cmp dword [ebx + 0x24], 0
jne 0x4a494d
xor eax, eax
jmp 0x4a4994
push esi
mov edx, dword [ebx + 0x24]
push edx
call fcn.004a0374
add esp, 8
push 0x4b48ff
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004a0374
add esp, 8
lea eax, [ebp - 0x200]
push eax
mov edx, dword [ebx + 0x24]
push edx
call fcn.004a0374
add esp, 8
push 0x4b4901
mov ecx, dword [ebx + 0x24]
push ecx
call fcn.004a0374
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4a7814
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
jne 0x4a7841
jmp 0x4a7878
call fcn.004a77c4
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004a0404
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004a0404
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4a78fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x4b4f30], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x4a79d6
cmp dword [0x4b4f2c], 0
jne 0x4a79d6
cmp dword [0x4b5110], 0
je 0x4a7990
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.004a76c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a7976
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.004a76c4
add esp, 8
mov ebx, eax
test eax, eax
jne 0x4a7976
lea ebx, [ebp - 0x84]
jmp 0x4a7977
inc ebx
call fcn.004a78b4
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x4a7a11
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x4b4f34
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004a0404
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x4b4f37
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x4a7a11
cmp dword [0x4b4f2c], 0
je 0x4a79f0
cmp dword [0x4b4f2c], 0xffffffff
je 0x4a7a11
push esi
call dword [0x4b4f2c]
pop ecx
mov eax, dword [0x4b4f30]
test eax, eax
je 0x4a7a11
cmp dword [0x4b4f30], 0xffffffff
je 0x4a7a11
cmp byte [eax], 0
je 0x4a7a11
push esi
push eax
call fcn.004a7814
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4a81a8
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4bced4], 0
jne 0x4a8229
cmp dword [0x4bcef4], 0
jne 0x4a81d8
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x4bcef4], eax
test eax, eax
jne 0x4a81d8
push str.GetEnvironmentStrings_failed
call fcn.004a7a28
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x4bcef4]
jmp 0x4a81ec
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004a0404
pop ecx
mov edi, eax
test eax, eax
jne 0x4a81e4
lea edi, [ebp + 1]
push edi
call fcn.0049ffcc
pop ecx
mov ebx, eax
mov dword [0x4bced8], ebx
test ebx, ebx
jne 0x4a8216
xor eax, eax
jmp 0x4a82ec
push edi
mov edx, dword [0x4bcef4]
push edx
push ebx
call fcn.004a0238
add esp, 0xc
jmp 0x4a8249
xor esi, esi
mov ebx, dword [0x4bced4]
jmp 0x4a8243
push eax
call fcn.004a0404
pop ecx
test eax, eax
jne 0x4a823f
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4a8233
lea ebx, [esi + 4]
push 4
mov dword [0x4bcedc], ebx
inc ebx
push ebx
call fcn.0049fc8c
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x4a826c
xor eax, eax
jmp 0x4a82ec
cmp dword [0x4bced4], 0
jne 0x4a829d
xor esi, esi
mov ebx, dword [0x4bced8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4a828e
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004a0404
pop ecx
mov edi, eax
test eax, eax
jne 0x4a8284
jmp 0x4a82ce
xor esi, esi
mov ebx, dword [0x4bced4]
mov eax, dword [esp]
mov edi, eax
jmp 0x4a82c8
push eax
call fcn.004a0404
pop ecx
test eax, eax
je 0x4a82bd
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4a82c1
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4a82ac
mov eax, dword [0x4bced4]
test eax, eax
je 0x4a82de
push eax
call fcn.0049ffdc
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4bced4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x40132e
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 0x2c
cmp word [edx], 0x5a4d
push ebx
push edi
je 0x401347
xor eax, eax
jmp 0x4014a1
push esi
mov esi, dword [edx + 0x3c]
add esi, edx
cmp dword [esi], 0x4550
lea eax, [esi + 0x18]
jne 0x40149e
cmp word [esi + 0x14], 0xe0
jne 0x40149e
cmp dword [eax + 0x68], 0
je 0x40149e
cmp word [eax], 0x10b
jne 0x40149e
movzx eax, word [esi + 6]
cmp ax, 1
jb 0x40149e
movzx ecx, word [esi + 0x14]
movzx eax, ax
mov edi, eax
imul edi, edi, 0x28
lea ecx, [ecx + esi + 0x18]
sub edi, edx
add edi, ecx
test eax, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edi
jbe 0x4013c1
add ecx, 0xc
mov edx, dword [ecx + 4]
mov ebx, dword [ecx]
add edx, ebx
cmp dword [ebp - 4], edx
jae 0x4013bb
mov dword [ebp - 4], edx
add ecx, 0x28
dec eax
jne 0x4013ac
lea eax, [ebp - 0x2c]
push eax
call dword [0xb24194]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 4]
lea eax, [ecx + eax - 1]
xor edx, edx
div ecx
mov ebx, 0x422fff
and ebx, 0xfffff000
imul eax, ecx
mov ecx, 0xb22000
sub ecx, ebx
cmp eax, ecx
ja 0x40149e
test ebx, ebx
je 0x40149e
push edi
push dword [ebp + 8]
push ebx
call 0x4132d0
and dword [ebp - 4], 0
add esp, 0xc
cmp word [esi + 6], 0
jbe 0x401442
mov edi, dword [ebp - 8]
add edi, 0x14
mov eax, dword [edi]
add eax, dword [ebp + 8]
push dword [edi - 4]
push eax
mov eax, dword [edi - 8]
add eax, ebx
push eax
call 0x4132d0
movzx eax, word [esi + 6]
add esp, 0xc
inc dword [ebp - 4]
add edi, 0x28
cmp dword [ebp - 4], eax
jb 0x40141c
mov eax, dword [ebx + 0x3c]
lea edx, [eax + ebx + 0x18]
mov edi, dword [edx + 0x68]
add edi, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], edi
mov eax, dword [edi + 0xc]
test eax, eax
jne 0x401460
cmp dword [edi + 4], eax
je 0x4014cd
lea esi, [eax + ebx]
push esi
call dword [0xb24198]
test eax, eax
mov dword [ebp + 8], eax
jne 0x40147f
push esi
call dword [0xb2419c]
test eax, eax
mov dword [ebp + 8], eax
je 0x40149e
mov esi, dword [edi]
mov edi, dword [edi + 0x10]
add esi, ebx
add edi, ebx
jmp 0x4014bb
js 0x4014a7
lea eax, [eax + ebx + 2]
push eax
push dword [ebp + 8]
call dword [0xb241a0]
test eax, eax
jne 0x4014b3
xor eax, eax
pop esi
pop edi
pop ebx
leave
ret 8
movzx eax, ax
push eax
push dword [ebp + 8]
call fcn.004012e7
mov dword [edi], eax
add esi, 4
add edi, 4
mov eax, dword [esi]
test eax, eax
jne 0x40148a
add dword [ebp - 4], 0x14
mov edx, dword [ebp - 8]
mov edi, dword [ebp - 4]
jmp 0x401454
mov ecx, dword [edx + 0x88]
test ecx, ecx
je 0x40151c
add ecx, ebx
jmp 0x401517
lea edi, [ecx + 8]
jmp 0x40150b
movzx eax, word [edi]
mov esi, eax
and esi, 0xf000
cmp esi, 0x3000
jne 0x401505
and eax, 0xfff
add eax, ebx
add eax, dword [ecx]
mov esi, ebx
sub esi, dword [edx + 0x1c]
add dword [eax], esi
jmp 0x401509
test esi, esi
jne 0x40149e
inc edi
inc edi
mov eax, dword [ecx + 4]
add eax, ecx
cmp edi, eax
jb 0x4014e0
add ecx, dword [ecx + 4]
cmp dword [ecx], 0
jne 0x4014db
mov edx, dword [edx + 0x10]
test edx, edx
je 0x401531
lea eax, [edx + ebx]
test eax, eax
je 0x401531
push 0
push 1
push ebx
call eax
mov eax, ebx
jmp 0x4014a0
Function at 0x40331c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403394
xor eax, eax
push ebp
push 0x40338d
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 0x4033d0
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 0x403394
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45400c], ax
mov esp, ebp
pop ebp
ret

Function at 0x40407c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x456048], 0
je 0x4040dd
cmp word [0x45621c], 0xd7b2
jne 0x4040a5
cmp dword [0x456224], 0
jbe 0x4040a5
mov eax, 0x456218
call dword [0x456234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x454054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404104
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45401c], 0
jne 0x4040f9
push 0
push 0x454074
push 0x454054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409588
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 0x4095c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042e8
jmp 0x4095ca
mov eax, ebx
mov edx, esi
call fcn.0040424c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4095d4
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 0x4095f5
mov al, byte [esp]
jmp 0x4095f7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409c7c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409af4
mov eax, dword [0x454f58]
cmp byte [eax], 0
je 0x409ce4
mov eax, dword [0x454da8]
call fcn.00402c38
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.004087c0
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409d2c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409d1a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x454d64]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x456714]
call fcn.004058e4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40a78c
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 0x40a7f0
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.00404460
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408500
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a7f7
lea eax, [ebp - 0xc]
call fcn.004041f8
ret
Function at 0x41c3f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x456a20
cmp dword [edi], 0
jne 0x41c474
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x456a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4544bc
mov ecx, 2
call fcn.004028c0
mov edx, 0x41c3d0
lea eax, [esi + 5]
call fcn.0041c3f0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c3f0
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 0x41c449
mov dword [0x456a1c], 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 0x41d660
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 0x41d666
ret

Function at 0x41fab0
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 sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41fb01
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41fae8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41fad8
jmp 0x41fb01
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 0x41fae9
pop ebx
mov esp, ebp
pop ebp
ret