joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4378b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x479b68
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4378e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4379fc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4378fd
mov eax, 0xffffffc7
jmp 0x4379fe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43790e
cmp dword [esi + 8], eax
jne 0x4378fd
cmp dword [esi + 8], eax
jne 0x437927
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x437927
mov eax, 0xffffffc7
jmp 0x4379fe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43793b
push eax
mov ecx, ebx
call fcn.004370e0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00403510
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43796c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00403530
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00436850
test eax, eax
mov dword [esp + 0x38], eax
je 0x43799f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc1cdb8
call fcn.00403710
mov eax, dword [esp + 0x38]
jmp 0x4379fe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00437710
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4379e3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00437730
mov esi, eax
test esi, esi
jne 0x437a13
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00437710
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4379b5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc1cdb8
call fcn.00403710
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0xc1cdb8
call fcn.00403710
mov eax, esi
jmp 0x4379fe

Function at 0x43ab30
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x43ab90
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x43ab90
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x43ab90
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x43ab90
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x43abd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x440d30
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47a198
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0047039f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004406d0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004702cd
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0046cab7
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0046cab7
push 1
push 0
push 0
mov ecx, esi
call fcn.0046ca5f
push 1
push 0
push 1
mov ecx, esi
call fcn.0046ca5f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00470411
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x440eb0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47a1b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0047039f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004406d0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004702cd
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x440f74
cmp dword [esp + 0x40], 1
jne 0x440f72
cmp ecx, eax
jge 0x440f74
mov eax, ecx
cmp eax, 0xc8
jge 0x440f80
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00440d30
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00470411
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4416f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47a223
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046aed7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00470647
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00471cdc
test eax, eax
je 0x44180c
mov ecx, dword [esp + 0x3c]
call fcn.00470674
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4417d0
push edi
mov ecx, esi
call fcn.0046dc36
mov ecx, esi
call fcn.00441970
cmp dword [esp + 0x38], 1
jne 0x441805
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046dda0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444230
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444263
push esi
call fcn.00447340
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44425c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4442e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4442d2
mov eax, dword [esi + 8]
test eax, eax
je 0x444287
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4442ce
cmp eax, 2
je 0x4442d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44427a
cmp eax, 3
je 0x4442ad
cmp eax, 1
jne 0x44427a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44427a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44427a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444310
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4442f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444310
add esp, 4
pop esi
ret

Function at 0x46bccd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46bd05
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00469d81
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00469d59
jmp 0x46bd11
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46d3bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46d401
call fcn.004737a8
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46d401
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46d3f8
xor eax, eax
jmp 0x46d409
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046d40f
pop edi
pop esi
pop ebx
ret 4

Function at 0x473cd8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x473d06
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x473d24
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00473c3e
jmp 0x473d24
mov eax, dword [esi + 0x14]
test eax, eax
je 0x473d24
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00473c3e
test edi, edi
mov eax, edi
jne 0x473d0e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x103159f
Capabilities:
Print debug messages
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push dword [ebp + 8]
xor ebx, ebx
inc ebx
call fcn.01031517
mov esi, eax
test esi, esi
jne 0x10315bb
xor ebx, ebx
jmp 0x1031609
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
jne 0x10315c7
xor ebx, ebx
jmp 0x1031608
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x1031608
cmp eax, dword [esi + 0xc]
jg 0x1031608
mov eax, dword [esi + 0x10]
dec eax
je 0x1031601
dec eax
je 0x1031601
sub eax, 6
jne 0x1031608
cmp dword [esi + 0x14], 0
je 0x1031608
push 0
lea eax, [ebp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
push edi
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1031608
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
xor eax, eax
test ebx, ebx
setne al
pop esi
pop ebx
dec eax
pop ebp
ret 0xc

Function at 0x4012b6
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403eb4], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403eb0], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x401191
mov dword [ebp - 0x24], str.resiliency
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403eb0]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.abasement
push str.resiliency
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403eb8], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401380
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401367
mov eax, dword [0x403eb4]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10
Function at 0x4010b0
Capabilities:
Set registry value

Disassembly:
push ebp
push esi
mov esi, dword [ecx + 4]
xor ebp, ebp
test esi, esi
je 0x4010fe
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x401105
mov edx, dword [esp + 0x14]
test edx, edx
je 0x401105
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4010d2
sub eax, edi
add eax, 1
push eax
push edx
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
jne 0x401105
pop ebx
pop esi
mov eax, 1
pop ebp
ret 8
pop esi
mov eax, ebp
pop ebp
ret 8
pop ebx
pop esi
mov eax, ebp
pop ebp
ret 8

Function at 0x4012b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x40134b
push ebx
mov ebx, dword [esp + 0x18]
cmp dword [ebx], esi
jle 0x401345
mov eax, dword [esp + 0x10]
push ebp
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
je 0x40133e
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x401337
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401337
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x401337
mov ecx, dword [ebx]
cmp esi, ecx
jge 0x401323
push esi
push eax
push edi
call fcn.004074b0
add esp, 0xc
pop ebp
pop ebx
mov byte [esi + edi], 0
pop edi
mov eax, 1
pop esi
ret
push ecx
push eax
push edi
call fcn.004074b0
mov ecx, dword [ebx]
mov byte [ecx + edi - 1], 0
add esp, 0xc
mov dword [ebx], esi
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret
pop ebx
pop edi
mov eax, esi
pop esi
ret
pop edi
mov eax, esi
pop esi
ret

Function at 0x401370
Capabilities:
Move file

Disassembly:
sub esp, 0x20
mov ecx, dword [esp + 0x28]
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp], eax
mov word [esp + 0x1c], ax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp], eax
mov dword [esp + 0x16], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 0x12], eax
mov eax, dword [esp + 0x24]
lea edx, [esp]
push edx
mov dword [esp + 8], 4
mov word [esp + 0x14], 0x414
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
mov eax, 1
add esp, 0x20
ret
Function at 0x4014e0
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 0x4014f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401534
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401530
lea ebx, [ebx]
cmp esi, eax
jae 0x401534
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401520
cmp esi, eax
jb 0x40153a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x401960
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x458
mov eax, dword [0x41c060]
xor eax, esp
mov dword [esp + 0x454], eax
push ebp
push esi
mov esi, dword [esp + 0x464]
push edi
mov edi, dword [esp + 0x46c]
push 0x3ff
xor ebp, ebp
lea eax, [esp + 0x65]
push ebp
push eax
mov byte [esp + 0x6c], 0
call fcn.004075f0
add esp, 0xc
test esi, esi
je 0x401a75
cmp byte [esi], 0
je 0x401a75
push 0x44
lea ecx, [esp + 0x20]
push ebp
push ecx
call fcn.004075f0
xor eax, eax
push esi
lea edx, [esp + 0x70]
push 0x400
push edx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call fcn.004084e2
push 0x417364
lea eax, [esp + 0x7c]
push 0x400
push eax
call fcn.00408547
push edi
lea ecx, [esp + 0x88]
push 0x400
push ecx
call fcn.00408547
add esp, 0x30
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push ebp
push 1
push ebp
push ebp
lea ecx, [esp + 0x80]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401a3a
mov ebp, 1
cmp byte [esp + 0x470], 0
je 0x401a51
mov edx, dword [esp + 0xc]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401a6a
push eax
call esi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401a75
push eax
call esi
mov ecx, dword [esp + 0x460]
pop edi
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.004075d4
add esp, 0x458
ret
Function at 0x402680
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0xffffffffffffffff
push 0x416668
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c060]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push str.ROOTCIMV2
lea ecx, [esp + 0x18]
call fcn.00401710
xor ebx, ebx
push 2
push ebx
mov dword [esp + 0x28], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov eax, dword [0x41d520]
cmp eax, ebx
je 0x4026d3
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0x41d520
push 0x417354
push 1
push ebx
push 0x418154
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
cmp edi, ebx
jge 0x4026f9
mov dword [0x41d520], ebx
jmp 0x402701
cmp dword [0x41d520], ebx
jne 0x40270b
push 0x80004003
call fcn.00412db0
mov eax, dword [0x41d524]
cmp eax, ebx
mov esi, dword [0x41d520]
je 0x402722
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
mov dword [0x41d524], ebx
je 0x402735
mov eax, dword [ebp]
jmp 0x402737
xor eax, eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
push 0x41d524
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push esi
call edx
push ebx
push ebx
push 3
push 3
push ebx
push ebx
mov esi, eax
mov eax, dword [0x41d524]
push 0xa
push eax
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp edi, ebx
jl 0x4027c9
cmp esi, ebx
jl 0x4027c9
cmp eax, ebx
jl 0x4027c9
call fcn.00402580
mov esi, eax
mov eax, dword [0x41d524]
cmp eax, ebx
je 0x40278d
mov dword [0x41d524], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x41d520]
cmp eax, ebx
je 0x4027a4
mov dword [0x41d520], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esp + 0x14]
call fcn.00402060
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [0x41d524]
cmp eax, ebx
je 0x4027e0
mov dword [0x41d524], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [0x41d520]
cmp eax, ebx
je 0x4027f7
mov dword [0x41d520], ebx
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp ebp, ebx
mov dword [esp + 0x20], 0xffffffff
je 0x40283e
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40283e
mov eax, dword [ebp]
cmp eax, ebx
je 0x402825
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 4]
cmp eax, ebx
je 0x402835
push eax
call fcn.004075e3
add esp, 4
push ebp
call fcn.00407457
add esp, 4
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x404310
Capabilities:
Access peb ldr_data
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x4167b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c060]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x41d6d4]
mov edx, dword [eax + 0xc]
mov ecx, 0x41d6d4
xor ebx, ebx
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x14], ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push ebx
push ebx
mov dword [esp + 0x30], ebx
call edi
mov esi, eax
add esi, 1
push esi
call fcn.004075e8
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
je 0x40445a
push eax
push esi
call edi
mov eax, dword [esp + 0x18]
mov esi, eax
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404384
sub eax, edx
mov edi, eax
je 0x404448
test esi, esi
jne 0x40439f
xor eax, eax
jmp 0x4043af
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4043a4
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.00401f50
push 1
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00401e00
mov eax, dword [eax]
push 0x417710
push eax
call fcn.00408364
add esp, 8
test eax, eax
mov eax, dword [esp + 0x1c]
setne bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4043ff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x404413
push 1
push 0x417710
lea ecx, [esp + 0x1c]
call fcn.00401fe0
mov ebp, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40442c
push ebp
call fcn.00404080
add esp, 4
lea esi, [esi + edi + 1]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x404435
sub eax, edx
mov edi, eax
jne 0x404397
mov ecx, dword [esp + 0x18]
push ecx
mov ebx, 1
call fcn.004075e3
add esp, 4
lea eax, [ebp - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40447e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret