joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4214d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov byte [esp + 4], cl
mov dword [esp], edx
mov edi, eax
mov ecx, edi
movzx eax, byte [esp]
mov byte [esp + 5], al
mov edx, edi
shr edx, 8
mov eax, dword [esp]
shr eax, 8
mov byte [esp + 6], al
mov eax, edi
shr eax, 0x10
mov ebx, dword [esp]
shr ebx, 0x10
mov byte [esp + 7], bl
xor esi, esi
cmp byte [esp + 4], 0
je 0x42156c
movzx ebx, cl
movzx ebp, byte [esp + 5]
add ebx, ebp
cmp ebx, 0xff
jbe 0x421530
inc esi
mov cl, 0xff
jmp 0x421534
add cl, byte [esp + 5]
movzx ebx, dl
movzx ebp, byte [esp + 6]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42154b
inc esi
mov dl, 0xff
jmp 0x42154f
add dl, byte [esp + 6]
movzx ebx, al
movzx ebp, byte [esp + 7]
add ebx, ebp
cmp ebx, 0xff
jbe 0x421566
inc esi
mov al, 0xff
jmp 0x421599
add al, byte [esp + 7]
jmp 0x421599
cmp cl, byte [esp + 5]
jae 0x421577
inc esi
xor ecx, ecx
jmp 0x42157b
sub cl, byte [esp + 5]
cmp dl, byte [esp + 6]
jae 0x421586
inc esi
xor edx, edx
jmp 0x42158a
sub dl, byte [esp + 6]
cmp al, byte [esp + 7]
jae 0x421595
inc esi
xor eax, eax
jmp 0x421599
sub al, byte [esp + 7]
dec esi
jle 0x4215b0
movzx ecx, byte [esp + 4]
xor cl, 1
mov edx, dword [esp]
mov eax, edi
call fcn.004214d8
jmp 0x4215c3
movzx eax, al
shl eax, 0x10
movzx edx, dl
shl edx, 8
add eax, edx
movzx edx, cl
add eax, edx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4227d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x422853
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x10
call fcn.00408b24
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
sub eax, 0x2e
mov dword [esi + 8], eax
push 0x410
push esi
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00422968
mov eax, dword [ebp - 4]
call fcn.004055e0
push eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00422968
mov eax, dword [ebp - 8]
call fcn.004057b0
push eax
push edi
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42285a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405344
ret

Function at 0x422d48
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x422d8f
push 0
push 0
push 0xe
push esi
call sub.user32.dll_SendMessageA
mov edx, eax
inc edx
lea eax, [ebx + 0x50]
call fcn.00405a40
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x50]
call fcn.004055e0
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
lea eax, [ebx + 0x50]
call fcn.00405a40
mov eax, edi
mov edx, dword [ebx + 0x50]
call fcn.00405374
pop edi
pop esi
pop ebx
ret

Function at 0x42c9f8
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42cb0f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x42caea
mov eax, ebx
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00405590
cmp dword [ebx], 0
je 0x42caf1
push 0
mov eax, dword [ebx]
call fcn.004057b0
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebx]
call fcn.004055e0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x42ca85
mov eax, ebx
mov edx, 0x42cb24
call fcn.004055ec
push dword [ebx]
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.0042c5a0
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.0042c5d0
mov eax, dword [ebp - 0x110]
lea edx, [ebp - 0x10c]
call fcn.0042c7c0
push dword [ebp - 0x10c]
push 0x42cb30
mov eax, ebx
mov edx, 3
call fcn.004056b4
push 0
mov eax, dword [ebx]
call fcn.004057b0
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x42cb24
call fcn.004055ec
jmp 0x42caf1
mov eax, ebx
call fcn.00405320
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cb16
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.00405344
ret
Function at 0x42cb3c
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb0
push ebx
xor eax, eax
mov dword [ebp - 0x14c], eax
mov dword [ebp - 0x150], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x42cc4c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0042c9f8
cmp dword [ebp - 4], 0
je 0x42cc26
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x42cc26
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x148]
mov ecx, 0x42cc60
mov edx, dword [ebp - 4]
call fcn.00405638
mov eax, dword [ebp - 0x148]
call fcn.004057b0
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x42cc18
lea eax, [ebp - 0x150]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00405590
mov ecx, dword [ebp - 0x150]
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 4]
call fcn.00405638
mov eax, dword [ebp - 0x14c]
call fcn.004057b0
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x144]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x42cbc6
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cc53
lea eax, [ebp - 0x150]
mov edx, 3
call fcn.00405344
lea eax, [ebp - 4]
call fcn.00405320
ret

Function at 0x42cc64
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, eax
mov dword [esp], 0x104
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00405590
add esp, 0x10c
pop ebx
ret
Function at 0x42cc98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004057a0
mov eax, dword [ebp - 8]
call fcn.004057a0
xor eax, eax
push ebp
push 0x42cd91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00405320
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42cd76
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.004057b0
mov edi, eax
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
cmp dword [ebp - 0x10], 0
je 0x42cd6d
mov eax, dword [ebp - 0x10]
add eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push esi
lea eax, [ebp - 0x14]
push eax
push 0
push edi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x42cd67
cmp dword [ebp - 0x14], 1
jne 0x42cd5b
mov eax, ebx
mov edx, esi
call fcn.00405518
jmp 0x42cd67
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov edx, esi
call fcn.00405410
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cd98
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405344
ret

Function at 0x42cda4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004057a0
mov eax, dword [ebp - 8]
call fcn.004057a0
mov eax, dword [ebp + 8]
call fcn.004057a0
xor eax, eax
push ebp
push 0x42ce5f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
push ebx
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x42ce3a
mov eax, dword [ebp + 8]
call fcn.004055e0
inc eax
push eax
mov eax, dword [ebp + 8]
call fcn.004057b0
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.004057b0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x42ce3c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ce66
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405344
lea eax, [ebp + 8]
call fcn.00405320
ret
Function at 0x42ce70
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.004057a0
mov eax, dword [ebp - 8]
call fcn.004057a0
xor eax, eax
push ebp
push 0x42cefa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x42cedd
mov eax, dword [ebp - 8]
call fcn.004057b0
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x42cedf
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42cf01
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405344
ret

Function at 0x42d1f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004140c4
test eax, eax
je 0x42d288
add eax, 0x80
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x42d288
jmp 0x42d282
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x42d23e
push ebp
call fcn.0042d120
pop ecx
jmp 0x42d288
cmp dword [esi + 0x10], 0
je 0x42d27f
mov ebx, dword [ebp - 4]
add ebx, dword [esi + 0x10]
jmp 0x42d27a
cmp edi, dword [ebx]
jne 0x42d277
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x42d277
mov eax, dword [ebp - 8]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x42d24c
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x42d22d
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4342a0
Capabilities:
Create thread

Disassembly:
cmp dword [0x55ab80], 0
jne 0x43431e
xor eax, eax
call fcn.00413960
mov dword [0x55ab80], eax
cmp dword [0x55ab80], 0
je 0x43431e
mov eax, 0x434134
xor ecx, ecx
xor edx, edx
call fcn.00413dc0
mov dword [0x55ab84], eax
push 0x55ab78
push 0
push 0
push 0x434174
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x55ab7c], eax
cmp dword [0x55ab7c], 0
je 0x43431e
push 0
push 0
push 0
mov ecx, 0x434328
mov edx, dword [0x55ab7c]
mov eax, dword [0x55ab78]
call fcn.0042d320
push 2
mov eax, dword [0x55ab7c]
push eax
call sub.kernel32.dll_SetThreadPriority
ret

Function at 0x43432c
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x55ab80], 0
je 0x4343aa
cmp dword [0x55ab90], 0
je 0x434351
mov eax, dword [0x55ab90]
xor edx, edx
mov dword [0x55ab90], edx
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [0x55ab8c], 0xffffffff
mov eax, 0x434134
xor ecx, ecx
xor edx, edx
call fcn.00413fc4
push 0
mov eax, dword [0x55ab7c]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, dword [0x55ab7c]
push eax
call sub.kernel32.dll_CloseHandle_1
push 0
push 0
push 0
xor ecx, ecx
xor edx, edx
mov eax, dword [0x55ab78]
call fcn.0042d320
xor eax, eax
mov dword [0x55ab7c], eax
xor eax, eax
mov dword [0x55ab78], eax
xor eax, eax
mov dword [0x55ab80], eax
ret
Function at 0x43bd94
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004057a0
xor eax, eax
push ebp
push 0x43bdf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004057b0
mov esi, eax
push esi
call sub.wsock32.dll_inet_addr
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43bddb
push esi
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x43bddb
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ebx, dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43bdf8
lea eax, [ebp - 4]
call fcn.00405320
ret
Function at 0x43c4c4
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.004057a0
xor eax, eax
push ebp
push 0x43c549
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
xor esi, esi
jmp 0x43c523
mov eax, dword [ebp - 4]
call fcn.004055e0
mov ebx, eax
sub ebx, esi
cmp ebx, 0x400
jle 0x43c509
mov ebx, 0x400
push 0
push ebx
lea eax, [ebp - 4]
call fcn.00405810
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jl 0x43c533
add esi, ebx
mov eax, dword [ebp - 4]
call fcn.004055e0
cmp esi, eax
jl 0x43c4f0
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c550
lea eax, [ebp - 4]
call fcn.00405320
ret

Function at 0x43c55c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004057a0
xor eax, eax
push ebp
push 0x43c5c9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43c5b1
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov esi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
jmp 0x43c5b3
xor esi, esi
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c5d0
lea eax, [ebp - 4]
call fcn.00405320
ret

Function at 0x43c7ec
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004057a0
xor eax, eax
push ebp
push 0x43c8be
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
je 0x43c8a8
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [esi], eax
cmp dword [esi], 0xffffffff
je 0x43c8a8
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
call sub.wsock32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x43c85c
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x43c85c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edi, dword [eax]
cmp edi, 0xffffffff
je 0x43c8a8
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
mov word [ebp - 0x14], 2
mov eax, dword [ebp + 8]
movzx eax, word [eax + 0x10]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], edi
push 0x10
lea eax, [ebp - 0x14]
push eax
mov eax, dword [esi]
push eax
call sub.wsock32.dll_connect
inc eax
je 0x43c8a8
mov bl, 1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c8c5
lea eax, [ebp - 4]
call fcn.00405320
ret
Function at 0x43cb18
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffad8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x528], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004057a0
xor eax, eax
push ebp
push 0x43cd5b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.00405320
mov bl, 1
mov dword [ebp - 0x524], 1
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x520], eax
mov dword [ebp - 0x20], 7
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea eax, [ebp - 0x524]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x43cd29
push 0
push 0x400
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wsock32.dll_recv
mov edi, eax
lea edx, [ebp - 0x420]
lea eax, [ebp - 0xc]
mov ecx, edi
call fcn.00405410
lea eax, [ebp - 8]
mov edx, dword [ebp - 0xc]
call fcn.004055ec
mov eax, dword [ebp - 8]
call fcn.004055e0
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004055e0
cmp esi, eax
setg byte [ebp - 0x15]
cmp byte [ebp - 0x15], 0
je 0x43cd2d
mov eax, dword [ebp - 4]
call fcn.004055e0
mov esi, eax
test esi, esi
jle 0x43cc1c
mov edi, 1
mov eax, dword [ebp - 8]
movzx eax, byte [eax + edi - 1]
mov edx, dword [ebp - 4]
cmp al, byte [edx + edi - 1]
je 0x43cc18
mov byte [ebp - 0x15], 0
jmp 0x43cc1c
inc edi
dec esi
jne 0x43cc01
cmp byte [ebp - 0x15], 0
je 0x43cd2d
mov eax, dword [ebp - 8]
call fcn.004055e0
mov esi, eax
test esi, esi
jle 0x43cc54
mov edi, 1
mov eax, dword [ebp - 8]
cmp byte [eax + edi - 1], 0x3d
jne 0x43cc50
lea eax, [ebp - 8]
call fcn.00405810
mov byte [eax + edi - 1], 0x20
inc edi
dec esi
jne 0x43cc39
mov eax, dword [ebp - 8]
cmp byte [eax + 3], 0x2d
setne bl
push 0x7fffffff
mov ecx, 1
mov edx, dword [ebp - 8]
mov eax, 0x43cd78
call fcn.00411710
mov edi, eax
test edi, edi
jne 0x43cc80
mov edi, 0x7ffffffe
cmp dword [ebp - 0x14], 0
je 0x43cd02
mov eax, dword [ebp - 0x14]
cmp byte [eax], 0
jne 0x43cd02
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
sub ecx, 5
mov edx, 5
mov eax, dword [ebp - 8]
call fcn.00405818
mov edx, dword [ebp - 0xc]
mov eax, 0x43cd84
call fcn.00411ab4
test al, al
je 0x43cd02
push 0x7fffffff
lea eax, [ebp - 0x528]
push eax
mov ecx, 0x7fffffff
mov edx, 5
mov eax, dword [ebp - 0xc]
call fcn.00405818
lea eax, [ebp - 0x528]
mov edx, 0x43cd94
call fcn.004055ec
mov edx, dword [ebp - 0x528]
mov ecx, 1
mov eax, 0x43cda0
call fcn.00411774
test eax, eax
jle 0x43cd02
mov eax, dword [ebp - 0x14]
mov byte [eax], 1
lea ecx, [edi + 1]
lea eax, [ebp - 8]
mov edx, 1
call fcn.00405858
test bl, bl
jne 0x43cd2d
mov eax, dword [ebp - 8]
call fcn.004055e0
cmp eax, 4
jge 0x43cc54
jmp 0x43cd2d
mov byte [ebp - 0x15], 0
test bl, bl
je 0x43cb59
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43cd62
lea eax, [ebp - 0x528]
call fcn.00405320
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405344
ret
Function at 0x43ce50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.004057a0
mov eax, dword [ebp - 8]
call fcn.004057a0
mov eax, dword [ebp + 8]
call fcn.004057a0
xor eax, eax
push ebp
push 0x43d066
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004057b0
push eax
call sub.kernel32.dll_CreateFileA_1
mov edi, eax
cmp edi, 0xffffffff
setne byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
je 0x43d036
push 0
push edi
call sub.kernel32.dll_GetFileSize_1
mov ebx, eax
test ebx, ebx
jbe 0x43d030
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x1d], 1
test ebx, ebx
jbe 0x43d020
cmp ebx, 0x39
jbe 0x43cef3
mov esi, 0x39
jmp 0x43cef5
mov esi, ebx
push 0
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x56]
push eax
push edi
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x43cf0f
cmp esi, dword [ebp - 0x18]
je 0x43cf2b
cmp byte [ebp - 0x1d], 0
jne 0x43cf22
mov edx, 0x43d084
mov eax, dword [ebp - 0x10]
call fcn.0043c4c4
mov byte [ebp - 0x11], 0
jmp 0x43d020
lea ecx, [ebp - 0x5c]
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.004114e8
mov eax, dword [ebp - 0x5c]
mov edx, 0x43d090
call fcn.0041163c
test al, al
je 0x43cf5b
lea eax, [ebp - 0xc]
mov edx, 0x43d0a0
call fcn.004053b8
jmp 0x43cf68
lea eax, [ebp - 0xc]
mov edx, 0x43d0b4
call fcn.004053b8
cmp byte [ebp - 0x1d], 0
je 0x43cfcb
push 0x43d0d8
push dword [ebp - 0xc]
push 0x43d114
push 0x43d120
push dword [ebp - 8]
push 0x43d130
push 0x43d084
push 0x43d13c
push 0x43d084
push 0x43d168
push 0x43d194
push dword [ebp - 8]
push 0x43d130
push 0x43d084
push 0x43d084
lea eax, [ebp - 0x60]
mov edx, 0xf
call fcn.004056b4
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x10]
call fcn.0043c4c4
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x56]
mov edx, esi
call fcn.004154a0
lea eax, [ebp - 0x64]
mov edx, 0x43d084
call fcn.004055ec
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x10]
call fcn.0043c4c4
sub ebx, esi
mov byte [ebp - 0x1d], 0
mov eax, dword [ebp - 0x1c]
sub eax, ebx
imul eax, eax, 0x3e8
xor edx, edx
div dword [ebp - 0x1c]
mov edx, eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test ebx, ebx
ja 0x43cee7
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 0x24]
push edi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43d06d
lea eax, [ebp - 0x64]
mov edx, 3
call fcn.00405344
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405344
lea eax, [ebp + 8]
call fcn.00405320
ret