joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x41bd20
push 0x403260
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x41d014]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x41e610]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4014a6
push 0
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x20]
push eax
push dword [0x41e614]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4014fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Reading_from_pipe_failed._GetLastError_____4dL_n
call fcn.00401ef0
add esp, 8
mov dword [ebp - 4], 0xfffffffe
mov eax, 3
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Writing_to_pipe_failed._GetLastError_____4dL_n
call fcn.00401ef0
add esp, 8
mov dword [ebp - 4], 0xfffffffe
mov eax, 3
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x624
mov eax, dword [0x41d014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x418]
push 0x20a
push 0
push eax
call fcn.004033c0
push 0x20a
lea eax, [ebp - 0x624]
push 0
push eax
call fcn.004033c0
add esp, 0x18
test esi, esi
je 0x4020e3
push 0x104
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4020e3
push 0xffffffffffffffff
lea eax, [ebp - 0x624]
push eax
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.00406e08
push 0xffffffffffffffff
push 0x415f0c
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.00406d32
push 0xffffffffffffffff
push esi
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.00406d32
add esp, 0x30
cmp dword [0x41d00c], 0
jge 0x40219a
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004033c0
push 0xffffffffffffffff
lea eax, [ebp - 0x624]
mov dword [0x41d00c], 0
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00406e08
push 0xffffffffffffffff
push 0x415f0c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00406d32
push 0xffffffffffffffff
push 0x415f10
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00406d32
add esp, 0x3c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40219a
push str.SetDefaultDllDirectories
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41e600], eax
test eax, eax
je 0x402193
push 0x800
call eax
mov dword [0x41d00c], 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, 0x800
cmp dword [0x41d00c], 1
cmove eax, ecx
push eax
push 0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402678
mov esp, ebp
pop ebp
ret
Function at 0x100013a2
Capabilities:
Execute syscall

Disassembly:
jmp 0x10080b20
cmp dword [0x101dfde8], 0x20
je 0x10080b94
mov eax, dword [0x101dfde4]
cmp eax, dword [0x101dfdf4]
je 0x10080b70
cmp eax, dword [0x101dfdfc]
je 0x10080b70
cmp eax, dword [0x101dfe00]
je 0x10080b70
cmp eax, dword [0x101dfe08]
je 0x10080b70
cmp eax, dword [0x101e0a90]
je 0x10080b70
mov dword [esp + 0x24], ebp
mov ebp, esp
mov eax, dword [0x101dfdb0]
call dword [0x101dfddc]
mov esp, ebp
mov ebp, dword [esp + 0x24]
ret 0x24
mov dword [esp + 0x24], ebp
mov ebp, esp
mov eax, dword [0x101dfdb0]
lea edx, [esp + 4]
mov ecx, 0
call dword fs:[0xc0]
mov esp, ebp
mov ebp, dword [esp + 0x24]
ret 0x24
mov dword [esp + 0x24], ebp
mov ebp, esp
mov eax, dword [0x101dfdb0]
lea edx, [esp + 4]
int 0x2e
nop
nop
nop
mov esp, ebp
mov ebp, dword [esp + 0x24]
ret 0x24
Function at 0x1000292d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x10185df0
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x10237500], 1
jge 0x10185e5f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x10185e35
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x10185e35
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10185e12
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10185e4b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x10185e52
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x10185f4f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x10185f20
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10185f15
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x10185f09
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x10185f10
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x10185f4f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x10185f4a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x10185f33
mov eax, dword [ebx + 8]
jmp 0x10185f4f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x10185f41
xor eax, eax
jmp 0x10185f4f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x10185e7f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x10002b21
Capabilities:
Print debug messages

Disassembly:
jmp 0x100be262
push esi
mov esi, ecx
call fcn.1000461f
mov eax, 0x10000000
mov dword [esi], 0x38
lea ecx, [esi + 0x14]
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], 0xe00
mov dword [esi + 0x10], 0x1019af74
call fcn.10005763
test eax, eax
jns 0x100be2b1
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x100be2aa
push str.ERROR_:_Unable_to_initialize_critical_section_in_CAtlBaseModule_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [0x101ce380], 1
mov eax, esi
pop esi
ret
Function at 0x10002e4b
Capabilities:
Execute syscall

Disassembly:
jmp 0x10080be0
mov esi, esp
push str.NtUserGetForegroundWindow1
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBeginMutation]
cmp esi, esp
call fcn.1000318e
cmp dword [0x101dfde8], 0x20
je 0x10080c68
mov eax, dword [0x101dfde4]
cmp eax, dword [0x101dfdf4]
je 0x10080c44
cmp eax, dword [0x101dfdfc]
je 0x10080c44
cmp eax, dword [0x101dfe00]
je 0x10080c44
cmp eax, dword [0x101dfe08]
je 0x10080c44
cmp eax, dword [0x101e0a90]
je 0x10080c44
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword [0x101dfdbc]
call dword [0x101dfddc]
mov esp, ebp
mov ebp, dword [esp + 4]
ret 4
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword [0x101dfdbc]
lea edx, [esp + 4]
mov ecx, 1
call dword fs:[0xc0]
mov esp, ebp
mov ebp, dword [esp + 4]
ret 4
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword [0x101dfdbc]
lea edx, [esp + 4]
int 0x2e
nop
nop
nop
nop
nop
mov esp, ebp
mov ebp, dword [esp + 4]
ret 4

Function at 0x10003026
Capabilities:
Execute syscall

Disassembly:
jmp 0x10080f20
cmp dword [0x101dfde8], 0x20
je 0x10080f94
mov eax, dword [0x101dfde4]
cmp eax, dword [0x101dfdf4]
je 0x10080f70
cmp eax, dword [0x101dfdfc]
je 0x10080f70
cmp eax, dword [0x101dfe00]
je 0x10080f70
cmp eax, dword [0x101dfe08]
je 0x10080f70
cmp eax, dword [0x101e0a90]
je 0x10080f70
mov dword [esp + 0xc], ebp
mov ebp, esp
mov eax, dword [0x101dfdb4]
call dword [0x101dfddc]
mov esp, ebp
mov ebp, dword [esp + 0xc]
ret 0xc
mov dword [esp + 0xc], ebp
mov ebp, esp
mov eax, dword [0x101dfdb4]
lea edx, [esp + 4]
mov ecx, 7
call dword fs:[0xc0]
mov esp, ebp
mov ebp, dword [esp + 0xc]
ret 0xc
mov dword [esp + 0xc], ebp
mov ebp, esp
mov eax, dword [0x101dfdb4]
lea edx, [esp + 4]
int 0x2e
nop
nop
nop
nop
nop
mov esp, ebp
mov ebp, dword [esp + 0xc]
ret 0xc

Function at 0x1000336e
Capabilities:
Execute syscall

Disassembly:
jmp 0x100804d0
cmp dword [0x101dfde8], 0x20
je 0x10080544
mov eax, dword [0x101dfde4]
cmp eax, dword [0x101dfdf4]
je 0x10080520
cmp eax, dword [0x101dfdfc]
je 0x10080520
cmp eax, dword [0x101dfe00]
je 0x10080520
cmp eax, dword [0x101dfe08]
je 0x10080520
cmp eax, dword [0x101e0a90]
je 0x10080520
mov dword [esp + 0x14], ebp
mov ebp, esp
mov eax, dword [0x101dfdd0]
call dword [0x101dfde0]
mov esp, ebp
mov ebp, dword [esp + 0x14]
ret 0x14
mov dword [esp + 0x14], ebp
mov ebp, esp
mov eax, dword [0x101dfdd0]
lea edx, [esp + 4]
mov ecx, 0
call dword fs:[0xc0]
mov esp, ebp
mov ebp, dword [esp + 0x14]
ret 0x14
mov dword [esp + 0x14], ebp
mov ebp, esp
mov eax, dword [0x101dfdd0]
lea edx, [esp + 4]
int 0x2e
nop
nop
nop
nop
nop
mov esp, ebp
mov ebp, dword [esp + 0x14]
ret 0x14
Function at 0x10004746
Capabilities:
Execute syscall

Disassembly:
jmp 0x10080a30
cmp dword [0x101dfde8], 0x20
je 0x10080aa4
mov eax, dword [0x101dfde4]
cmp eax, dword [0x101dfdf4]
je 0x10080a80
cmp eax, dword [0x101dfdfc]
je 0x10080a80
cmp eax, dword [0x101dfe00]
je 0x10080a80
cmp eax, dword [0x101dfe08]
je 0x10080a80
cmp eax, dword [0x101e0a90]
je 0x10080a80
mov dword [esp + 0x20], ebp
mov ebp, esp
mov eax, dword [0x101dfdb0]
call dword [0x101dfddc]
mov esp, ebp
mov ebp, dword [esp + 0x20]
ret 0x20
mov dword [esp + 0x20], ebp
mov ebp, esp
mov eax, dword [0x101dfdb0]
lea edx, [esp + 4]
mov ecx, 0
call dword fs:[0xc0]
mov esp, ebp
mov ebp, dword [esp + 0x20]
ret 0x20
mov dword [esp + 0x20], ebp
mov ebp, esp
mov eax, dword [0x101dfdb0]
lea edx, [esp + 4]
int 0x2e
nop
nop
nop
nop
nop
mov esp, ebp
mov ebp, dword [esp + 0x20]
ret 0x20

Function at 0x100054fc
Capabilities:
Execute syscall

Disassembly:
jmp 0x100801c0
cmp dword [0x101dfde8], 0x20
je 0x10080234
mov eax, dword [0x101dfde4]
cmp eax, dword [0x101dfdf4]
je 0x10080210
cmp eax, dword [0x101dfdfc]
je 0x10080210
cmp eax, dword [0x101dfe00]
je 0x10080210
cmp eax, dword [0x101dfe08]
je 0x10080210
cmp eax, dword [0x101e0a90]
je 0x10080210
mov dword [esp + 0x1c], ebp
mov ebp, esp
mov eax, dword [0x101dfdb8]
call dword [0x101dfde0]
mov esp, ebp
mov ebp, dword [esp + 0x1c]
ret 0x1c
mov dword [esp + 0x1c], ebp
mov ebp, esp
mov eax, dword [0x101dfdb8]
lea edx, [esp + 4]
mov ecx, 0
call dword fs:[0xc0]
mov esp, ebp
mov ebp, dword [esp + 0x1c]
ret 0x1c
mov dword [esp + 0x1c], ebp
mov ebp, esp
mov eax, dword [0x101dfdb8]
lea edx, [esp + 4]
int 0x2e
nop
nop
nop
nop
nop
mov esp, ebp
mov ebp, dword [esp + 0x1c]
ret 0x1c

Function at 0x10005989
Capabilities:
Query environment variable

Disassembly:
jmp 0x1016de87
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1016de9b
xor edi, edi
jmp 0x1016dedf
push ebx
push esi
call fcn.1016dd7e
sub eax, esi
sar eax, 1
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
lea ebx, [eax + eax]
push ebx
call fcn.10003922
mov edi, eax
add esp, 0x14
test edi, edi
je 0x1016decc
push ebx
push esi
push edi
call fcn.100026da
add esp, 0xc
push 2
push 0
call fcn.10001d48
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x10005a10
Capabilities:
Execute syscall

Disassembly:
jmp 0x10080ca0
cmp dword [0x101dfde8], 0x20
je 0x10080d14
mov eax, dword [0x101dfde4]
cmp eax, dword [0x101dfdf4]
je 0x10080cf0
cmp eax, dword [0x101dfdfc]
je 0x10080cf0
cmp eax, dword [0x101dfe00]
je 0x10080cf0
cmp eax, dword [0x101dfe08]
je 0x10080cf0
cmp eax, dword [0x101e0a90]
je 0x10080cf0
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword [0x101dfdbc]
call dword [0x101dfddc]
mov esp, ebp
mov ebp, dword [esp + 4]
ret 4
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword [0x101dfdbc]
lea edx, [esp + 4]
mov ecx, 1
call dword fs:[0xc0]
mov esp, ebp
mov ebp, dword [esp + 4]
ret 4
mov dword [esp + 4], ebp
mov ebp, esp
mov eax, dword [0x101dfdbc]
lea edx, [esp + 4]
int 0x2e
nop
nop
nop
nop
nop
mov esp, ebp
mov ebp, dword [esp + 4]
ret 4
Function at 0x10017940
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
push esi
push edi
lea edi, [ebp - 0x148]
mov ecx, 0x52
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101ca9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov esi, esp
push 0
push 0
push 3
push 0
push 3
push 0
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0xc], 0xffffffff
je 0x10017b04
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov esi, esp
push 0
lea eax, [ebp - 0x3c]
push eax
push 8
lea ecx, [ebp - 0x30]
push ecx
push 0xc
lea edx, [ebp - 0x20]
push edx
push 0x2d1400
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp esi, esp
call fcn.1000318e
test eax, eax
je 0x10017af1
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
add eax, 1
mov esi, esp
push eax
push 8
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.1000318e
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0x6c], eax
mov esi, esp
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x6c]
push edx
push 0xc
lea eax, [ebp - 0x20]
push eax
push 0x2d1400
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp esi, esp
call fcn.1000318e
test eax, eax
je 0x10017ac6
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
je 0x10017a7e
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x60]
jae 0x10017a7e
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x78], eax
je 0x10017a7e
push 0
mov eax, dword [ebp - 0x78]
push eax
call fcn.100028dd
add esp, 4
push eax
mov ecx, dword [ebp - 0x78]
push ecx
call fcn.10004516
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x48], ecx
cmp dword [ebp - 0x48], 0
je 0x10017ac6
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x60]
jae 0x10017ac6
mov eax, dword [ebp - 0x6c]
add eax, dword [ebp - 0x48]
mov dword [ebp - 0x84], eax
je 0x10017ac6
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x84]
push ecx
call fcn.100028dd
add esp, 4
push eax
mov edx, dword [ebp - 0x84]
push edx
call fcn.10004516
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x6c], 0
je 0x10017af1
mov esi, esp
mov eax, dword [ebp - 0x6c]
push eax
push 0
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
cmp edi, esp
call fcn.1000318e
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp esi, esp
call fcn.1000318e
mov esi, esp
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1000318e
mov eax, dword [ebp - 0x54]
push edx
mov ecx, ebp
push eax
lea edx, [0x10017b38]
call fcn.10004b97
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004d22
add esp, 0x148
cmp ebp, esp
call fcn.1000318e
mov esp, ebp
pop ebp
ret
Function at 0x1001d320
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
lea edi, [ebp - 0xcc]
mov ecx, 0x33
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov esi, esp
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x1001d370
xor eax, eax
jmp 0x1001d3c4
mov esi, esp
push 0
lea eax, [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, esp
call fcn.1000318e
test eax, eax
jne 0x1001d3ac
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1000318e
xor eax, eax
jmp 0x1001d3c4
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, esp
call fcn.1000318e
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0xcc
cmp ebp, esp
call fcn.1000318e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1001e040
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
push edi
lea edi, [ebp - 0x224]
mov ecx, 0x89
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101ca9c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x154], 0
mov dword [ebp - 0x160], 0
mov esi, esp
push 0
push 0x40
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp esi, esp
call fcn.1000318e
test eax, eax
je 0x1001e192
movzx eax, word [ebp - 0x48]
cmp eax, 0x5a4d
je 0x1001e0b5
xor eax, eax
jmp 0x1001e198
mov esi, esp
push 0
push 0xf8
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp esi, esp
call fcn.1000318e
test eax, eax
je 0x1001e192
cmp dword [ebp - 0x148], 0x4550
je 0x1001e0f8
xor eax, eax
jmp 0x1001e198
mov esi, esp
push 0x40
push 0x1000
mov eax, dword [ebp - 0xf8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.1000318e
mov dword [ebp - 0x154], eax
cmp dword [ebp - 0x154], 0
je 0x1001e192
mov esi, esp
push 0
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
cmp esi, esp
call fcn.1000318e
test eax, eax
je 0x1001e170
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call fcn.1000173a
sub eax, dword [ebp - 0x154]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x160], eax
mov esi, esp
push 0x4000
mov eax, dword [ebp - 0xf8]
push eax
mov ecx, dword [ebp - 0x154]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
cmp esi, esp
call fcn.1000318e
mov eax, dword [ebp - 0x160]
push edx
mov ecx, ebp
push eax
lea edx, [0x1001e1cc]
call fcn.10004b97
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004d22
add esp, 0x224
cmp ebp, esp
call fcn.1000318e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10059090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push ebx
push esi
push edi
lea edi, [ebp - 0x290]
mov ecx, 0xa4
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x101ca9c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x100590c6
or eax, 0xffffffff
jmp 0x1005925a
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
push 0x40
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xb4]
push ecx
call fcn.100026da
add esp, 0xc
movzx eax, word [ebp - 0xb4]
cmp eax, 0x5a4d
je 0x100590f7
or eax, 0xffffffff
jmp 0x1005925a
push 0xf8
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x78]
push eax
lea ecx, [ebp - 0x1b4]
push ecx
call fcn.100026da
add esp, 0xc
cmp dword [ebp - 0x1b4], 0x4550
je 0x10059126
or eax, 0xffffffff
jmp 0x1005925a
mov eax, dword [ebp - 0x164]
push eax
call fcn.100028e2
add esp, 4
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x1005914c
or eax, 0xffffffff
jmp 0x1005925a
mov eax, dword [ebp - 0x164]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x1c0]
push edx
call fcn.100026da
add esp, 0xc
push 5
mov eax, dword [ebp - 0x1c0]
push eax
call fcn.10001532
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
cmp dword [eax + 4], 0
jbe 0x1005922a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jbe 0x1005922a
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp - 0x30]
add eax, 8
mov dword [ebp - 0x48], eax
mov dword [ebp - 0xc], 0
jmp 0x100591c1
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 4]
sub ecx, 8
shr ecx, 1
cmp dword [ebp - 0xc], ecx
jae 0x10059219
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
sar ecx, 0xc
mov dword [ebp - 0x60], ecx
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
and ecx, 0xfff
mov dword [ebp - 0x6c], ecx
cmp dword [ebp - 0x60], 3
jne 0x1005920e
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x6c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
sub ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x180]
mov edx, dword [ebp - 0x54]
mov dword [edx], ecx
mov eax, dword [ebp - 0x48]
add eax, 2
mov dword [ebp - 0x48], eax
jmp 0x100591b8
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
add ecx, dword [eax + 4]
mov dword [ebp - 0x30], ecx
jmp 0x1005918f
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x1c0]
add ecx, dword [ebp + 0xc]
push ecx
call fcn.10004516
mov dword [ebp - 0x1cc], eax
mov eax, dword [ebp - 0x1c0]
push eax
call fcn.100053ad
add esp, 4
mov eax, dword [ebp - 0x1cc]
push edx
mov ecx, ebp
push eax
lea edx, [0x1005928c]
call fcn.10004b97
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10004d22
add esp, 0x290
cmp ebp, esp
call fcn.1000318e
mov esp, ebp
pop ebp
ret 0xc