joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2e013171
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
lea eax, [ebp + 0x10]
push eax
push edi
lea eax, [ebp - 4]
push eax
push edi
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push 0x900
xor ebx, ebx
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [ebp + 0xc], eax
cmp eax, edi
jne 0x2e0131c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x2e0131c1
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x2e01324b
cmp dword [ebp + 0xc], edi
jbe 0x2e013211
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
sub eax, ebx
push eax
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [0x2e022054]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2e013209
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x2e013207
and esi, 0xffff
or esi, 0x80070000
cmp esi, edi
jl 0x2e01324b
add ebx, dword [ebp - 8]
cmp ebx, dword [ebp + 0xc]
jb 0x2e0131cc
cmp dword [ebp + 0x14], edi
je 0x2e01324b
push edi
lea eax, [ebp - 8]
push eax
push 2
push dword [0x2e02205c]
push dword [0x2e022054]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x2e01324b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, edi
jle 0x2e01324b
and esi, 0xffff
or esi, 0x80070000
cmp dword [ebp - 4], edi
je 0x2e013259
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10

Function at 0x2e013262
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp + 8]
xor esi, esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call fcn.2e010f43
mov ebx, eax
cmp ebx, esi
jl 0x2e01331c
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp + 0xc], eax
cmp eax, esi
jbe 0x2e0132e3
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0xc]
sub eax, esi
push eax
mov eax, dword [ebp - 4]
add eax, esi
push eax
push dword [0x2e022054]
call edi
test eax, eax
jne 0x2e0132db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x2e0132d9
and ebx, 0xffff
or ebx, 0x80070000
test ebx, ebx
jl 0x2e01331b
add esi, dword [ebp - 8]
cmp esi, dword [ebp + 0xc]
jb 0x2e0132a1
cmp dword [ebp + 0x10], 0
je 0x2e01331b
push 0
lea eax, [ebp - 8]
push eax
push 2
push dword [0x2e02205c]
push dword [0x2e022054]
call edi
test eax, eax
jne 0x2e01331b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x2e01331b
and ebx, 0xffff
or ebx, 0x80070000
pop edi
cmp dword [ebp - 4], 0
je 0x2e01332a
push dword [ebp - 4]
call fcn.2e010d00
pop esi
mov eax, ebx
pop ebx
leave
ret 0xc
Function at 0x2e013449
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x2e022064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
cmp dword [0x2e022054], 0xffffffff
mov eax, 0x104
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
mov ebx, 0x2e002494
je 0x2e01359f
cmp dword [0x2e023358], esi
je 0x2e01359f
push edi
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
test eax, eax
jne 0x2e0134bf
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.2e01440c
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.2e01143c
test eax, eax
jge 0x2e0134e9
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x41c], esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x2e013512
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.2e01440c
add esp, 0xc
push esi
call fcn.2e014074
push eax
push 0x2e002478
push 1
call fcn.2e013435
lea eax, [ebp - 0x414]
push eax
mov eax, dword [ebp - 0x41c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x418]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x2e00244c
push 1
call fcn.2e013435
mov eax, dword [0x2e022058]
add esp, 0x2c
sub eax, esi
pop edi
je 0x2e013586
dec eax
je 0x2e01357f
dec eax
je 0x2e013578
dec eax
jne 0x2e01358b
mov ebx, 0x2e002444
jmp 0x2e01358b
mov ebx, 0x2e00243c
jmp 0x2e01358b
mov ebx, 0x2e002430
jmp 0x2e01358b
mov ebx, 0x2e002428
push ebx
push 0x2e00240c
push 1
call fcn.2e013435
add esp, 0xc
xor eax, eax
jmp 0x2e0135a2
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.2e0142db
leave
ret
Function at 0x2e013dd1
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10018
call fcn.2e014628
mov eax, dword [0x2e022064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10010], eax
mov eax, dword [ebp + 0x10]
push esi
push edi
mov dword [ebp - 0x10014], eax
mov eax, dword [ebp + 0x14]
xor edi, edi
mov dword [ebp - 0x10018], eax
mov dword [ebp - 0x10008], edi
mov dword [ebp - 0x1000c], edi
call fcn.2e013d37
mov esi, eax
cmp esi, edi
jl 0x2e013ef0
push ebx
lea eax, [ebp - 0x10008]
push eax
push edi
push edi
push dword [ebp + 0xc]
push dword [0x2e02335c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 0x80070000
jmp 0x2e013ea5
push 0
lea eax, [ebp - 0x1000c]
push eax
push 0x10000
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x2e013e81
call edi
mov esi, eax
test esi, esi
jle 0x2e013e7f
and esi, 0xffff
or esi, ebx
test esi, esi
jl 0x2e013eef
xor esi, esi
cmp dword [ebp - 0x1000c], esi
jbe 0x2e013ebf
push esi
push dword [ebp - 0x1000c]
lea eax, [ebp - 0x10004]
push eax
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x2e013e48
call edi
mov esi, eax
test esi, esi
jle 0x2e013ebb
and esi, 0xffff
or esi, ebx
test esi, esi
jge 0x2e013e48
jmp 0x2e013eef
push 0
push dword [ebp - 0x10018]
push dword [ebp - 0x10014]
push 2
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x2e013eef
call edi
mov esi, eax
test esi, esi
jle 0x2e013eef
and esi, 0xffff
or esi, ebx
pop ebx
cmp dword [ebp - 0x10008], 0
je 0x2e013f05
push dword [ebp - 0x10008]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.2e0142db
leave
ret 0x10
Function at 0x2e0142db
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x2e022064]
jne 0x2e0168f9
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x2e023900], eax
mov dword [0x2e0238fc], ecx
mov dword [0x2e0238f8], edx
mov dword [0x2e0238f4], ebx
mov dword [0x2e0238f0], esi
mov dword [0x2e0238ec], edi
mov word [0x2e023918], ss
mov word [0x2e02390c], cs
mov word [0x2e0238e8], ds
mov word [0x2e0238e4], es
mov word [0x2e0238e0], fs
mov word [0x2e0238dc], gs
pushfd
pop dword [0x2e023910]
mov eax, dword [ebp]
mov dword [0x2e023904], eax
mov eax, dword [ebp + 4]
mov dword [0x2e023908], eax
lea eax, [ebp + 8]
mov dword [0x2e023914], eax
mov eax, dword [ebp - 0x320]
mov dword [0x2e023850], 0x10001
mov eax, dword [0x2e023908]
mov dword [0x2e023804], eax
mov dword [0x2e0237f8], 0xc0000409
mov dword [0x2e0237fc], 1
mov eax, dword [0x2e022064]
mov dword [ebp - 0x328], eax
mov eax, dword [0x2e022068]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x2e023848], eax
push 1
call fcn.2e01c6b4
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x2e002c04
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x2e023848], 0
jne 0x2e0169e5
push 1
call fcn.2e01c6b4
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x2e01b5a9
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.2e016120
and dword [ebp - 4], 0
cmp dword [0x2e023cb8], 0
mov ebx, eax
jne 0x2e01b65a
push 0x2e002d90
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x2e01b70b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2e002d84
push edi
call esi
test eax, eax
je 0x2e01b70b
push eax
call fcn.2e0160ae
mov dword [esp], 0x2e002d74
push edi
mov dword [0x2e023cb8], eax
call esi
push eax
call fcn.2e0160ae
mov dword [esp], 0x2e002d60
push edi
mov dword [0x2e023cbc], eax
call esi
push eax
call fcn.2e0160ae
mov dword [esp], 0x2e002d44
push edi
mov dword [0x2e023cc0], eax
call esi
push eax
call fcn.2e0160ae
pop ecx
mov dword [0x2e023cc8], eax
test eax, eax
je 0x2e01b65a
push 0x2e002d2c
push edi
call esi
push eax
call fcn.2e0160ae
pop ecx
mov dword [0x2e023cc4], eax
mov eax, dword [0x2e023cc4]
cmp eax, ebx
je 0x2e01b6b2
cmp dword [0x2e023cc8], ebx
je 0x2e01b6b2
push eax
call fcn.2e016129
push dword [0x2e023cc8]
mov esi, eax
call fcn.2e016129
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x2e01b6b2
test edi, edi
je 0x2e01b6b2
call esi
test eax, eax
je 0x2e01b6a9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x2e01b6a9
test byte [ebp - 0xc], 1
jne 0x2e01b6b2
or dword [ebp + 0x10], 0x200000
jmp 0x2e01b6eb
mov eax, dword [0x2e023cbc]
cmp eax, ebx
je 0x2e01b6eb
push eax
call fcn.2e016129
pop ecx
test eax, eax
je 0x2e01b6eb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x2e01b6eb
mov eax, dword [0x2e023cc0]
cmp eax, ebx
je 0x2e01b6eb
push eax
call fcn.2e016129
pop ecx
test eax, eax
je 0x2e01b6eb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x2e023cb8]
call fcn.2e016129
pop ecx
test eax, eax
je 0x2e01b70b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x2e01b70d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
mov eax, dword [0x467900]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0x110], eax
push edi
mov al, 1
mov byte [esi + 0x20], al
mov byte [esi + 0x22], al
mov byte [esi + 0x21], bl
mov dword [esi + 0x10], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 8], ebx
mov eax, dword [0x468d84]
push ebx
xor edi, edi
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esi + 0x20c]
cmp eax, ebx
je 0x401ab8
mov ecx, dword [esi + 0xc8]
cmp ecx, ebx
je 0x401ab8
cmp dword [ecx], 0x6468544d
je 0x401a99
mov ecx, dword [ecx + 8]
mov dword [esp + 0xc], ecx
jmp 0x401ab8
push ebx
push 0x466098
push 0x466078
push ebx
push eax
call fcn.004400d3
mov edx, dword [eax + 0x14]
add esp, 0x14
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [esi + 0x20c], ebx
je 0x401ad5
mov eax, edi
inc edi
cmp eax, 0xa
jge 0x401ad5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401ab8
mov dword [esp + 0xc], edi
mov byte [esp + 0x10], bl
xor eax, eax
mov ecx, 0x3f
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0xc]
push ecx
stosw word es:[edi], ax
lea edx, [esp + 0x14]
push str.Sound_Thread_took____d_seconds_to_shutdown__n
push edx
stosb byte es:[edi], al
call fcn.0043fc99
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push ebx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov ecx, dword [esp + 0x114]
xor eax, eax
call fcn.0043f599
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404130
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x453a96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x34]
mov ecx, edi
mov dword [esp + 0xc], esi
mov dword [esi], vtable.CBaseWindow.0
call fcn.004028d0
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
xor ebx, ebx
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
lea edi, [esi + 0x44]
mov ecx, edi
mov dword [esp + 0x18], ebx
mov dword [esi + 0x40], vtable.CPmwEmbeddedResourceHandler.0
call fcn.00402800
mov dword [edi + 4], eax
mov byte [eax + 0x15], 1
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
lea ecx, [esi + 0x68]
mov byte [esp + 0x18], 1
call fcn.0040bab0
mov eax, 1
mov ecx, 4
mov byte [esi + 0x20], bl
mov dword [0x468d88], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov byte [esi + 0x1f], bl
mov dword [esi + 0xd0], ebx
mov byte [esi + 0x1d], bl
mov dword [esi + 0xd4], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x1e], bl
mov byte [esi + 0x23], bl
mov dword [esi + 0xc4], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0xe0], ebx
mov dword [esi + 0x30], ebx
mov word [esi + 0x60], bx
mov dword [esi + 0x64], ebx
mov dword [esi + 0xb0], ebx
mov dword [esi + 0xb4], eax
mov dword [esi + 0xc0], eax
mov byte [esi + 0x1c], bl
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0x20c], ebx
mov dword [esi + 0xdc], ecx
mov dword [esi + 0xcc], eax
mov dword [esi + 0x1e8], ecx
mov dword [esi + 0x1f0], ebx
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1f8], ebx
mov dword [esi + 0x1ec], ebx
mov dword [esi + 0xd8], ebx
mov dword [esi + 0xb8], ebx
mov dword [esi + 0xbc], ebx
mov byte [esi + 0x21], al
mov byte [esi + 0x22], bl
mov dword [esi + 0x24], ebx
mov dword [esi + 0x214], ebx
mov eax, dword [0x468d7c]
push eax
mov ecx, esi
call fcn.004016a0
xor eax, eax
lea edi, [esi + 0xe4]
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x10]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x407140
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x453b4c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x2c]
push edi
push ebx
mov esi, ecx
push ebp
mov dword [esp + 0x1c], esi
call fcn.004042e0
xor eax, eax
mov dword [esi], vtable.CPMidi.0
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], 0x64
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], eax
mov dword [esp + 0x1c], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], eax
mov dword [esi + 0x70], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
push str.Wait_For_Buffer_Return
push eax
push eax
push eax
mov byte [esp + 0x2c], 3
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xa0], eax
mov dword [esi + 0xa4], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push edi
push ebx
push ebp
mov ecx, esi
mov dword [esi + 0x14], eax
call fcn.00406ec0
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x409aa0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc8]
test eax, eax
je 0x409acc
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x409acc
push eax
call fcn.0043fbb5
add esp, 4
mov dword [esi + 0xc8], 0
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [esi + 0xe4]
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
test ebx, ebx
je 0x409b5d
cmp ebx, 0xffffffff
je 0x409b5d
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0043f0db
add esp, 4
test eax, eax
mov dword [esi + 0xc8], eax
je 0x409b55
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esi + 0xc8]
push edx
mov ecx, esi
call fcn.004019f0
cmp edi, dword [esp + 0xc]
mov dword [esi + 0xdc], eax
mov eax, 1
mov dword [esi + 0xd4], eax
jne 0x409b55
mov dword [esi + 0x10], eax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x409b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0x454644
push 0x3f1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
xor ecx, ecx
test edx, edx
setne cl
mov dword [esi + 0xb4], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1f4], edx
mov ecx, dword [eax + 0xc]
mov dword [esi + 0x1e8], ecx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x1ec], edx
mov ecx, dword [eax + 0x20]
mov dword [esi + 0xc0], ecx
mov edx, dword [eax + 0x1c]
mov dword [esi + 0xc], edx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x409be0
mov dword [esi + 0x1ec], 0
mov eax, dword [esi + 0x1f4]
push eax
mov ecx, esi
call fcn.00401660
pop esi
ret
Function at 0x409bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x467900]
push ebx
mov dword [esp + 0x224], eax
push esi
push edi
mov dword [esp + 0x1c], ecx
xor eax, eax
xor ebx, ebx
mov byte [esp + 0x120], bl
mov ecx, 0x40
lea edi, [esp + 0x121]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [esp + 0x20], bl
mov ecx, 0x1f
lea edi, [esp + 0x21]
rep stosd dword es:[edi], eax
mov ecx, dword [0x468d7c]
stosw word es:[edi], ax
push 0x104
stosb byte es:[edi], al
lea eax, [esp + 0x124]
push eax
push 0x6e
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
call dword [sym.imp.USER32.dll_LoadStringA]
mov byte [esp + 0xa0], bl
xor eax, eax
mov ecx, 0x1f
lea edi, [esp + 0xa1]
rep stosd dword es:[edi], eax
push 0x80
lea edx, [esp + 0xa4]
stosw word es:[edi], ax
push edx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0xa0]
push 0x5c
push eax
call fcn.004409e8
add esp, 8
cmp eax, ebx
je 0x409d1e
lea ecx, [esp + 0x120]
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x409cb1
sub ecx, esi
mov esi, ecx
mov ecx, eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x409cc1
sub ecx, edi
lea ecx, [ecx + esi + 2]
cmp ecx, 0x104
jae 0x409d1e
lea edi, [esp + 0x120]
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x409ce0
mov dx, word [0x45498c]
inc eax
mov word [edi], dx
mov edx, eax
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x409cf5
lea edi, [esp + 0x120]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x409d06
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
push 0x80
lea eax, [esp + 0x24]
push eax
add esi, 0xc4
mov dword [esi], 1
mov ecx, dword [0x468d7c]
push 0x7d
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
lea edx, [esp + 0x18]
push edx
push 0x20019
push ebx
lea eax, [esp + 0x12c]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x409d9d
mov ecx, 4
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x14]
push ecx
push esi
lea edx, [esp + 0x18]
push edx
push ebx
lea ecx, [esp + 0x30]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, dword [esi]
call fcn.0043f599
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409ea0
Capabilities:
Create thread
Terminate thread

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x20c]
xor ebx, ebx
cmp ecx, ebx
mov byte [esi + 0x1c], 1
je 0x409ebd
mov eax, dword [ecx]
push ebx
call dword [eax + 8]
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetSystemMetrics]
push edi
push ebx
call ebp
push 1
mov edi, eax
call ebp
mov ecx, dword [0x468d88]
mov dword [ecx + 0x1fc], ebx
mov edx, dword [0x468d88]
mov dword [edx + 0x200], ebx
mov ecx, dword [0x468d88]
mov dword [ecx + 0x204], edi
mov edx, dword [0x468d88]
mov dword [edx + 0x208], eax
cmp dword [0x468d84], ebx
jne 0x409f32
mov ecx, dword [0x468d7c]
push ebx
push ecx
push ebx
push ebx
push eax
push edi
push ebx
push ebx
push 0x80000008
push ebx
push 0x468c48
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ecx, esi
mov dword [0x468d84], eax
call fcn.00402110
cmp byte [esi + 0x1d], bl
je 0x409f3e
mov ecx, esi
call fcn.00409aa0
mov edx, dword [0x468d84]
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov byte [0x468d90], 1
mov dword [esi + 0xcc], eax
mov dword [esi + 0x10], eax
cmp dword [esi + 0xc8], ebx
je 0x409fe2
cmp dword [esi + 0xd0], ebx
jne 0x409fe2
mov eax, dword [esi + 0xb8]
cmp eax, ebx
mov dword [esp + 0x10], ebx
je 0x409faa
push 0x9fbf1
push eax
call edi
mov ecx, dword [esi + 0xb8]
push ecx
call ebp
mov dword [esi + 0xb8], ebx
mov eax, dword [esi + 0xdc]
cmp eax, 4
jne 0x409fc3
lea edx, [esp + 0x10]
push edx
push ebx
push esi
push 0x407480
jmp 0x409fd4
cmp eax, 5
jne 0x409fe2
lea eax, [esp + 0x10]
push eax
push ebx
push esi
push 0x407590
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xb8], eax
mov eax, dword [esi + 0xbc]
cmp eax, ebx
mov dword [esp + 0x14], ebx
je 0x40a007
push 0x9fbf1
push eax
call edi
mov ecx, dword [esi + 0xbc]
push ecx
call ebp
mov dword [esi + 0xbc], ebx
call fcn.004073f0
test eax, eax
pop edi
pop ebp
je 0x40a032
lea edx, [esp + 0xc]
push edx
push ebx
push esi
push 0x4077b0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xbc], eax
pop esi
pop ebx
add esp, 8
ret
lea eax, [esp + 0xc]
push eax
push ebx
push esi
push 0x407f10
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xbc], eax
pop esi
pop ebx
add esp, 8
ret