joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42fc58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x877918]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42fc98
cmp byte [ebx], 0xa
jne 0x42fc98
or byte [edi + eax + 0x28], 4
jmp 0x42fc9d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x42fd9c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x42fd7f
inc eax
cmp dl, 0xd
je 0x42fcc9
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x42fcef
cmp eax, ecx
jae 0x42fcfd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x42fcb1
jmp 0x42fd9c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42fd7a
cmp dword [ebp - 0x10], 0
je 0x42fd7a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x877918]
test byte [eax + edi + 0x28], 0x48
je 0x42fd54
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x42fd3f
mov byte [esi], dl
jmp 0x42fd50
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x877918]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x42fd9c
cmp byte [ebp - 1], 0xa
jne 0x42fd63
cmp esi, ebx
jne 0x42fd63
mov byte [esi], 0xa
jmp 0x42fd9b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00430d51
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x42fd9c
mov byte [esi], 0xd
jmp 0x42fd9b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x877918]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x42fd99
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x42fd9c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42fda5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x877918]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x42fdeb
cmp word [ebx], dx
jne 0x42fdeb
or byte [eax + edi + 0x28], 4
jmp 0x42fdf0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x42ff53
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x42ff33
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x42fe31
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x42fe67
cmp eax, edx
jae 0x42fe75
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x42fe0c
jmp 0x42ff53
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42ff2e
cmp dword [ebp - 0x18], 0
je 0x42ff2e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x877918]
test byte [eax + edi + 0x28], 0x48
je 0x42ff04
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x42fec8
mov word [esi], cx
jmp 0x42feff
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x877918]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x877918]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x877918]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x42ff53
pop eax
cmp word [ebp - 4], ax
jne 0x42ff14
cmp esi, ebx
jne 0x42ff14
mov word [esi], ax
jmp 0x42ff50
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00430d51
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x42ff53
push 0xd
pop eax
jmp 0x42ff0f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x877918]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x42ff4d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x42ff53
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x43dd98
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
lea eax, [esp + 8]
xor esi, esi
push eax
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
je 0x43de33
push edi
push 0x87ac40
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x877c7c]
test edi, edi
je 0x43de06
push ebp
push esi
lea ebp, [edi + 8]
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x43ddff
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi]
push ebp
push 0x877c7c
call fcn.00461776
pop ecx
pop ecx
jmp 0x43de01
mov edi, dword [edi]
test edi, edi
jne 0x43ddd4
pop ebp
mov esi, dword [0x872cf0]
push 0x10
push 0x877c7c
lea eax, [esi + 1]
mov dword [0x872cf0], eax
call fcn.004617b6
pop ecx
pop ecx
push 0x87ac40
mov dword [eax], ebx
mov dword [eax + 4], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret 8

Function at 0x43e720
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [0x8780b8], 0
jne 0x43e7cd
push 0x877cd8
push 0
mov dword [0x8780b8], 1
mov dword [0x87ac64], 0x40
call fcn.0049cfe0
add esp, 8
test eax, eax
jne 0x43e7cd
push fcn.0043e680
push 0x40
push 0x68
call fcn.004610b7
mov dword [0x877cd0], eax
imul eax, dword [0x87ac64], 0x368
push eax
push 8
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push 0x877cd8
mov dword [0x87ac68], eax
call fcn.0049cfd0
push eax
mov dword [0x87ac60], eax
call fcn.0049b4d0
add esp, 8
lea eax, [esp]
push eax
push 0
push 0
push 0x43ea70
push 0x2000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x43e7c3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x877cd4], 1
mov eax, dword [0x877cd0]
pop ecx
ret
Function at 0x443f38
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
push ebx
push esi
push edi
je 0x443f8d
push dword [esp + 0x10]
push 0x443eb7
call dword [sym.imp.USER32.dll_EnumWindows]
mov edi, dword [0x8782fc]
test edi, edi
je 0x443fe6
xor esi, esi
mov ebx, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x443f85
cmp byte [edi + 0x10], 0
je 0x443f85
push 3
push esi
push esi
push esi
push esi
push 0xfffffffffffffffe
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edi, ebx
test ebx, ebx
jne 0x443f61
jmp 0x443fe6
mov edi, dword [0x8782fc]
test edi, edi
je 0x443fe6
xor esi, esi
push ebp
mov ebp, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi + 8], eax
jne 0x443fdf
cmp byte [edi + 0x11], 0
je 0x443fb8
push 1
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp byte [edi + 0x10], 0
je 0x443fcf
push 3
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.USER32.dll_SetWindowPos]
lea eax, [edi + 8]
push eax
push 0x8782fc
call fcn.00461776
pop ecx
pop ecx
mov edi, ebp
test ebp, ebp
jne 0x443f9a
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x4450e9
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x87ae28]
call fcn.00460e45
mov edi, dword [eax + 0x24]
test edi, edi
je 0x4451a7
cmp dword [edi + 8], 1
je 0x4451a7
mov edi, dword [edi + 0xc]
test edi, edi
je 0x4451a7
mov al, byte [edi]
cmp al, 0x20
je 0x445122
cmp al, 9
jne 0x445125
inc edi
jmp 0x445118
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
push eax
push eax
push 0xffffffffffffffff
push edi
push eax
push 0xfde9
call esi
push dword [esp + 0x14]
mov ebx, eax
lea ecx, [ebx - 1]
push ecx
call fcn.00461b40
push ebx
mov ebp, eax
push ebp
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
test ebx, ebx
jle 0x445176
push 9
pop edx
lea eax, [ebp - 2]
lea eax, [eax + ebx*2]
movzx ecx, word [eax]
push 0x20
pop esi
cmp cx, si
je 0x445192
cmp cx, dx
je 0x445192
pop edi
pop esi
pop ebp
pop ebx
ret 4
movzx ecx, word [eax]
cmp cx, si
je 0x44518a
cmp cx, dx
jne 0x445196
xor ecx, ecx
mov word [eax], cx
sub eax, 2
cmp eax, ebp
jae 0x44517d
push ebp
call fcn.0042668c
pop ecx
sub ebx, eax
push ebx
call fcn.00461bf0
jmp 0x445176
pop edi
pop esi
pop ebp
pop ebx
jmp fcn.00461bd0
Function at 0x445af0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x87830c], 0
jne 0x445b0e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x878308], eax
mov dword [0x87830c], 1
push ebx
push ebp
push esi
push edi
push 0x90
push 0
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x878308]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
cmp dword [0x87830c], 0
jne 0x445b50
call fcn.00445af0
push dword [0x878308]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
mov edi, eax
test edi, edi
jne 0x445b73
call fcn.00445af0
push dword [0x878308]
call ebx
mov edi, eax
lea edx, [edi + 8]
mov ebx, 0x11
nop dword [eax + eax]
imul eax, esi, 0x53a9b4fb
lea edx, [edx + 4]
mov ecx, 1
mov esi, 1
sub ecx, eax
imul eax, ecx, 0x53a9b4fb
mov dword [edx + 0x40], ecx
sub esi, eax
mov dword [edx - 4], esi
sub ebx, 1
jne 0x445b80
xor esi, esi
mov dword [edi], ebx
mov dword [edi + 4], 0xa
mov ebx, 0xa
lea ebp, [esi + 0x1f]
nop dword [eax + eax]
mov ecx, dword [edi + esi*4 + 8]
mov eax, dword [edi + esi*4 + 0x4c]
mov edx, dword [edi + ebx*4 + 8]
ror eax, 0xd
add eax, dword [edi + ebx*4 + 0x4c]
ror ecx, 5
add ecx, edx
mov dword [edi + esi*4 + 8], eax
mov dword [edi + esi*4 + 0x4c], ecx
mov eax, 0x10
add esi, 0xffffffff
cmovs esi, eax
add ebx, 0xffffffff
mov dword [edi], esi
cmovs ebx, eax
mov dword [edi + 4], ebx
sub ebp, 1
jne 0x445bc0
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x445c00
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
mov ebx, edi
cmp dword [esp + 0x10], edi
cmovbe ebx, dword [esp + 0x10]
sub edi, ebx
mov dword [esp + 0x10], ebx
cmp dword [0x87830c], 0
jne 0x445c25
call fcn.00445af0
push ebp
push esi
push dword [0x878308]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
mov ebp, eax
test ebp, ebp
jne 0x445c4a
call fcn.00445af0
push dword [0x878308]
call esi
mov ebp, eax
mov esi, dword [ebp]
mov edx, dword [ebp + 4]
mov eax, dword [ebp + esi*4 + 0x4c]
mov ecx, dword [ebp + edx*4 + 8]
ror eax, 0xd
add eax, dword [ebp + edx*4 + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + esi*4 + 8]
mov ebx, dword [esp + 0x14]
ror eax, 5
add eax, ecx
mov dword [ebp + esi*4 + 8], ebx
mov ebx, dword [esp + 0x18]
mov dword [ebp + esi*4 + 0x4c], eax
sub esi, 1
mov eax, 0x10
cmovs esi, eax
sub edx, 1
mov dword [ebp], esi
cmovs edx, eax
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], edx
pop esi
pop ebp
add edi, 1
je 0x445ca8
mul edi
pop edi
lea eax, [ebx + edx]
pop ebx
ret 8
pop edi
add eax, ebx
pop ebx
ret 8
Function at 0x445cb0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x87830c], 0
jne 0x445cbe
call fcn.00445af0
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
push dword [0x878308]
call esi
mov edi, eax
test edi, edi
jne 0x445ce5
call fcn.00445af0
push dword [0x878308]
call esi
mov edi, eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov ebp, dword [esp + 0x14]
mov ebx, dword [edi + esi*4 + 0x4c]
mov eax, dword [edi + esi*4 + 8]
mov ecx, dword [edi + edx*4 + 8]
ror eax, 5
ror ebx, 0xd
add eax, ecx
add ebx, dword [edi + edx*4 + 0x4c]
mov dword [edi + esi*4 + 0x4c], eax
mov eax, 0x10
mov dword [edi + esi*4 + 8], ebx
sub esi, 1
cmovs esi, eax
sub edx, 1
mov dword [edi], esi
cmovs edx, eax
mov eax, ebx
mov dword [edi + 4], edx
add ebp, 1
je 0x445d2f
mul ebp
mov eax, edx
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4488c9
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push 0x44881c
push 0x10
push 0x2c
call fcn.004610b7
push 0
push 0
push 8
mov dword [0x8784bc], eax
call fcn.00460eb0
cmp word [0x8784b4], 0
mov dword [0x87ae44], eax
jne 0x4489a9
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
push str.ws2_32.dll
sbb eax, eax
inc eax
mov word [0x8784b4], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x8784c0], eax
test eax, eax
je 0x4489a9
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.getaddrinfo
push eax
call esi
push str.freeaddrinfo
push dword [0x8784c0]
mov dword [0x8784a4], eax
call esi
push str.getnameinfo
push dword [0x8784c0]
mov dword [0x8784a8], eax
call esi
push str.WSAStringToAddressA
push dword [0x8784c0]
mov dword [0x8784ac], eax
call esi
cmp dword [0x8784a4], 0
mov ecx, eax
mov dword [0x8784b0], ecx
pop esi
je 0x4489a9
cmp dword [0x8784a8], 0
je 0x4489a9
cmp dword [0x8784ac], 0
je 0x4489a9
mov eax, dword [0x8784b8]
xor edx, edx
inc edx
test ecx, ecx
cmovne eax, edx
mov dword [0x8784b8], eax
add esp, 0x190
ret

Function at 0x4489b0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp edi, 0xffffffff
jne 0x4489c9
push dword [0x87ae48]
call fcn.00460f68
pop edi
ret 4
push esi
push edi
push dword [0x87ae48]
call fcn.00460fe5
mov esi, eax
test esi, esi
je 0x448a33
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x448a1f
cmp dword [esi + 0x14], 0
mov dword [esp + 0xc], 0
jne 0x448a0e
push 0
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
push dword [esi + 4]
push 0
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push dword [0x87ae48]
call fcn.00460f96
pop esi
pop edi
ret 4

Function at 0x448a40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x448a7c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4
Function at 0x448f00
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x448ffe
cmp word [edx], 0
je 0x448ffe
mov ecx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
test ecx, ecx
jne 0x448f2e
mov ecx, dword [esi + 0x18]
push edi
cmp ecx, 0x19
jne 0x448f84
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x448f40
sub ecx, edi
sar ecx, 1
cmp dword [esi + 4], 0
je 0x448f66
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.00449400
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [ecx + ecx]
push eax
push edx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
lea eax, [esp + 0x14]
push eax
push edx
xor edx, edx
mov eax, 0xfde9
cmp ecx, 2
cmovne eax, edx
push eax
call fcn.00449520
mov edi, eax
test edi, edi
je 0x448f7a
cmp dword [esi + 4], 0
je 0x448fd1
push dword [esp + 0x14]
push edi
push esi
call fcn.00449400
push edi
push 0
push dword [0x876470]
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea eax, [esp + 0xc]
push eax
push dword [esp + 0x1c]
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x876470]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x449080
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x4490e5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4490dd
push dword [esp + 0x10]
push dword [0x87ae48]
call fcn.00460fe5
test eax, eax
je 0x4490d3
cmp dword [eax + 4], 0
je 0x4490c2
push edi
push esi
push eax
call fcn.00449400
pop edi
pop esi
pop ecx
ret 0xc
push 0
lea ecx, [esp + 0xc]
push ecx
push edi
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x4492a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x87ae48]
call fcn.00460fe5
mov esi, eax
test esi, esi
je 0x44931f
cmp dword [esi + 4], 0
je 0x4492f0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00449a60
test eax, eax
je 0x4492e4
inc dword [esi + 0xc]
xor eax, eax
pop esi
add esp, 8
ret 4
mov eax, 1
pop esi
add esp, 8
ret 4
push 0
lea eax, [esp + 0xc]
push eax
push 1
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x44932a
cmp dword [esp + 8], 0
je 0x44932a
push 1
push 0
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 4
or eax, 0xffffffff
pop esi
add esp, 8
ret 4
Function at 0x449340
Capabilities:
Read file on windows

Disassembly:
push ecx
push dword [esp + 8]
mov dword [esp + 4], 0
push dword [0x87ae48]
call fcn.00460fe5
test eax, eax
je 0x44938c
cmp dword [eax + 4], 0
je 0x449376
push 4
lea ecx, [esp + 4]
push ecx
push eax
call fcn.00449a60
mov eax, dword [esp]
pop ecx
ret 4
push 0
lea ecx, [esp + 0xc]
push ecx
push 4
lea ecx, [esp + 0xc]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 4

Function at 0x449400
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x10], 0
cmp dword [edi + 0x1c], 0
jne 0x449517
cmp dword [edi + 0x14], 1
push ebx
push ebp
jne 0x44944d
mov eax, dword [edi + 0xc]
lea ecx, [esp + 0x10]
push 1
neg eax
cdq
push ecx
push eax
push dword [edi]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0xc], eax
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [esp + 0x24]
cmp eax, esi
jle 0x4494d6
mov ecx, dword [edi + 4]
sub ecx, eax
mov eax, esi
add ecx, dword [edi + 8]
sub eax, 1
je 0x4494bf
sub eax, 1
je 0x4494a6
sub eax, 2
je 0x44948f
push esi
push dword [esp + 0x24]
push ecx
call fcn.00434c20
add esp, 0xc
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov ax, word [eax]
mov word [ecx], ax
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov eax, dword [esp + 0x20]
mov al, byte [eax]
mov byte [ecx], al
mov eax, esi
sub dword [edi + 0xc], esi
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
push edi
call fcn.00448a40
mov eax, dword [edi + 8]
cmp esi, eax
jl 0x449505
push 0
lea eax, [esp + 0x20]
push eax
push esi
push dword [esp + 0x2c]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret 0xc
mov ecx, dword [edi + 4]
sub ecx, dword [edi + 0xc]
push esi
push dword [esp + 0x24]
add ecx, eax
jmp 0x449477
xor eax, eax
pop edi
add esp, 8
ret 0xc
Function at 0x449590
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push 0x1000
push 0
push dword [0x876470]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x449720
mov cl, byte [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x24]
push esi
push edi
mov esi, edx
nop
cmp ebp, 0xffffffff
je 0x4495de
test ebp, ebp
je 0x449686
dec ebp
cmp dword [ebx + 4], 0
lea edi, [ebx + 4]
je 0x4495fa
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00449a60
mov dword [esp + 0x10], eax
jmp 0x449614
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x10]
mov cl, byte [esp + 0x24]
cmp eax, 1
jne 0x449689
test cl, cl
je 0x449628
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x24]
mov eax, dword [esp + 0x14]
mov edi, esi
mov edx, dword [esp + 0x1c]
dec eax
sub edi, edx
cmp edi, eax
jle 0x449663
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x876470]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x24]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [edi + edx]
test cl, cl
je 0x449686
cmp dword [esp + 0x28], 0
jne 0x4495d0
cmp cl, 0xd
je 0x449692
cmp cl, 0xa
jne 0x4495d0
dec esi
jmp 0x449703
lea edi, [ebx + 4]
cmp dword [esp + 0x28], 0
jne 0x449703
jmp 0x449695
lea edi, [ebx + 4]
cmp cl, 0xa
jne 0x44969d
dec esi
jmp 0x449703
cmp cl, 0xd
jne 0x449703
dec esi
cmp dword [edi], 0
je 0x4496bb
push 1
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.00449a60
mov dword [esp + 0x10], eax
jmp 0x4496d1
push 0
lea eax, [esp + 0x14]
push eax
push 1
lea eax, [esp + 0x30]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x24], 0xa
je 0x449703
cmp dword [edi], 0
je 0x4496e2
inc dword [ebx + 0xc]
jmp 0x449703
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x30]
mov ecx, esi
sub ecx, dword [esp + 0x1c]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x18]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
xor eax, eax
pop ebx
add esp, 0x10
ret 0x10