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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push esi
push 4
pop esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SOFTWARE123
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412633
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push str.HomePage
push dword [ebp - 0x10]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x412633
and dword [ebp - 4], 0
inc dword [ebp - 4]
push dword [ebp - 4]
call fcn.00412560
pop ecx
pop esi
leave
ret

Function at 0x412b7b
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
push 0x804
call fcn.0041558a
mov esi, eax
mov eax, dword [esp + 0x14]
mov dword [esp], 0x800
xor ebx, ebx
lea edi, [esi + 4]
push ebx
push edi
mov dword [esi], eax
call fcn.00444c50
mov eax, dword [esp + 0x20]
add esp, 0xc
sub edi, eax
mov cl, byte [eax]
mov byte [edi + eax], cl
inc eax
cmp cl, bl
jne 0x412bac
cmp dword [0x480154], ebx
jne 0x412bcc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [0x480154], eax
push ebx
push ebx
push esi
push 0x412af0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
ret
Function at 0x412c59
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x4777a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x50], eax
mov eax, dword [edi + 0x20]
push ebx
mov ebx, ecx
mov dword [ebp - 0x54], ebx
test eax, eax
je 0x412da4
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x14
push 0x41e
push eax
call esi
mov eax, dword [ebp + 0xc]
test eax, eax
jbe 0x412cf5
mov ecx, dword [ebp - 0x4c]
add ebx, 0x10
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], eax
mov ebx, 0x41c
mov eax, dword [ebp - 0x44]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412cba
sub eax, edx
je 0x412ce2
push dword [ebp - 0x44]
push 0
push ebx
push dword [edi + 0x20]
call esi
push dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
push 0
push ebx
mov dword [ecx], eax
push dword [edi + 0x20]
call esi
jmp 0x412ce8
mov eax, dword [ebp - 0x48]
or dword [eax], 0xffffffff
add dword [ebp - 0x44], 0x14
add dword [ebp - 0x48], 0x14
dec dword [ebp - 0x4c]
jne 0x412cb4
mov ecx, edi
call fcn.00403f65
and dword [ebp - 0x40], 0
push 0x38
mov ebx, eax
lea eax, [ebp - 0x3c]
push 0
push eax
call fcn.00444c50
add esp, 0xc
test ebx, ebx
je 0x412d1c
cmp dword [ebx + 4], 0
jne 0x412d2b
lea eax, [ebp - 0x40]
push eax
push 0x3c
push dword [ebx + 4]
call dword [sym.imp.GDI32.dll_GetObjectA]
push dword [ebp - 0x50]
mov eax, dword [ebp - 0x40]
cdq
push 0
xor eax, edx
push 0x430
push dword [edi + 0x20]
sub eax, edx
movzx ebx, ax
call esi
push dword [ebp - 0x54]
push dword [ebp + 0xc]
push 0x414
push dword [edi + 0x20]
call esi
movzx eax, word [ebp + 0x18]
movzx ecx, word [ebp + 0x14]
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x420
push dword [edi + 0x20]
call esi
movzx eax, word [ebp + 0x18]
cmp word [ebp + 0x18], bx
ja 0x412d7c
movzx eax, bx
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x14]
add eax, ecx
movzx eax, ax
add ecx, edx
movzx ecx, cx
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x41f
push dword [edi + 0x20]
call esi
xor eax, eax
inc eax
pop esi
jmp 0x412da6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004410db
leave
ret 0x18

