joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9f0
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ebx, [ebp + 8]
mov dword [ebp - 4], ecx
mov esi, 4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
push 0
push esi
push ebx
push dword [eax + 0x60]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x40bac0
sub esi, eax
add ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x7530
ja 0x40bac0
test esi, esi
jg 0x40ba10
mov edx, dword [edi + 0x10]
mov ecx, dword [ebp + 8]
cmp ecx, edx
ja 0x40ba61
mov dword [edi + 0x10], ecx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x40ba5b
mov eax, dword [edi]
mov byte [eax + ecx], 0
jmp 0x40baa3
mov esi, dword [edi + 0x14]
mov ebx, ecx
mov eax, esi
sub ebx, edx
sub eax, edx
cmp ebx, eax
ja 0x40ba91
mov dword [edi + 0x10], ecx
mov eax, edi
cmp esi, 0x10
jb 0x40ba7c
mov eax, dword [edi]
push ebx
lea esi, [eax + edx]
push 0
push esi
call fcn.0046c540
add esp, 0xc
mov byte [esi + ebx], 0
jmp 0x40baa3
push 0
push ebx
mov byte [ebp - 8], 0
mov ecx, edi
push dword [ebp - 8]
push ebx
call fcn.0040fa50
cmp dword [edi + 0x14], 0x10
jb 0x40baab
mov edi, dword [edi]
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
push edi
call fcn.0040b7e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bad0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 4], ecx
lea edi, [ebp + 8]
lea eax, [ebx + 0x10]
mov esi, 4
mov dword [ebp - 0xc], eax
mov eax, dword [eax]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 8], eax
nop dword [eax + eax]
mov eax, dword [ebp - 4]
push 0
push esi
push edi
push dword [eax + 0x60]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x40bb4c
sub esi, eax
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 8]
cmp eax, 0x7530
ja 0x40bb4c
test esi, esi
jg 0x40bb00
cmp dword [ebx + 0x14], 0x10
jb 0x40bb35
mov ebx, dword [ebx]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push dword [eax]
push ebx
call fcn.0040b840
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c2b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
push edi
cmp esi, eax
je 0x40c2d7
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x40c2cc
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0040ea50
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 0x18]
cmp ecx, eax
je 0x40c2f4
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x40c2eb
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.0040ea50
mov eax, dword [ebp + 0x10]
lea ecx, [esi + 0x30]
cmp ecx, eax
je 0x40c311
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x40c308
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.0040ea50
mov eax, dword [ebp + 0x14]
lea ecx, [esi + 0x48]
cmp ecx, eax
je 0x40c32e
cmp dword [eax + 0x14], 0x10
mov edx, eax
jb 0x40c325
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.0040ea50
push esi
lea ecx, [ebp - 0x18]
call fcn.0040e500
cmp dword [ebp - 8], 2
jae 0x40c38b
mov edx, dword [ebp - 4]
cmp edx, 0x10
jb 0x40c371
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c367
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c434
push edx
push ecx
call fcn.0046a77c
add esp, 8
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40c37b
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x40c3e8
or eax, 0xffffffff
jmp 0x40c3ef
cmp dword [ebp - 4], 0x10
lea eax, [ebp - 0x18]
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
cmovae eax, dword [ebp - 0x18]
push eax
call edi
mov edx, dword [ebp - 4]
cmp eax, 0xffffffff
setne bl
cmp edx, 0x10
jb 0x40c3d5
mov ecx, dword [ebp - 0x18]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40c3cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c434
push edx
push ecx
call fcn.0046a77c
add esp, 8
test bl, bl
je 0x40c371
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x40c3e3
mov eax, dword [esi]
push eax
call edi
jmp 0x40c3ef
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov ecx, esi
mov dword [esi + 0x64], eax
call fcn.0040c440
mov edi, eax
test edi, edi
jne 0x40c408
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [esi + 0x60]
cmp eax, 0xffffffff
je 0x40c429
push 2
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
push dword [esi + 0x60]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x60], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.0046fcb0
int3
Function at 0x40cd30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
lea eax, [esp + 4]
push esi
mov esi, ecx
push 0x190
push 0
push eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xf
mov dword [esi + 0x30], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0xf
mov dword [esi + 0x48], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xf
mov dword [esi + 0x94], 0
call fcn.0046c540
add esp, 0xc
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esi + 0x60], 0xffffffff
mov eax, esi
mov byte [esi + 0x68], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40edd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fd50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0046a4fb
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0045545c
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x410c20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49012e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
call fcn.00410ef0
mov dword [ebp - 4], 0
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x14], 1
jb 0x410c72
mov eax, dword [esi]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x410ce2
xor ecx, ecx
mov edx, 2
mul edx
push ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046a9b6
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 8
jb 0x410ca8
mov esi, dword [esi]
push dword [ebp - 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
inc eax
cmp eax, dword [ebp - 0x10]
jne 0x410cd8
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410cc0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.0040e8f0
push ebx
call fcn.0046a4f6
add esp, 4
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x412b70
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49041d
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [ecx]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
mov edi, edx
test eax, eax
je 0x412b9e
push eax
call esi
mov eax, dword [edi]
test eax, eax
je 0x412ba7
push eax
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x412bb5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
je 0x412cf4
mov edi, dword [ebp + 0x10]
cmp dword [edi + 0x10], 0
lea eax, [edi + 0x10]
mov dword [ebp + 8], eax
je 0x412ce5
push edi
call fcn.00452470
add esp, 4
test al, al
je 0x412ce5
push esi
call fcn.004524b0
add esp, 4
test al, al
je 0x412ce5
lea eax, [ebp - 0x3c]
push esi
push eax
call fcn.0044e360
add esp, 8
mov ecx, eax
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 8
jb 0x412c15
mov edi, dword [edi]
mov eax, dword [ebp + 8]
push dword [eax]
push edi
push 0
call fcn.00423330
xor ecx, ecx
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x24], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x14], xmm0
mov word [eax], cx
lea ecx, [ebp - 0x24]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov eax, esi
cmp dword [ebp - 0x10], 8
cmovae ecx, dword [ebp - 0x24]
cmp dword [esi + 0x14], 8
jb 0x412c5b
mov eax, dword [esi]
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov edx, dword [ebp - 0x10]
cmp edx, 8
jb 0x412c9b
mov ecx, dword [ebp - 0x24]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412c91
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d04
push edx
push ecx
call fcn.0046a77c
add esp, 8
mov edx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
cmp edx, 8
jb 0x412ce5
mov ecx, dword [ebp - 0x3c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412cdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x412d04
push edx
push ecx
call fcn.0046a77c
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x412ced
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.0046fcb0
int3
Function at 0x420df0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48fd50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
mov eax, ecx
push esi
push edi
push 8
mov dword [ebp - 0x10], eax
mov dword [eax], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0046a4fb
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0045545c
mov dword [esi + 4], eax
add esp, 8
mov eax, dword [ebp - 0x10]
lea edi, [eax + 0x14]
lea ecx, [eax + 0x18]
lea edx, [eax + 0x24]
mov dword [eax + 0x34], esi
lea ebx, [eax + 4]
mov dword [eax + 0xc], ebx
lea esi, [eax + 8]
mov dword [eax + 0x10], esi
mov dword [eax + 0x1c], edi
mov dword [eax + 0x20], ecx
mov dword [eax + 0x2c], edx
add eax, 0x28
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x10]
mov dword [ebx + 0x30], eax
mov ebx, dword [ebp - 0x14]
mov dword [esi], 0
mov dword [ecx], 0
mov ecx, dword [ebp - 0xc]
mov dword [eax], 0
mov eax, dword [ebp - 0x10]
mov dword [ebx], 0
mov dword [edi], 0
pop edi
pop esi
mov dword [edx], 0
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x428f70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x491d26
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], vtable.CFileToUpdate.0
lea ecx, [edi + 0x10]
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [esi + 0x10]
push eax
call fcn.00410ef0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], ecx
lea ecx, [edi + 0x34]
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
lea eax, [esi + 0x34]
push eax
call fcn.00410ef0
lea eax, [esi + 0x4c]
mov byte [ebp - 4], 1
push eax
lea ecx, [edi + 0x4c]
call fcn.00410ef0
lea eax, [esi + 0x64]
mov byte [ebp - 4], 2
push eax
lea ecx, [edi + 0x64]
call fcn.00410ef0
mov eax, dword [esi + 0x7c]
mov ecx, dword [ebp - 0xc]
mov dword [edi + 0x7c], eax
mov eax, dword [esi + 0x80]
mov dword [edi + 0x80], eax
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4385c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49330d
push eax
mov dword fs:[0], esp
push esi
push edi
push 4
mov esi, ecx
call fcn.0046a4fb
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov edx, dword [edx]
mov dword [eax], edx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x439330
push 0
push 0
call fcn.00472bbe
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x438626
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.00456218
int3

Function at 0x438640
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x49330d
push eax
mov dword fs:[0], esp
push esi
push edi
push 4
mov esi, ecx
call fcn.0046a4fb
mov edx, dword [ebp + 8]
mov dword [ebp + 8], eax
mov edx, dword [edx]
mov dword [eax], edx
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x439380
push 0
push 0
call fcn.00472bbe
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x4386a6
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call fcn.00456218
int3
Function at 0x43b3d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, 0xffff
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp ax, di
jne 0x43b3f1
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x43b425
mov edx, dword [esi + 0x30]
mov ebx, dword [edx]
lea eax, [ecx + ebx*2]
cmp ecx, eax
jae 0x43b425
lea ecx, [ebx - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], di
pop ebx
mov ax, di
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x43b4e5
mov ebx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ebx], eax
jne 0x43b44f
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [ebx], ecx
mov eax, dword [esi + 0x1c]
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43b45c
push dword [esi + 0x4c]
push edi
jmp 0x43b498
movzx eax, di
mov dword [ebp - 4], eax
lea eax, [ebp + 8]
mov edx, dword [ecx]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 2]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x43b4b8
sub eax, 1
je 0x43b4b8
sub eax, 2
jne 0x43b4e5
push dword [esi + 0x4c]
push dword [ebp - 4]
call fcn.004751ed
mov ecx, 0xffff
add esp, 8
cmp ax, cx
movzx eax, di
jne 0x43b4ea
pop ebx
pop edi
mov eax, ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub ebx, eax
je 0x43b4d5
push dword [esi + 0x4c]
push ebx
push 1
push eax
call fcn.00475c0c
add esp, 0x10
cmp ebx, eax
jne 0x43b4e5
lea eax, [ebp - 4]
mov byte [esi + 0x3e], 1
cmp dword [ebp - 8], eax
jne 0x43b419
mov eax, 0xffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x43b910
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x43b9a6
cmp byte [esi + 0x3e], 0
je 0x43b9a6
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x43b99e
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 4]
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 0x43b970
sub eax, 1
je 0x43b974
sub eax, 2
jne 0x43b99e
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 4]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x43b991
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00475c0c
add esp, 0x10
cmp edi, eax
jne 0x43b99e
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43f110
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], edx
push esi
mov esi, ecx
test eax, eax
jne 0x43f136
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
mov dword [esi], 1
pop esi
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
mov ecx, eax
call fcn.0043f0a0
test eax, eax
je 0x43f162
mov dword [esi], eax
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp - 4]
lea eax, [edi + 2]
push eax
call fcn.0047a25e
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x43f18e
pop edi
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov eax, esi
pop ebx
mov dword [esi], 3
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
push edi
push 1
push ebx
call fcn.0047a1a4
add esp, 0x10
cmp eax, edi
je 0x43f1c7
push ebx
call fcn.0046edd3
add esp, 4
mov dword [esi + 8], 0
mov dword [esi], 2
mov eax, esi
mov dword [esi + 4], 0
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, edi
mov ecx, ebx
call fcn.0043c9e0
mov ecx, eax
cmp ecx, 2
je 0x43f1dc
cmp ecx, 3
jne 0x43f1ea
shr edi, 1
xor edx, edx
lea eax, [edi + edi]
mov word [eax + ebx], dx
lea edi, [eax + 2]
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov edx, eax
sub esp, 8
push ecx
push ecx
push edi
push ebx
push eax
mov ecx, esi
call fcn.0043eeb0
add esp, 0x20
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4441a0
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 0x444286
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 0x444275
jg 0x4441e0
test edx, edx
je 0x444275
nop dword [eax]
call fcn.0040e890
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x444234
jg 0x4441f7
test esi, esi
je 0x444234
cmp ebx, eax
jg 0x444207
jl 0x444201
cmp edi, esi
jae 0x444207
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.0046bfc0
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 0x444259
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 0x44426f
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x4441e0
jl 0x44426f
test edi, edi
jne 0x4441e0
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 0x4442a8
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4442aa
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x444328
jg 0x4442bd
test esi, esi
je 0x444328
test eax, eax
jl 0x44430c
jg 0x4442c7
test ebx, ebx
je 0x44430c
cmp edi, eax
jg 0x4442d7
jl 0x4442d1
cmp esi, ebx
jae 0x4442d7
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.0046bfc0
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 0x444328
jg 0x44430f
test esi, esi
je 0x444328
jmp 0x44430f
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x444328
push eax
push esi
push 1
push edx
call fcn.00475c0c
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 0x444890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4448ac
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4448de
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x4448de
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 esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4449b2
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x444906
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 0x44492f
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0047a292
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp + 8]
mov byte [ebp - 1], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp]
push eax
lea eax, [ebp - 1]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
sub eax, 0
je 0x444985
sub eax, 1
je 0x444985
sub eax, 2
jne 0x4449b2
push dword [esi + 0x4c]
movsx eax, byte [ebp - 1]
push eax
call fcn.0047a292
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x28]
sub edi, eax
je 0x4449a2
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00475c0c
add esp, 0x10
cmp edi, eax
jne 0x4449b2
lea eax, [ebp - 1]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 8], eax
jne 0x4448d3
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4