joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4165fb
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], bl
je 0x416626
cmp eax, 1
je 0x416626
jle 0x41662e
cmp eax, 3
jle 0x416626
cmp eax, 4
jne 0x41662e
mov byte [ebp - 1], 1
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
jmp 0x416659
call fcn.0040f393
mov dword [eax], 0x16
call fcn.0040f39c
mov dword [eax], ebx
or eax, 0xffffffff
jmp 0x4167d2
inc eax
cmp byte [eax], bl
jne 0x416648
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x416659
mov byte [eax], 0x20
mov eax, ecx
cmp byte [eax], bl
jne 0x416648
push esi
push 0x44
pop esi
push esi
lea eax, [ebp - 0x68]
push ebx
push eax
call fcn.0040bff0
mov dword [ebp - 0x68], esi
mov esi, dword [0x42f6c0]
add esp, 0xc
cmp esi, ebx
je 0x41669f
lea ecx, [esi - 1]
mov edx, ecx
mov eax, ecx
sar edx, 5
mov edx, dword [edx*4 + 0x42f6e0]
and eax, 0x1f
lea eax, [eax + eax*8]
cmp byte [edx + eax*4 + 4], bl
jne 0x41669f
dec esi
dec ecx
cmp esi, ebx
jne 0x41667f
lea eax, [esi + esi*4 + 4]
mov word [ebp - 0x36], ax
push edi
movzx eax, ax
push 1
push eax
call fcn.00413768
cmp esi, ebx
mov dword [ebp - 0x34], eax
pop ecx
mov dword [eax], esi
mov eax, dword [ebp - 0x34]
pop ecx
mov dword [ebp - 8], ebx
lea ecx, [eax + 4]
lea edx, [eax + esi + 4]
jle 0x416706
mov eax, dword [ebp - 8]
mov edi, eax
sar edi, 5
mov edi, dword [edi*4 + 0x42f6e0]
and eax, 0x1f
lea eax, [eax + eax*8]
lea edi, [edi + eax*4]
mov al, byte [edi + 4]
test al, 0x10
jne 0x4166f2
mov byte [ecx], al
mov eax, dword [edi]
mov dword [edx], eax
jmp 0x4166f7
mov byte [ecx], bl
or dword [edx], 0xffffffff
inc dword [ebp - 8]
inc ecx
add edx, 4
cmp dword [ebp - 8], esi
jl 0x4166cb
mov eax, dword [ebp - 0x34]
cmp byte [ebp - 1], bl
je 0x416737
lea ecx, [eax + 4]
xor edx, edx
lea eax, [eax + esi + 4]
cmp esi, 3
jge 0x41671d
mov edi, esi
jmp 0x416720
push 3
pop edi
cmp edx, edi
jge 0x416730
mov byte [ecx], bl
or dword [eax], 0xffffffff
inc edx
inc ecx
add eax, 4
jmp 0x416714
mov dword [ebp - 0xc], 8
call fcn.0040f393
mov dword [eax], ebx
call fcn.0040f39c
mov dword [eax], ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0xc]
push 1
push ebx
push ebx
push dword [ebp - 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call fcn.0040c8d8
cmp esi, ebx
pop ecx
jne 0x416787
push edi
call fcn.0040f3a5
pop ecx
or eax, 0xffffffff
jmp 0x4167d0
cmp dword [ebp + 8], 2
jne 0x416793
push ebx
call fcn.004104e3
cmp dword [ebp + 8], ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
jne 0x4167c0
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x24]
call esi
jmp 0x4167c9
cmp dword [ebp + 8], 4
je 0x4167b9
mov ebx, dword [ebp - 0x24]
push dword [ebp - 0x20]
call esi
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4169d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4169f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040f3a5
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x416a13
test byte [esp + 8], 2
je 0x416a13
call fcn.0040f393
mov dword [eax], 0xd
call fcn.0040f39c
mov dword [eax], 5
jmp 0x4169ec
xor eax, eax
ret
Function at 0x4171ef
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x417208
or eax, 0xffffffff
jmp 0x417269
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x417265
push 0x3d
push esi
call fcn.00415726
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x417265
cmp esi, eax
je 0x417265
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x42f148]
sete cl
cmp eax, dword [0x42f14c]
mov dword [ebp - 8], ecx
jne 0x41724b
mov edi, eax
call fcn.0041718e
mov dword [0x42f148], eax
cmp eax, ebx
jne 0x4172a4
cmp dword [ebp + 0xc], ebx
je 0x41726d
cmp dword [0x42f150], ebx
je 0x41726d
call fcn.0041656b
test eax, eax
je 0x4172a4
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x417276
xor eax, eax
jmp 0x417268
push 4
call fcn.0040c9f0
cmp eax, ebx
pop ecx
mov dword [0x42f148], eax
je 0x417265
mov dword [eax], ebx
cmp dword [0x42f150], ebx
jne 0x4172a4
push 4
call fcn.0040c9f0
cmp eax, ebx
pop ecx
mov dword [0x42f150], eax
je 0x417265
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x42f148]
call fcn.00417141
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x417305
cmp dword [esi], ebx
je 0x417305
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040c8d8
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4172e8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x417346
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4172df
mov eax, edi
shl eax, 2
push eax
push dword [0x42f148]
call fcn.0041019e
cmp eax, ebx
pop ecx
pop ecx
je 0x417346
jmp 0x417341
cmp dword [ebp - 8], ebx
jne 0x4173b1
cmp edi, ebx
jge 0x417314
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x42f148]
call fcn.0041019e
cmp eax, ebx
pop ecx
pop ecx
je 0x417265
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x42f148], eax
cmp dword [ebp + 0xc], ebx
je 0x41739b
push dword [ebp - 4]
call fcn.0040bf20
inc eax
inc eax
push eax
call fcn.0040c9f0
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41739b
push dword [ebp - 4]
push esi
call fcn.0040be20
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x417394
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040c8d8
pop ecx
cmp dword [ebp - 8], ebx
je 0x4173a9
push dword [ebp - 4]
call fcn.0040c8d8
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x417268
push dword [ebp - 4]
call fcn.0040c8d8
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x417272
Function at 0x409620
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x474a5b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x492740]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x13c]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [esp + 0x14]
call fcn.00405330
push 0
push 0x1a
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0x150], 0
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push 0
call ebp
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x18]
call fcn.00405360
mov eax, dword [0x493c74]
push eax
mov esi, eax
call fcn.00403c50
add esp, 4
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.00409580
lea ecx, [esp + 0x14]
call fcn.00403f40
mov esi, eax
call fcn.00409740
push 0
push 0x1c
lea edx, [esp + 0x38]
push edx
push 0
call ebp
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.00405360
mov eax, dword [0x493c78]
push eax
mov esi, eax
call fcn.00403c50
add esp, 4
mov ebx, eax
push esi
lea eax, [esp + 0x18]
call fcn.00409580
lea ecx, [esp + 0x14]
call fcn.00403f40
mov esi, eax
call fcn.00409740
lea ecx, [esp + 0x14]
call fcn.00403f20
mov ecx, dword [esp + 0x13c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x124]
xor ecx, esp
call fcn.0043aca7
add esp, 0x134
ret
Function at 0x409810
Capabilities:
Create directory
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4749d3
mov eax, dword fs:[0]
push eax
sub esp, 0x164
mov eax, dword [0x492740]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x178]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1a4]
lea eax, [esp + 0x188]
push eax
mov esi, 0x483124
lea edi, [esp + 0x1c]
mov dword [esp + 0x184], 0
call fcn.00409500
add esp, 4
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
call fcn.00403f40
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, edi
mov esi, eax
call fcn.00403f20
cmp esi, 0xffffffff
jne 0x4098aa
lea ecx, [esp + 0x188]
call fcn.00403f20
xor al, al
jmp 0x409960
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov bl, 0x10
test byte [esp + 0x34], bl
je 0x4098d4
lea eax, [esp + 0x60]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4098c0
sub eax, edx
cmp eax, 8
je 0x40998a
lea edx, [esp + 0x34]
push edx
push esi
call edi
test eax, eax
jne 0x4098b2
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x190]
push eax
mov ecx, ebp
call fcn.00403f90
push 0x483128
call fcn.00403c50
add esp, 4
mov ebx, eax
push 0x483128
mov eax, ebp
call fcn.00409580
lea esi, [esp + 0x18]
call fcn.00410350
push 0
push eax
or eax, 0xffffffff
mov esi, ebp
mov byte [esp + 0x188], 1
call fcn.00409460
lea ecx, [esp + 0x18]
call fcn.00403f20
push 0
mov ecx, ebp
call fcn.00403f40
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp eax, 1
lea ecx, [esp + 0x188]
sete bl
call fcn.00403f20
mov al, bl
mov ecx, dword [esp + 0x178]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x160]
xor ecx, esp
call fcn.0043aca7
add esp, 0x170
ret 0x20
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x190]
push eax
mov ecx, ebp
call fcn.00403f90
push 0x483128
call fcn.00403c50
add esp, 4
mov ebx, eax
push 0x483128
mov eax, ebp
call fcn.00409580
lea ecx, [esp + 0x60]
push ecx
call fcn.00403c50
add esp, 4
lea edx, [esp + 0x60]
mov ebx, eax
push edx
mov eax, ebp
call fcn.00409580
lea ecx, [esp + 0x188]
call fcn.00403f20
mov al, 1
jmp 0x409960
Function at 0x40b920
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x474f17
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x483248
mov dword [edi + 0x58], 0x4831b4
lea esi, [edi + 8]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.0040c970
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], 0x483244
call fcn.0040d330
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], 0x483208
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x4975c4]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x40c5c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x474ec7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [edi], 0x483258
mov dword [edi + 0x54], 0x4831b4
lea esi, [edi + 4]
push esi
mov dword [esp + 0x20], ebx
push edi
mov dword [esp + 0x18], 1
call fcn.0040c8e0
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], 0x483254
call fcn.0040d330
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], 0x483208
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x4975c4]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40d330
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x473b7b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], 0x4831bc
call fcn.00457f74
push 4
mov dword [esp + 0x20], 0
call fcn.0041d8ed
mov edi, eax
add esp, 4
test edi, edi
je 0x40d3b0
call fcn.00457e05
mov dword [edi], eax
call fcn.00457c39
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00457f41
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40d3a5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00457f62
jmp 0x40d3b2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x40e6c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474ff8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
call fcn.004044b0
mov ecx, dword [esp + 0x34]
push eax
mov dword [esp + 0x30], 0
call fcn.0040e560
lea ecx, [esp + 8]
mov esi, eax
call fcn.00403f20
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x28
ret 8
Function at 0x40ee60
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x474e02
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov esi, edx
push edi
mov eax, esi
call fcn.0040fec0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00406c20
test esi, esi
mov dword [esp + 0x18], ebx
jne 0x40eeab
call fcn.0043b4b1
mov ebp, dword [esi + 4]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], esi
call fcn.00406c20
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], esi
je 0x40eecf
cmp eax, esi
je 0x40eed4
call fcn.0043b4b1
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x20]
je 0x40eeee
add eax, 0x10
call fcn.00409400
test eax, eax
jge 0x40ef76
xor eax, eax
mov ebp, 0x483374
mov ebx, 1
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x80], eax
lea eax, [esp + 0x24]
push eax
push edi
lea ecx, [esp + 0x44]
push ecx
call fcn.0040f6f0
mov byte [esp + 0x80], bl
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ecx
push eax
lea edx, [esp + 0x28]
push edx
mov eax, esi
call fcn.0040f1a0
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x1c], edx
mov byte [esp + 0x84], 0
call fcn.0040f140
mov dword [esp + 0x80], 0xffffffff
lea esi, [esp + 0x24]
mov dword [esp + 0x24], ebp
call fcn.0040dca0
cmp dword [esp + 0x14], 0
jne 0x40ef82
call fcn.0043b4b1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
cmp eax, dword [ecx + 4]
jne 0x40ef98
call fcn.0043b4b1
mov eax, dword [esp + 0x18]
add eax, 0x30
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret
Function at 0x413340
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x474701
mov eax, dword fs:[0]
push eax
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov dword [eax], 0x48351c
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x38], ecx
mov dword [eax + 0x3c], ecx
mov dword [eax + 0x40], ecx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret 4
Function at 0x413f80
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4750c8
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x492740]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x84]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
mov eax, dword [ebp + 0x10]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov ebx, edx
mov edx, ecx
sub edx, eax
cmp edx, 1
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
jb 0x414155
mov edx, dword [ebp + 4]
cmp byte [eax + edx], 9
jne 0x414155
add eax, 1
cmp eax, ecx
mov dword [ebp + 0x10], eax
jne 0x413ffa
xor eax, eax
mov dword [ebp + 0x10], eax
mov dword [ebp + 0xc], eax
lea edi, [esp + 0x34]
mov ecx, ebp
call fcn.00415240
test al, al
je 0x414155
mov eax, dword [esp + 0x34]
test al, 1
jne 0x414039
mov edi, eax
shr edi, 1
add esi, 4
call fcn.00415490
mov esi, ebx
mov edi, eax
call fcn.0040dca0
push ebx
mov ecx, edi
call fcn.0040ed30
mov al, 1
jmp 0x414157
xor eax, eax
mov edi, 0x483374
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
push eax
push ebp
lea ebx, [esp + 0x24]
mov dword [esp + 0x94], eax
call fcn.00413b30
test al, al
je 0x41413d
cmp dword [esp + 0x24], 0x11
jne 0x414097
mov edi, dword [esp + 0x2c]
push 0x483091
call fcn.004102b0
add esp, 4
test al, al
jne 0x41417b
mov edi, 0x483374
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x3c]
call fcn.0040e300
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0x90], 1
call fcn.00403ed0
mov ecx, dword [esp + 0x18]
push eax
mov byte [esp + 0x90], 2
call fcn.0040e560
mov ecx, dword [esp + 0x14]
push eax
push ebp
call fcn.00413450
test al, al
lea ecx, [esp + 0x54]
sete bl
call fcn.00403f20
lea ecx, [esp + 0x38]
call fcn.00403f20
mov dword [esp + 0x8c], 0xffffffff
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0040dca0
test bl, bl
jne 0x414155
xor eax, eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x14]
push eax
push ebp
mov ebx, esi
mov dword [esp + 0x94], eax
call fcn.00413b30
test al, al
jne 0x414072
mov dword [esp + 0x8c], 0xffffffff
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.0040dca0
xor al, al
mov ecx, dword [esp + 0x84]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0043aca7
add esp, 0x7c
ret 4
mov dword [esp + 0x8c], 0xffffffff
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], 0x483374
call fcn.0040dca0
mov eax, dword [esp + 0x34]
shr eax, 1
mov edi, eax
mov esi, 0
je 0x4141e3
push esi
push 0x483330
lea edx, [esp + 0x78]
call fcn.00410290
mov ebx, dword [esp + 0x20]
add esp, 8
lea edx, [esp + 0x70]
push edx
push ebx
call fcn.0040e6c0
mov ecx, dword [esp + 0x14]
push eax
push ebp
call fcn.00413450
test al, al
je 0x414155
add esi, 1
cmp esi, edi
jb 0x4141a6
jmp 0x4141e7
mov ebx, dword [esp + 0x18]
push 1
mov esi, ebx
call fcn.0040ecb0
mov esi, dword [esp + 0x14]
add esi, 4
call fcn.004154c0
mov al, 1
jmp 0x414157
Function at 0x415160
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x474650
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x492740]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
push esi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, 1
call fcn.004105c0
mov eax, dword [esi + 4]
add eax, dword [esi + 0xc]
push edi
mov byte [eax], 0xc
add dword [esi + 0xc], 1
lea ecx, [esp + 0x14]
call fcn.0040e300
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x30]
mov dword [esp + 0x58], 0
call fcn.00403ed0
lea ecx, [esp + 0x10]
mov byte [esp + 0x54], 2
call fcn.00403f20
mov eax, dword [esp + 0x40]
add eax, eax
or eax, 1
mov ecx, esi
call fcn.004152b0
test al, al
jne 0x4151f8
lea ecx, [esp + 0x2c]
call fcn.00403f20
xor al, al
jmp 0x41521f
sub esp, 0x1c
lea edx, [esp + 0x48]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00403ed0
mov ecx, esi
call fcn.004104d0
lea ecx, [esp + 0x2c]
mov bl, al
call fcn.00403f20
mov al, bl
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0043aca7
add esp, 0x4c
ret

Function at 0x415e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4740c9
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x492740]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0
mov esi, 1
push 0x483091
mov ecx, edi
mov dword [esp + 0x3c], esi
call fcn.004044b0
sub esp, 0x1c
lea eax, [esp + 0x5c]
mov ecx, esp
mov dword [esp + 0x2c], esp
mov dword [esp + 0x24], esi
push eax
lea esi, [esp + 0x7c]
call fcn.00403ed0
mov ecx, esi
lea esi, [esp + 0x30]
call fcn.00415ec0
add esp, 0x1c
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov byte [esp + 0x44], 2
call fcn.00403f90
mov ecx, esi
call fcn.00403f20
lea ecx, [esp + 0x40]
call fcn.00403f20
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x416810
Capabilities:
Read file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi]
test esi, esi
je 0x416872
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
mov dword [edi], 0
lea esp, [esp]
cmp esi, 0x400000
mov eax, 0x400000
ja 0x41683f
mov eax, esi
mov edx, dword [ebp]
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x1c]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x416877
test ecx, ecx
je 0x416870
test esi, esi
ja 0x416830
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
pop ebp
pop ebx
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]