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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x4cf221
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x4cf205
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x4cf157
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x4cf135
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18

Function at 0x4cfc69
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4cfcc0
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x4cfcc0
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 8]
jne 0x4cfcc0
xor eax, eax
inc eax
jmp 0x4cfcc2
xor eax, eax
leave
ret 0x10
Function at 0x4cfceb
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push getpeername
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x4cfd59
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x580b6c
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4cfd50
cmp dword [ebp - 0xc], 4
jne 0x4cfd50
cmp dword [ebp - 0x10], edi
je 0x4cfd50
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x5a5da0], edi
xor eax, eax
jmp 0x4cfd98
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x5a5da0], edi
jge 0x4cfd93
lea eax, [ebp - 0x34]
push eax
mov dword [0x5a5da0], edi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x34], di
jne 0x4cfd93
cmp word [ebp - 0x14], 5
jb 0x4cfd93
call fcn.004cfcc6
test eax, eax
je 0x4cfd93
emms
mov dword [0x5a5da0], 1
mov eax, dword [0x5a5da0]
pop edi
leave
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4e0bd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004e2bda
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4e0bf9
test byte [esp + 8], 2
je 0x4e0bf9
call fcn.004e2c4d
mov dword [eax], 0xd
call fcn.004e2c56
mov dword [eax], 5
jmp 0x4e0bd2
xor eax, eax
ret

Function at 0x4f28be
Capabilities:
Get graphical window text

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

Function at 0x4f3faf
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 0x4f3ff1
call fcn.004f9dbb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4f3ff1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4f3fe8
xor eax, eax
jmp 0x4f3ff9
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004f3fff
pop edi
pop esi
pop ebx
ret 4
Function at 0x4fa2eb
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 0x4fa319
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4fa337
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004fa251
jmp 0x4fa337
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4fa337
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004fa251
test edi, edi
mov eax, edi
jne 0x4fa321
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401b30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x408
push ebp
mov ebp, dword [esp + 0x414]
test ebp, ebp
je 0x401c08
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x401c08
mov ecx, dword [esp + 0x410]
lea eax, [esp + 4]
push eax
push 0x10008
push 0
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c0d
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
push 0
push ecx
mov dword [esp + 0x30], 0x400
call edi
mov esi, eax
cmp esi, 0x103
je 0x401be0
test esi, esi
jne 0x401bf1
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00401b30
mov esi, eax
add esp, 8
test esi, esi
je 0x401b80
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x408
ret
mov ecx, dword [esp + 0x418]
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x408
ret
mov eax, 0x3f2
pop ebp
add esp, 0x408
ret

Function at 0x401c20
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [0x40a884]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [0x40a880]
test eax, eax
jbe 0x401cd5
push esi
push edi
mov esi, dword [ebp]
mov eax, dword [esi + 4]
cmp byte [eax], 0
je 0x401cc2
push 0x5c
push eax
call fcn.00403480
mov edi, eax
add esp, 8
test edi, edi
je 0x401c9b
cmp edi, dword [esi + 4]
je 0x401c9b
cmp byte [edi - 1], 0x5c
jne 0x401c9b
mov byte [edi - 1], 0
mov ecx, dword [esi + 4]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401c95
mov ecx, dword [esp + 0x10]
lea eax, [edi + 1]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [edi - 1], 0x5c
jmp 0x401cc2
mov eax, dword [0x40a89c]
test eax, eax
je 0x401cb5
mov eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
call fcn.00401b30
add esp, 8
jmp 0x401cc2
mov edx, dword [esi + 4]
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [0x40a884]
inc ebx
add ebp, 4
cmp ebx, eax
jb 0x401c3a
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401ce0
Capabilities:
Get common file path
Set current directory

Disassembly:
push esi
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x401d1d
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x40a0b8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push esi
call fcn.00403602
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
ret
push 0x40a0b8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
pop esi
ret
Function at 0x402010
Capabilities:
Get common file path
Set current directory

Disassembly:
push ecx
push ebx
push 0x118
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
mov dword [esp + 4], ebx
je 0x40222f
push ebp
push esi
push edi
push ebx
push 0x40a0fc
call fcn.0040382c
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x4020ff
test byte [ebx], 0x10
je 0x4020cb
lea edi, [ebx + 0x14]
mov esi, 0x40a0f8
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x40207c
test cl, cl
je 0x402078
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x40207c
add eax, 2
add esi, 2
test cl, cl
jne 0x402058
xor eax, eax
jmp 0x402081
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4020e4
mov esi, 0x40a0b8
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4020b0
test cl, cl
je 0x4020ac
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4020b0
add eax, 2
add esi, 2
test cl, cl
jne 0x40208c
xor eax, eax
jmp 0x4020b5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4020e4
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4020e4
call fcn.00402010
jmp 0x4020e4
lea esi, [ebx + 0x14]
push esi
call fcn.00401fa0
add esp, 4
test eax, eax
je 0x4020e4
push esi
call fcn.0040376d
add esp, 4
push ebx
push ebp
call fcn.004038f6
add esp, 8
test eax, eax
je 0x402049
push ebp
call fcn.004039bb
add esp, 4
push 0x104
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x40221a
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
call fcn.00401d30
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
jne 0x40221a
mov edi, dword [esp + 0x10]
mov ebx, 1
push edi
push 0x40a0fc
call fcn.0040382c
mov ebp, eax
add esp, 8
cmp ebp, 0xffffffff
je 0x402200
test byte [edi], 0x10
je 0x4021f1
add edi, 0x14
mov esi, 0x40a0f8
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402195
test cl, cl
je 0x402191
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402195
add eax, 2
add esi, 2
test cl, cl
jne 0x402171
xor eax, eax
jmp 0x40219a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4021d2
mov esi, 0x40a0b8
mov eax, edi
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x4021c9
test cl, cl
je 0x4021c5
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x4021c9
add eax, 2
add esi, 2
test cl, cl
jne 0x4021a5
xor eax, eax
jmp 0x4021ce
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4021f1
mov eax, dword [esp + 0x10]
push eax
push ebp
call fcn.004038f6
add esp, 8
test eax, eax
jne 0x4021f3
mov ecx, dword [esp + 0x10]
test byte [ecx], 0x10
jne 0x40216a
xor ebx, ebx
push ebp
call fcn.004039bb
add esp, 4
test ebx, ebx
je 0x402216
call fcn.00401ce0
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x10]
push 0x40a0b8
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402240
Capabilities:
Set current directory

Disassembly:
push edi
mov edi, dword [0x40a87c]
test edi, edi
je 0x402298
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402298
mov eax, dword [0x40a86c]
push eax
call fcn.00401d30
add esp, 4
test eax, eax
jne 0x402298
mov ecx, dword [0x40a86c]
push ecx
call fcn.004012f0
mov edx, dword [0x40a86c]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [0x40a86c]
push eax
call fcn.004012a0
add esp, 4
call fcn.00402010
pop edi
ret
Function at 0x40362c
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x403657
test byte [esp + 8], 0x80
je 0x403646
and al, 0xfe
jmp 0x403648
or al, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x403668
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404a58
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x405e8d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40a6a8
cmp edx, dword [eax]
je 0x405eaf
add eax, 8
inc ecx
cmp eax, 0x40a738
jl 0x405ea0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40a6a8]
jne 0x405fdd
mov eax, dword [0x40a900]
cmp eax, 1
je 0x405fb7
test eax, eax
jne 0x405ee0
cmp dword [0x40a174], 1
je 0x405fb7
cmp edx, 0xfc
je 0x405fdd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405f17
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404b90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004051b0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405f5a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004051b0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4084ec
push edi
call fcn.004069c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404b90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404ba0
lea eax, [ebp - 0xa0]
push 0x4084cc
push eax
call fcn.00404ba0
push dword [esi + 0x40a6ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404ba0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406e75
add esp, 0x2c
pop edi
jmp 0x405fdd
lea eax, [ebp + 8]
lea esi, [esi + 0x40a6ac]
push 0
push eax
push dword [esi]
call fcn.004051b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4059d4
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 0x405a3a
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.004040bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a24
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a41
lea eax, [ebp - 0x10]
call fcn.00403e4c
ret

Function at 0x40aa58
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 0x40aa91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f3c
jmp 0x40aa9a
mov eax, ebx
mov edx, esi
call fcn.00403ea0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b14c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40afc4
mov eax, dword [0x465958]
cmp byte [eax], 0
je 0x40b1c8
mov eax, dword [0x465770]
call fcn.004029a4
call fcn.00402824
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.004082cc
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 0x40b210
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b1fe
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x465720]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x466664]
call fcn.00404ee8
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 0x40ba64
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 0x40bb3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ee4
lea eax, [ebp - 8]
call fcn.0040435c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040430c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bb24
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bb1d
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.0040430c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bb07
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bb4c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bb07
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 0x40bb24
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb41
lea eax, [ebp - 8]
call fcn.00403e4c
ret

Function at 0x40c044
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 0x40c0a8
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.004040bc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407e14
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0af
lea eax, [ebp - 0xc]
call fcn.00403e4c
ret

Function at 0x41a1d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x466884
cmp dword [edi], 0
jne 0x41a24c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x466880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4643ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a1a8
lea eax, [esi + 5]
call fcn.0041a1c8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a1c8
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 0x41a221
mov dword [0x466880], 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 0x41b7c8
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 0x41b7ce
ret
Function at 0x41dc64
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 0x41dcb5
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41dc9c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dc8c
jmp 0x41dcb5
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 0x41dc9d
pop ebx
mov esp, ebp
pop ebp
ret