joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cff18
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp - 0x54]
push 0x40
push edi
push eax
mov ebx, edi
call fcn.004d9c60
add esp, 0xc
mov dword [ebp - 0x58], 0x44
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 1
movdqu xmmword [ebp - 0x14], xmm0
call fcn.004afb89
push eax
lea ecx, [ebp - 4]
call fcn.004aef66
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
push 0x5359ec
push eax
call fcn.004afaac
add esp, 0x10
cmp dword [ebp + 0x14], ebx
je 0x4cff79
push 0xa
pop eax
jmp 0x4cff7b
xor eax, eax
mov esi, dword [ebp - 4]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4cffc3
cmp dword [ebp + 0x10], ebx
je 0x4cffc0
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4cffc0
cmp dword [ebp + 0x18], ebx
je 0x4cffc0
push edi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x14], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4cffd7
push dword [ebp - 0x14]
call edi
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
je 0x4cffe6
push dword [ebp - 0x10]
call edi
and dword [ebp - 0x10], 0
lea ecx, [esi - 0x10]
call fcn.004b04f5
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d1405
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x258]
push ebx
push esi
push edi
push eax
xor edi, edi
call fcn.004af026
push 0x548bc8
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x270]
push eax
call fcn.004c1eef
add esp, 0xc
lea ecx, [ebp - 0x254]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x270]
mov ebx, eax
add ecx, 0xfffffff0
mov dword [ebp - 0x25c], ebx
call fcn.004b04f5
cmp ebx, 0xffffffff
jne 0x4d1477
inc edi
jmp 0x4d15c2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
test byte [ebp - 0x254], 0x10
lea eax, [ebp - 0x228]
je 0x4d1533
push 0x548be0
push eax
call ebx
test eax, eax
je 0x4d1598
push 0x548be4
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x4d1598
push str.Config
lea eax, [ebp - 0x228]
push eax
call ebx
test eax, eax
je 0x4d1598
push 0x547988
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x26c]
push eax
call fcn.004c1eef
add esp, 0xc
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.004c1eef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call fcn.004d1405
mov ecx, dword [ebp - 0x260]
add esp, 0x18
add ecx, 0xfffffff0
mov esi, eax
call fcn.004b04f5
mov ecx, dword [ebp - 0x26c]
add ecx, 0xfffffff0
call fcn.004b04f5
test esi, esi
je 0x4d15b6
jmp 0x4d1598
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004c1eef
add esp, 0xc
push 0x80
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.004b04f5
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x268]
push eax
call fcn.004c1eef
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x268]
lea ecx, [ecx - 0x10]
call fcn.004b04f5
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4d147d
xor edi, edi
inc edi
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0x258]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esi - 0x10]
call fcn.004b04f5
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x4d2be5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x120]
xor ebx, ebx
push eax
push 1
push ebx
push ebx
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
jne 0x4d2c6d
push 0x110
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.004d9c60
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d2c67
cmp dword [ebp - 0x114], 6
jne 0x4d2c67
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4d2cab
mov dword [edi], ebx
xor eax, eax
jmp 0x4d2cab
mov ecx, dword [ebp - 0x120]
mov eax, ebx
push esi
mov esi, 0x490
cmp dword [ebp - 0x11c], eax
jbe 0x4d2ca2
lea edx, [ecx + 8]
cmp dword [edx], ebx
je 0x4d2c98
inc eax
add edx, 0xc
cmp eax, dword [ebp - 0x11c]
jb 0x4d2c86
jmp 0x4d2ca2
imul eax, eax, 0xc
mov esi, ebx
mov eax, dword [eax + ecx]
mov dword [edi], eax
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret

Function at 0x4d2cbb
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x4d2cdb
or eax, 0xffffffff
jmp 0x4d2d34
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004d9c60
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4d2d1e
cmp dword [ebp - 0x114], 5
jne 0x4d2d1e
cmp dword [ebp - 0x110], 0
je 0x4d2d29
push esi
call fcn.004d306d
pop ecx
test eax, eax
je 0x4d2d32
push esi
call fcn.004d2e82
pop ecx
jmp 0x4d2d34
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x4d2e82
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push edi
xor ebx, ebx
mov dword [ebp - 0x238], eax
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d2ebc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4d2f84
push esi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x234], ebx
push ebx
push eax
mov esi, 0x490
call fcn.004d9c60
add esp, 0xc
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4d2f38
lea eax, [ebp - 0x20c]
push str.explorer.exe
push eax
call fcn.004dbd04
pop ecx
pop ecx
test eax, eax
je 0x4d2f28
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4d2efe
jmp 0x4d2f3c
mov eax, dword [ebp - 0x228]
xor esi, esi
mov dword [ebp - 0x234], eax
jmp 0x4d2f3c
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x234]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x4d2f60
call ebx
jmp 0x4d2f83
push dword [ebp - 0x238]
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4d2f7a
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret

Function at 0x4d378d
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4d37b8
xor eax, eax
jmp 0x4d37d3
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
push edi
cmove esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
ret 4

Function at 0x4d3a96
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop ebp
ret 8

Function at 0x4d3c68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x4d3ca0
push dword [esi + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.004e2e48
push dword [esi + 4]
push 2
push 1
push 0x547ed4
call fcn.004e2e48
push dword [esi + 4]
call fcn.004e2bb2
add esp, 0x24
pop esi
pop ebp
ret 8
Function at 0x4d6bab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x410], eax
xor eax, eax
push 0x60
push eax
push esi
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x408], eax
call ebx
mov edi, eax
test edi, edi
jne 0x4d6c14
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x4d6c14
call fcn.004b439d
mov esi, eax
jmp 0x4d6cb5
push dword [ebp - 0x410]
push dword [ebp - 0x40c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4d6c34
call fcn.004b439d
jmp 0x4d6ca8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4d6c2d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x4d6c5a
mov esi, 0x8007000e
jmp 0x4d6caa
push eax
lea ecx, [ebp - 0x408]
call fcn.004d5c82
cmp dword [ebp - 0x408], 0
je 0x4d6c53
push esi
push dword [ebp - 0x408]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x4d6c2d
mov eax, dword [ebp - 0x408]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x418]
push dword [ebp - 0x408]
call fcn.004d6a70
mov esi, eax
test edi, edi
je 0x4d6cb5
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x404]
cmp dword [ebp - 0x408], eax
je 0x4d6cce
lea ecx, [ebp - 0x408]
call fcn.004d61c5
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 0x10
Function at 0x507d6f
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004f0031
mov dword [ebp - 0x14], eax
cmp dword [0x55f1bc], esi
jne 0x507e62
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x507def
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x507f42
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x507f42
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x507f42
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x55f1bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x55f1c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x55f1c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x55f1cc], eax
test eax, eax
je 0x507e5f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x55f1c8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x507e87
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x507e7a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x507e9c
push 4
pop eax
jmp 0x507f44
cmp dword [ebp - 0x14], esi
je 0x507e9c
push dword [0x55f1bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x507e81
mov eax, dword [0x55f1c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x507efa
cmp dword [0x55f1cc], edi
je 0x507efa
push eax
call ebx
push dword [0x55f1cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x507efa
test eax, eax
je 0x507efa
call ecx
test eax, eax
je 0x507eef
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x507eef
test byte [ebp - 8], 1
jne 0x507efa
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x507f2a
mov eax, dword [0x55f1c0]
cmp eax, edi
je 0x507f27
push eax
call ebx
test eax, eax
je 0x507f27
call eax
mov esi, eax
test esi, esi
je 0x507f27
mov eax, dword [0x55f1c4]
cmp eax, edi
je 0x507f27
push eax
call ebx
test eax, eax
je 0x507f27
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x55f1bc]
call ebx
test eax, eax
je 0x507f42
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x507f44
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x402a38
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 0x402a6e
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 0x402a8c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040294c
mov edi, eax
test esi, esi
je 0x402a8c
cmp dword [ebx], 0
je 0x402a8c
dec esi
jmp 0x402a75
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034d8
Capabilities:
Query or enumerate registry value

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

Function at 0x404250
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48404c], 0
je 0x4042b1
cmp word [0x484220], 0xd7b2
jne 0x404279
cmp dword [0x484228], 0
jbe 0x404279
mov eax, 0x48421c
call dword [0x484238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x482054
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 0x4042d8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48201c], 0
jne 0x4042cd
push 0
push 0x482074
push 0x482054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404404
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.00402754
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x48404d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4043cc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40ac50
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 0x40ac89
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404540
jmp 0x40ac92
mov eax, ebx
mov edx, esi
call fcn.004044a4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40b344
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b1bc
mov eax, dword [0x4833b0]
cmp byte [eax], 0
je 0x40b3ac
mov eax, dword [0x4831a0]
call fcn.00402df4
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408e98
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 0x40b3f4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40b3e2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x483150]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x484718]
call fcn.00405be8
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 0x40c140
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 0x40c1a4
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.00408994
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c1ab
lea eax, [ebp - 0xc]
call fcn.00404450
ret

Function at 0x41dd04
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.0041dba4
dec esi
jne 0x41dd26
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41ee50
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x484a28
cmp dword [edi], 0
jne 0x41eecc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x484a24]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x482508
mov ecx, 2
call fcn.0040290c
mov edx, 0x41ee28
lea eax, [esi + 5]
call fcn.0041ee48
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041ee48
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 0x41eea1
mov dword [0x484a24], 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 0x420400
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 0x420406
ret

Function at 0x42294c
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 0x42299d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422984
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422974
jmp 0x42299d
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 0x422985
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434764
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004048f0
xor eax, eax
push ebp
push 0x434892
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x434865
xor eax, eax
push ebp
push 0x43485e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404708
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x434833
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x434822
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404708
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404900
mov edx, ebx
pop ecx
call fcn.0040290c
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434829
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4830ec]
mov dl, 1
mov eax, dword [0x407924]
call fcn.0040b4b4
call fcn.00403e2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x434899
lea eax, [ebp - 4]
call fcn.00404450
ret