joyce8/EMBER2024-capa huggingface dataset:
Function at 0x464a50
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x24
mov eax, dword [0x4a3eb0]
xor eax, esp
mov dword [esp + 0x20], eax
push 0x4902d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x464a7c
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00473c8a
add esp, 0x24
ret
push esi
push 0x4902bc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x464a9f
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00473c8a
add esp, 0x24
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
push edi
lea eax, [esp + 0x10]
push eax
push 0x40
push 5
push esi
mov dword [esp + 0x20], 0
call ebx
lea edx, [esp + 0x14]
push edx
mov edi, eax
push 5
mov ecx, method.ATL::CComObject_class_CDeviceManager_.2.virtual_304
lea eax, [esp + 0x24]
sub ecx, esi
push eax
sub ecx, 5
push esi
mov byte [esp + 0x2c], 0xe9
mov dword [esp + 0x2d], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
test edi, edi
je 0x464b00
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
push 5
push esi
call ebx
mov ecx, dword [esp + 0x30]
pop edi
mov eax, ebp
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.00473c8a
add esp, 0x24
ret

Function at 0x464b20
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x1c
push edi
mov edi, dword [esp + 0x24]
push 0x1c
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x464b3f
pop edi
add esp, 0x1c
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push esi
mov esi, dword [esp + 0xc]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x464b5f
pop esi
pop edi
add esp, 0x1c
ret
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 0x14]
add eax, esi
push ebx
push ebp
movzx ebp, word [eax + 6]
sub edi, esi
xor ebx, ebx
lea ecx, [ecx + eax + 0x18]
test ebp, ebp
jbe 0x464ba0
lea eax, [ecx + 0x10]
mov edi, edi
mov ecx, dword [eax]
mov edx, dword [eax - 8]
mov esi, dword [eax - 4]
cmp ecx, edx
ja 0x464b8e
mov ecx, edx
cmp edi, esi
jb 0x464b98
add ecx, esi
cmp edi, ecx
jbe 0x464baa
inc ebx
add eax, 0x28
cmp ebx, ebp
jb 0x464b80
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
add esp, 0x1c
ret
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
inc ebx
pop ebp
mov dword [edx], ebx
sub edi, esi
pop ebx
mov dword [eax], edi
pop esi
mov eax, 1
pop edi
add esp, 0x1c
ret
Function at 0x465962
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4a4428], 0
push esi
jne 0x4658d5
call fcn.004657fb
test eax, eax
je 0x465918
mov eax, dword [0x4a4428]
cmp eax, 1
jne 0x4658f6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x465918
pop esi
ret
push eax
call dword [0x4a4430]
test eax, eax
jne 0x465960
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x46591c
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4a4428]
call dword [0x4a4430]
mov edi, eax
test edi, edi
je 0x465941
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x46595d
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4a4428]
call dword [0x4a442c]
add edi, 0x10
cmp edi, esi
jb 0x465949
mov eax, edi
pop edi
pop esi
ret
jmp 0x4658c2

Function at 0x467e2e
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x100]
mov byte [ebp + 0xb], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 1], cl
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x467e8e
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], ecx
inc byte [ebp + 0xb]
movzx ecx, byte [ebp + 0xb]
lea esi, [ecx + eax]
mov dl, byte [esi]
add byte [ebp - 1], dl
movzx ecx, byte [ebp - 1]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
xor ecx, ecx
mov cl, byte [esi]
add ecx, edx
and ecx, 0xff
mov cl, byte [ecx + eax]
xor byte [edi], cl
inc edi
dec dword [ebp + 0xc]
jne 0x467e59
pop edi
pop esi
pop ebx
mov cl, byte [ebp + 0xb]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 1]
mov byte [eax + 0x101], cl
leave
ret
Function at 0x467f8b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
cmp dword [0x4a5140], 0
mov eax, dword [0x4a3eb0]
mov dword [ebp - 4], eax
jne 0x468079
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x46806e
xor eax, eax
cmp dword [ebp - 0x88], 2
push esi
sete al
test eax, eax
mov dword [0x4a3e8c], eax
je 0x46803c
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x46806d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQuerySystemInformation
push edi
call esi
test eax, eax
mov dword [0x4a512c], eax
je 0x468020
mov dword [0x4a3e88], 0x4000
push str.NtOpenFile
push edi
call esi
push str.RtlInitUnicodeString
push edi
mov dword [0x4a5130], eax
call esi
mov dword [0x4a5134], eax
jmp 0x46806d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x46806d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetCursorPos
push edi
call esi
push str.GetMessageTime
push edi
mov dword [0x4a5124], eax
call esi
mov dword [0x4a5128], eax
pop esi
mov dword [0x4a5140], 1
pop edi
mov ecx, dword [ebp - 4]
mov eax, dword [0x4a3e8c]
call fcn.00473c8a
leave
ret
Function at 0x468c53
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
test esi, esi
je 0x468ca0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, edx
sub ecx, edx
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], esi
mov esi, dword [edi + edx]
mov ecx, dword [edx]
lea ebx, [ecx + esi]
add eax, ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebx + edx], eax
mov ebx, ecx
xor ebx, esi
and ebx, eax
or ecx, esi
xor ebx, ecx
shr ebx, 0x1f
add edx, 4
dec dword [ebp + 0x14]
mov eax, ebx
jne 0x468c77
pop edi
pop ebx
pop esi
pop ebp
ret 0x10

Function at 0x468e7f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x14]
xor eax, eax
test edx, edx
je 0x468ecc
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
sub ebx, esi
sub ecx, esi
push edi
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], edx
mov edi, dword [ebx + esi]
mov edx, dword [esi]
mov ecx, edi
sub ecx, edx
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax + esi], ecx
xor ecx, edi
xor edx, edi
or ecx, edx
xor ecx, edi
shr ecx, 0x1f
add esi, 4
dec dword [ebp + 0x14]
mov eax, ecx
jne 0x468ea3
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x46e2d6
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x170
push esi
xor esi, esi
push edi
inc ecx
movzx edi, byte [ecx + 1]
xor edx, edx
mov dh, byte [ecx - 1]
mov dl, byte [ecx]
add ecx, 4
shl edx, 8
or edx, edi
movzx edi, byte [ecx - 2]
shl edx, 8
or edx, edi
mov dword [ebp + esi*4 - 0x170], edx
inc esi
cmp esi, 0x10
jb 0x46e2e6
push 5
pop ecx
mov esi, eax
lea edi, [ebp - 0x30]
push 0x40
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x168]
pop esi
mov ecx, dword [edx + 0x2c]
xor ecx, dword [edx + 0x18]
xor ecx, dword [edx - 8]
xor ecx, dword [edx]
add edx, 4
mov edi, ecx
shr edi, 0x1f
add ecx, ecx
or edi, ecx
dec esi
mov dword [edx + 0x34], edi
jne 0x46e322
mov ecx, dword [eax]
mov edi, dword [eax + 8]
and dword [ebp - 4], 0
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 4]
and dword [ebp - 8], 0
push ebx
mov ebx, dword [eax + 0x10]
mov dword [ebp - 0x10], ebx
lea ebx, [ebp - 0x170]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ebx
mov ebx, ecx
shl ecx, 5
shr ebx, 0x1b
or ebx, ecx
mov ecx, dword [ebp - 8]
cmp ecx, 0x3c
mov dword [ebp - 0x1c], ebx
jge 0x46e391
cmp ecx, 0x28
jl 0x46e38c
mov ecx, esi
or ecx, edi
and ecx, edx
mov ebx, esi
jmp 0x46e3a5
cmp ecx, 0x14
jl 0x46e399
mov ecx, edx
xor ecx, esi
xor ecx, edi
jmp 0x46e3ad
test ecx, ecx
jl 0x46e3ab
mov ecx, edx
not ecx
and ecx, esi
mov ebx, edx
and ebx, edi
or ecx, ebx
jmp 0x46e3ad
xor ecx, ecx
mov edi, dword [ebp - 0xc]
mov edi, dword [edi]
add edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x1c]
add edi, ecx
mov ecx, dword [ebp - 4]
add ebx, edi
cmp cx, 0x3c
jl 0x46e3cc
mov ecx, 0xca62c1d6
jmp 0x46e3f4
cmp cx, 0x28
jl 0x46e3d9
mov ecx, 0x8f1bbcdc
jmp 0x46e3f4
cmp cx, 0x14
jl 0x46e3e6
mov ecx, 0x6ed9eba1
jmp 0x46e3f4
test cx, cx
jl 0x46e3f2
mov ecx, 0x5a827999
jmp 0x46e3f4
xor ecx, ecx
add dword [ebp - 0xc], 4
mov edi, edx
shr edx, 2
shl edi, 0x1e
or edi, edx
mov edx, dword [ebp - 0x18]
add ecx, ebx
inc dword [ebp - 4]
inc dword [ebp - 8]
cmp word [ebp - 4], 0x50
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
jl 0x46e368
mov dword [eax], ecx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov dword [eax + 0xc], esi
mov dword [eax + 4], edx
lea ecx, [ebp - 0x30]
mov esi, ecx
mov edx, eax
push 5
sub edx, esi
pop esi
mov dword [eax + 8], edi
pop ebx
mov edi, dword [edx + ecx]
add dword [ecx], edi
add ecx, 4
dec esi
jne 0x46e442
push 5
pop ecx
lea esi, [ebp - 0x30]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
leave
ret

