joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d1610
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fbc0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5c9c4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4d1729
cmp dword [ebp + 0x10], 0
je 0x4d1729
call fcn.004148b0
mov ecx, eax
test ecx, ecx
je 0x4d1779
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp + 0xc], esi
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x105
or eax, ecx
mov dword [ebp - 4], 1
jge 0x4d168e
push 0x105
lea ecx, [ebp + 0xc]
call fcn.0040b1b0
mov esi, dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push dword [esi - 8]
push esi
call fcn.00532d90
add esp, 8
test eax, eax
js 0x4d1783
cmp eax, dword [esi - 8]
jg 0x4d1783
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp dword [ebp + 0x14], ecx
je 0x4d1719
push ecx
push esi
push ecx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4d1719
mov edi, dword [ebp + 8]
mov ecx, edi
push 0x57aa4c
call fcn.0040e030
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4d1706
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00410760
jmp 0x4d16e7
call fcn.004148b0
mov ecx, eax
test ecx, ecx
je 0x4d178d
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x57aa4c
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.0040e220
test al, al
jne 0x4d1766
push 0
push 0x57aa4c
mov ecx, esi
call fcn.0040d860
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040ad60
push 0x80070057
call fcn.0040ad60
push 0x80004005
call fcn.0040ad60
int3
Function at 0x4d23e0
Capabilities:
Check if file exists
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56fd90
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5c9c4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, dword [ebp + 8]
test edi, edi
je 0x4d2529
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4d2529
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4d2529
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4d2529
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 5
push SysReAllocString
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, 0xffffffff
je 0x4d2515
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push edi
movq qword [ebp - 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4d250e
cmp dword [ebp - 0x1c], ebx
jne 0x4d250e
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
cmp eax, ecx
ja 0x4d24ad
mov dword [esi + 0x10], eax
mov ecx, esi
cmp dword [esi + 0x14], 0x10
jb 0x4d24a7
mov ecx, dword [esi]
mov byte [ecx + eax], 0
jmp 0x4d24b9
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0043c390
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 0
call fcn.004882c6
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jne 0x4d250e
push edi
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e4150
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571a4a
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5c9c4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.LogUtils::LogAppender.0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov byte [esi + 0xc], 1
mov dword [esi + 0x10], 0
call fcn.004148b0
mov ecx, eax
test ecx, ecx
je 0x4e4314
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov dword [ebp - 4], 0
lea ebx, [esi + 0x18]
call fcn.004148b0
mov ecx, eax
test ecx, ecx
je 0x4e431e
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.004148b0
mov ecx, eax
test ecx, ecx
je 0x4e4328
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], 0xffffffff
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
mov dword [esi + 0x10], eax
test edx, edx
jne 0x4e4232
xor ecx, ecx
jmp 0x4e4250
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4240
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
mov ecx, edi
call fcn.0040d860
push edi
mov ecx, ebx
call fcn.0041cc40
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4e426c
xor ecx, ecx
jmp 0x4e4284
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp + 0x10], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e4274
sub ecx, dword [ebp + 0x10]
sar ecx, 1
push ecx
push edx
lea ecx, [esi + 0x1c]
call fcn.0040d860
push ebx
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.004e4cf0
push eax
mov ecx, ebx
mov byte [ebp - 4], 6
call fcn.0041cc40
mov edx, dword [ebp + 0x10]
or eax, 0xffffffff
mov byte [ebp - 4], 5
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4e42c5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 4], eax
test eax, eax
je 0x4e42fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4e42fe
cmp dword [esi + 0x10], 0
je 0x4e42f5
push dword [edi]
call fcn.00543d33
add esp, 4
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.0040ad60
push 0x80004005
call fcn.0040ad60
push 0x80004005
call fcn.0040ad60
int3
Function at 0x4e4af0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571b88
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x4e4cc4
push str.__set_log_lev0
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4e4b45
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 4]
jmp 0x4e4cc4
push str.__set_log_lev1
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4e4b63
mov eax, dword [edi]
mov ecx, edi
push 1
call dword [eax + 4]
jmp 0x4e4cc4
push str.__set_log_lev2
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4e4b81
mov eax, dword [edi]
mov ecx, edi
push 2
call dword [eax + 4]
jmp 0x4e4cc4
push str.__set_log_lev3
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4e4b9f
mov eax, dword [edi]
mov ecx, edi
push 3
call dword [eax + 4]
jmp 0x4e4cc4
push str.__reload_log_switch
push esi
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x4e4cc4
lea eax, [edi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x4e4bc4
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [edi + 0x2c]
mov dword [edi + 0x1c], 3
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x30], ecx
jb 0x4e4bf7
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp ecx, 8
jae 0x4e4c0f
movups xmm0, xmmword [eax]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 7
movups xmmword [ebp - 0x28], xmm0
jmp 0x4e4c4d
mov esi, ecx
mov eax, SysReAllocString
or esi, 7
lea ecx, [ebp - 0x28]
cmp esi, eax
cmova esi, eax
lea eax, [esi + 1]
push eax
call fcn.00422c20
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
lea ecx, [ecx*2 + 2]
push ecx
push dword [ebp - 0x2c]
push eax
call fcn.00507350
mov eax, dword [ebp - 0x30]
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], esi
push 0x59557c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004e5ad0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e4c7b
mov dword [edi + 0x1c], 0
cmp dword [edi + 0x28], 0
je 0x4e4cb4
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x4e4cb4
push str._______log_reload_switch
lea ecx, [ebp - 0x4c]
call fcn.00492e50
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x4c]
push edx
mov byte [ebp - 4], 2
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x4c]
call fcn.00410990
lea ecx, [ebp - 0x28]
call fcn.00410990
lea ecx, [ebp - 0x34]
call fcn.004559f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
ret 4
Function at 0x4e5630
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571d27
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x5c9c4c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x4e567a
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, ebx
mov dword [ebp - 4], 0
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5686
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [edi + 0x2c]
call fcn.00412730
cmp dword [edi + 0x28], 0
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x24], eax
jne 0x4e56f3
push 0x48
call fcn.004a9ab9
mov ebx, eax
add esp, 4
mov dword [ebp - 0x38], ebx
mov byte [ebp - 4], 1
test ebx, ebx
je 0x4e56e7
push 0x48
push 0
push ebx
call fcn.00506bc0
add esp, 0xc
mov ecx, ebx
push dword [ebp + 0x14]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
call fcn.004e4150
jmp 0x4e56e9
xor eax, eax
mov ebx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [ebp - 0x18], 0
cmp dword [ebp + 0x10], eax
mov ecx, ebx
mov dword [ebp - 0x14], 7
sete al
lea edx, [ecx + 2]
lea eax, [eax*2 + 1]
mov dword [edi + 0x1c], eax
xor eax, eax
mov word [ebp - 0x28], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4e5720
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.00412730
push 3
push 0x59557c
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00422df0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e576f
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], eax
cmp dword [edi + 0x28], 0
je 0x4e57be
mov eax, dword [edi]
mov ecx, edi
push 1
mov eax, dword [eax + 8]
call eax
test al, al
je 0x4e57be
push 0x10
xor eax, eax
mov dword [ebp - 0x40], 0
push str._______log_start
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
call fcn.00412730
mov ecx, dword [edi + 0x28]
lea edx, [ebp - 0x50]
push edx
mov byte [ebp - 4], 3
mov eax, dword [ecx]
call dword [eax]
lea ecx, [ebp - 0x50]
call fcn.00410990
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4e57f4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4e57ea
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4e5831
push edx
push ecx
call fcn.004a952e
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test esi, esi
je 0x4e5813
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a9518
mov esp, ebp
pop ebp
ret 0x14
call fcn.00523fc4
int3
Function at 0x4e5ef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x571e58
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x5c9c4c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.004a9ab9
mov edi, eax
add esp, 4
test edi, edi
je 0x4e5f93
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.00487afd
add esp, 4
mov dword [edi + 4], eax
jmp 0x4e5f95
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.00420370
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
call dword [edx + 0x30]
movzx edi, ax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4e5ff5
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x4e5ff5
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov word [esi + 0x40], di
jne 0x4e6019
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4e603b
cmp byte [ebp + 0xc], 0
je 0x4e6028
push esi
call fcn.00488bf2
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4e6047
mov esi, str.ios_base::badbit_set
jmp 0x4e6057
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004235b0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.00420cb0
push 0x5acc84
lea eax, [ebp - 0x30]
push eax
call fcn.00506e57
int3
Function at 0x4e88ba
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x54ad4e
Capabilities:
Read file on windows

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

Function at 0x54ad59
Capabilities:
Read file on windows

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

Function at 0x551cd7
Capabilities:
Set environment variable

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

Function at 0x551ce2
Capabilities:
Set environment variable

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

Function at 0x552175
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00551efc
Function at 0x401550
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x4c
mov dword [esp + 0x48], ebp
mov ebp, edx
mov edx, dword [esp + 0x50]
mov dword [esp + 0x3c], ebx
mov ebx, eax
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x40], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x44], edi
mov edi, dword [esp + 0x5c]
mov eax, edx
sub ax, word [ebx]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], edi
xor edi, edi
movzx eax, ax
mov esi, eax
add esi, dword [ebx]
adc edi, dword [ebx + 4]
xor edx, esi
xor ecx, edi
or ecx, edx
jne 0x40168d
mov dword [esp], eax
mov eax, dword [sym.imp.WS2_32.dll_htons]
mov dword [esp + 0x14], eax
call eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov esi, dword [ebp]
xor ebx, ebx
mov edi, dword [ebp + 4]
sub esp, 4
mov word [esp + 0x2c], ax
movzx eax, word [esp + 0x18]
sub ax, si
and ax, 0x7fff
movzx edx, ax
mov ecx, edx
add ecx, esi
adc ebx, edi
xor ecx, dword [esp + 0x18]
xor ebx, dword [esp + 0x1c]
or ebx, ecx
jne 0x401659
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x401650
mov dword [esp], edx
call dword [esp + 0x14]
sub esp, 4
mov word [esp + 0x2e], ax
mov esi, dword [esp + 0x18]
mov eax, dword [0x418038]
mov edi, dword [esp + 0x1c]
mov dword [ebp], esi
mov dword [ebp + 4], edi
mov dword [esp + 0xc], eax
lea eax, [esp + 0x2c]
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
jne 0x4016c1
add dword [0x41803c], 1
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x44]
mov ebp, dword [esp + 0x48]
add esp, 0x4c
ret
or ax, 0x8000
movzx edx, ax
jmp 0x4015e8
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x20
mov dword [esp + 4], 1
mov dword [esp], str.too_long_output_of_block_blocks_
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x3b
mov dword [esp + 4], 1
mov dword [esp], str.too_long_between_blocks__try_a_smaller_block_size_with__b__n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
call sub.msvcrt.dll_exit
mov dword [esp], 0x4130a5
call sub.msvcrt.dll_perror
mov dword [esp], 1
call sub.msvcrt.dll_exit
lea esi, [esi]
Function at 0x401730
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x418030]
cmp esi, edx
ja 0x4017e3
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00404160
mov dword [esp + 8], esi
lea esi, [esp + 0x1c]
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 0x2c], eax
call fcn.004041a0
movzx eax, word [esp + 0x2c]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
mov dword [esp], eax
call ebx
sub esp, 4
mov word [esp + 0x2c], ax
movzx eax, word [esp + 0x2e]
mov dword [esp], eax
call ebx
sub esp, 4
mov word [esp + 0x2e], ax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 4
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
jne 0x401806
mov dword [esp + 0xc], edi
mov dword [esp + 8], 1
mov dword [esp + 4], 0x10
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
cmp eax, 1
jne 0x401806
add esp, 0x30
pop ebx
pop esi
pop edi
ret
sub esi, edx
add edx, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], edx
call sub.msvcrt.dll_memset
mov esi, dword [0x418030]
jmp 0x401748
mov dword [esp + 4], edi
mov dword [esp], str.fwrite
call fcn.004016e0
lea esi, [esi]
lea edi, [edi]
Function at 0x401ea0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x418030]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
jne 0x401f12
jmp 0x401f90
mov eax, dword [0x418040]
test eax, eax
jne 0x401ee2
mov eax, dword [0x41802c]
or eax, dword [0x418028]
jne 0x401ee2
cmp byte [esi], 0x1f
je 0x401f60
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], 0x418420
call fcn.0040e680
mov edx, ebx
mov ecx, ebp
mov eax, esi
call fcn.00401730
mov edx, ebx
sar edx, 0x1f
add dword [0x418028], ebx
adc dword [0x41802c], edx
mov dword [esp], edi
call sub.msvcrt.dll_feof
test eax, eax
jne 0x401f80
mov eax, dword [0x418030]
mov dword [esp + 0xc], edi
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [esp + 8], eax
call sub.msvcrt.dll_fread
test eax, eax
mov ebx, eax
jg 0x401ec7
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
je 0x401f12
mov dword [esp + 4], edi
mov dword [esp], 0x413169
call fcn.004016e0
lea esi, [esi]
cmp byte [esi + 1], 0x8b
jne 0x401ee2
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], ebp
mov dword [esp], edi
call fcn.00401820
nop
mov dword [esp + 0x30], esi
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
jmp sub.msvcrt.dll_free
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0xe
mov dword [esp + 4], 1
mov dword [esp], str.out_of_memory_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
call sub.msvcrt.dll_exit
lea esi, [esi]
lea edi, [edi]

Function at 0x401fd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov eax, 0x101c
push edi
push esi
push ebx
call fcn.0040fb10
sub esp, eax
mov edi, dword [esp + 0x1030]
lea esi, [esp + 0x10]
mov ebp, dword [esp + 0x1034]
jmp 0x402010
mov dword [esp + 0xc], ebp
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
cmp ebx, eax
ja 0x402032
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 1
mov dword [esp], esi
call sub.msvcrt.dll_fread
test eax, eax
mov ebx, eax
jne 0x401ff4
mov dword [esp], edi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x402055
mov dword [esp], ebp
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x402065
add esp, 0x101c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], edi
mov dword [esp], 0x413169
call fcn.004016e0
mov dword [esp + 4], ebp
mov dword [esp], str.fwrite
call fcn.004016e0
lea esi, [esi]
lea edi, [edi]
Function at 0x402080
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [esp + 0x68]
lea edi, [esp + 0x2c]
mov dword [esp + 0x1c], 4
mov esi, dword [esp + 0x64]
mov ebp, dword [esp + 0x6c]
sub dword [esp + 0x1c], ebx
jmp 0x4020e7
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
add eax, edi
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp ebx, eax
ja 0x40210b
lea eax, [esp + 0x30]
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebp
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp ebp, eax
ja 0x40210b
mov eax, dword [esp + 0x60]
mov dword [esp + 8], 0x14
mov dword [esp + 4], 1
mov dword [esp], edi
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fread
test eax, eax
jne 0x4020a5
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x40212f
mov dword [esp], esi
call sub.msvcrt.dll_ferror
test eax, eax
jne 0x402143
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x60]
mov dword [esp], 0x413169
mov dword [esp + 4], eax
call fcn.004016e0
mov dword [esp + 4], esi
mov dword [esp], str.fwrite
call fcn.004016e0
lea esi, [esi]
lea edi, [edi]