joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426170
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x426195
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x4261ad
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x4261dc
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x42621e
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x4262f2
sub edx, 0x10000
js 0x4262f2
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x426204
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x426204
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x426275
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x426272
add edx, 8
jne 0x426259
jmp 0x4262e3
add edx, 4
test eax, 0xffff
jne 0x426282
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x4262e3
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x4262b6
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x426204
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x4262f2
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x426204
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x426303
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4267d0
Capabilities:
Get proxy
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings]
mov eax, dword [0x59f30c]
push esi
movups xmmword [ebp - 0x104], xmm0
push 0xc3
movups xmm0, xmmword [0x59f2e4]
mov dword [ebp - 0xcc], eax
mov esi, ecx
lea eax, [ebp - 0xc8]
movups xmmword [ebp - 0xf4], xmm0
push 0
movups xmm0, xmmword [0x59f2f4]
push eax
movups xmmword [ebp - 0xe4], xmm0
movq xmm0, qword [0x59f304]
movq qword [ebp - 0xd4], xmm0
call fcn.00529cc0
add esp, 0xc
lea eax, [ebp - 0x1fc]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x104]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x426925
mov dword [ebp - 0x1f0], eax
lea eax, [ebp - 0x1f4]
push eax
lea eax, [ebp - 0x1f0]
mov dword [ebp - 0x1f4], 4
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x426925
cmp dword [ebp - 0x1f0], eax
je 0x426925
push 0xe8
push eax
lea eax, [ebp - 0x1ec]
mov dword [esi + 0x1c], 1
push eax
call fcn.00529cc0
add esp, 0xc
mov dword [ebp - 0x1f8], 0xe8
lea eax, [ebp - 0x1f8]
push eax
lea eax, [ebp - 0x1ec]
push eax
push 0
push 0
push str.ProxyServer
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x426925
lea eax, [ebp - 0x1ec]
push eax
lea ecx, [esi + 4]
call fcn.004272c0
push dword [ebp - 0x1fc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x1fc]
mov dword [esi + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x429620
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d20a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.005223f7
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4296e0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.00529723
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x5a4ff8
push eax
call fcn.0052a7ba
push edi
push esi
call fcn.0052273f
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 - 0x10]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret 4
Function at 0x42be10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x124
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x134], ecx
push 0
push eax
or edi, 0xffffffff
call fcn.00529cc0
add esp, 0xc
mov dword [ebp - 0x130], pe_nt_image_headers32
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, edi
je 0x42beb1
lea eax, [ebp - 0x130]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 0x134]
call ebx
test eax, eax
je 0x42bea4
lea eax, [ebp - 0x130]
mov dword [ebp - 0x130], pe_nt_image_headers32
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x42be73
jmp 0x42beaa
mov edi, dword [ebp - 0x128]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00526b2d
mov esp, ebp
pop ebp
ret

Function at 0x42bed0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x24], 0
push eax
push str.SeDebugPrivilege
push 0
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x42bf0e
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x42bf2d
lea eax, [ebp - 0x24]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ecx, dword [ebp - 0x24]
jmp 0x42bf32
mov ecx, esi
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x10]
push 0
push 0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
push 0
push ecx
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test esi, esi
jne 0x42bf6c
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
neg eax
pop esi
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x42bf90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5a22c8
push 0x52a660
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5afb3c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ebx, ecx
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
xor edi, edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x20]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42c027
push ecx
mov ecx, dword [ebp - 0x20]
call fcn.0042bed0
add esp, 4
push ebx
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x24], esi
test esi, esi
je 0x42c027
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, 1
test eax, eax
cmovne edi, ecx
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0xfffffffe
call fcn.0042c057
mov eax, edi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret

Function at 0x42c200
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d690
mov eax, dword fs:[0]
push eax
sub esp, 0x408
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x414], 0
lea eax, [ecx + 4]
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x42c24c
mov eax, dword [eax]
cmp dword [ebp + 0x38], 0x10
lea edx, [ebp + 0x24]
lea edi, [ebp + 0xc]
cmovae edx, dword [ebp + 0x24]
cmp dword [ebp + 0x20], 0x10
cmovae edi, dword [ebp + 0xc]
add ecx, 0x1c
cmp dword [ecx + 0x14], 0x10
jb 0x42c26d
mov ecx, dword [ecx]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push edx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp byte [ebp - 0x410], 0
jne 0x42c2a1
xor ecx, ecx
jmp 0x42c2b9
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42c2b0
sub ecx, edx
push ecx
lea eax, [ebp - 0x410]
mov ecx, esi
push eax
call fcn.004276d0
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x42c2dd
inc eax
lea ecx, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call fcn.004279e0
mov ecx, dword [ebp + 0x38]
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], 0
mov byte [ebp + 0xc], 0
cmp ecx, 0x10
jb 0x42c304
inc ecx
push ecx
push dword [ebp + 0x24]
lea ecx, [ebp + 0x24]
call fcn.004279e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret 0x34
Function at 0x42c7a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d750
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.0042cf70
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42c815
test al, 0x10
jne 0x42c815
mov esi, 1
jmp 0x42c817
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x42c82c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00431250
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 0x10
jb 0x42c855
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004279e0
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.00526b2d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42c8a6
test al, 0x10
je 0x42c8a6
mov esi, 1
jmp 0x42c8a8
xor esi, esi
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x42c8bd
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.004279e0
mov eax, esi
pop esi
pop ebp
ret
Function at 0x42cc40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d7fb
mov eax, dword fs:[0]
push eax
sub esp, 0x55c
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], 1
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 8]
mov dword [ebp - 0x414], 0xf
push eax
lea ecx, [ebp - 0x428]
mov dword [ebp - 0x418], ebx
mov byte [ebp - 0x428], bl
call fcn.00427790
push 1
push 0x59f478
lea ecx, [ebp - 0x428]
mov byte [ebp - 4], 2
call fcn.004283e0
cmp dword [ebp - 0x414], 0x10
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
push str._s.
lea eax, [ebp - 0x410]
push 0x400
push eax
call fcn.0042b990
add esp, 0x10
lea eax, [ebp - 0x568]
push eax
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x42cd78
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [ebp - 0x568], 0x10
je 0x42cd5c
lea eax, [ebp - 0x53c]
push 0x59f47c
push eax
call fcn.00533373
add esp, 8
test eax, eax
je 0x42cd5c
lea eax, [ebp - 0x53c]
push 0x59f480
push eax
call fcn.00533373
add esp, 8
test eax, eax
je 0x42cd5c
cmp dword [ebp + 0x34], 0x10
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
lea eax, [ebp - 0x53c]
push eax
call fcn.005297e0
add esp, 8
test eax, eax
jne 0x42cd6c
lea eax, [ebp - 0x568]
push eax
push esi
call edi
test eax, eax
jne 0x42cd04
jmp 0x42cd71
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x414]
cmp eax, 0x10
jb 0x42cd96
inc eax
lea ecx, [ebp - 0x428]
push eax
push dword [ebp - 0x428]
call fcn.004279e0
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x414], 0xf
mov dword [ebp - 0x418], 0
mov byte [ebp - 0x428], 0
cmp eax, 0x10
jb 0x42cdc6
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004279e0
mov ecx, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp ecx, 0x10
jb 0x42cded
inc ecx
push ecx
push dword [ebp + 0x20]
lea ecx, [ebp + 0x20]
call fcn.004279e0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x42ce10
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x42ce69
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x42ce71
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42ce86
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov dword [ebp - 0x14], 0
test esi, esi
jne 0x42ce9c
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
push 0x5a5070
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], esi
push eax
call fcn.0052a7ba
int3

Function at 0x42ceb0
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x42cf57
push 0x38
lea eax, [ebp - 0x140]
mov dword [ebp - 0x144], 0x3c
push 0
push eax
call fcn.00529cc0
add esp, 0xc
mov dword [ebp - 0x138], str.runas
lea eax, [ebp - 0x108]
mov dword [ebp - 0x134], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 0x130], eax
lea eax, [ebp - 0x144]
push eax
mov dword [ebp - 0x128], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
jne 0x42cf57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x4c7
jne 0x42cf52
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
cmp eax, 2
je 0x42cf42
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x42d070
Capabilities:
Accept command line arguments
Create process on windows
Print debug messages

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 0x54d840
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x5afb3c]
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, edx
mov esi, ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
push 0x44
push 0
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
call fcn.00529cc0
mov eax, dword [ebp - 0x4c]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x50]
mov dword [eax], 0x44
xor eax, eax
mov word [ebp - 0x30], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], eax
mov word [ebp - 0x48], ax
lea edx, [ebp - 0x30]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0042cf70
lea edx, [ebp - 0x48]
mov ecx, edi
call fcn.0042cf70
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, 1
mov edi, eax
mov dword [ebp - 0x54], edi
cmp dword [ebp - 0x18], esi
jle 0x42d19b
push 1
push 0x59f544
lea ecx, [ebp - 0x30]
call fcn.0042ff50
mov edx, dword [edi + esi*4]
cmp word [edx], 0
jne 0x42d15d
xor eax, eax
jmp 0x42d174
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x42d162
sub eax, edi
mov edi, dword [ebp - 0x54]
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x30]
call fcn.0042ff50
mov eax, dword [ebp - 0x18]
dec eax
cmp esi, eax
je 0x42d19b
push 1
push 0x59f544
lea ecx, [ebp - 0x30]
call fcn.0042ff50
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x42d141
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push 0x59f548
call esi
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call esi
push 0x59f548
call esi
push dword [ebp - 0x4c]
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x48]
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 8
push eax
cmovae ecx, dword [ebp - 0x30]
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x42d1fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x42d1fd
xor esi, esi
mov eax, dword [ebp - 0x34]
cmp eax, 8
jb 0x42d212
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.00431250
xor eax, eax
mov dword [ebp - 0x34], 7
mov word [ebp - 0x48], ax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], 0
cmp eax, 8
jb 0x42d23b
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00431250
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.00526b2d
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x42d260
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54d892
mov eax, dword fs:[0]
push eax
mov eax, 0x1114
call fcn.00527690
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x1118], esi
mov dword [ebp - 0x111c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x1120], esi
jb 0x42d2d1
mov eax, dword [esi]
jmp 0x42d2d3
mov eax, esi
mov byte [eax], 0
push 0x1000
lea eax, [ebp - 0x1114]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x111c], 1
call fcn.00529cc0
add esp, 0xc
mov dword [ebp - 0x1118], 0
push edi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x42d386
cmp edi, 0xffffffff
je 0x42d386
lea eax, [ebp - 0x1118]
push eax
push 0x1000
lea eax, [ebp - 0x1114]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x42d37f
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00529cc0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x104
push eax
push dword [ebp - 0x1114]
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x42d37f
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.004272c0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret
Function at 0x430230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54db98
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5afb3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x43035e
cmp byte [ebx + 0x3d], 0
je 0x43035e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x430289
xor al, al
jmp 0x430360
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00430030
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4302ef
sub eax, 1
je 0x4302f3
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x430346
xor bl, bl
jmp 0x430348
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x430328
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0052d34f
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x4302eb
cmp byte [ebx + 0x3d], 0
je 0x430346
test esi, esi
jne 0x4302b1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.004300c0
jmp 0x4302ae
mov bl, 1
cmp ecx, 0x10
jb 0x43035a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004279e0
mov al, bl
jmp 0x430360
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00526b2d
mov esp, ebp
pop ebp
ret