joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424de0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
test eax, eax
je 0x424df9
lea esi, [eax - 0x20]
mov dword [esp + 0x10], esi
jmp 0x424e05
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
cmp dword [ebp + 8], 0
mov dword [esp + 0x14], 1
je 0x424ecd
mov eax, dword [esi + 4]
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
mov eax, dword [0x46024c]
mov edx, dword [eax - 8]
mov ecx, 1
sub ecx, dword [eax - 4]
sub edx, esi
or ecx, edx
jge 0x424e58
mov ecx, esi
mov eax, 0x46024c
call fcn.00403660
mov eax, dword [0x46024c]
test esi, esi
js 0x424ec3
cmp esi, dword [eax - 8]
jg 0x424ec3
mov dword [eax - 0xc], esi
mov edx, dword [0x46024c]
xor ecx, ecx
mov word [edx + esi*2], cx
lea ecx, [esi + 1]
push ecx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, dword [0x46024c]
mov ebx, eax
test edi, edi
jne 0x424e8c
xor ecx, ecx
jmp 0x424ea2
mov ecx, edi
lea eax, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x424e91
sub ecx, eax
sar ecx, 1
js 0x424ec3
cmp ecx, dword [edi - 8]
jg 0x424ec3
mov dword [edi - 0xc], ecx
mov eax, dword [0x46024c]
xor edx, edx
mov word [eax + ecx*2], dx
cmp ebx, esi
jge 0x424f15
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], edx
jmp 0x424eeb
push 0x80070057
call fcn.004036b0
mov ecx, dword [0x46024c]
mov edx, dword [esi + 4]
push ecx
push 0x401
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x424f15
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add esi, 0x20
je 0x424efd
lea eax, [esi - 0x20]
jmp 0x424eff
xor eax, eax
mov eax, dword [eax + 4]
push 0x401
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4263c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
test esi, esi
jne 0x4263f5
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov edx, dword [ebp + 0xc]
push edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x22c]
push eax
push 0x8004667e
push esi
mov dword [ebp - 0x22c], 1
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x42644f
mov byte [edi], 0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4264bb
lea edx, [ebp - 0x234]
push edx
push 0
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x120]
push ecx
push 0
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x230], 0x30d40
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], 1
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x228], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
setne dl
mov byte [edi], dl
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042d4af
mov esp, ebp
pop ebp
ret
Function at 0x4264d0
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x3ff
lea ecx, [ebp - 0x407]
push 0
push ecx
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x414], 0x124
mov dword [ebp - 0x412], 0x20009206
mov dword [ebp - 0x40e], 0
mov byte [ebp - 0x408], 0
call fcn.004308f0
mov edx, dword [ebp + 8]
add esp, 0xc
push 0x443
push edx
lea edi, [ebp - 0x415]
call fcn.004263c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x426559
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042d4af
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x415], 0
je 0x42668b
push 0
push 0xa
lea eax, [ebp - 0x414]
push eax
push esi
mov byte [ebp - 0x415], 0
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x42668b
mov ebx, dword [sym.imp.WS2_32.dll_recv]
mov edi, 0xa
push 0
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push esi
call ebx
cmp eax, 0xffffffff
jne 0x4265c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4265c5
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, edi
dec edi
test edx, edx
jne 0x426593
test edi, edi
je 0x42668b
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 0x404]
mov dx, word [ebp - 0x400]
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x410], ecx
mov word [ebp - 0x40c], dx
cmp al, 0x24
jne 0x42668b
mov eax, dword [ebp - 0x402]
test eax, eax
je 0x426662
cmp dword [ebp - 0x406], 0x55aa0000
jne 0x42668b
cmp eax, 0xd
je 0x426629
mov eax, dword [ebp - 0x41c]
push str.Old_version
push eax
mov ebx, 0xb
jmp 0x42667f
movzx ecx, word [ebp - 0x3fa]
mov edx, dword [ebp - 0x3fa]
movzx eax, word [ebp - 0x3fe]
mov edi, dword [ebp - 0x41c]
push ecx
mov ecx, dword [ebp - 0x3fe]
shr edx, 0x10
push edx
push eax
shr ecx, 0x10
push ecx
push str._d._d._d._d
call fcn.00403fb0
add esp, 0x14
jmp 0x426684
cmp dword [ebp - 0x406], 0x55aa0000
jne 0x42668b
mov edx, dword [ebp - 0x41c]
push str.Unknown
push edx
mov ebx, 7
call fcn.004036d0
mov byte [ebp - 0x415], 1
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x415]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d4af
mov esp, ebp
pop ebp
ret
Function at 0x426eb0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447c08
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push edi
mov eax, dword [0x45c070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x50]
push eax
call fcn.0040a760
mov dword [ebp - 4], 0
mov eax, dword [esi + 4]
push eax
lea edi, [ebp - 0x50]
call fcn.004272f0
cmp eax, 1
jne 0x42700a
mov ebx, dword [0x45f340]
sub ebx, dword [0x45f344]
lea edi, [esi + 0x74]
inc ebx
mov eax, ebx
call fcn.00427990
mov eax, dword [esi + 0x40]
push eax
lea edi, [esi + 0x94]
call fcn.00427390
mov ecx, dword [esi + 0x98]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0xb4]
movzx edx, bx
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
shl edx, 0x10
push edx
push 0
push 0x401
push eax
call ebx
cmp dword [esi + 0x78], 0
ja 0x426f5e
push 0x80070057
call fcn.004036b0
mov eax, dword [esi + 0x74]
mov ecx, dword [0x45f344]
mov dword [eax], ecx
cmp dword [esi + 0x78], 0
ja 0x426f79
push 0x80070057
call fcn.004036b0
mov edi, dword [esi + 0x74]
lea edi, [edi + 8]
mov eax, 0x45f398
call fcn.00403850
cmp dword [esi + 0x78], 0
ja 0x426f99
push 0x80070057
call fcn.004036b0
mov edi, dword [esi + 0x74]
lea edi, [edi + 0xc]
mov eax, 0x45f39c
call fcn.00403850
cmp dword [esi + 0x78], 0
ja 0x426fb9
push 0x80070057
call fcn.004036b0
mov edi, dword [esi + 0x74]
lea edi, [edi + 0x10]
mov eax, 0x45f3a0
call fcn.00403850
mov edx, dword [esi + 0x40]
push 0xffff0000
push 0
push 0x1101
push edx
call ebx
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0
push 0
push 0x426ea0
push 0
mov byte [esi + 0x64], 0
push 0
mov dword [esi + 0xbc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x42701e
push eax
call fcn.0044468c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a830
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [edi + 0x24]
push esi
mov esi, dword [edi + 0x34]
sub esi, dword [edi + 0x6c]
mov eax, dword [edi + 0x64]
mov ecx, dword [edi + 0x24]
lea edx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, edx
jb 0x42a8a9
mov eax, dword [edi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00430580
mov edx, dword [edi + 0x44]
mov eax, dword [edi + 0x3c]
sub dword [edi + 0x68], ebx
sub dword [edi + 0x64], ebx
add esp, 0xc
sub dword [edi + 0x54], ebx
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x42a880
sub eax, ebx
jmp 0x42a882
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x42a871
mov ecx, dword [edi + 0x38]
mov edx, ebx
lea ecx, [ecx + ebx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebx
jb 0x42a89f
sub eax, ebx
jmp 0x42a8a1
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x42a890
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x42a903
mov edx, dword [edi + 0x6c]
add edx, dword [edi + 0x64]
mov ecx, esi
add edx, dword [edi + 0x30]
mov esi, eax
push edx
call fcn.0042a5c0
add dword [edi + 0x6c], eax
mov edx, dword [edi + 0x6c]
add esp, 4
cmp edx, 3
jb 0x42a8ef
mov esi, dword [edi + 0x64]
add esi, dword [edi + 0x30]
mov ecx, dword [edi + 0x50]
movzx eax, byte [esi]
mov dword [edi + 0x40], eax
shl eax, cl
movzx ecx, byte [esi + 1]
xor eax, ecx
and eax, dword [edi + 0x4c]
mov dword [edi + 0x40], eax
cmp edx, 0x106
jae 0x42a903
mov edx, dword [edi]
cmp dword [edx + 4], 0
jne 0x42a835
pop esi
pop ebx
ret
Function at 0x42ba20
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
movzx ecx, di
shr edi, 0x10
test esi, esi
jne 0x42ba3c
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x42bb47
jmp 0x42ba50
mov eax, ebx
cmp ebx, 0x15b0
jb 0x42ba5f
mov eax, 0x15b0
sub ebx, eax
mov dword [ebp + 0x10], ebx
cmp eax, 0x10
jl 0x42bb0c
mov edx, eax
shr edx, 4
mov ebx, edx
neg ebx
shl ebx, 4
add eax, ebx
jmp 0x42ba80
movzx ebx, byte [esi]
add ecx, ebx
movzx ebx, byte [esi + 1]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 2]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 3]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 4]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 5]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 6]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 7]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 8]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 9]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xa]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xb]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xc]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xd]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xe]
add edi, ecx
add ecx, ebx
movzx ebx, byte [esi + 0xf]
add edi, ecx
add ecx, ebx
add edi, ecx
add esi, 0x10
dec edx
jne 0x42ba80
mov ebx, dword [ebp + 0x10]
test eax, eax
je 0x42bb1b
movzx edx, byte [esi]
add ecx, edx
inc esi
add edi, ecx
dec eax
jne 0x42bb10
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul edx, edx, 0xffff000f
add ecx, edx
mov eax, 0x80078071
mul edi
shr edx, 0xf
imul edx, edx, 0xffff000f
add edi, edx
test ebx, ebx
jne 0x42ba50
mov eax, edi
pop ebx
shl eax, 0x10
pop edi
or eax, ecx
pop esi
pop ebp
ret

Function at 0x42d4af
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45c070]
jne 0x42d4b9
repz ret
jmp fcn.0043127d
Function at 0x43d63c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45c070]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0043195c
and dword [ebp - 0x14], 0
cmp dword [0x45f058], 0
mov dword [ebp - 0x18], eax
jne 0x43d6ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43d797
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44eef0
push ebx
call edi
test eax, eax
je 0x43d797
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x45f058], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45f05c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x45f060], eax
call edi
push eax
call esi
mov dword [0x45f068], eax
test eax, eax
je 0x43d6ef
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x45f064], eax
mov eax, dword [0x45f064]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43d748
cmp dword [0x45f068], ecx
je 0x43d748
push eax
call esi
push dword [0x45f068]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43d748
test ebx, ebx
je 0x43d748
call edi
test eax, eax
je 0x43d73f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43d73f
test byte [ebp - 8], 1
jne 0x43d748
or dword [ebp + 0x10], 0x200000
jmp 0x43d77b
mov eax, dword [0x45f05c]
cmp eax, dword [ebp - 0x18]
je 0x43d77b
push eax
call esi
test eax, eax
je 0x43d77b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43d77b
mov eax, dword [0x45f060]
cmp eax, dword [ebp - 0x18]
je 0x43d77b
push eax
call esi
test eax, eax
je 0x43d77b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x45f058]
call esi
test eax, eax
je 0x43d797
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43d799
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d4af
leave
ret
Function at 0x44473c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x45f108], 0
push esi
push edi
jne 0x4446b2
call fcn.0044461e
test eax, eax
je 0x4446f7
mov eax, dword [0x45f108]
cmp eax, 1
jne 0x4446d3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4446f7
jmp 0x444739
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x444739
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 0x4446fb
xor eax, eax
jmp 0x444739
mov eax, dword [esi]
push dword [0x45f108]
call edi
mov edi, eax
test edi, edi
je 0x44471d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x444739
lea edi, [esi + 0xff0]
push esi
push dword [0x45f108]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x444723
mov eax, esi
pop edi
pop esi
ret
jmp 0x44469e
Function at 0x401c00
Capabilities:
Get disk information

Disassembly:
sub esp, 8
push esi
push edi
push 0x208
call fcn.00402c52
push 0x208
mov esi, eax
call fcn.00402c52
mov edi, eax
mov eax, dword [0x49547c]
add esp, 8
test eax, eax
jne 0x401c63
mov ecx, dword [0x43e050]
mov eax, dword [0x43e060]
push 0x104
push esi
sub eax, ecx
sub eax, 9
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
push 0x104
push edi
push 0x43c2fc
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
mov eax, dword [0x43e050]
mov ecx, dword [0x49547c]
mov edx, eax
imul edx, edx, 0x4d
push ebx
mov ebx, dword [esp + 0xc]
inc ecx
add edx, ebx
cmp ecx, 0xe
mov dword [0x49547c], ecx
mov dword [esp + 0x10], edx
pop ebx
jne 0x401ca4
mov ecx, dword [0x43e060]
sub ecx, eax
sub ecx, 9
mov dword [0x49547c], 0
mov dword [esp + 0xc], ecx
push esi
call fcn.00402c4d
push edi
call fcn.00402c4d
mov eax, dword [esp + 0x10]
add esp, 8
pop edi
pop esi
add esp, 8
ret
Function at 0x402ca9
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x43c348
call fcn.0040398c
mov edi, 0x94
mov eax, edi
call fcn.00404a90
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x4954ac], ecx
mov eax, dword [esi + 4]
mov dword [0x4954b8], eax
mov edx, dword [esi + 8]
mov dword [0x4954bc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x4954b0], esi
cmp ecx, 2
je 0x402d09
or esi, 0x8000
mov dword [0x4954b0], esi
shl eax, 8
add eax, edx
mov dword [0x4954b4], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x402d44
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402d44
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x402d5c
cmp eax, 0x20b
je 0x402d49
mov dword [ebp - 0x1c], esi
jmp 0x402d70
cmp dword [ecx + 0x84], 0xe
jbe 0x402d44
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x402d6a
cmp dword [ecx + 0x74], 0xe
jbe 0x402d44
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00404a30
pop ecx
test eax, eax
jne 0x402d84
push 0x1c
call fcn.00402c85
pop ecx
call fcn.00403323
test eax, eax
jne 0x402d95
push 0x10
call fcn.00402c85
pop ecx
call fcn.0040498e
mov dword [ebp - 4], esi
call fcn.00403412
test eax, eax
jge 0x402dae
push 0x1b
call fcn.00402c60
pop ecx
call fcn.004048ef
mov dword [0x495dc0], eax
call fcn.00404785
mov dword [0x495484], eax
call fcn.004046ef
test eax, eax
jge 0x402dd3
push 8
call fcn.00402c60
pop ecx
call fcn.004044bc
test eax, eax
jge 0x402de4
push 9
call fcn.00402c60
pop ecx
push 1
call fcn.00403ecb
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x402dfa
push eax
call fcn.00402c60
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
call fcn.00404476
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x402e1b
movzx eax, word [ebp - 0x40]
jmp 0x402e1e
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00402090
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x402e3c
push edi
call fcn.00403ff8
call fcn.0040401a
jmp 0x402e6e
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.004039c7
ret
Function at 0x403ae1
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00404a90
mov eax, dword [0x4579a0]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00403dfd
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x403c14
push 2
push esi
push dword [ebp + 8]
call fcn.00403dfd
add esp, 0xc
cmp eax, ebx
je 0x403c14
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x403bb4
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004051d0
push 0x8000
push dword [ebp + 8]
call fcn.0040269b
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x403b6a
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0040625f
add esp, 0xc
cmp eax, 0xffffffff
je 0x403b8a
sub edi, eax
test edi, edi
jg 0x403b62
jmp 0x403ba2
call fcn.00402e86
cmp dword [eax], 5
jne 0x403b9f
call fcn.00402e7d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0040269b
pop ecx
pop ecx
jmp 0x403bfc
jge 0x403bfc
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00403dfd
push dword [ebp + 8]
call fcn.0040370b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x403bfc
call fcn.00402e7d
mov dword [eax], 0xd
call fcn.00402e86
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00403dfd
add esp, 0xc
mov eax, esi
pop edi
jmp 0x403c16
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004057be
leave
ret
Function at 0x403c22
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x403df6
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x495cc0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x403df6
test cl, 0x48
je 0x403c8d
cmp byte [eax + 5], 0xa
je 0x403c8d
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403cdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x403cc7
call fcn.00402e7d
mov dword [eax], 9
call fcn.00402e86
mov dword [eax], esi
jmp 0x403cd7
cmp eax, 0x6d
je 0x403df6
push eax
call fcn.00402e8f
pop ecx
or eax, 0xffffffff
jmp 0x403df8
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x403df1
test eax, eax
je 0x403d06
cmp byte [ebx], 0xa
jne 0x403d06
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x403d0f
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x403deb
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x403ddb
cmp al, 0xd
je 0x403d41
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x403dcd
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x403d5b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x403d56
add dword [ebp + 0x10], 2
jmp 0x403daf
mov dword [ebp + 0x10], eax
jmp 0x403dc9
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x403d83
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403dc9
cmp dword [ebp - 0xc], 0
je 0x403dc9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x403da4
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x403daf
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x403dcc
cmp ebx, dword [ebp + 0xc]
jne 0x403db4
cmp byte [ebp - 1], 0xa
jne 0x403db4
mov byte [ebx], 0xa
jmp 0x403dcc
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00403dfd
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x403dcd
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x403d25
jmp 0x403deb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x403deb
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x403df8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret