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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push esi
lea eax, [ebp - 0x158]
push edi
xor esi, esi
push eax
push esi
mov edi, edx
push ecx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
ja 0x4062cc
xor eax, eax
jmp 0x40632c
lea eax, [ebp - 0x158]
push edi
push eax
lea eax, [ebp - 0x360]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x10
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.0040cd50
push 0x44
lea eax, [ebp - 0x54]
pop edi
push edi
push esi
push eax
call fcn.0040cd50
add esp, 0x28
lea eax, [ebp - 0x10]
mov dword [ebp - 0x54], edi
push eax
lea eax, [ebp - 0x54]
push eax
push esi
push esi
push 0x4000000
push esi
push esi
lea eax, [ebp - 0x360]
push esi
push eax
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
leave
ret

Function at 0x406463
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor esi, esi
cmp dword [0x41cdc0], 0x80
mov ebx, ecx
jl 0x4064cf
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4064cb
lea eax, [ebp - 0x10]
push eax
push str.SeShutdownPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push esi
push esi
push esi
push eax
push esi
mov dword [ebp - 8], 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4064cf
xor eax, eax
jmp 0x4064da
push esi
push ebx
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 1
pop eax
pop esi
pop ebx
leave
ret

Function at 0x4075c2
Capabilities:
Read .ini file

Disassembly:
push esi
push edi
xor edi, edi
mov esi, edx
push edi
push str.TxtAbtInfo
push edi
mov edx, 0x12e
mov ecx, esi
call fcn.00404e88
mov edx, 0x12f
mov ecx, esi
push 2
push str.TxtAbtCopy
push edi
call fcn.00404e88
mov ecx, esi
push edi
push 0x418268
push edi
push 1
pop edx
call fcn.00404e88
mov ecx, esi
push edi
push 0x418254
push edi
push 2
pop edx
call fcn.00404e88
mov ecx, esi
mov edx, str.DlgAbt
pop edi
pop esi
jmp fcn.00405157
Function at 0x4084a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
lea eax, [ebp - 0x114]
push 0x104
mov esi, edx
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x115], 0x5c
je 0x4084ee
lea eax, [ebp - 0x114]
push 0x418568
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp dword [esi + 0xe00], 0x15
jne 0x4084fe
push 0x418424
jmp 0x408503
push 0x418084
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push str._s_sTrayp.cfg
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edx, edi
mov ecx, 0x41cf08
call fcn.0040416b
push 1
pop eax
pop edi
pop esi
leave
ret

Function at 0x408c8e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp + 8]
push edi
push eax
mov esi, edx
push dword [ebp + 0x10]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov ecx, esi
call fcn.00408c2e
mov edi, eax
test edi, edi
je 0x408cdf
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowDC]
test eax, eax
mov dword [ebp - 4], eax
jne 0x408ce3
xor eax, eax
jmp 0x408d12
mov esi, dword [ebp + 0x14]
push 0x30
push 0
push esi
call fcn.0040cd50
add esp, 0xc
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00408d19
mov esi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x408d38
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
mov ebx, edx
mov dword [ebp - 4], ecx
je 0x408d52
and word [eax + 2], 0
mov edx, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
mov ecx, ebx
push dword [ebp + 0x14]
call fcn.00408c2e
mov esi, eax
test esi, esi
je 0x408d96
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 0x14], eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowDC]
mov ebx, eax
test ebx, ebx
jne 0x408d9d
xor eax, eax
jmp 0x408eb8
push 0x30
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.0040cd50
add esp, 0xc
lea eax, [ebp - 0x34]
mov edx, dword [ebp + 8]
mov ecx, ebx
push eax
mov dword [ebp - 0x34], esi
push dword [ebp + 0x10]
push dword [ebp + 0x14]
call fcn.00408d19
mov dword [ebp + 0x14], eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor edi, edi
cmp dword [ebp + 0x14], edi
jne 0x408dea
cmp dword [ebp - 0x2c], edi
je 0x408de3
push dword [ebp - 0x2c]
call fcn.0040d0e5
pop ecx
xor esi, esi
jmp 0x408eac
mov ecx, dword [ebp - 0x2c]
mov esi, dword [sym.imp.GDI32.dll_SelectPalette]
cmp ecx, edi
je 0x408e2b
cmp dword [ebp + 0x18], edi
je 0x408e0f
cmp dword [ebp + 0x1c], edi
jle 0x408e0f
push dword [ebp + 0x1c]
mov edx, dword [ebp - 0x28]
push dword [ebp + 0x18]
call fcn.00408ebf
push dword [ebp - 0x2c]
call dword [sym.imp.GDI32.dll_CreatePalette]
mov dword [ebp + 0x10], eax
push 1
push eax
push ebx
call esi
mov dword [ebp + 0x18], eax
push ebx
call dword [sym.imp.GDI32.dll_RealizePalette]
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push 4
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
cmp dword [ebp - 0x2c], edi
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [ebp + 0x1c], eax
je 0x408e8b
push 1
push dword [ebp + 0x18]
push ebx
call esi
push dword [ebp + 0x10]
call edi
cmp dword [ebp + 0x1c], 0
je 0x408e80
cmp dword [ebp + 0xc], 0
je 0x408e80
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax + 2]
lea ecx, [ecx*4 + 8]
push ecx
push eax
push dword [ebp + 0xc]
call fcn.0040cdb0
add esp, 0xc
push dword [ebp - 0x2c]
call fcn.0040d0e5
pop ecx
jmp 0x408e9b
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x408e9b
and word [eax], 0
and word [eax + 2], 0
push dword [ebp - 0x28]
call fcn.0040d0e5
pop ecx
push dword [ebp + 0x14]
call edi
mov esi, dword [ebp + 0x1c]
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x408f74
Capabilities:
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push esi
push edi
xor esi, esi
mov edi, edx
mov ebx, ecx
mov dword [ebp - 8], esi
call fcn.00409067
cmp ax, 0xffff
mov word [edi], ax
je 0x409044
lea eax, [ebp - 0x14c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x409044
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x409044
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 0x12c]
push esi
push esi
push esi
push 2
push esi
push ebx
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x409019
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [ebp + 8], eax
jne 0x40900d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x409014
mov dword [ebp - 8], 1
cmp dword [ebp + 8], esi
jne 0x409048
push dword [edi]
call fcn.0040d14e
cmp eax, esi
pop ecx
mov dword [ebp + 8], eax
je 0x409044
lea ecx, [ebp - 0xc]
push esi
push ecx
push dword [edi]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x409048
xor eax, eax
jmp 0x409060
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4092d7
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x41d014
push 8
mov dword [ecx], edx
pop esi
mov eax, dword [ecx]
test al, 1
jne 0x4092ee
shr eax, 1
jmp 0x4092f5
shr eax, 1
xor eax, 0xedb88320
dec esi
mov dword [ecx], eax
jne 0x4092e4
add ecx, 4
inc edx
cmp ecx, 0x41d414
jb 0x4092df
pop esi
ret

Function at 0x409455
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
mov eax, ecx
jbe 0x409483
push edi
movzx ecx, byte [esi + edx]
mov edi, eax
and edi, 0xff
xor ecx, edi
shr eax, 8
mov ecx, dword [ecx*4 + 0x41d014]
xor eax, ecx
inc esi
cmp esi, dword [esp + 0xc]
jb 0x409461
pop edi
pop esi
ret 4
Function at 0x40c736
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
lea eax, [ebp - 0x210]
and byte [edi], 0
push esi
mov dword [ebp - 8], edx
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp + 8]
mov dword [ebp + 8], esi
push eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 4]
push eax
push 0
push str.Filename
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40c7e4
cmp dword [ebp - 4], 1
jne 0x40c7e4
cmp byte [ebp - 0x10b], 0x3a
lea eax, [ebp - 0x10c]
push eax
jne 0x40c7a5
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40c7bb
lea eax, [ebp - 0x210]
push eax
push str._s_s
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov esi, dword [ebx + 0xdb8]
jmp 0x40c7db
lea eax, [esi + 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40c7e4
mov esi, dword [esi + 0x1348]
test esi, esi
jne 0x40c7c3
push 1
pop eax
jmp 0x40c7e6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40c883
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
push edi
xor edi, edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], ecx
push edi
add ecx, 0x1050
push eax
mov edx, 0x20019
call fcn.004055a6
test eax, eax
jne 0x40c9a8
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0x104
push eax
push edi
push edi
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, edi
jne 0x40c99f
lea eax, [ebp - 4]
push eax
push 0x20019
lea eax, [ebp - 0x124]
push edi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40c997
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push str.UtilityName
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40c93e
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x430]
push eax
call fcn.0040c736
test eax, eax
je 0x40c98e
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 0x10]
add eax, 0x1050
push eax
lea eax, [ebp - 0x32c]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov ecx, dword [ebp - 0x10]
add esp, 0x10
lea eax, [ebp - 0x32c]
lea edx, [ebp - 0x430]
push eax
call fcn.0040c9ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc dword [ebp - 0xc]
jmp 0x40c8b2
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
leave
ret
Function at 0x411b91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41c3f0
cmp edx, dword [eax]
je 0x411bb3
add eax, 8
inc ecx
cmp eax, 0x41c480
jl 0x411ba4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41c3f0]
jne 0x411ce1
mov eax, dword [0x41dd80]
cmp eax, 1
je 0x411cbb
test eax, eax
jne 0x411be4
cmp dword [0x419974], 1
je 0x411cbb
cmp edx, 0xfc
je 0x411ce1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411c1b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004106f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f820
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x411c5e
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f820
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4164d8
push edi
call fcn.00410530
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004106f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410700
lea eax, [ebp - 0xa0]
push 0x4164b8
push eax
call fcn.00410700
push dword [esi + 0x41c3f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410700
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412f8f
add esp, 0x2c
pop edi
jmp 0x411ce1
lea eax, [ebp + 8]
lea esi, [esi + 0x41c3f4]
push 0
push eax
push dword [esi]
call fcn.0040f820
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x404638
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43c814]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40461e
call 0xe9ac2e6c
invalid
call fcn.00402f8e
sub eax, eax
je 0x404629
call 0x7480aee4
inc edx
add al, ch
cmp eax, dword [eax]
add byte [eax], al
push str.So__lets_start_the_party
call fcn.0040466e
call fcn.00404519
push 0x75
push str.Solution_a_lot_of_many_problems__d
call fcn.0040468b
add esp, 0xc
lea ecx, [ebp - 0x1c]
call fcn.004019d3
call fcn.00401fbc
push str.duYayx8383
push 0x43d9a8
call fcn.0040131a
pop ecx
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406029
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40604a
jl 0x406041
test edi, edi
jne 0x40604a
xor eax, eax
xor edx, edx
jmp 0x40610b
cmp dword [ebx + 0x38], 0
je 0x40605f
push eax
push edi
push dword [ebp + 8]
call fcn.00406111
jmp 0x40610b
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4060a6
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4060a6
cmp eax, edi
jb 0x406080
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00409d30
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4060ac
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x406100
mov ecx, ebx
call fcn.004058c9
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4060eb
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041141c
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x406100
jmp 0x4060be
test edx, edx
je 0x406100
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041141c
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4084f9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408538
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408538
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408538
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408538
cmp dword [ecx + 0x74], 0xe
jbe 0x408538
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x416e26
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42b118
push 0x42b110
push str.FlsAlloc
push 0x1e
call fcn.00416c93
mov esi, eax
add esp, 0x10
test esi, esi
je 0x416e5a
push dword [ebp + 8]
mov ecx, esi
call dword [0x427134]
call esi
jmp 0x416e60
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41f0ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f14a
push ebx
push esi
call fcn.0041f076
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041dcfb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f0f7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f149
push edi
push eax
call fcn.00417459
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f117
call fcn.0041695b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f148
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041dcfb
add esp, 0x20
test eax, eax
jne 0x41f136
push edi
call fcn.0041695b
jmp 0x41f13e
push ebx
call fcn.0041695b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x426020
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42604d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42604d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x4116d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47d28b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0047194c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x411752
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046f59d
mov eax, dword [eax]
push 0x604220
push eax
call fcn.004620e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00471bd7
test bl, bl
je 0x411752
push 0x604220
lea ecx, [esp + 0xc]
call fcn.00471f67
push 0x607da4
lea ecx, [esp + 0xc]
call fcn.00471f67
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41178e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00471bd7
jmp 0x411859
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x411812
lea edx, [esp + 0x7c]
push 0x607da0
push edx
call fcn.004620e4
add esp, 8
test eax, eax
je 0x411812
lea eax, [esp + 0x7c]
push 0x607d9c
push eax
call fcn.004620e4
add esp, 8
test eax, eax
je 0x411812
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4117a2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00471bd7
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x412050
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4120b2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc