joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403560
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x401266
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x401200
mov edx, dword [ebp + 8]
xor esi, esi
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x44], esi
call dword [sym.imp.MSVBVM60.DLL___vbaStrCopy]
push 3
lea eax, [ebp - 0x30]
push 0x40231c
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaAryConstruct2]
call fcn.004031c0
mov ecx, dword [ebp - 0x18]
or ebx, 0xffffffff
push ecx
push esi
mov word [0x40506c], si
mov word [0x40506e], bx
mov dword [0x405070], esi
mov word [0x405074], si
mov dword [0x405078], ebx
mov word [0x40507c], si
call dword [sym.imp.MSVBVM60.DLL_rtcBstrFromAnsi]
mov edi, dword [sym.imp.MSVBVM60.DLL___vbaStrMove]
mov edx, eax
lea ecx, [ebp - 0x40]
call edi
push eax
call dword [sym.imp.MSVBVM60.DLL___vbaStrCat]
mov edx, eax
mov ecx, 0x405024
call edi
lea ecx, [ebp - 0x40]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
mov edx, dword [0x405024]
push edx
call dword [sym.imp.MSVBVM60.DLL_VarPtr]
push 0x403380
mov dword [0x405028], eax
mov dword [0x405030], eax
call fcn.00403220
mov edi, dword [sym.imp.KERNEL32.DLL_CreateEventW]
push esi
push esi
push 1
push esi
mov dword [0x405034], eax
mov dword [0x405038], esi
mov dword [0x40503c], esi
call edi
push esi
push esi
push 1
push esi
mov dword [0x405060], eax
call edi
push esi
push esi
push 1
push esi
mov dword [0x405068], eax
call edi
mov ecx, dword [0x405060]
mov dword [0x405064], eax
cmp ecx, esi
je 0x4036ed
cmp dword [0x405068], esi
je 0x4036ed
cmp eax, esi
je 0x4036ed
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], esi
push eax
push 4
push esi
push 0x4034d0
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp eax, esi
mov dword [0x40502c], eax
je 0x4036f2
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov ecx, dword [ebp - 0x24]
mov edx, dword [0x40502c]
push ebx
push esi
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [0x405064]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x24]
push edx
push 2
call dword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
cmp eax, 1
jne 0x4036ed
push 4
mov word [0x40506c], bx
mov word [0x40506e], si
call fcn.00403230
mov eax, dword [0x40502c]
cmp word [0x40506c], si
jne 0x40371e
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push eax
call esi
mov eax, dword [0x405060]
push eax
call esi
mov ecx, dword [0x405068]
push ecx
call esi
mov edx, dword [0x405064]
push edx
call esi
mov eax, dword [0x40506c]
push 0x403761
not eax
mov word [0x40506e], ax
mov ecx, dword [0x40506c]
mov dword [ebp - 0x3c], ecx
jmp 0x403745
lea ecx, [ebp - 0x18]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x44]
lea edx, [ebp - 0x30]
push eax
push 0
mov dword [ebp - 0x44], edx
call dword [sym.imp.MSVBVM60.DLL___vbaAryDestruct]
ret
Function at 0x4039f0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
xor esi, esi
mov dword [esp + 0xc], eax
mov ecx, 5
mov dword [esp + 8], esi
mov dword [esp + 4], esi
mov word [esp + 0x10], ax
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I4]
lea ecx, [esp + 4]
mov byte [esp + 0x11], al
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
mov ecx, 2
call dword [sym.imp.MSVBVM60.DLL___vbaUI1I2]
lea edx, [esp + 0x30]
push eax
push edx
call dword [sym.imp.ADVAPI32.DLL_AllocateAndInitializeSid]
test eax, eax
je 0x403a74
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push esi
call dword [sym.imp.ADVAPI32.DLL_CheckTokenMembership]
test eax, eax
je 0x403a69
mov ecx, dword [esp + 8]
xor edx, edx
cmp ecx, esi
setne dl
neg edx
mov esi, edx
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.DLL_FreeSid]
mov ax, si
pop esi
add esp, 0x10
ret
Function at 0x4020d0
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 0x4020e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4020fd
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 0x40211e
cmp esi, eax
jae 0x4020f7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402110
cmp esi, eax
jae 0x4020f7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4072d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4591e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0043c221
xor ecx, ecx
lea ebp, [esi + 0x10]
mov dword [esi], method.CDC.virtual_0
mov dword [esp + 0x2c], ecx
mov dword [ebp + 4], ecx
mov dword [ebp], vtable.CBitmap.0
mov edi, dword [esp + 0x34]
xor eax, eax
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], ecx
cmp dword [edi + 0xc], ecx
sete al
mov byte [esp + 0x2c], 1
lea ebx, [esi + 0x20]
mov dword [esi + 0x30], eax
mov eax, dword [esp + 0x38]
cmp eax, ecx
jne 0x40733f
mov edx, dword [edi]
push ebx
mov ecx, edi
call dword [edx + 0x50]
jmp 0x407357
mov edx, dword [eax]
mov ecx, ebx
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [esi + 0x30]
test eax, eax
je 0x407436
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, esi
call fcn.0043c8ff
mov ecx, dword [edi + 8]
push 2
push ebx
push ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx]
sub eax, ecx
mov ecx, dword [ebx + 8]
sub ecx, edx
mov edx, dword [edi + 4]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov ecx, ebp
call fcn.0043cbfc
test ebp, ebp
je 0x4073ab
mov ebp, dword [ebp + 4]
mov eax, dword [esi + 4]
push ebp
push eax
call fcn.0043ccb7
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 8]
push ecx
call dword [sym.imp.GDI32.dll_GetMapMode]
push eax
mov ecx, esi
call fcn.0043be05
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetWindowExtEx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push ecx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call dword [edx + 0x48]
mov edx, dword [edi + 8]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetViewportExtEx]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
push ecx
push eax
lea eax, [esp + 0x24]
push eax
mov ecx, esi
call dword [edx + 0x40]
mov ecx, dword [edi + 8]
push 2
push ebx
push ecx
call dword [sym.imp.GDI32.dll_DPtoLP]
mov edx, dword [esi + 0x24]
mov eax, dword [ebx]
push edx
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, esi
call fcn.0043c3ee
jmp 0x407448
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
push 1
mov ecx, edi
call fcn.0043bd1e
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push ebx
mov ecx, esi
call fcn.004481d5
mov ecx, dword [esp + 0x24]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x407780
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SOFTWAREBubble_Breaker
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4077c5
mov edx, dword [esp + 8]
push 4
lea ecx, [esp + 0x10]
push ecx
push 4
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 8

Function at 0x4077d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
lea eax, [esp]
push eax
push str.SOFTWAREBubble_Breaker
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x407833
mov eax, 4
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 8]
push edx
mov edx, dword [esp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0x10
ret 4
Function at 0x4078c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x80
movzx eax, word [esp + 0x84]
push ebx
push esi
push edi
push str.WAVE
mov esi, ecx
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edx, dword [esi + 8]
mov edi, eax
push edi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov eax, dword [esi + 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor esi, esi
push 2
lea ecx, [esp + 0x48]
push ecx
push esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], 0x204d454d
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], eax
mov dword [esp + 0x80], esi
mov dword [esp + 0x84], esi
mov dword [esp + 0x88], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x8c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x94], esi
call dword [sym.imp.WINMM.dll_mmioOpenA]
mov edi, eax
cmp edi, esi
je 0x4079f1
mov ebx, dword [sym.imp.WINMM.dll_mmioDescend]
push 0x20
push esi
lea edx, [esp + 0x38]
push edx
push edi
mov dword [esp + 0x48], 0x45564157
call ebx
test eax, eax
jne 0x4079f1
push 0x10
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x24]
push ecx
push edi
mov dword [esp + 0x2c], 0x20746d66
call ebx
test eax, eax
jne 0x4079f1
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.WINMM.dll_mmioRead]
test eax, eax
je 0x4079f1
push esi
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [sym.imp.WINMM.dll_mmioAscend]
test eax, eax
jne 0x4079f1
push 0x10
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x24]
push eax
push edi
mov dword [esp + 0x2c], 0x61746164
call ebx
test eax, eax
je 0x4079ff
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x80
ret 8
mov ebx, dword [esp + 0x20]
push ebp
push ebx
call fcn.004316a5
add esp, 4
push ebx
mov ebp, eax
push ebp
push edi
call dword [sym.imp.WINMM.dll_mmioRead]
mov eax, dword [esp + 0x98]
push esi
push edi
mov dword [eax], ebp
mov dword [eax + 4], ebx
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov dword [eax + 8], ebx
call dword [sym.imp.WINMM.dll_mmioClose]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x80
ret 8
Function at 0x409a6f
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 0x409ac2
call fcn.0044ea38
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x409ac2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x409ab8
xor eax, eax
jmp 0x409bdb
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 0x409af2
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 0x409af2
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x409bd8
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x409b1f
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004095f8
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x409bd8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x409b68
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x409b68
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x409b62
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004095f8
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x409bc8
and dword [ebp + 0xc], 0
jmp 0x409bc8
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x409bc8
push 0xc
call fcn.00431675
mov esi, eax
test esi, esi
pop ecx
je 0x409baa
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 0x409bac
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x409bc3
push dword [ebp - 8]
call fcn.00430697
jmp 0x409bc8
call fcn.004305f4
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x409b2d
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x418633
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.00418920
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4186ce
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 [0x47a8e8]
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 0x4186ce
cmp eax, 1
je 0x4186ef
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 0x4186ce
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41869b
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4186ca
xor eax, eax
inc eax
jmp 0x41870e
cmp edi, eax
jae 0x4186d2
xor eax, eax
jmp 0x41870e
cmp eax, esi
jae 0x4186d9
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 [0x47a8e8]
jmp 0x4186f2
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
Function at 0x419cbd
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x464e88
call fcn.0041ab44
mov edi, 0x94
mov eax, edi
call fcn.00418920
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x47a8e8], ecx
mov eax, dword [esi + 4]
mov dword [0x47a8f4], eax
mov edx, dword [esi + 8]
mov dword [0x47a8f8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x47a8ec], esi
cmp ecx, 2
je 0x419d1d
or esi, 0x8000
mov dword [0x47a8ec], esi
shl eax, 8
add eax, edx
mov dword [0x47a8f0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x419d58
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x419d58
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x419d70
cmp eax, 0x20b
je 0x419d5d
mov dword [ebp - 0x1c], esi
jmp 0x419d84
cmp dword [ecx + 0x84], 0xe
jbe 0x419d58
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x419d7e
cmp dword [ecx + 0x74], 0xe
jbe 0x419d58
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0041c410
pop ecx
test eax, eax
jne 0x419d98
push 0x1c
call fcn.00419c43
pop ecx
call fcn.0041e4f1
test eax, eax
jne 0x419da9
push 0x10
call fcn.00419c43
pop ecx
call fcn.00420cfb
mov dword [ebp - 4], esi
call fcn.0041fe52
test eax, eax
jge 0x419dc2
push 0x1b
call fcn.00419c1e
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x47c1d0], eax
call fcn.00420bd9
mov dword [0x47a8d8], eax
call fcn.00420b37
test eax, eax
jge 0x419de8
push 8
call fcn.00419c1e
pop ecx
call fcn.00420904
test eax, eax
jge 0x419df9
push 9
call fcn.00419c1e
pop ecx
push 1
call fcn.0041a578
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x419e0f
push eax
call fcn.00419c1e
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004208a7
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x419e30
movzx eax, word [ebp - 0x40]
jmp 0x419e33
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.0042be3c
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x419e51
push edi
call fcn.0041a6a5
call fcn.0041a6c7
jmp 0x419e83
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0041ab7f
ret
Function at 0x41a5e2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x464ef8
call fcn.0041ab44
push 8
call fcn.0041c3c5
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x47a928], esi
jne 0x41a616
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x47a924], esi
mov al, byte [ebp + 0x10]
mov byte [0x47a920], al
cmp dword [ebp + 0xc], edi
jne 0x41a660
cmp dword [0x47c1c8], edi
je 0x41a650
mov eax, dword [0x47c1c4]
sub eax, 4
mov dword [0x47c1c4], eax
cmp eax, dword [0x47c1c8]
jb 0x41a650
mov eax, dword [eax]
cmp eax, edi
je 0x41a631
call eax
jmp 0x41a631
push 0x4760a0
mov eax, 0x476098
call fcn.0041a542
pop ecx
push 0x4760ac
mov eax, 0x4760a4
call fcn.0041a542
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41a691
cmp dword [ebp + 0x10], edi
jne 0x41a69f
mov dword [0x47a928], esi
push dword [ebp + 8]
call fcn.0041a500
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41a69e
push 8
call fcn.0041c2f8
pop ecx
ret
call fcn.0041ab7f
ret

Function at 0x41a7d6
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x41a7f3
call fcn.0041bb2a
mov dword [eax], 0x16
xor eax, eax
jmp 0x41a85d
push esi
push 0x8c
push 1
call fcn.0041c0fc
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x41a848
push esi
call fcn.0041e2eb
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x41a826
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x41a741
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x41a85c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004185c2
test ebx, ebx
pop ecx
je 0x41a85a
push ebx
call fcn.0041bb3c
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41d4a8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41d4d6
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41d4dd
cmp ebx, dword [eax + 4]
jae 0x41d4dd
xor eax, eax
jmp 0x41d6cd
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41d4ee
xor eax, eax
inc eax
jmp 0x41d6cc
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41d504
cmp ecx, edx
jae 0x41d649
cmp dword [eax + 4], 0
je 0x41d50d
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41d4f5
cmp dword [ebp + 8], 0
je 0x41d52f
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41d649
cmp eax, esi
jae 0x41d649
mov eax, dword [0x47aa88]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41d554
cmp dword [esi*4 + 0x47aa90], edi
je 0x41d64d
inc esi
cmp esi, eax
jl 0x41d542
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d6c9
cmp dword [ebp - 8], 0x1000000
jne 0x41d6c9
test byte [ebp - 0xc], 0xcc
je 0x41d5d2
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41d6c9
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d6c9
cmp word [eax + 0x18], 0x10b
jne 0x41d6c9
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41d6c9
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41d5d2
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41d5d2
test byte [ecx + 0x27], 0x80
jne 0x41d649
push 1
push 0x47aad0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41d4e6
mov ecx, dword [0x47aa88]
test ecx, ecx
mov edx, ecx
jle 0x41d606
lea eax, [ecx*4 + 0x47aa8c]
cmp dword [eax], edi
je 0x41d606
dec edx
sub eax, 4
test edx, edx
jg 0x41d5fa
test edx, edx
jne 0x41d637
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41d613
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41d62b
lea eax, [edx*4 + 0x47aa90]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41d619
cmp ecx, 0x10
jge 0x41d637
inc ecx
mov dword [0x47aa88], ecx
push 0
push 0x47aad0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41d4e6
xor eax, eax
jmp 0x41d6cc
test esi, esi
jle 0x41d4e6
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x47aad0
call ebx
test eax, eax
jne 0x41d4e6
cmp dword [esi*4 + 0x47aa90], edi
je 0x41d6a3
mov eax, dword [0x47aa88]
lea esi, [eax - 1]
test esi, esi
jl 0x41d691
cmp dword [esi*4 + 0x47aa90], edi
je 0x41d68d
dec esi
jns 0x41d681
test esi, esi
jge 0x41d6a1
cmp eax, 0x10
jge 0x41d69c
inc eax
mov dword [0x47aa88], eax
lea esi, [eax - 1]
jmp 0x41d6a3
je 0x41d6bb
xor ecx, ecx
test esi, esi
jl 0x41d6bb
lea eax, [ecx*4 + 0x47aa90]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41d6a9
push 0
push 0x47aad0
call ebx
jmp 0x41d4e6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret