joyce8/EMBER2024-capa huggingface dataset:
Function at 0x871de0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push edi
mov eax, dword [eax]
mov dword [esp + 8], eax
mov edi, dword [eax + 0x128]
mov eax, dword [esp + 0x14]
cmp eax, 0x1f
jne 0x871f49
push ebp
push esi
lea ebp, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
cmp ebp, esi
mov dword [esi], ebp
jae 0x871e1d
mov byte [ebp], 0xff
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x871e2b
mov byte [eax], 0xfa
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x871e39
mov byte [eax], 0x1f
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov cx, word [edi + 0x1ca8]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push ecx
call ebx
mov dx, word [edi + 0x1caa]
mov dword [esp + 0x1c], eax
push edx
call ebx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x871e68
mov dl, byte [esp + 0x1c]
mov byte [ecx], dl
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x871e79
mov dl, byte [esp + 0x1d]
mov byte [ecx], dl
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x871e86
mov byte [ecx], al
mov ecx, dword [esi]
inc ecx
mov dword [esi], ecx
mov ecx, dword [esi]
cmp ecx, esi
jae 0x871e93
mov byte [ecx], ah
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x871ea1
mov byte [eax], 0xff
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, esi
jae 0x871eaf
mov byte [eax], 0xf0
mov eax, dword [esi]
inc eax
mov dword [esi], eax
mov eax, dword [esi]
mov ebx, dword [esp + 0x10]
mov ecx, eax
lea edx, [edi + 0x1cb2]
sub ecx, ebp
mov dword [edi + 0x1eb4], eax
sub ecx, 2
mov dword [esi], ebp
push ecx
push edx
push 0x3e
push ebx
call fcn.00871ad0
add esp, 0x10
mov esi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push ebp
mov ebp, dword [esp + 0x24]
mov eax, dword [ebp + 0x408]
push eax
call esi
test eax, eax
jge 0x871f08
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00857930
add esp, 0xc
lea ecx, [edi + 0x1cb3]
push 4
push ecx
push ebp
call fcn.00871f50
mov edx, dword [ebp + 0x408]
add esp, 0xc
add edi, 0x1cb7
push 0
push 2
push edi
push edx
call esi
pop esi
pop ebp
test eax, eax
jge 0x871f49
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.00857930
add esp, 0xc
pop edi
pop ebx
pop ecx
ret
Function at 0x87fd70
Capabilities:
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push 0
lea eax, [esp + 8]
push 0
push eax
lea ecx, [esp + 0x18]
push 4
push ecx
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x87fdb2
lea edx, [esp + 0xc]
push 4
push edx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
pop ecx
ret

Function at 0x8806b0
Capabilities:
Get socket status

Disassembly:
mov eax, dword [esp + 8]
sub esp, 8
test eax, eax
push ebx
mov ebx, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x20]
je 0x8806ca
cmp dword [eax], 0
jne 0x8806e4
test ebx, ebx
je 0x8806d3
cmp dword [ebx], 0
jne 0x8806e4
test esi, esi
je 0x880778
cmp dword [esi], 0
je 0x880778
mov ecx, dword [esp + 0x24]
push ebp
test ecx, ecx
lea ebp, [esp + 0xc]
jge 0x8806f5
xor ebp, ebp
jmp 0x880738
jle 0x88072c
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, ecx
mov dword [esp + 0xc], edx
mov ecx, 0x3e8
cdq
idiv ecx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x1c]
shl edx, 3
mov dword [esp + 0x10], edx
jmp 0x880738
test ecx, ecx
jne 0x880738
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
test esi, esi
je 0x880745
cmp dword [esi], 0
je 0x880745
mov edx, esi
jmp 0x880747
xor edx, edx
test ebx, ebx
je 0x880754
cmp dword [ebx], 0
je 0x880754
mov ecx, ebx
jmp 0x880756
xor ecx, ecx
test eax, eax
je 0x88075f
cmp dword [eax], 0
jne 0x880761
xor eax, eax
push ebp
push edx
push ecx
push eax
mov eax, dword [esp + 0x28]
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop ebp
pop esi
pop ebx
add esp, 8
ret
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00880680
add esp, 4
pop esi
pop ebx
add esp, 8
ret
Function at 0x885640
Capabilities:
Move file

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0085fc90
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 1
push ebx
push ebp
mov esi, eax
mov edi, edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x8856a1
push edi
push esi
call fcn.0085fc90
push edx
push eax
call fcn.0085fd30
add esp, 0x10
test edx, edx
jl 0x8856a8
jg 0x88567e
test eax, eax
jb 0x8856a8
test edx, edx
jg 0x8856a8
jl 0x88568b
cmp eax, 0x3e8
ja 0x8856a8
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x885663
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d004]
jne 0x40100a
repz ret
jmp fcn.00401493

Function at 0x408d24
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040581f
and dword [ebp - 4], 0
cmp dword [0x41f284], 0
mov ebx, eax
jne 0x408dd5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408e86
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408e86
push eax
call fcn.004057ad
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f284], eax
call esi
push eax
call fcn.004057ad
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f288], eax
call esi
push eax
call fcn.004057ad
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41f28c], eax
call esi
push eax
call fcn.004057ad
pop ecx
mov dword [0x41f294], eax
test eax, eax
je 0x408dd5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004057ad
pop ecx
mov dword [0x41f290], eax
mov eax, dword [0x41f290]
cmp eax, ebx
je 0x408e2d
cmp dword [0x41f294], ebx
je 0x408e2d
push eax
call fcn.00405828
push dword [0x41f294]
mov esi, eax
call fcn.00405828
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408e2d
test edi, edi
je 0x408e2d
call esi
test eax, eax
je 0x408e24
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408e24
test byte [ebp - 0xc], 1
jne 0x408e2d
or dword [ebp + 0x10], 0x200000
jmp 0x408e66
mov eax, dword [0x41f288]
cmp eax, ebx
je 0x408e66
push eax
call fcn.00405828
pop ecx
test eax, eax
je 0x408e66
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408e66
mov eax, dword [0x41f28c]
cmp eax, ebx
je 0x408e66
push eax
call fcn.00405828
pop ecx
test eax, eax
je 0x408e66
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41f284]
call fcn.00405828
pop ecx
test eax, eax
je 0x408e86
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408e88
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419c80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp esi, 0x19f
jne 0x419c9e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
xor edx, edx
test esi, esi
jle 0x419cbf
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
call fcn.00419c78
mov eax, dword [ebp + 8]
mov cl, byte [ebp - 4]
add eax, edx
xor byte [eax], cl
inc edx
cmp edx, esi
jl 0x419ca4
cmp esi, 0x2d
jne 0x419cd5
or dword [0x4a868c], 0xffffffff
mov dword [0x4a8688], 0xa62e7790
leave
ret
Function at 0x438400
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43842d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43842d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0xdfca38
Capabilities:
Encode data using xor

Disassembly:
jmp 0xdfca42
pushal
call 0xdfca48
pop ebp
sub ebp, 0x10
sub ebp, 0x9fca38
jmp 0xdfca5e
mov eax, 0x9fca38
add eax, ebp
add eax, 0x4c
mov ecx, 0x5af
mov edx, 0xa9053379
xor byte [eax], dl
inc eax
dec ecx
jne 0xdfca75
jmp 0xdfca88
mov ah, 0xf2
invalid
Function at 0x1001d013
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001d052
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001d052
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001d052
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1001d052
cmp dword [ecx + 0x74], 0xe
jbe 0x1001d052
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001fccf
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001fd6c
push ebx
push esi
call fcn.1001fc98
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001fc2c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001fd19
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001fd6b
push edi
push eax
call fcn.10020c8a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001fd39
call fcn.1001e774
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001fd6a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001fc2c
add esp, 0x20
test eax, eax
jne 0x1001fd58
push edi
call fcn.1001e774
jmp 0x1001fd60
push ebx
call fcn.1001e774
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001ffd9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027cc8
push 0x10027cc0
push str.FlsAlloc
push 0x1f
call fcn.1001fef5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002000d
push dword [ebp + 8]
mov ecx, esi
call dword [0x10026150]
call esi
jmp 0x10020013
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10020057
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027cd8
push 0x10027cd0
push str.FlsGetValue
push 0x21
call fcn.1001fef5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1002008e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10026150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10020096
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10027ce0
push 0x10027cd8
push str.FlsSetValue
push 0x22
call fcn.1001fef5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100200d0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10026150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10025750
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002577d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002577d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401189
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40119d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4011be
cmp esi, eax
jae 0x401197
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4011b0
cmp esi, eax
jae 0x401197
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403893
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
je 0x4038e6
call fcn.0042335d
mov edi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebx
je 0x4038e6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x4038dc
xor eax, eax
jmp 0x4039ff
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], 1
je 0x403916
mov eax, dword [esi]
push edi
push dword [ebp - 4]
mov ecx, esi
push ebx
call dword [eax + 0x1c]
cmp dword [ebp - 8], 0
mov dword [ebp - 0xc], eax
je 0x403916
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebx + 0x48]
test eax, eax
je 0x4039fc
mov ecx, dword [eax + 0x40]
and dword [ebp + 0xc], 0
test ecx, ecx
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
je 0x403943
lea ecx, [eax + 0x3c]
lea eax, [ebp + 8]
push eax
call fcn.004029df
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
xor eax, eax
cmp dword [edi + 8], eax
mov dword [ebp - 4], eax
jbe 0x4039fc
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x40398c
mov ecx, dword [ecx + 4]
mov edx, dword [edi + 0xc]
mov ecx, dword [ecx + 0x28]
cmp ecx, dword [edx + eax*8]
jne 0x40398c
mov eax, dword [ebp + 8]
test eax, eax
mov dword [ebp - 8], eax
je 0x403986
mov ecx, dword [ebx + 0x48]
lea eax, [ebp + 8]
add ecx, 0x3c
push eax
call fcn.004029df
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x4039ec
and dword [ebp + 0xc], 0
jmp 0x4039ec
mov ecx, dword [edi + 0xc]
shl eax, 3
cmp dword [eax + ecx], 0
mov dword [ebp - 0x10], eax
je 0x4039ec
push 0xc
call fcn.004195ee
mov esi, eax
test esi, esi
pop ecx
je 0x4039ce
mov eax, dword [edi + 0xc]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x1c]
add eax, edx
push dword [eax]
mov edi, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
and dword [esi + 4], 0
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x10]
mov dword [esi], eax
jmp 0x4039d0
xor esi, esi
mov ecx, dword [ebx + 0x48]
add ecx, 0x3c
cmp dword [ebp - 8], 0
push esi
je 0x4039e7
push dword [ebp - 8]
call fcn.0041902f
jmp 0x4039ec
call fcn.00419006
mov eax, dword [ebp - 4]
inc eax
cmp eax, dword [edi + 8]
mov dword [ebp - 4], eax
jb 0x403951
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x40bf2d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.0040c210
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bfc8
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x436120]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40bfc8
cmp eax, 1
je 0x40bfe9
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40bfc8
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40bf95
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40bfc4
xor eax, eax
inc eax
jmp 0x40c008
cmp edi, eax
jae 0x40bfcc
xor eax, eax
jmp 0x40c008
cmp eax, esi
jae 0x40bfd3
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x436120]
jmp 0x40bfec
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40dd0f
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42a5e0
call fcn.0040df04
push 8
call fcn.0040f055
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x436160], esi
jne 0x40dd43
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x43615c], esi
mov al, byte [ebp + 0x10]
mov byte [0x436158], al
cmp dword [ebp + 0xc], edi
jne 0x40dd8d
cmp dword [0x4379e8], edi
je 0x40dd7d
mov eax, dword [0x4379e4]
sub eax, 4
mov dword [0x4379e4], eax
cmp eax, dword [0x4379e8]
jb 0x40dd7d
mov eax, dword [eax]
cmp eax, edi
je 0x40dd5e
call eax
jmp 0x40dd5e
push 0x432090
mov eax, 0x432088
call fcn.0040dc8d
pop ecx
push 0x43209c
mov eax, 0x432094
call fcn.0040dc8d
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x40ddbe
cmp dword [ebp + 0x10], edi
jne 0x40ddcc
mov dword [0x436160], esi
push dword [ebp + 8]
call fcn.0040dc4b
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x40ddcb
push 8
call fcn.0040efa0
pop ecx
ret
call fcn.0040df3f
ret
Function at 0x40fc2f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40fc5d
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40fc64
cmp ebx, dword [eax + 4]
jae 0x40fc64
xor eax, eax
jmp 0x40fe54
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40fc75
xor eax, eax
inc eax
jmp 0x40fe53
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40fc8b
cmp ecx, edx
jae 0x40fdd0
cmp dword [eax + 4], 0
je 0x40fc94
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40fc7c
cmp dword [ebp + 8], 0
je 0x40fcb6
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40fdd0
cmp eax, esi
jae 0x40fdd0
mov eax, dword [0x4362c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40fcdb
cmp dword [esi*4 + 0x4362d0], edi
je 0x40fdd4
inc esi
cmp esi, eax
jl 0x40fcc9
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40fe50
cmp dword [ebp - 8], 0x1000000
jne 0x40fe50
test byte [ebp - 0xc], 0xcc
je 0x40fd59
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40fe50
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40fe50
cmp word [eax + 0x18], 0x10b
jne 0x40fe50
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40fe50
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40fd59
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40fd59
test byte [ecx + 0x27], 0x80
jne 0x40fdd0
push 1
push 0x436310
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40fc6d
mov ecx, dword [0x4362c8]
test ecx, ecx
mov edx, ecx
jle 0x40fd8d
lea eax, [ecx*4 + 0x4362cc]
cmp dword [eax], edi
je 0x40fd8d
dec edx
sub eax, 4
test edx, edx
jg 0x40fd81
test edx, edx
jne 0x40fdbe
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40fd9a
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40fdb2
lea eax, [edx*4 + 0x4362d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40fda0
cmp ecx, 0x10
jge 0x40fdbe
inc ecx
mov dword [0x4362c8], ecx
push 0
push 0x436310
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40fc6d
xor eax, eax
jmp 0x40fe53
test esi, esi
jle 0x40fc6d
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x436310
call ebx
test eax, eax
jne 0x40fc6d
cmp dword [esi*4 + 0x4362d0], edi
je 0x40fe2a
mov eax, dword [0x4362c8]
lea esi, [eax - 1]
test esi, esi
jl 0x40fe18
cmp dword [esi*4 + 0x4362d0], edi
je 0x40fe14
dec esi
jns 0x40fe08
test esi, esi
jge 0x40fe28
cmp eax, 0x10
jge 0x40fe23
inc eax
mov dword [0x4362c8], eax
lea esi, [eax - 1]
jmp 0x40fe2a
je 0x40fe42
xor ecx, ecx
test esi, esi
jl 0x40fe42
lea eax, [ecx*4 + 0x4362d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40fe30
push 0
push 0x436310
call ebx
jmp 0x40fc6d
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411d8c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x4330f0]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x433770]
je 0x411dc1
inc eax
cmp eax, 0x13
jb 0x411db2
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x433770]
jne 0x411ee7
mov eax, dword [0x436114]
cmp eax, 1
je 0x411ebf
cmp eax, edx
jne 0x411df1
cmp dword [0x4330e4], 1
je 0x411ebf
cmp ecx, 0xfc
je 0x411ee7
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x411e27
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040ff70
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040d540
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x411e5b
mov eax, edi
push eax
call fcn.0040d540
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x42aba0
push edi
call fcn.00415e50
add esp, 0x10
push edi
call fcn.0040d540
push dword [esi + 0x433774]
mov ebx, eax
call fcn.0040d540
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0040c210
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040ff70
push edi
push ebx
call fcn.0040ff80
push 0x42ab80
push ebx
call fcn.0040ff80
push dword [esi + 0x433774]
push ebx
call fcn.0040ff80
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00415d4d
add esp, 0x2c
jmp 0x411ee7
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x433774]
push dword [esi]
call fcn.0040d540
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040d4ce
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret