joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401790
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xc04
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0xc00], eax
push ebp
push edi
push 0x3ff
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
push str.kernel.ini
push esi
push str._s_s
mov eax, 0x400
lea edi, [esp + 0x20]
call entry0
add esp, 0x18
mov ecx, edi
push ecx
push 0
push str.version
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x3ff
lea edx, [esp + 0x40d]
push 0
push edx
mov ebp, eax
mov byte [esp + 0x414], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
mov eax, edi
push eax
push 0x400
lea ecx, [esp + 0x410]
push ecx
push str.QQPenguin
push str.productname
push str.kernel
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x3ff
lea edx, [esp + 0x80d]
push 0
push edx
mov byte [esp + 0x814], 0
call sub.MSVCR80.dll_memset
lea eax, [esp + 0x414]
push eax
push esi
push str._s_s.exe
mov eax, 0x400
lea edi, [esp + 0x820]
call entry0
mov ecx, edi
push 0
push ecx
call dword [sym.imp.MSVCR80.dll__access]
add esp, 0x20
test eax, eax
je 0x401899
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0xc00]
xor ecx, esp
call fcn.00403a3e
add esp, 0xc04
ret
mov ecx, dword [esp + 0xc08]
pop edi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00403a3e
add esp, 0xc04
ret

Function at 0x4018c0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x534
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x52c], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x13d]
push ebx
push eax
mov esi, ecx
mov byte [esp + 0x144], bl
call sub.MSVCR80.dll_memset
push esi
push str._s.exe
mov eax, 0x400
lea edi, [esp + 0x14c]
call entry0
add esp, 0x14
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40197d
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401976
mov edi, dword [sym.imp.MSVCR80.dll__stricmp]
mov ebp, dword [sym.imp.MSVCR80.dll__getpid]
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x13c]
push eax
call edi
add esp, 8
test eax, eax
jne 0x401960
call ebp
cmp dword [esp + 0x18], eax
jne 0x401971
lea ecx, [esp + 0x10]
push ecx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401942
jmp 0x401976
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x53c]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00403a3e
add esp, 0x534
ret
Function at 0x402880
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe10
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0xe0c], eax
push esi
push edi
push 0x3ff
lea eax, [esp + 0xa15]
push 0
push eax
mov esi, ecx
mov edi, edx
mov byte [esp + 0xa1c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea ecx, [esp + 0x215]
push 0
push ecx
mov byte [esp + 0x21c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0x3ff
lea edx, [esp + 0x615]
push 0
push edx
mov byte [esp + 0x61c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.MSVCR80.dll__time64]
add esp, 4
push 0x1ff
mov dword [esp + 0xc], eax
lea eax, [esp + 0x15]
push 0
push eax
mov dword [esp + 0x18], edx
mov byte [esp + 0x1c], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x14]
add esp, 0xc
push ecx
call dword [sym.imp.MSVCR80.dll__localtime64]
add esp, 4
push eax
push str._Y__m__d__H:_M:_S
lea edx, [esp + 0x18]
push 0x200
push edx
call dword [sym.imp.MSVCR80.dll_strftime]
add esp, 0x10
cmp dword [esi + 0x24], 0x10
jb 0x40295b
mov esi, dword [esi + 0x10]
jmp 0x40295e
add esi, 0x10
push edi
push esi
push str.TRACE
push str._s:_s__s_r_n
mov eax, 0x3ff
lea edi, [esp + 0xa20]
call entry0
push ebx
mov eax, edi
push eax
push 0x3fe
lea ecx, [esp + 0x22c]
push 0x3ff
push ecx
call dword [sym.imp.MSVCR80.dll__vsnprintf_s]
add esp, 0x24
test eax, eax
jl 0x4029a7
cmp eax, 0x3fe
ja 0x4029a7
jne 0x4029af
mov byte [esp + 0x60e], 0
lea edx, [esp + 0x210]
push edx
lea eax, [esp + 0x14]
push eax
push str._s__s
mov eax, 0x3ff
lea edi, [esp + 0x61c]
call entry0
add esp, 0xc
mov ecx, edi
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00402ba0
mov ecx, dword [esp + 0xe14]
pop edi
pop esi
xor ecx, esp
call fcn.00403a3e
mov esp, ebp
pop ebp
ret

Function at 0x402b20
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x404
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x400], eax
push 0x3ff
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x414]
lea ecx, [esp + 0x418]
push ecx
push edx
push 0x3ff
lea eax, [esp + 0x18]
push 0x400
push eax
call dword [sym.imp.MSVCR80.dll__vsnprintf_s]
add esp, 0x20
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.00403a3e
add esp, 0x404
ret
Function at 0x402fc0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x403026
push 0xed
push 0x4075f8
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x403026
push 0x5c
push 0x4075f8
call dword [sym.imp.MSVCR80.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x403026
mov byte [eax + 1], 0
push edi
push str.ConfigKernelDebug.ini
push 0x4075f8
push str._s_s
mov eax, 0x104
lea edi, [esp + 0x10]
call entry0
add esp, 0xc
mov ecx, edi
push ecx
push 0
push str.Log2File
push str.Base
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.00403a3e
add esp, 0x108
ret

Function at 0x403080
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x218
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x214], eax
push ebp
mov ebp, dword [esp + 0x220]
push esi
xor eax, eax
push edi
mov dword [esp + 0xd], eax
mov dword [esp + 0x11], eax
mov byte [esp + 0x15], al
push 0xa
lea eax, [esp + 0x10]
mov esi, ecx
push eax
mov ecx, 0x4055c8
mov edi, str.NotUseDefaultDllPath
mov byte [esp + 0x14], 0
call fcn.004031d0
cmp byte [esp + 0xc], 0x31
jne 0x4030e3
push ebx
push ebp
mov eax, 0x104
mov edi, esi
call fcn.004036a0
jmp 0x4031ad
push 0x103
lea ecx, [esp + 0x121]
push 0
push ecx
mov byte [esp + 0x128], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x104
lea edx, [esp + 0x124]
push edx
push 0
push str.DllPath
push str.DefaultValue
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x103
lea eax, [esp + 0x1d]
push 0
push eax
mov byte [esp + 0x24], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [esp + 0x18]
mov edi, ebp
lea edx, [esp + 0x11c]
call fcn.004035a0
lea ecx, [esp + 0x18]
push 0x3a
push ecx
call dword [sym.imp.MSVCR80.dll__mbschr]
add esp, 8
test eax, eax
jne 0x40317c
cmp byte [esp + 0x18], 0x5c
je 0x40317c
push ebx
lea edx, [esp + 0x1c]
push edx
mov eax, 0x104
mov edi, esi
call fcn.004036a0
jmp 0x4031ad
test ebx, ebx
je 0x4031ad
lea eax, [esp + 0x18]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403187
sub eax, edx
cmp eax, 0x104
jae 0x4031ad
lea eax, [esp + 0x18]
push eax
push 0x104
push ebx
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00403a3e
add esp, 0x218
ret 4

Function at 0x4031d0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x404
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x400], eax
push ebx
push 0x3ff
lea eax, [esp + 9]
push 0
push eax
mov ebx, ecx
mov byte [esp + 0x10], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
push 0x400
lea ecx, [esp + 0xc]
push ecx
push ebx
push edi
push 0x40555c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [esp + 0x40c]
mov ebx, dword [esp + 0x410]
push edx
lea eax, [esp + 8]
call fcn.00403600
mov ecx, dword [esp + 0x404]
pop ebx
xor ecx, esp
call fcn.00403a3e
add esp, 0x404
ret 8
Function at 0x403250
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
mov ebx, dword [esp + 0x114]
push esi
push edi
mov edi, dword [esp + 0x118]
push 0x103
lea eax, [esp + 0x11]
push 0
push eax
mov esi, ecx
mov byte [esp + 0x18], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 0x104
lea ecx, [esp + 0x14]
push ecx
push 0
push str.Path
push str.Redirect
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
test al, al
lea ecx, [esp + 0xc]
je 0x4032d2
lea esp, [esp]
cmp al, 0x20
je 0x4032c8
cmp al, 9
jne 0x403325
mov al, byte [ecx + 1]
add ecx, 1
test al, al
jne 0x4032c0
test ebx, ebx
je 0x40330b
mov esi, dword [esp + 0x120]
test esi, esi
jle 0x40330b
test edi, edi
je 0x40330b
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4032f0
sub eax, edx
cmp eax, esi
jae 0x40330b
push edi
push esi
push ebx
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00403a3e
add esp, 0x108
ret 0xc
lea edx, [esp + 0xc]
push 0x3a
push edx
call dword [sym.imp.MSVCR80.dll__mbschr]
add esp, 8
test eax, eax
jne 0x403354
cmp byte [esp + 0xc], 0x5c
je 0x403354
push ebx
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x128]
call fcn.004036a0
jmp 0x40330b
mov ecx, dword [esp + 0x120]
push ecx
push ebx
lea edx, [esp + 0x14]
push edx
mov ecx, esi
call fcn.00403250
jmp 0x40330b
Function at 0x401150
Capabilities:
Hide graphical window

Disassembly:
push esi
push 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0x80000000
push 0x80000000
push 0x476f28
push 0x476ec0
push 0
mov dword [0x476f24], eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0x80
mov esi, eax
push 0xffffffffffffffec
push esi
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
test esi, esi
jne 0x4011a0
xor eax, eax
pop esi
ret
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
pop esi
ret

Function at 0x401660
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x472cb0]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v3.5
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4016bf
push 0x10
push 0x46be84
push 0x46be8c
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0042d430
add esp, 0x114
ret
push 0x103
lea ecx, [esp + 0x11]
push 0
push ecx
mov dword [esp + 0x14], 0x104
mov byte [esp + 0x18], 0
call fcn.00430a40
add esp, 0xc
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 8]
push ecx
push 0
push 0x46beb8
push edx
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401738
push 0x10
push 0x46be84
push 0x46bebc
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0042d430
add esp, 0x114
ret
cmp byte [esp + 0xc], 1
mov ecx, dword [esp + 0x110]
sete al
xor ecx, esp
call fcn.0042d430
add esp, 0x114
ret

Function at 0x401760
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push esi
push 0x46bee8
push 0x81
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40177d
xor al, al
pop esi
ret
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40179a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40179f
pop edi
xor al, al
pop esi
ret
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4017b3
pop ebx
pop edi
xor al, al
pop esi
ret
mov eax, dword [esp + 0x10]
push ebp
push 0x46beec
push eax
xor ebp, ebp
call fcn.0042d830
mov esi, eax
add esp, 8
test esi, esi
je 0x4017f9
push esi
push edi
push 1
push ebx
call fcn.0042d850
add esp, 0x10
cmp edi, eax
jne 0x4017e4
mov ebp, 1
push esi
call fcn.0042dd30
add esp, 4
cmp ebp, 1
jne 0x4017f9
pop ebp
pop ebx
pop edi
mov al, 1
pop esi
ret
pop ebp
pop ebx
pop edi
xor al, al
pop esi
ret
Function at 0x401800
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x472cb0]
xor eax, esp
mov dword [esp + 0x110], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push str.SOFTWAREJavaSoftJava_Runtime_Environment
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401889
push 0x103
push eax
lea ecx, [esp + 0x15]
push ecx
mov dword [esp + 0x10], 0x104
mov byte [esp + 0x18], al
call fcn.00430a40
add esp, 0xc
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push str.CurrentVersion
push edx
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4018a0
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0042d430
add esp, 0x114
ret
lea ecx, [esp + 0xc]
push ecx
call fcn.0042e180
fcomp qword [0x46bf40]
add esp, 4
fnstsw ax
test ah, 1
jne 0x401889
mov ecx, dword [esp + 0x110]
xor ecx, esp
mov al, 1
call fcn.0042d430
add esp, 0x114
ret