Function at 0x46e7f0
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
call fcn.0046e779
test eax, eax
je 0x46e831
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push str.Seed
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 8
Function at 0x46ea30
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor edx, edx
xor ecx, ecx
push esi
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
push edi
mov edi, eax
mov ebx, dword [esp + 0x14]
push ebp
mov cl, byte [esi + 0x100]
mov ebp, ebx
mov dl, byte [esi + 0x101]
test ebx, ebx
je 0x46eb6b
shr ebx, 2
and eax, 3
test ebx, ebx
je 0x46eb40
test eax, eax
jne 0x46eb40
mov eax, edi
lea edi, [edi + ebx*4]
mov dword [esp + 0x1c], edi
sub eax, 4
mov ebp, ebx
mov edi, dword [eax + 4]
inc ecx
xor eax, eax
and ecx, 0xff
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 8
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
inc ecx
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x10
xor edi, eax
and ecx, 0xff
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, 0xff
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov al, byte [esi + eax]
shl eax, 0x18
lea ebx, [ebp*4]
xor edi, eax
mov eax, dword [esp + 0x1c]
sub eax, ebx
mov dword [eax], edi
dec ebp
jne 0x46ea80
mov ebp, dword [esp + 0x18]
and ebp, 3
test ebp, ebp
je 0x46eb6b
lea edi, [eax + 4]
inc ecx
mov ebx, 0xff
and ecx, ebx
xor eax, eax
mov al, byte [esi + ecx]
add edx, eax
and edx, ebx
xor ebx, ebx
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov byte [esi + edx], al
add al, bl
mov bl, byte [edi]
mov al, byte [esi + eax]
xor bl, al
mov byte [edi], bl
inc edi
dec ebp
jne 0x46eb40
pop ebp
pop edi
lea eax, [esi + 0x100]
pop esi
mov byte [eax], cl
pop ebx
mov byte [eax + 1], dl
ret 0xc

Function at 0x46efa0
Capabilities:
Hash data with md5

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret 4
Function at 0x473c8a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a3eb0]
jne 0x473c94
repz ret
jmp fcn.00474310
Function at 0x401970
Capabilities:
Check http status code

Disassembly:
sub esp, 8
push ebp
push esi
mov esi, dword [esp + 0x14]
xor eax, eax
test esi, esi
push edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], 4
je 0x4019ec
mov ebp, dword [sym.imp.WININET.dll_HttpSendRequestA]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
mov ecx, dword [esp + 0x1c]
mov edx, ecx
dec ecx
test edx, edx
mov dword [esp + 0x1c], ecx
jle 0x4019ec
push 0
push 0
push 0
push 0
push esi
call ebp
test eax, eax
je 0x401998
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x20000013
push esi
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 4
call edi
test eax, eax
je 0x401998
cmp dword [esp + 0xc], 0xc8
je 0x4019ec
xor eax, eax
jmp 0x401998
pop edi
pop esi
pop ebp
add esp, 8
ret
Function at 0x100508a
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x300c
call fcn.01003b43
mov eax, dword [0x100702c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
mov dword [ebp - 0x300c], eax
lea eax, [ebp - 0x300c]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 0
push dword [ebp + 0xc]
push 0
push 0x800
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov dword [ebp - 0x3008], eax
test eax, eax
je 0x1005174
push eax
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0x2000
lea eax, [ebp - 0x3004]
push eax
call dword [sym.imp.ntdll.dll_RtlMultiByteToUnicodeN]
test eax, eax
jl 0x1005166
push dword [ebp - 0x3008]
lea eax, [ebp - 0x3004]
push eax
lea eax, [ebp - 0x3008]
push eax
push 0xfff
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToOemN]
test eax, eax
jl 0x1005158
mov eax, dword [ebp - 0x3008]
mov byte [ebp + eax - 0x1004], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1005208
push esi
call dword [sym.imp.msvcrt.dll_fprintf]
add esp, 0xc
jmp 0x1005187
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10051e0
jmp 0x1005180
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x10051b0
jmp 0x1005180
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1005194
call sub.ntdll.dll_DbgPrint
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0100190b
leave
ret

Function at 0x1005210
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [0x1007044]
mov eax, dword [sym.imp.msvcrt.dll__iob]
push dword [ebp + 8]
add eax, 0x40
push eax
call fcn.0100508a
add esp, 0xc
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x73a21f7b
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x351d6174
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401120
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor ebx, ebx
push edi
mov dword [esp + 0x14], ebx
call fcn.00409058
push edi
mov esi, eax
push ebx
push esi
call fcn.0040a7f0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
add esp, 0x10
push ebx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401171
push edi
mov edx, esi
call fcn.00408fe0
mov ebx, eax
test esi, esi
je 0x40117e
push esi
call fcn.0040927b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
pop ecx
ret 0xc
Function at 0x4011d0
Capabilities:
Check for peb beingdebugged flag
Get file size
Print debug messages
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x414a8b
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x240], eax
push ebp
push esi
push edi
mov eax, dword [0x41c050]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x264]
mov edi, dword [esp + 0x268]
xor eax, eax
mov word [esp + 0x30], ax
mov eax, ebp
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401234
sub eax, edx
sar eax, 1
push eax
mov eax, ebp
lea esi, [esp + 0x30]
call fcn.004015f0
mov eax, edi
mov dword [esp + 0x25c], 0
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401260
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x30]
call fcn.00401510
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x30]
jae 0x40128a
lea eax, [esp + 0x30]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x401374
cmp esi, 0xffffffff
je 0x401374
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
push 0
push esi
mov dword [edi + 0x100], ecx
mov dword [edi + 0x104], edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0xf0], eax
test eax, eax
jle 0x40135f
push eax
call fcn.00409058
mov ecx, dword [edi + 0xf0]
push ecx
push 0
push eax
mov dword [edi + 0xf8], eax
call fcn.0040a7f0
mov eax, dword [edi + 0xf0]
mov ecx, dword [edi + 0xf8]
add esp, 0x10
push 0
lea edx, [esp + 0x14]
push edx
push eax
push ecx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40135f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebp
lea edx, [esp + 0x50]
push str.GetFileInfo_ReadFile__s_errorCode:_d
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x44], 8
jb 0x401388
mov ecx, dword [esp + 0x30]
push ecx
jmp 0x401380
cmp dword [esp + 0x44], 8
jb 0x401388
mov edx, dword [esp + 0x30]
push edx
call fcn.00409270
add esp, 4
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0040913f
add esp, 0x250
ret 8
Function at 0x4013c0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x414a58
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x34], eax
push esi
push edi
mov eax, dword [0x41c050]
xor eax, esp
push eax
lea eax, [esp + 0x44]
mov dword fs:[0], eax
mov eax, dword [esp + 0x54]
mov edi, dword [esp + 0x58]
xor ecx, ecx
mov word [esp + 0x28], cx
mov ecx, eax
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x401414
sub ecx, esi
sar ecx, 1
push ecx
lea esi, [esp + 0x28]
call fcn.004015f0
mov eax, edi
mov dword [esp + 0x4c], 0
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401440
sub eax, edx
sar eax, 1
push eax
mov eax, edi
lea ecx, [esp + 0x28]
call fcn.00401510
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x40146a
lea eax, [esp + 0x28]
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x4014dc
cmp esi, 0xffffffff
je 0x4014dc
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push 0
push esi
mov dword [edi + 0x100], edx
mov dword [edi + 0x104], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [edi + 0xf0], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x3c], 8
jb 0x4014f0
mov ecx, dword [esp + 0x28]
push ecx
jmp 0x4014e8
cmp dword [esp + 0x3c], 8
jb 0x4014f0
mov edx, dword [esp + 0x28]
push edx
call fcn.00409270
add esp, 4
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.0040913f
add esp, 0x44
ret 8

Function at 0x401ff0
Capabilities:
Print debug messages
Query environment variable

Disassembly:
sub esp, 0x68
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x64], eax
push edi
push 0x63
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.0040a7f0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push str.Check_debug_flag____d___n
lea ecx, [esp + 0xc]
push 0x64
push ecx
call fcn.00409879
add esp, 0x10
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
je 0x4020aa
push esi
mov esi, eax
cmp word [eax], di
je 0x402081
nop
push 0xc
push str.DSM_DEBUGON
push esi
call fcn.00409a08
add esp, 0xc
test eax, eax
je 0x402094
mov eax, esi
cmp word [esi], di
je 0x402078
jmp 0x402070
add eax, 2
cmp word [eax], di
jne 0x402070
cmp word [eax + 2], di
lea esi, [eax + 2]
jne 0x402050
pop esi
mov eax, edi
pop edi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0040913f
add esp, 0x68
ret
pop esi
mov eax, 1
pop edi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0040913f
add esp, 0x68
ret
mov ecx, dword [esp + 0x68]
mov eax, edi
pop edi
xor ecx, esp
call fcn.0040913f
add esp, 0x68
ret
Function at 0x4026a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x414b08
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x41c050]
xor eax, esp
mov dword [esp + 0x7c], eax
push esi
mov eax, dword [0x41c050]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x174]
sub ecx, dword [esi + 0x170]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x4026fd
call fcn.00409f0d
mov eax, dword [esi + 0x170]
xor ecx, ecx
push 0xffffffffffffffff
mov word [esp + 0x70], cx
push ecx
lea ecx, [esp + 0x70]
mov dword [esp + 0x88], 7
mov dword [esp + 0x84], 0
call fcn.00401760
push 1
mov eax, 0x4196f0
lea ecx, [esp + 0x6c]
mov dword [esp + 0x94], 0
call fcn.00401510
push 0
add esi, 0x180
push esi
or eax, 0xffffffff
lea esi, [esp + 0x70]
call fcn.004016a0
push 0x44
lea edx, [esp + 0x20]
push 0
push edx
call fcn.0040a7f0
xor eax, eax
mov esi, 8
add esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x1c], 0x44
cmp dword [esp + 0x80], esi
jae 0x40279d
lea eax, [esp + 0x6c]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0x10
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [esp + 0x80], esi
jb 0x4027d2
mov eax, dword [esp + 0x6c]
push eax
call fcn.00409270
add esp, 4
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x7c]
xor ecx, esp
call fcn.0040913f
add esp, 0x8c
ret