joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468e70
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x468eb9
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x469330
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a99e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00468ee0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00468f60
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00468f60
lea ecx, [esi + 0xc]
call fcn.0049a791
lea ecx, [esi + 0x10]
call fcn.0049a791
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0046a4f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0046a4f0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0046a4f0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0049a806
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049a806
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x473d10
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x473d5c
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x473d5c
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x473d46
push eax
call ebp
test ax, ax
jl 0x473d54
inc esi
add edi, 4
cmp esi, 6
jb 0x473d38
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.00473a10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x476b90
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x476bf0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x476bf0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x476bf0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x476bf0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x476c30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x481940
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x48194b
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x481a4e
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 + 0x4fc7e8]
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 + 0x4fc7e8]
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 + 0x4fc7e8]
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 + 0x4fc7e8]
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 + 0x4fc7e8]
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 + 0x4fc7e8]
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 + 0x4fc7e8]
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 + 0x4fc7e8]
xor eax, edx
inc ecx
dec edi
jne 0x481966
pop edi
test esi, esi
je 0x481a70
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4fc7e8]
xor eax, edx
inc ecx
dec esi
jne 0x481a52
pop esi
pop ebx
not eax
ret

Function at 0x485590
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x485633
test eax, eax
jbe 0x485633
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x485633
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4855de
xor esi, esi
jmp 0x4855e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48560f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00487560
add esi, eax
push esi
mov ebx, esi
call fcn.00487560
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4855f0
pop ebp
test edi, edi
pop edi
jne 0x485633
test ebx, ebx
je 0x485633
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0048a8a0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x485755
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48586d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48586d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0049c231
mov esi, eax
test esi, esi
je 0x48586d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48586d
mov ecx, esi
call fcn.004856e0
cmp edi, eax
jge 0x48586d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4857f3
mov dword [esp + 0x34], 1
jmp 0x48584e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48586d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00484ce0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x49cbd4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49cc0c
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.0049ac61
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049ac39
jmp 0x49cc18
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49e2c9
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 0x49e30b
call fcn.004a4223
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x49e30b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x49e302
xor eax, eax
jmp 0x49e313
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049e319
pop edi
pop esi
pop ebx
ret 4
Function at 0x4a4753
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 0x4a4781
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a479f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a46b9
jmp 0x4a479f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a479f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a46b9
test edi, edi
mov eax, edi
jne 0x4a4789
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40939e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45f2e0]
jne 0x4093a8
repz ret
jmp fcn.0040abba

Function at 0x411bbe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d621
and dword [ebp - 4], 0
cmp dword [0x462d34], 0
mov ebx, eax
jne 0x411c6f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411d20
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x456cd8
push edi
call esi
test eax, eax
je 0x411d20
push eax
call fcn.0040d5af
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x462d34], eax
call esi
push eax
call fcn.0040d5af
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x462d38], eax
call esi
push eax
call fcn.0040d5af
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x462d3c], eax
call esi
push eax
call fcn.0040d5af
pop ecx
mov dword [0x462d44], eax
test eax, eax
je 0x411c6f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040d5af
pop ecx
mov dword [0x462d40], eax
mov eax, dword [0x462d40]
cmp eax, ebx
je 0x411cc7
cmp dword [0x462d44], ebx
je 0x411cc7
push eax
call fcn.0040d62a
push dword [0x462d44]
mov esi, eax
call fcn.0040d62a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411cc7
test edi, edi
je 0x411cc7
call esi
test eax, eax
je 0x411cbe
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411cbe
test byte [ebp - 0xc], 1
jne 0x411cc7
or dword [ebp + 0x10], 0x200000
jmp 0x411d00
mov eax, dword [0x462d38]
cmp eax, ebx
je 0x411d00
push eax
call fcn.0040d62a
pop ecx
test eax, eax
je 0x411d00
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411d00
mov eax, dword [0x462d3c]
cmp eax, ebx
je 0x411d00
push eax
call fcn.0040d62a
pop ecx
test eax, eax
je 0x411d00
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x462d34]
call fcn.0040d62a
pop ecx
test eax, eax
je 0x411d20
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411d22
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405aee
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x58
push esi
push edi
push 0x58
lea eax, [esp + 0xc]
mov esi, edx
push 0
push eax
mov edi, ecx
call fcn.0045e12e
push dword [ebp + 8]
and dword [esp + 0x2c], 0
lea ecx, [esp + 0x18]
and dword [esp + 0x28], 0
mov edx, esi
mov dword [esp + 0x18], 0x67452301
mov dword [esp + 0x1c], 0xefcdab89
mov dword [esp + 0x20], 0x98badcfe
mov dword [esp + 0x24], 0x10325476
call fcn.00405b57
add esp, 0x10
lea ecx, [esp + 8]
mov edx, edi
call fcn.00405bf4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ba3b
Capabilities:
Parse pe header

Disassembly:
push esi
push ecx
mov esi, edx
call dword [0x45f318]
mov ecx, eax
test ecx, ecx
jne 0x40ba4f
xor al, al
pop esi
ret
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40ba4b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40ba4b
cmp esi, ecx
jb 0x40ba78
mov eax, dword [eax + 0x50]
add eax, ecx
cmp esi, eax
jae 0x40ba78
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x41e638
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
push 0x1c
lea eax, [ebp - 0x1c]
mov edi, edx
push eax
push ecx
call dword [0x45f27c]
mov esi, dword [ebp - 0x18]
push 0x1000
push esi
call dword [0x45f278]
test eax, eax
jne 0x41e699
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x41e699
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
jne 0x41e699
mov edx, dword [ecx + esi + 0xd8]
lea eax, [edx + esi]
cmp edi, eax
jb 0x41e699
mov eax, dword [ecx + esi + 0xdc]
add eax, edx
add eax, esi
cmp edi, eax
jae 0x41e699
mov al, 1
jmp 0x41e69b
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41e857
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x473830]
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x47383c]
test edx, edx
jne 0x41e8a0
test eax, eax
je 0x41e8b3
mov edx, eax
mov dword [0x473830], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x41e8b3
cmp ecx, ebx
jb 0x41e8b3
cmp ecx, edi
jbe 0x41e999
mov edx, eax
test eax, eax
jmp 0x41e8d5
test edx, edx
je 0x41e8d0
mov eax, dword [edx + 8]
test eax, eax
je 0x41e8d0
cmp eax, ebx
jb 0x41e8d0
cmp eax, edi
jbe 0x41e999
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x473830], edx
jne 0x41e8b9
movzx eax, si
mov ebp, 0x40000000
sub esi, eax
cmp esi, ebp
jbe 0x41e900
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.0041e7c1
mov edx, eax
test edx, edx
jne 0x41e961
cmp esi, ebp
jae 0x41e915
lea ecx, [esi + 0x40000000]
mov edx, edi
call fcn.0041e72f
mov edx, eax
test edx, edx
jne 0x41e961
cmp esi, ebp
jbe 0x41e92e
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.0041e72f
mov edx, eax
test edx, edx
jne 0x41e961
cmp esi, ebp
jae 0x41e943
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.0041e7c1
mov edx, eax
test edx, edx
jne 0x41e961
mov edx, esi
mov ecx, ebx
call fcn.0041e7c1
mov edx, eax
test edx, edx
jne 0x41e961
mov edx, edi
mov ecx, esi
call fcn.0041e72f
mov edx, eax
test edx, edx
je 0x41e9be
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x47383c]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x473830], edx
mov dword [0x47383c], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
dec esi
jne 0x41e98b
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x41e9be
cmp esi, edi
ja 0x41e9be
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.0045e12e
add esp, 0xc
mov eax, esi
jmp 0x41e9c0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x41e9ea
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov ecx, dword [0x47383c]
push esi
mov esi, 0x47383c
test ecx, ecx
je 0x41ea4f
push edi
cmp dword [ecx], 0x52727464
jne 0x41ea45
lea edi, [ecx + 0x10000]
xor eax, eax
lea edx, [ecx + 0x88]
cmp dword [edx], 0
je 0x41ea1e
cmp dword [edx], ecx
jb 0x41ea45
cmp dword [edx], edi
jae 0x41ea45
inc eax
add edx, 0x48
cmp eax, 0x38d
jb 0x41ea11
mov eax, dword [ecx + 4]
push 0x8000
push 0
push ecx
mov dword [esi], eax
call dword [0x45f1d4]
and dword [0x473830], 0
jmp 0x41ea48
lea esi, [ecx + 4]
mov ecx, dword [esi]
test ecx, ecx
jne 0x41e9fb
pop edi
pop esi
ret
Function at 0x443037
Capabilities:
Encode data using xor

Disassembly:
adc byte [eax], al
add byte [eax], al
add byte [eax], al
or al, 0
in eax, dx
jle 0x443087
push esi
add byte [edi - 0x5c], dh
add byte [ebx + 0x48], cl
pop edx
std
idiv byte [eax]
add byte [eax], al
cmp edi, esi
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
call 0x88d3ba52
add byte [eax], al
add byte [esi], dl
mov esi, 0x565de509
push dword [edi - 0x34]
add byte [edi - 0x5c], dh
add byte [eax], al
add ah, dl
dec ecx
inc byte [eax]
xor eax, dword [eax + ebp*8 + 0x10]
inc eax
add byte [eax], al
add byte [eax], dl
cmp eax, ebp
jl 0x443046
add esp, 0xffffff8d
add byte [esi + eax*8 + 0xd487], ah
add byte [ecx], al
dec dword [ebx - 0x3b7cffa1]
add al, 0xc3
pushal
cmp al, 0x5f
add byte [ebx - 0x74e7dbbc], cl
push 0xa308
add byte [eax], al
add byte [ecx], bl
sbb byte [eax + edx*2 + 0x20], dl
add byte [eax], al
add byte [ecx], dl
sbb byte [eax + 0x48], al
cmp eax, dword [edx + 0x20]
jne 0x4430c5
les ecx, [ebp - 0x78395c00]
aam 0
add byte [eax], al
add edi, edi
mov ebx, dword [edi]
add esp, 4
ret
push edx
lea ecx, [esi - 0x5c]
call fcn.00451d2a
mov ecx, dword [esi + 8]
cmp eax, eax
je 0x4430e6
add edx, dword [eax - 0x18]
aas
lea ebx, [ebp + 8]
adc dword [edi], 0x71
movsb byte es:[edi], byte [esi]
push dword [ebx]
add ah, dl
clc
or byte [ecx], cl
add byte [eax], al
add byte [eax], al
add byte [ebp + 0x1e], dh
push ds
mov edx, dword ds:[edi]
push 0x838bf01c
mov ebx, 0xbe000452
add byte [eax], al
mov dl, byte [edx]
mov eax, dword [ebx - 0x13661739]
add byte [eax], al
lodsd eax, dword [esi]
pop es
mov esp, ebp
pop ebp
push ecx
add edi, 0xffffffc3
push esi
add al, 0
sbb al, 0xf0
sbb dword [ebp + 0x74], 0x7c
push es
cmp dword [ebp + 0x5d], 0x74
jge 0x443126
cmp ebx, dword [ebx*2 + 0x74]
add byte [eax], al
add byte [eax], al
cmp al, 0x44
inc esp
and al, 0x10
push eax
call dword [0x8be845e4]
jne 0x443142
mov al, ah
dec eax
ret
add byte [eax], al
add byte [eax], al
add byte [esi + 0x73], bh
add byte [eax], al
pop edi
movsb byte es:[edi], byte [esi]
and al, 0x18
retf
Function at 0x40307c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404700
test esi, esi
jne 0x4030b2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004047f0
jmp 0x4030d0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402f30
mov edi, eax
test esi, esi
je 0x4030d0
cmp dword [ebx], 0
je 0x4030d0
dec esi
jmp 0x4030b9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403838
Capabilities:
Query or enumerate registry value

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

Function at 0x404584
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46a04c], 0
je 0x4045e5
cmp word [0x46a220], 0xd7b2
jne 0x4045ad
cmp dword [0x46a228], 0
jbe 0x4045ad
mov eax, 0x46a21c
call dword [0x46a238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x46875c
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 0x40460c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x468030], 0
jne 0x404601
push 0
push 0x468754
push 0x46875c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4064dc
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 0x406542
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.00404970
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004033a4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40652c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406549
lea eax, [ebp - 0x10]
call fcn.00404700
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404bc0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408e89
test al, 0x10
jne 0x408e8d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40bd48
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 0x40bd81
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004047f0
jmp 0x40bd8a
mov eax, ebx
mov edx, esi
call fcn.00404754
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c43c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40c2b4
mov eax, dword [0x469910]
cmp byte [eax], 0
je 0x40c4b8
mov eax, dword [0x469704]
call fcn.00403194
call fcn.00402d9c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040917c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
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 0x40c500
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c4ee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4696b0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x46c7f8]
call fcn.004059f0
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