Function at 0x4018e0
Capabilities:
Check mutex on windows

Disassembly:
push esi
push str.Find.Net_FrameWork
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x40190e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40190e
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x421d50
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459498
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x472cb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x421da8
mov edx, dword [ebp - 0x18]
cmp dword [edx + 0x50], 0
jne 0x421da8
push 0x100
push str.f:dd_vctools_vc7libs_ship_atlmfc_srcmfcwinocc.cpp
call fcn.00402960
test eax, eax
je 0x421da8
int3
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x50], 0
jne 0x421dca
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x421e2d
lea ecx, [ebp - 0x10]
call fcn.004049e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x50]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x50]
mov edx, dword [edx]
mov eax, dword [edx + 0x94]
call eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00407000
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402700
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00404aa0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x42d430
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x472cb0]
jne 0x42d43a
repz ret
jmp fcn.00436b70
Function at 0x402de4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x47f008], 0x8088405
inc edx
mov dword [ebx + 0x47f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x403248
Capabilities:
Query or enumerate registry value

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

Function at 0x4040f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48104c], 0
je 0x404159
cmp word [0x481220], 0xd7b2
jne 0x404121
cmp dword [0x481228], 0
jbe 0x404121
mov eax, 0x48121c
call dword [0x481238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x47f070
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 0x404180
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47f034], 0
jne 0x404175
push 0
push 0x47f068
push 0x47f070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406304
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 0x40636a
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.004044e4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e00
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406354
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406371
lea eax, [ebp - 0x10]
call fcn.00404274
ret

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

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

Function at 0x40c0e8
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 0x40c121
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404364
jmp 0x40c12a
mov eax, ebx
mov edx, esi
call fcn.004042c8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424e9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4818b0
cmp dword [edi], 0
jne 0x424f18
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4818ac]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x47f5f4
mov ecx, 2
call fcn.00402984
mov edx, 0x424e74
lea eax, [esi + 5]
call fcn.00424e94
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00424e94
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 0x424eed
mov dword [0x4818ac], 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 0x42656c
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 0x426572
ret
Function at 0x428a40
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 0x428a91
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x428a78
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x428a68
jmp 0x428a91
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 0x428a79
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44218c
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x4420d8
call sub.user32.dll_EnumWindows
ret

Function at 0x4422ac
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x442329
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00441d0c
call sub.kernel32.dll_GetTickCount_1
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount_1
sub eax, ebx
cmp eax, 0x3e8
jbe 0x4422d1
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0044190c
cmp dword [ebp - 4], 0
je 0x442313
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404734
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x442330
lea eax, [ebp - 4]
call fcn.00404274
ret

Function at 0x445824
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x445874]
test si, 4
je 0x445838
or bl, 1
test si, 8
je 0x445842
or bl, 4
test si, 1
je 0x44584c
or bl, 8
test si, 2
je 0x445856
or bl, 0x10
test si, 0x10
je 0x445860
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44586f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x445878
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4458b0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x445891
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4458a0
or bl, 4
test esi, 0x20000000
je 0x4458ab
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44bf58
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x44bf6a
add esp, 0xfffffff0
call fcn.004036fc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423e0c
mov eax, dword [0x480314]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c2fc
mov eax, dword [0x480320]
mov dword [eax + 4], ebx
mov dword [eax], 0x44c308
mov eax, ebx
call fcn.0044c314
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41b14c]
call fcn.004033a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41b14c]
call fcn.004033a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41b14c]
call fcn.004033a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41b14c]
call fcn.004033a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41b14c]
call fcn.004033a8
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x448730
push eax
push 0
push 0
mov eax, dword [0x4804c0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4258a0]
call fcn.004270b4
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4258a0]
call fcn.004270b4
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4258a0]
call fcn.004270b4
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0044c734
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c610
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c610
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x44c610
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44c0a7
call fcn.00403754
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret