joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000815d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
push 0xff
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x10010200
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, 0x1001003c
lea eax, [ebp - 0x108]
push edi
push eax
call esi
lea eax, [ebp - 0x108]
push 0x10010260
push eax
call esi
lea eax, [ebp - 0x108]
push edi
push eax
call esi
lea eax, [ebp - 0x108]
push 0x100101c0
push eax
call esi
lea eax, [ebp - 8]
push eax
push 0x2001f
lea eax, [ebp - 0x108]
push ebx
push eax
push 0x80000003
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10008216
push ebx
push ebx
push ebx
push ebx
push str.o_JYXpY___EoYHHUR_O
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000820d
mov dword [ebp - 4], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100082ce
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
jne 0x100082e3
push 0x57
jmp 0x100082f0
mov esi, dword [ebp + 8]
and dword [eax], 0
cmp esi, 0xa
jae 0x100082f6
push 0xffffffffffffffe6
pop eax
jmp 0x1000840b
push ebx
push edi
push 0x14
lea eax, [ebp - 0x14]
pop edi
push edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
mov dword [ebp + 8], 0xffffffbe
movzx eax, bl
sub eax, 4
je 0x100083ba
dec eax
je 0x10008341
dec eax
jne 0x10008406
lea eax, [ebp - 0x14]
push edi
push eax
push 0x100089de
jmp 0x100083d6
mov esi, 0x9c
lea eax, [ebp - 0xb0]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb0]
mov dword [ebp - 0xb0], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
mov al, bh
movzx eax, al
sub eax, 0
je 0x100083ae
dec eax
je 0x10008394
dec eax
jne 0x10008406
cmp word [ebp - 0x1c], 0
lea eax, [ebp - 0x14]
push edi
push eax
je 0x100083a7
push 0x10008888
jmp 0x100083d6
cmp word [ebp - 0x1c], 2
lea eax, [ebp - 0x14]
push edi
push eax
jae 0x100083a7
push 0x100085dc
jmp 0x100083d6
push 0x10008732
jmp 0x100083d6
lea eax, [ebp - 0x14]
push edi
push eax
push 0x100084f5
jmp 0x100083d6
call fcn.1000c680
test al, al
je 0x100083cc
mov dword [ebp + 8], 0xffffffe2
jmp 0x10008406
lea eax, [ebp - 0x14]
push edi
push eax
push 0x1000840e
call fcn.100096ce
add esp, 0xc
mov dword [ebp + 8], eax
test eax, eax
jne 0x10008406
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x10008406
lea eax, [ebp - 0x14]
push edi
push eax
push esi
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [eax], esi
mov eax, dword [ebp + 8]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10008c2b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10008c3e
and dword [eax], 0
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xa
jae 0x10008c4f
push 0xffffffffffffffe6
pop eax
jmp 0x10008d5c
push ebx
push edi
push 0x18
lea eax, [ebp - 0x18]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov al, byte [ebp + 0x14]
mov byte [ebp - 0xc], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov ebx, eax
push 0xffffffffffffffbe
movzx eax, bl
sub eax, 4
pop edi
je 0x10008d25
dec eax
je 0x10008cad
dec eax
jne 0x10008d58
lea eax, [ebp - 0x18]
push 0x18
push eax
push 0x100094e5
jmp 0x10008d3e
mov esi, 0x9c
lea eax, [ebp - 0xb4]
push esi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xb4]
mov dword [ebp - 0xb4], esi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor eax, eax
mov al, bh
movzx eax, al
sub eax, 0
je 0x10008d18
dec eax
je 0x10008cfd
dec eax
jne 0x10008d58
cmp word [ebp - 0x20], 0
lea eax, [ebp - 0x18]
push 0x18
push eax
je 0x10008d11
push 0x10009335
jmp 0x10008d3e
cmp word [ebp - 0x20], 2
lea eax, [ebp - 0x18]
push 0x18
push eax
jae 0x10008d11
push 0x10008fd5
jmp 0x10008d3e
push 0x10009185
jmp 0x10008d3e
lea eax, [ebp - 0x18]
push 0x18
push eax
push 0x10008e9a
jmp 0x10008d3e
call fcn.1000c680
test al, al
je 0x10008d33
push 0xffffffffffffffe2
pop edi
jmp 0x10008d58
lea eax, [ebp - 0x18]
push 0x18
push eax
push 0x10008d5f
call fcn.100096ce
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x10008d58
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10008d58
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret
Function at 0x100096ce
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e578
push 0x1000c600
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x100096fc
push 0x57
jmp 0x10009768
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
mov dword [ebp - 0x28], ecx
xor ecx, ecx
mov cl, ah
movzx eax, cl
mov dword [ebp - 0x20], eax
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0x88000000
push 0x1001033c
push str.STATIC
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
mov dword [ebp - 0x1c], edi
cmp edi, esi
jne 0x1000973d
push 0xffffffffffffffd3
jmp 0x10009768
push 0x40
mov eax, 0x1000
push eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp ebx, esi
jne 0x1000975a
push 0xffffffffffffffd8
jmp 0x10009768
call fcn.100098c4
mov dword [ebp - 0x34], eax
cmp eax, esi
jne 0x1000976b
push 0xffffffffffffffbf
pop eax
jmp 0x100097ea
or dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0x28]
sub eax, 4
je 0x100097c8
dec eax
je 0x10009792
dec eax
jne 0x100097de
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push ebx
call fcn.1000b73a
jmp 0x100097d8
cmp dword [ebp - 0x20], esi
jne 0x100097a9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push ebx
call fcn.1000b46f
jmp 0x100097d8
cmp dword [ebp - 0x20], 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push ebx
jne 0x100097c1
call fcn.1000ab6f
jmp 0x100097d8
call fcn.1000a2cd
jmp 0x100097d8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
push ebx
call fcn.1000a0fc
add esp, 0x14
mov dword [ebp - 0x30], eax
or dword [ebp - 4], 0xffffffff
call fcn.10009801
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100098c4
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
push str.prkMtx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
test edi, edi
jne 0x100098ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10009933
push 0x3a98
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
cmp esi, 0x80
je 0x10009931
test esi, esi
je 0x10009931
push ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0x102
jne 0x10009925
push 0x79
jmp 0x10009926
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
jmp 0x10009933
mov eax, edi
pop edi
pop esi
ret
Function at 0x10009bd3
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x10009c2d
push 0x24
push ebx
push esi
call sub.MSVCRT.dll_memset
mov eax, str.ntoskrnl.exe
push eax
mov edi, eax
call fcn.1000c932
add esp, 0x10
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x10009c1d
mov eax, str.ntkrnlpa.exe
push eax
mov edi, eax
call fcn.1000c932
cmp eax, ebx
pop ecx
mov dword [esi + 4], eax
je 0x10009c2d
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp eax, ebx
mov dword [esi], eax
jne 0x10009c34
xor al, al
jmp 0x10009d23
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x10009c67
call dword [sym.imp.KERNEL32.dll_GetVersion]
movzx ecx, al
mov dword [esi + 8], ecx
xor ecx, ecx
mov cl, ah
movzx eax, cl
mov dword [esi + 0xc], eax
jmp 0x10009caa
mov ecx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x94]
mov dx, word [ebp - 8]
mov di, word [ebp - 6]
cmp ecx, 5
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
mov word [esi + 0x10], dx
mov word [esi + 0x12], di
jne 0x10009c9e
cmp eax, 1
jne 0x10009c99
cmp dx, 2
jae 0x10009ca3
cmp eax, 2
je 0x10009ca3
cmp ecx, 6
jb 0x10009caa
push esi
call fcn.10009d28
pop ecx
mov eax, dword [esi + 8]
sub eax, 4
je 0x10009cfb
dec eax
je 0x10009cba
dec eax
jne 0x10009d01
jmp 0x10009cc8
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x10009ce9
jbe 0x10009d01
cmp eax, 2
ja 0x10009d01
push str.DbgPrint
push esi
call fcn.10009b69
push str.DbgPrintEx
push esi
mov dword [esi + 0x1c], eax
call fcn.10009b69
add esp, 0x10
mov dword [esi + 0x20], eax
jmp 0x10009d01
push str.DbgPrint
push esi
call fcn.10009b69
pop ecx
mov dword [esi + 0x1c], eax
pop ecx
jmp 0x10009cfe
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
cmp dword [esi + 8], 5
jb 0x10009d21
push str.LdrGetProcedureAddress
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x18], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000a0fc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x1000a252
cmp dword [ebp + 0xc], edi
je 0x1000a252
mov ebx, dword [ebp + 0x10]
cmp ebx, edi
je 0x1000a252
mov esi, 0x104
lea eax, [ebp - 0x250]
push esi
push eax
push 0x10010464
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
sub esi, eax
lea eax, [ebp - 0x250]
push esi
push str._system32win32k.sys
push eax
call dword [sym.imp.MSVCRT.dll_wcsncat]
add esp, 0x10
lea eax, [ebp - 0x250]
push edi
push 0x8000000
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1000a18f
push 0xffffffffffffffd7
jmp 0x1000a254
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.1000be67
add esp, 0x18
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, edi
je 0x1000a1cf
push 0xffffffffffffffd4
jmp 0x1000a254
lea eax, [ebp - 0x24]
push eax
call fcn.10009bd3
mov dword [esp], str.name
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
push str.value
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetPropA]
lea eax, [ebp + 0x10]
push 7
mov dword [ebp + 0x14], eax
lea eax, [ebp - 0x44]
push eax
push 1
push 0x1000a25a
mov dword [ebp + 0x10], edi
push dword [ebp + 8]
push 0x11
push 0x10010414
call fcn.10009835
add esp, 0x1c
mov eax, dword [ebp - 0x44]
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x3c]
push 0
push dword [ebp + 0xc]
mov edx, esp
int 0x2e
add esp, 0x14
or dword [ebp + 8], 0xffffffff
mov eax, dword [ebp - 0x40]
push 0
push 0
mov edx, esp
int 0x2e
add esp, 8
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
jmp 0x1000a255
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000c8af
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
je 0x1000c908
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], edi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
push edi
push edi
push 2
push edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi], eax
je 0x1000c908
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x1000c90c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
xor al, al
jmp 0x1000c90e
mov al, 1
pop edi
pop esi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4030e8
Capabilities:
Query or enumerate registry value

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

Function at 0x403e34
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47704c], 0
je 0x403e95
cmp word [0x477220], 0xd7b2
jne 0x403e5d
cmp dword [0x477228], 0
jbe 0x403e5d
mov eax, 0x47721c
call dword [0x477238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47506c
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 0x403ebc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x475030], 0
jne 0x403eb1
push 0
push 0x475064
push 0x47506c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403fe8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402778
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x47704d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403fb0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x406154
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 0x4061ba
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.004042a4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cac
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4061a4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4061c1
lea eax, [ebp - 0x10]
call fcn.00404034
ret

Function at 0x40ba48
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 0x40ba81
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404124
jmp 0x40ba8a
mov eax, ebx
mov edx, esi
call fcn.00404088
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c13c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bfb4
mov eax, dword [0x476bf8]
cmp byte [eax], 0
je 0x40c1b8
mov eax, dword [0x476874]
call fcn.00402a70
call fcn.004028e0
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.00408c28
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 0x40c200
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c1ee
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4767f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x477668]
call fcn.00405668
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 0x40cac0
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 0x40cb96
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004040cc
lea eax, [ebp - 8]
call fcn.00404544
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.004044f4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cb80
mov eax, ebx
call fcn.00402778
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cb79
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.004044f4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cb63
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cba8
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cb63
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 0x40cb80
mov eax, dword [ebp - 0x10]
call fcn.00402798
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb9d
lea eax, [ebp - 8]
call fcn.00404034
ret

Function at 0x40d014
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 0x40d078
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.004042a4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408798
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40d07f
lea eax, [ebp - 0xc]
call fcn.00404034
ret

Function at 0x421cf0
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00421b48
dec esi
jne 0x421d12
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x422e54
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47788c
cmp dword [edi], 0
jne 0x422ed0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x477888]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4755d0
mov ecx, 2
call fcn.00402974
mov edx, 0x422e2c
lea eax, [esi + 5]
call fcn.00422e4c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422e4c
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 0x422ea5
mov dword [0x477888], 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 0x4240ec
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 0x4240f2
ret

Function at 0x426534
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 0x426585
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x42656c
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x42655c
jmp 0x426585
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 0x42656d
pop ebx
mov esp, ebp
pop ebp
ret