Function at 0x41445f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x480198]
cmp eax, 0x1c00
jle 0x414495
push esi
push 0
lea eax, [ebp - 4]
push eax
mov esi, 0x47cab0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor eax, eax
mov dword [0x480198], eax
pop esi
lea ecx, [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
lea eax, [eax + 0x47cab0]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
add dword [0x480198], eax
leave
ret
Function at 0x4144b1
Capabilities:
Create process memory minidump
Print debug messages

Disassembly:
push 0x14
push 0x471188
call fcn.00445270
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
jne 0x414501
mov dword [ebp - 4], esi
push str.raising_exception_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
push esi
push esi
push SysStringLen
call dword [sym.imp.KERNEL32.dll_RaiseException]
push str.writing_minidump_r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
push esi
push esi
lea eax, [ebp - 0x24]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.dbghelp.dll_MiniDumpWriteDump
call fcn.004452b5
ret
Function at 0x41487e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
push ebx
push esi
push edi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [esp + 0x38]
xor edx, edx
mov eax, 0x40000000
div ebx
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], 1
mov esi, eax
shl esi, 2
cmp esi, edi
jbe 0x41491a
push 0x1c
lea eax, [esp + 0x1c]
push eax
mov eax, edi
imul eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
xor edx, edx
test eax, eax
je 0x41490d
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x41490d
div ebx
add edi, eax
cmp dword [esp + 0x28], 0x1000
jne 0x414916
mov edx, dword [esp + 0x1c]
cmp edx, dword [esp + 0x14]
jbe 0x414916
push dword [esp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], edx
call fcn.004145b2
pop ecx
test al, al
je 0x414916
inc dword [esp + 0x10]
jmp 0x414916
mov eax, 0x10000
div ebx
add edi, eax
cmp edi, esi
jb 0x4148b9
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414921
Capabilities:
Get memory capacity
Get session user name
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x374]
sub esp, 0x3f4
mov eax, dword [0x4777a8]
xor eax, ebp
mov dword [ebp + 0x370], eax
push esi
push edi
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push dword [ebp - 0x34]
lea esi, [ebp + 0x1dc]
push dword [ebp - 0x38]
call fcn.0041453e
mov eax, esi
push eax
push str.Error_occurred_at__s._r_n
push ebx
call fcn.0041445f
push 0x208
lea eax, [ebp - 0x2c]
push 0
push eax
call fcn.00444c50
add esp, 0x20
push 0x206
lea eax, [ebp - 0x2c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, str.Unknown
test eax, eax
ja 0x4149a1
push edi
lea eax, [ebp - 0x2c]
push eax
call esi
push 0xc8
lea eax, [ebp + 0x240]
push 0
push eax
call fcn.00444c50
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 0x240]
push eax
mov dword [ebp - 0x30], 0xc6
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4149dd
push edi
lea eax, [ebp + 0x240]
push eax
call esi
lea eax, [ebp + 0x240]
push eax
lea eax, [ebp - 0x2c]
push eax
push str._s__run_by__s._r_n
push ebx
call fcn.0041445f
lea eax, [ebp + 0x308]
push eax
lea ecx, [ebp + 0x33c]
lea edi, [ebp - 0x5c]
call fcn.00415274
lea eax, [ebp + 0x33c]
push eax
lea eax, [ebp + 0x308]
push eax
push str.Operating_system:___s___s_._r_n
push ebx
call fcn.0041445f
add esp, 0x24
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push str._d_processor_s___type__d._r_n
push ebx
call fcn.0041445f
add esp, 0x10
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x58], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push dword [ebp - 0x54]
push str._d___memory_in_use._r_n
push ebx
call fcn.0041445f
mov eax, dword [ebp - 0x50]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory._r_n
push ebx
call fcn.0041445f
mov eax, dword [ebp - 0x4c]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_physical_memory_free._r_n
push ebx
call fcn.0041445f
mov eax, dword [ebp - 0x48]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file._r_n
push ebx
call fcn.0041445f
mov eax, dword [ebp - 0x44]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_paging_file_free._r_n
push ebx
call fcn.0041445f
mov eax, dword [ebp - 0x40]
add eax, 0xfffff
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space._r_n
push ebx
call fcn.0041445f
mov eax, dword [ebp - 0x3c]
add eax, 0xfffff
add esp, 0x48
shr eax, 0x14
push eax
push str._d_MBytes_user_address_space_free._r_n
push ebx
call fcn.0041445f
add esp, 0xc
mov ecx, dword [ebp + 0x370]
pop edi
xor ecx, ebp
pop esi
call fcn.004410db
add ebp, 0x374
leave
ret
Function at 0x415274
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xac
mov eax, dword [0x4777a8]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x38], ecx
test eax, eax
je 0x4154b2
test edi, edi
je 0x4154b2
test ecx, ecx
je 0x4154b2
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.unknown_Windows_version
push eax
call esi
and dword [edi], 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4154b2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x20]
push ebx
movzx ebx, word [ebp - 0x18]
push ebx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x1c]
push eax
push ecx
push str._u._u._u
push dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
cmp dword [ebp - 0x34], 1
jne 0x4153fb
cmp dword [ebp - 0x30], 4
jne 0x4154ac
cmp dword [ebp - 0x2c], 0xa
jae 0x41537a
cmp ebx, 0x3b6
jne 0x415337
push str.Windows_95
push dword [ebp - 0x28]
call esi
mov dword [edi], 1
jmp 0x4154ac
lea eax, [ebx - 0x3b7]
cmp eax, 0x81
ja 0x415359
push str.Windows_95_SP1
push dword [ebp - 0x28]
call esi
mov dword [edi], 2
jmp 0x4154ac
cmp ebx, 0x438
jbe 0x415376
push str.Windows_95_OSR2
push dword [ebp - 0x28]
call esi
mov dword [edi], 3
jmp 0x4154ac
cmp dword [ebp - 0x2c], 0xa
jne 0x4153dc
cmp ebx, 0x7ce
jne 0x415399
push str.Windows_98
push dword [ebp - 0x28]
call esi
mov dword [edi], 4
jmp 0x4154ac
lea eax, [ebx - 0x7cf]
cmp eax, 0xb7
ja 0x4153bb
push str.Windows_98_SP1
push dword [ebp - 0x28]
call esi
mov dword [edi], 5
jmp 0x4154ac
cmp ebx, 0x887
jb 0x4154ac
push str.Windows_98_SE
push dword [ebp - 0x28]
call esi
mov dword [edi], 6
jmp 0x4154ac
cmp dword [ebp - 0x2c], 0x5a
jne 0x4154ac
push str.Windows_ME
push dword [ebp - 0x28]
call esi
mov dword [edi], 7
jmp 0x4154ac
cmp dword [ebp - 0x34], 2
jne 0x415496
cmp dword [ebp - 0x30], 3
jne 0x41542a
cmp dword [ebp - 0x2c], 0x33
jne 0x4154ac
push str.Windows_NT_3.51
push dword [ebp - 0x28]
call esi
mov dword [edi], 0x65
jmp 0x4154ac
cmp dword [ebp - 0x30], 4
jne 0x415448
cmp dword [ebp - 0x2c], 0
jne 0x4154ac
push str.Windows_NT_4
push dword [ebp - 0x28]
call esi
mov dword [edi], 0x66
jmp 0x4154ac
cmp dword [ebp - 0x30], 5
jne 0x4154ac
cmp dword [ebp - 0x2c], 0
jne 0x415466
push str.Windows_2000
push dword [ebp - 0x28]
call esi
mov dword [edi], 0x67
jmp 0x4154ac
cmp dword [ebp - 0x2c], 1
jne 0x41547e
push str.Windows_XP
push dword [ebp - 0x28]
call esi
mov dword [edi], 0x68
jmp 0x4154ac
cmp dword [ebp - 0x2c], 2
jne 0x4154ac
push str.Windows_2003_Server
push dword [ebp - 0x28]
call esi
mov dword [edi], 0x69
jmp 0x4154ac
cmp dword [ebp - 0x34], 3
jne 0x4154ac
push str.Windows_CE
push dword [ebp - 0x28]
call esi
mov dword [edi], 0xc9
xor eax, eax
inc eax
pop ebx
jmp 0x4154b4
xor eax, eax
mov ecx, dword [ebp + 0x70]
xor ecx, ebp
pop esi
call fcn.004410db
add ebp, 0x74
leave
ret
Function at 0x41b5f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41b63b
call fcn.0041fce1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41b63b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41b657
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041b16e
mov esi, eax
test edi, edi
je 0x41b655
test ebx, ebx
je 0x41b655
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41be08
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x458592
call fcn.00445165
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41be2d
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41be73
lea ecx, [ebp - 0x10]
call fcn.0040239f
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041b65e
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004023bd
mov eax, esi
call fcn.0044523d
ret 8

Function at 0x422eab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x422ef3
call fcn.0041fce1
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x422ef3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x422f36
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x422f1f
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x422f1f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x422f33
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42a4db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041fce1
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42a514
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042a12c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x42a572
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x42a596
cmp dword [edi + 0x54], 0
jne 0x42a596
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041fce1
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0042a533
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4410db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4777a8]
jne 0x4410e5
repz ret
jmp fcn.00448213

Function at 0x453c05
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.0044a167
and dword [ebp - 4], 0
cmp dword [0x47c318], 0
mov ebx, eax
jne 0x453cb6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x453d67
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x463ca8
push edi
call esi
test eax, eax
je 0x453d67
push eax
call fcn.0044a0f5
mov dword [esp], 0x463c98
push edi
mov dword [0x47c318], eax
call esi
push eax
call fcn.0044a0f5
mov dword [esp], 0x463c84
push edi
mov dword [0x47c31c], eax
call esi
push eax
call fcn.0044a0f5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x47c320], eax
call esi
push eax
call fcn.0044a0f5
pop ecx
mov dword [0x47c328], eax
test eax, eax
je 0x453cb6
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044a0f5
pop ecx
mov dword [0x47c324], eax
mov eax, dword [0x47c324]
cmp eax, ebx
je 0x453d0e
cmp dword [0x47c328], ebx
je 0x453d0e
push eax
call fcn.0044a170
push dword [0x47c328]
mov esi, eax
call fcn.0044a170
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x453d0e
test edi, edi
je 0x453d0e
call esi
test eax, eax
je 0x453d05
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x453d05
test byte [ebp - 0xc], 1
jne 0x453d0e
or dword [ebp + 0x10], 0x200000
jmp 0x453d47
mov eax, dword [0x47c31c]
cmp eax, ebx
je 0x453d47
push eax
call fcn.0044a170
pop ecx
test eax, eax
je 0x453d47
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x453d47
mov eax, dword [0x47c320]
cmp eax, ebx
je 0x453d47
push eax
call fcn.0044a170
pop ecx
test eax, eax
je 0x453d47
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x47c318]
call fcn.0044a170
pop ecx
test eax, eax
je 0x453d67
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x453d69
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402940
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x40297d
xor eax, eax
mov al, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x40299d
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404d9c
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x402b64
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.00404b2c
test esi, esi
jne 0x402b9a
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.00404c1c
jmp 0x402bb8
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a18
mov edi, eax
test esi, esi
je 0x402bb8
cmp dword [ebx], 0
je 0x402bb8
dec esi
jmp 0x402ba1
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403bc0
Capabilities:
Query or enumerate registry value

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

Function at 0x40492c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a1048], 0
je 0x40498d
cmp word [0x4a121c], 0xd7b2
jne 0x404955
cmp dword [0x4a1224], 0
jbe 0x404955
mov eax, 0x4a1218
call dword [0x4a1234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49b094
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 0x4049b4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49b034], 0
jne 0x4049a9
push 0
push 0x49b08c
push 0x49b094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x404ae0
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.0040272c
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4a1049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404aa8
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc