joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455658
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45566f
add esp, 0xfffffff0
call fcn.004034cc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041cadc
mov eax, dword [0x4894cc]
cmp word [eax + 2], 0
jne 0x455697
mov eax, dword [0x4894cc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456d30
mov eax, dword [0x4895bc]
cmp word [eax + 2], 0
jne 0x4556b1
mov eax, dword [0x4895bc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456f28
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x414cb4]
call fcn.00403178
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x414cb4]
call fcn.00403178
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41ef48]
call fcn.0042655c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x455838
mov eax, dword [0x4893a0]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042692c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4574c8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4893a0]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c710
test eax, eax
je 0x4557a6
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004087ec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c738
test eax, eax
je 0x4557ba
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404168
mov eax, dword [0x4891f8]
cmp byte [eax], 0
jne 0x4557ee
mov eax, ebx
call fcn.00455960
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004576a4
mov eax, ebx
call fcn.00458068
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45582e
call fcn.00403524
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x455be0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x48abb4]
cmp dword [eax + 0x30], 0
je 0x455c8a
cmp dword [ebx + 0x94], 0
jne 0x455c84
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x455b70
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x455c84
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x455c4a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x455c84
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00417050
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x455c59
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4567ec
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456821
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403fe8
jmp 0x45682e
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403f4c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457880
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4578c1
mov eax, esi
call fcn.0043e004
test al, al
je 0x4578c1
mov eax, dword [ebx + 0x84]
call fcn.0043dd00
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4578c1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043dd00
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x471a5c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x471a8a
mov eax, ebx
call fcn.00472510
cmp dword [ebx + 0x40], 0
je 0x471a83
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x471afb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x471aed
cmp dword [ebx + 8], 0
je 0x471aac
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x471abe
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x471aed
cmp dword [ebx + 8], 0
je 0x471a9f
cmp eax, 3
je 0x471ad1
dec eax
jne 0x471a9f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x471a9f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x471a9f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x471b19
cmp dword [ebx + 0x14], 0xcc
je 0x471b19
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00471b24
pop ebx
ret

Function at 0x483d70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x483e27
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.004043b8
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
jne 0x483db2
call fcn.004039e0
jmp 0x483e2e
mov eax, ebx
call fcn.004026dc
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push ebx
push 0
mov eax, esi
call fcn.004043b8
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
jne 0x483ddb
call fcn.004039e0
jmp 0x483e2e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x483e38
mov eax, dword [ebp - 8]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
jne 0x483dfc
call fcn.004039e0
jmp 0x483e2e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
mov dword [edi], eax
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x483e2e
mov eax, dword [ebp - 8]
call fcn.004026fc
ret
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401150
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401169
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40117d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40119e
cmp esi, eax
jae 0x401177
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401190
cmp esi, eax
jae 0x401177
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x403650
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x45b7cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov eax, dword [0x47bdb8]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1a0], eax
push edi
mov esi, ecx
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x1b0], ebp
call fcn.004024c0
test eax, eax
je 0x403745
test esi, esi
jne 0x4036d9
call fcn.00456eb3
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ecx
lea edx, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00401b00
lea ecx, [esp + 0x10]
call fcn.00402f00
mov esi, eax
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x403729
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push edi
je 0x403723
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [esp + 0x24]
push 0x462094
push eax
call fcn.00417c64
add esp, 0xc
mov ebp, 1
jmp 0x403782
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
push str.ForceExit
push ecx
call fcn.00417c64
add esp, 0x10
jmp 0x403782
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x28]
push str.manager.InitPSAPI__
push edx
call fcn.00417c64
lea eax, [esp + 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403766
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, 0x49f750
call fcn.00402a70
add esp, 8
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403790
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x49f750
call fcn.00402a70
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x4037bb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1a4]
mov eax, ebp
call fcn.0041723c
pop edi
pop esi
pop ebp
add esp, 0x1a8
ret
Function at 0x404c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00404be0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401290
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x404d02
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x406670
Capabilities:
Delete registry key
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45bb9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x47bdb8]
push esi
xor esi, esi
mov dword [esp + 0x118], eax
push edi
mov dword [esp + 0xc], esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
push 0x2001f
push esi
push esi
push esi
push str.SOFTWAREmicrosoftwindowsCurrentVersionRun
push SysReAllocStringLen
mov dword [esp + 0x150], esi
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4066df
mov esi, dword [esp + 0x10]
mov dword [esp + 0xc], esi
push 0x100
lea edx, [esp + 0x1c]
xor eax, eax
push edx
mov ecx, 0x40
lea edi, [esp + 0x20]
push eax
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call fcn.00456eb3
push 0x462710
lea ecx, [esp + 0xc]
call fcn.00401b00
mov eax, dword [ebp + 8]
test eax, eax
jne 0x406731
mov eax, dword [esp + 8]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x406753
mov edi, dword [esp + 8]
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [esp + 0x1c]
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x406766
push esi
call edi
xor esi, esi
mov dword [esp + 0xc], esi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406784
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test esi, esi
je 0x40678b
push esi
call edi
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
call fcn.0041723c
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406a20
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x45bbeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov eax, dword [0x47bdb8]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1a0], eax
push edi
mov esi, ecx
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x1b0], ebp
call fcn.004024c0
test eax, eax
je 0x406b15
test esi, esi
jne 0x406aa9
call fcn.00456eb3
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ecx
lea edx, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00401b00
lea ecx, [esp + 0x10]
call fcn.00402f00
mov esi, eax
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x406af9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push edi
je 0x406af3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [esp + 0x24]
push 0x462094
push eax
call fcn.00417c64
add esp, 0xc
mov ebp, 1
jmp 0x406b52
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
push str.ForceExit
push ecx
call fcn.00417c64
add esp, 0x10
jmp 0x406b52
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x28]
push str.manager.InitPSAPI__
push edx
call fcn.00417c64
lea eax, [esp + 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406b36
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, 0x49f750
call fcn.004050c0
add esp, 8
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x406b60
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x49f750
call fcn.004050c0
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x406b8b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1a4]
mov eax, ebp
call fcn.0041723c
pop edi
pop esi
pop ebp
add esp, 0x1a8
ret
Function at 0x40a5e0
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x45c04b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
mov eax, dword [0x47bdb8]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x1a0], eax
push edi
mov esi, ecx
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0xc]
mov dword [esp + 0x1b0], ebp
call fcn.004024c0
test eax, eax
je 0x40a6d5
test esi, esi
jne 0x40a669
call fcn.00456eb3
mov eax, dword [eax + 8]
push 0x104
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push ecx
lea edx, [esp + 0xa4]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call fcn.00401b00
lea ecx, [esp + 0x10]
call fcn.00402f00
mov esi, eax
push esi
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40a6b9
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
push edi
je 0x40a6b3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea eax, [esp + 0x24]
push 0x462094
push eax
call fcn.00417c64
add esp, 0xc
mov ebp, 1
jmp 0x40a712
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x28]
push str.ForceExit
push ecx
call fcn.00417c64
add esp, 0x10
jmp 0x40a712
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x28]
push str.manager.InitPSAPI__
push edx
call fcn.00417c64
lea eax, [esp + 0x30]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a6f6
sub eax, edx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, 0x49f750
call fcn.00408820
add esp, 8
lea eax, [esp + 0x20]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a720
sub eax, edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, 0x49f750
call fcn.00408820
mov eax, dword [esp + 0x20]
add esp, 8
test eax, eax
je 0x40a74b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x1a8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1a4]
mov eax, ebp
call fcn.0041723c
pop edi
pop esi
pop ebp
add esp, 0x1a8
ret
Function at 0x40c8e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x1c4
mov eax, dword [0x47bdb8]
push esi
mov esi, dword [esp + 0x1cc]
mov ecx, esi
shl ecx, 4
add ecx, 0x49bd20
push ecx
mov ecx, dword [esi*4 + 0x49bd50]
lea edx, [esp + 8]
push edx
mov dword [esp + 0x1cc], eax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push ecx
push eax
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], 1
mov word [esp + 0x5e], ax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov word [esp + 0x5c], 5
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40c9c1
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
lea edx, [esp + 0x4c]
push str.Start_process__d_n
push edx
call fcn.00417c64
lea eax, [esp + 0x54]
push eax
push 0x49bd70
call fcn.0040c820
add esp, 0x14
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1c0]
call fcn.0041723c
add esp, 0x1c4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi*4 + 0x49bd50]
push eax
push ecx
lea edx, [esp + 0xcc]
push str.Failed_to_start_program__s__error_code___d_n
push edx
call fcn.00417c64
lea eax, [esp + 0xd4]
push eax
push 0x49bd70
call fcn.0040c820
mov ecx, dword [esp + 0x1dc]
add esp, 0x18
xor eax, eax
pop esi
call fcn.0041723c
add esp, 0x1c4
ret
Function at 0x40e5a9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x40e5fc
call fcn.00456eb3
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x40e5fc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x40e5f2
xor eax, eax
jmp 0x40e715
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x40e62c
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x40e62c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x40e712
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x40e659
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.0040d2ed
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x40e712
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40e6a2
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40e6a2
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x40e69c
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.0040d2ed
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x40e702
and dword [ebp + 0xc], 0
jmp 0x40e702
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x40e702
push 0xc
call fcn.00440f38
mov esi, eax
test esi, esi
pop ecx
je 0x40e6e4
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x40e6e6
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x40e6fd
push dword [ebp - 8]
call fcn.0043b09e
jmp 0x40e702
call fcn.0043b075
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x40e667
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x418446
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041a64b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x418469
test byte [esp + 8], 2
je 0x418469
call fcn.0041a639
mov dword [eax], 0xd
call fcn.0041a642
mov dword [eax], 5
jmp 0x418442
xor eax, eax
ret
Function at 0x4186ee
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004188e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x418789
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x49e540]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x418789
cmp eax, 1
je 0x4187aa
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x418789
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x418756
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x418785
xor eax, eax
inc eax
jmp 0x4187c9
cmp edi, eax
jae 0x41878d
xor eax, eax
jmp 0x4187c9
cmp eax, esi
jae 0x418794
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x49e540]
jmp 0x4187ad
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret