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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6a3f
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x50b164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
call fcn.004598e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x2c]
mov dword [eax], vtable.Catch::StreamingReporterBase_class_Catch::XmlReporter_.0
mov ecx, dword [ebp - 0x2c]
add ecx, 4
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040af40
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 8]
call fcn.0040af30
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0xc], eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x10
call fcn.00450420
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x2c]
add ecx, 0x30
call fcn.004503e0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x2c]
add ecx, 0x58
call fcn.00450400
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x2c]
add ecx, 0xcc
call fcn.00457460
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x2c]
add ecx, 0xd8
call fcn.00459f50
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0xd8], 0
mov ecx, dword [ebp - 0x2c]
add ecx, 4
call fcn.00429d60
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x34]
mov eax, dword [edx + 0x4c]
call eax
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x5c]
push edx
call fcn.00486890
add esp, 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x44]
call fcn.00481c20
test eax, eax
jne 0x45154b
mov dword [ebp - 0x38], 1
jmp 0x451552
mov dword [ebp - 0x38], 0
mov cl, byte [ebp - 0x38]
mov byte [ebp - 0x2d], cl
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x5c]
call fcn.0045e400
movzx edx, byte [ebp - 0x2d]
test edx, edx
je 0x4515c7
lea eax, [ebp - 0x28]
push eax
push str.Verbosity_level_not_supported_by_this_reporter
lea ecx, [ebp - 0x68]
call fcn.00402a40
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x4c]
call fcn.00428ff0
mov ecx, eax
call fcn.00402b80
mov dword [ebp - 0x50], eax
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], edx
mov byte [ebp - 4], 8
mov eax, dword [ebp - 0x54]
push eax
call fcn.004078f0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x28]
call fcn.0045e070
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x68]
call fcn.00402ad0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a807d
mov esp, ebp
pop ebp
ret 4
Function at 0x458f00
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d76c9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x50b164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 2], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 3], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 4], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 5], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 6], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 7], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 8], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 9], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0xa], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0xffffffff
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x14], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 0x64
mov eax, dword [ebp - 0x10]
movsd xmm0, qword [0x4e1d48]
movsd qword [eax + 0x20], xmm0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x28], 0x186a0
mov edx, dword [ebp - 0x10]
xor eax, eax
mov dword [edx + 0x30], 0x64
mov dword [edx + 0x34], eax
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x10]
movsd xmm0, qword [0x4e1d90]
movsd qword [ecx + 0x48], xmm0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x50], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x54], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x58], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x5c
call fcn.00455600
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x74
call fcn.00455600
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x8c
call fcn.00455600
mov byte [ebp - 4], 2
push str.console
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.004550a0
mov ecx, dword [ebp - 0x10]
add ecx, 0xbc
call fcn.00457900
mov ecx, dword [ebp - 0x10]
add ecx, 0xc8
call fcn.00457900
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x46fc00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x50b164]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
je 0x46fc27
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x46fc2e
mov al, 1
jmp 0x46fd09
call fcn.00485130
push eax
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x3c], eax
call fcn.00485130
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004851b0
add esp, 8
movzx eax, al
test eax, eax
je 0x46fc6a
xor al, al
jmp 0x46fd09
mov dword [ebp - 0x48], 0x20
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x2c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 0x2c]
mov ecx, dword [edx + 0x38]
call fcn.0048ebb0
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x46fca6
cmp dword [ebp - 0x30], 1
je 0x46fcad
cmp dword [ebp - 0x30], 3
je 0x46fcfc
jmp 0x46fd07
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov ecx, dword [ebp - 0x44]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x34], ecx
je 0x46fcdc
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.004ad979
add esp, 0x10
cmp dword [ebp - 0x34], eax
je 0x46fcdc
xor al, al
jmp 0x46fd09
mov ecx, dword [ebp - 0x2c]
movzx edx, byte [ecx + 0x3d]
test edx, edx
jne 0x46fcf0
mov dword [ebp - 0x38], 1
jmp 0x46fcf7
mov dword [ebp - 0x38], 0
mov al, byte [ebp - 0x38]
jmp 0x46fd09
mov eax, dword [ebp - 0x2c]
mov byte [eax + 0x3d], 0
mov al, 1
jmp 0x46fd09
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a807d
mov esp, ebp
pop ebp
ret
Function at 0x4891b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x50b164]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov dword [ebp - 0x2c], ecx
call fcn.00485130
mov dword [ebp - 0x44], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.004851b0
add esp, 8
movzx edx, al
test edx, edx
je 0x4891f5
lea eax, [ebp + 8]
push eax
call fcn.00488ea0
add esp, 4
jmp 0x489372
mov ecx, dword [ebp - 0x2c]
call fcn.0048ae30
test eax, eax
je 0x489237
mov ecx, dword [ebp - 0x2c]
call fcn.0048ae30
mov esi, eax
mov ecx, dword [ebp - 0x2c]
call fcn.00485140
cmp esi, eax
jae 0x489237
lea ecx, [ebp + 8]
push ecx
call fcn.0048e550
add esp, 4
mov bl, al
mov ecx, dword [ebp - 0x2c]
call fcn.00478060
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x489372
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x4c], 0
jne 0x48924a
call fcn.00485130
jmp 0x489372
mov ecx, dword [ebp - 0x2c]
call fcn.00478f20
mov eax, dword [ebp - 0x2c]
cmp dword [eax + 0x38], 0
jne 0x489299
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ecx + 0x4c]
push edx
lea eax, [ebp + 8]
push eax
call fcn.0048e550
add esp, 4
movzx ecx, al
push ecx
call fcn.00437090
add esp, 8
movzx edx, al
test edx, edx
je 0x489289
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
jmp 0x489291
call fcn.00485130
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
jmp 0x489372
mov dword [ebp - 0x50], 0x20
lea ecx, [ebp + 8]
push ecx
call fcn.0048e550
add esp, 4
mov byte [ebp - 0x2e], al
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x4c]
push edx
lea eax, [ebp - 0x2d]
push eax
lea ecx, [ebp - 0x2e]
push ecx
mov edx, dword [ebp - 0x2c]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x38]
call fcn.00489170
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x4892f0
cmp dword [ebp - 0x34], 1
je 0x4892f0
cmp dword [ebp - 0x34], 3
je 0x48933d
jmp 0x48936d
mov ecx, dword [ebp - 0x48]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x38], ecx
je 0x489322
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call fcn.004ad979
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x489322
call fcn.00485130
jmp 0x489372
mov ecx, dword [ebp - 0x2c]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2e]
cmp dword [ebp - 0x4c], edx
je 0x489336
mov eax, dword [ebp + 8]
jmp 0x489372
call fcn.00485130
jmp 0x489372
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2e]
push edx
call fcn.00437090
add esp, 8
movzx eax, al
test eax, eax
je 0x489360
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x40], ecx
jmp 0x489368
call fcn.00485130
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
jmp 0x489372
call fcn.00485130
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a807d
mov esp, ebp
pop ebp
ret 4
Function at 0x48f8c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x48f8e0
jl 0x48f8d7
cmp dword [ebp + 0xc], 0
ja 0x48f8e0
xor eax, eax
xor edx, edx
jmp 0x48fa17
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x48f902
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.0048fa20
jmp 0x48fa17
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00473ea0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x48f971
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.0044d0e0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00486ad0
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00481a80
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.00485fb0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x48fa08
mov ecx, dword [ebp - 8]
call fcn.00478f20
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x48f9e1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.004ad2f2
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x48f9df
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x48fa17
jmp 0x48f98d
cmp dword [ebp - 4], 0
jbe 0x48fa08
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.004ad2f2
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x49e380
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x49e3ac
push 0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
cmp dword [edx], 0
je 0x49e3ce
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4a0310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edi, dword [ebp - 4]
add edi, 4
mov ecx, 0x10
mov esi, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], ecx
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 4]
add edi, 0x4c
mov ecx, 0x3e
mov esi, dword [eax + 0x48]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x144], 0
mov edx, dword [ebp - 4]
add edx, 0x44
push edx
push 4
push 0x40
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebp - 4]
add edx, 0x144
push edx
push 4
push 0xf8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4a03b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, dword [ebp - 4]
add esi, 4
mov eax, dword [ebp - 4]
mov ecx, 0x10
mov edi, dword [eax]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
add esi, 0x4c
mov edx, dword [ebp - 4]
mov ecx, 0x3e
mov edi, dword [edx + 0x48]
rep movsd dword es:[edi], dword [esi]
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x44]
push edx
push 0x40
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x144]
push ecx
push 0xf8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4a04e0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc34d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x50b164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x28]
call fcn.004a0710
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.004a0470
add esp, 8
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jge 0x4a054d
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0045e090
mov eax, dword [ebp - 0x30]
jmp 0x4a05cc
mov dword [ebp - 0x7c], 0x44
push 0x40
push 0
lea edx, [ebp - 0x78]
push edx
call fcn.004aa820
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x7c]
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x28]
call fcn.004a08d0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4a05b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a0940
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0045e090
mov eax, dword [ebp - 0x34]
jmp 0x4a05cc
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0045e090
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a807d
mov esp, ebp
pop ebp
ret
Function at 0x4a0a10
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [0x50ffb0], 0
je 0x4a0a26
xor eax, eax
jmp 0x4a0c38
cmp dword [0x50ffac], 0
je 0x4a0a39
mov eax, dword [0x50ffac]
jmp 0x4a0c38
push 0x24
push 0
push 0x50ff88
call fcn.004aa820
add esp, 0xc
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [0x50ff88], eax
push 0
push 0
push str.dbghelp.dll
call sub.KERNEL32.dll_LoadLibraryExW
mov dword [0x50ff8c], eax
cmp dword [0x50ff8c], 0
jne 0x4a0adb
mov dword [0x50ffb0], 1
cmp dword [0x50ff8c], 0
je 0x4a0a8e
mov eax, dword [0x50ff8c]
push eax
call sub.KERNEL32.dll_FreeLibrary
mov dword [0x50ff90], 0
mov dword [0x50ff94], 0
mov dword [0x50ff98], 0
mov dword [0x50ff9c], 0
mov dword [0x50ffa0], 0
mov dword [0x50ffa4], 0
mov dword [0x50ffa8], 0
xor eax, eax
jmp 0x4a0c38
push str.ImagehlpApiVersionEx
mov ecx, dword [0x50ff8c]
push ecx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x50ff90], eax
push str.SymInitialize
mov edx, dword [0x50ff8c]
push edx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x50ff94], eax
push str.SymSetOptions
mov eax, dword [0x50ff8c]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x50ff98], eax
push str.SymGetOptions
mov ecx, dword [0x50ff8c]
push ecx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x50ff9c], eax
push str.SymLoadModule64
mov edx, dword [0x50ff8c]
push edx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x50ffa0], eax
push str.SymGetModuleInfo64
mov eax, dword [0x50ff8c]
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x50ffa4], eax
push str.SymFromName
mov ecx, dword [0x50ff8c]
push ecx
call sub.KERNEL32.dll_GetProcAddress
mov dword [0x50ffa8], eax
push 8
push 0
lea edx, [ebp - 0xc]
push edx
call fcn.004aa820
add esp, 0xc
mov eax, 0xc
mov word [ebp - 0xc], ax
cmp dword [0x50ff90], 0
je 0x4a0bb9
cmp dword [0x50ff94], 0
je 0x4a0bb9
cmp dword [0x50ffa0], 0
je 0x4a0bb9
cmp dword [0x50ffa4], 0
je 0x4a0bb9
cmp dword [0x50ffa8], 0
jne 0x4a0bbe
jmp 0x4a0a70
lea ecx, [ebp - 0xc]
push ecx
call dword [0x50ff90]
movzx edx, word [ebp - 0xc]
cmp edx, 0xc
jge 0x4a0bd6
jmp 0x4a0a70
push 0
push 0
mov eax, dword [0x50ff88]
push eax
call dword [0x50ff94]
test eax, eax
jne 0x4a0bef
jmp 0x4a0a70
cmp dword [0x50ff9c], 0
je 0x4a0c29
cmp dword [0x50ff98], 0
je 0x4a0c29
call dword [0x50ff9c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
and ecx, 0xfffffff8
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
or edx, 0x2704
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call dword [0x50ff98]
mov dword [0x50ffac], 0x50ff88
mov eax, dword [0x50ffac]
mov esp, ebp
pop ebp
ret
Function at 0x4a2990
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [0x50b164]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xf8
push 0
mov eax, dword [ebp + 0x10]
push eax
call fcn.004aa820
add esp, 0xc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
jne 0x4a29cd
push 0x57
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a2a81
push 0x1c
push 0
lea edx, [ebp - 0x64]
push edx
call fcn.004aa820
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_VirtualQueryEx
test eax, eax
jne 0x4a29fb
xor eax, eax
jmp 0x4a2a81
push 0
push 0x40
lea eax, [ebp - 0x44]
push eax
mov ecx, dword [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x4a2a18
xor eax, eax
jmp 0x4a2a81
movzx eax, word [ebp - 0x44]
cmp eax, 0x5a4d
jne 0x4a2a31
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0x58]
ja 0x4a2a31
cmp dword [ebp - 8], 0x40
jae 0x4a2a3f
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a2a81
push 0
push 0xf8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_ReadProcessMemory
test eax, eax
jne 0x4a2a62
xor eax, eax
jmp 0x4a2a81
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0x4550
je 0x4a2a7b
push 0xc1
call sub.KERNEL32.dll_SetLastError
xor eax, eax
jmp 0x4a2a81
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a807d
mov esp, ebp
pop ebp
ret
Function at 0x4be548
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004be3be

Function at 0x4c30a5
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c3027

Function at 0x4c674c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c629f

Function at 0x402240
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x404144], eax
mov ecx, ebp
add ecx, 8
mov dword [0x4040e2], ecx
mov dword [0x404148], 0x30
mov dword [0x40414c], 2
mov dword [0x404154], 0
mov dword [0x404158], 0
mov dword [0x404150], 0x4025d0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x40415c], eax
mov dword [0x404168], 0xf
mov dword [0x404170], 0x40386b
mov dword [0x4040da], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x404160], eax
mov dword [0x404174], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x404164], eax
push 0x404148
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4040da]
push 0
push 0
push 0x24e
push 0x320
push 0xd8
push 0xa0
push 0x40000
push str.myform
push 0x40386b
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x40413c], eax
xor eax, eax
jmp 0x40232b
push eax
push dword [0x40413c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x40413c]
call dword [sym.imp.user32.dll_UpdateWindow]
push 0
push 0
push 0
push 0x404178
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x402371
push 0x404178
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x404178
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x402344
mov eax, dword [0x404180]
call fcn.00401208
ret