joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4353c8
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
lea eax, [ebp - 0x100]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push 0xff
push eax
mov dword [0x4a6d4c], esi
mov dword [0x4a6d5c], esi
mov dword [0x4a6d60], edi
mov dword [0x4a6d64], esi
call dword [sym.imp.WSOCK32.DLL_gethostname]
test eax, eax
jne 0x435474
cmp edi, 0x10000000
jne 0x435450
cmp dword [0x4a6488], esi
je 0x435474
mov eax, dword [0x4a64a4]
test eax, eax
je 0x43542c
push eax
call dword [0x4a6498]
mov dword [0x4a64a4], esi
push 0x4a64a4
push esi
push esi
lea eax, [ebp - 0x100]
push eax
call dword [0x4a6494]
test eax, eax
jne 0x435474
mov eax, dword [0x4a64a4]
mov dword [0x4a6d64], eax
jmp 0x435471
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.WSOCK32.DLL_gethostbyname]
test eax, eax
je 0x435474
push 0x10
push eax
push 0x4a6d50
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor esi, esi
inc esi
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4382ae
Capabilities:
Check os version

Disassembly:
sub esp, 0x24c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x94
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x438406
mov eax, dword [esp + 0x20]
dec eax
je 0x4383e9
dec eax
jne 0x438406
lea eax, [esp + 0x140]
xor ebp, ebp
push eax
call fcn.00438267
pop ecx
test eax, eax
je 0x43831a
mov ebx, dword [esp + 0x144]
mov edi, dword [esp + 0x148]
cmp byte [esp + 0x25a], 1
jmp 0x438347
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x43834c
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x13e], 1
jne 0x43834c
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x4383e5
dec ebx
je 0x4383e1
dec ebx
je 0x4383c0
dec ebx
je 0x43837a
sub ebx, 4
jne 0x438406
test edi, edi
jne 0x438406
push 0x6e
jmp 0x438405
sub edi, 0
je 0x4383b2
dec edi
je 0x4383a4
dec edi
je 0x438396
dec edi
jne 0x438406
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x438406
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x438406
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x438406
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x438406
sub edi, 0
je 0x4383dd
dec edi
je 0x4383d9
dec edi
jne 0x438406
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x438406
push 0x3c
jmp 0x438405
push 0x32
jmp 0x438405
push 0x14
jmp 0x438405
push 5
jmp 0x438405
mov eax, dword [esp + 0x18]
test eax, eax
je 0x438403
cmp eax, 0xa
je 0x4383ff
cmp eax, 0x5a
jne 0x438406
push 0x28
jmp 0x438405
push 0x1e
jmp 0x438405
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x438413
Capabilities:
Get memory capacity
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
lea eax, [ebp - 0x64]
push esi
push 0x40
push 0
push eax
call sub.MSVCRT.dll_memset
mov esi, dword [ebp + 8]
add esp, 0xc
cmp esi, 6
jne 0x438441
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
jmp 0x43849c
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x43849a
sub esi, 0
je 0x438492
dec esi
je 0x43848a
dec esi
je 0x438482
dec esi
je 0x43847a
dec esi
je 0x438472
dec esi
jne 0x43849a
mov eax, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
jmp 0x43849e
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x48]
jmp 0x43849e
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
jmp 0x43849e
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
jmp 0x43849e
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x50]
jmp 0x43849e
mov eax, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x58]
jmp 0x43849e
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x438dcd
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov ebx, eax
test ebx, ebx
je 0x438e47
push 9
call esi
test al, al
jns 0x438e47
push 0x11
call esi
test al, al
js 0x438e47
push 0x10
call esi
test al, al
js 0x438e47
push 0x12
call esi
test al, al
js 0x438e47
push 5
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [ebp - 0xc]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x438e47
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x438e47
xor eax, eax
jmp 0x438ec8
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x438e6f
push 0x11
call esi
test al, al
js 0x438e67
push 0x10
call esi
test al, al
js 0x438e67
push 0x12
call esi
test al, al
jns 0x438e6f
push 1
push edi
call fcn.00438ed0
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test ebx, ebx
je 0x438e85
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x438ec5
push 0x48914c
push edi
call esi
mov esi, eax
test esi, esi
je 0x438ec5
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x438ec5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x438ec5
lea eax, [esi - 1]
push eax
push dword [0x4a6d9c]
call fcn.00443f4e
test eax, eax
je 0x438ec5
mov eax, dword [eax + 8]
jmp 0x438ec7
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x439a18
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x439aa2
cmp byte [eax], 0
je 0x439aa2
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0
push eax
call sub.MSVCRT.dll_strlen
mov ecx, eax
add esp, 0x10
lea eax, [ebp + ecx - 0x109]
cmp ecx, 2
je 0x439a6c
cmp ecx, 3
jne 0x439aae
cmp byte [ebp - 0x107], 0x3a
jne 0x439aae
cmp ecx, 2
jne 0x439a8d
lea eax, [ebp - 0x108]
push 0x4892f8
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x439aa2
push 0xfffffffffffffffe
pop edi
mov eax, edi
mov edx, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
mov cl, byte [eax]
cmp cl, 0x5c
je 0x439aba
cmp cl, 0x2f
jne 0x439ac0
mov byte [eax], 0
dec eax
jmp 0x439aae
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, esi
je 0x439afd
test byte [ebp - 0x248], 0x10
je 0x439ae6
push 0xfffffffffffffffe
pop edi
jmp 0x439af4
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x439aa2
mov cl, byte [ebp - 0x108]
mov al, byte [ebp - 0x107]
cmp cl, 0x5c
jne 0x439b12
cmp al, 0x5c
je 0x439b1b
cmp cl, 0x2e
jne 0x439aa2
cmp al, cl
jne 0x439aa2
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, esi
je 0x439a8d
test al, 0x10
je 0x439aa2
jmp 0x439a9f

Function at 0x439b3d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x439bae
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
mov byte [ebp - 4], 0
push eax
call sub.MSVCRT.dll_strlen
lea ecx, [ebp - 0x108]
add esp, 0x10
add eax, ecx
jmp 0x439b90
mov cl, byte [eax - 1]
cmp cl, 0x20
je 0x439b8f
cmp cl, 0x5c
je 0x439b8f
cmp cl, 0x2f
jne 0x439b9a
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x439b7d
mov byte [eax], 0
lea eax, [ebp - 0x108]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x439bb0
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x439bb6
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x439bdf
test byte [esp + 8], 2
je 0x439bd3
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x439be1
xor eax, eax
ret 8
Function at 0x43a088
Capabilities:
Copy file

Disassembly:
cmp dword [esp + 4], 0
je 0x43a0a8
cmp dword [esp + 8], 0
je 0x43a0a8
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x43a0aa
xor eax, eax
ret 8

Function at 0x43a2c9
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [0x4a6a78]
push ebp
xor ebp, ebp
push esi
test eax, eax
jne 0x43a2ec
push fcn.0043a3e9
push 0x10
push 0x148
call fcn.00444021
mov dword [0x4a6a78], eax
push dword [esp + 0xc]
push eax
call fcn.00443f8d
mov esi, eax
test esi, esi
je 0x43a3e2
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x43a30e
mov edi, 0x48900e
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x43a31c
cmp byte [ebx], 0
jne 0x43a321
mov ebx, 0x489348
push edi
call sub.MSVCRT.dll_strlen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_strlen
pop ecx
pop ecx
mov ecx, dword [esp + 0x1c]
add ecx, 2
add eax, ecx
push eax
push 0
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x43a3c9
push edi
push eax
call sub.MSVCRT.dll_strcpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x43a37e
cmp byte [eax + edi - 1], 0x5c
mov edi, dword [esp + 0x18]
je 0x43a382
push 0x4892f8
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
jmp 0x43a382
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x43a3a2
and dword [esi + 4], ebp
jmp 0x43a3b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x43a3b6
mov dword [esi + 4], 1
mov ebp, esi
push edi
push 0
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x43a3e0
cmp dword [esp + 0x14], 0xffffffff
je 0x43a3d4
mov esi, dword [esp + 0x14]
push esi
push dword [0x4a6a78]
call fcn.00443eff
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x43a72f
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
xor edi, edi
cmp dword [ebp + 8], edi
je 0x43a804
push ebx
push edi
push pe_nt_image_headers32
push 3
push edi
push 3
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43a803
push esi
mov esi, dword [ebp + 0x10]
push esi
call fcn.0043cbd1
push esi
mov word [ebp - 0x20], ax
call fcn.0043cc3d
push esi
mov word [ebp - 0x1e], ax
call fcn.0043cbf9
push esi
mov word [ebp - 0x1c], ax
call fcn.0043cc60
push esi
mov word [ebp - 0x1a], ax
call fcn.0043cc1b
push esi
mov word [ebp - 0x18], ax
call fcn.0043cc82
push esi
mov word [ebp - 0x16], ax
call fcn.0043cca4
mov word [ebp - 0x14], ax
xor eax, eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
cmp dword [ebp + 0xc], 1
mov eax, edi
mov ecx, edi
pop esi
jne 0x43a7e2
lea eax, [ebp - 8]
jmp 0x43a7f0
cmp dword [ebp + 0xc], 2
jne 0x43a7ed
lea ecx, [ebp - 8]
jmp 0x43a7f0
lea edi, [ebp - 8]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x43a8e0
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 0x43a91c
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 0x43ad60
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0x4a6db0]
call fcn.00443f4e
test eax, eax
je 0x43ad7c
mov dword [esp + 4], eax
jmp fcn.0043a8e0
xor eax, eax
ret 4

Function at 0x43aea0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x4a6db0]
call fcn.00443f4e
mov esi, eax
test esi, esi
je 0x43af1f
cmp dword [esi + 4], 0
je 0x43aef0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.0043b570
test eax, eax
je 0x43aee4
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 0x43af2a
cmp dword [esp + 8], 0
je 0x43af2a
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 0x43af40
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x43b0ab
cmp byte [esi], 0
je 0x43b0ab
mov eax, dword [esp + 0x14]
cmp eax, 0x19
jne 0x43afc8
lea eax, [esp + 0x10]
push eax
push esi
push 0
call fcn.0043b690
mov esi, eax
test esi, esi
je 0x43afbf
mov ecx, dword [esp + 0xc]
cmp dword [ecx + 4], 0
je 0x43af99
mov eax, dword [esp + 0x10]
add eax, eax
push eax
push esi
push ecx
call fcn.0043b700
mov dword [esp + 4], eax
jmp 0x43afb0
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
add eax, eax
push eax
push esi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
mov ecx, esi
push edi
cmp eax, 2
jne 0x43b05d
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43afd7
sub ecx, edx
mov dword [esp + 0x14], ecx
lea eax, [ecx*4]
push eax
push 0
push dword [0x4a5a70]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x43b053
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x20]
push eax
push edi
call fcn.00444d10
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0
je 0x43b030
push dword [esp + 0x18]
push edi
push eax
call fcn.0043b700
mov dword [esp + 8], eax
jmp 0x43b044
push 0
lea ecx, [esp + 0xc]
push ecx
push dword [esp + 0x20]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push 0
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x10]
lea edi, [ecx + 1]
cmp dword [edx + 4], 0
je 0x43b087
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b070
sub ecx, edi
push ecx
push esi
push edx
call fcn.0043b700
pop edi
pop esi
pop ecx
ret 0xc
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43b087
push 0
lea eax, [esp + 0xc]
sub ecx, edi
push eax
push ecx
push esi
push dword [edx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
xor eax, eax
pop esi
pop ecx
ret 0xc
Function at 0x43b0c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x4a5a70]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x43b26d
mov ax, word [esp]
push ebx
mov ebx, dword [esp + 0x20]
push ebp
mov ebp, dword [esp + 0x2c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0x20], 0x1000
mov dword [esp + 0x1c], 0x7ff
cmp ebp, 0xffffffff
je 0x43b114
test ebp, ebp
je 0x43b1cd
dec ebp
cmp dword [ebx + 4], 0
je 0x43b12d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0043b570
mov dword [esp + 0x14], eax
jmp 0x43b147
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
cmp eax, 2
mov ax, word [esp + 0x10]
jne 0x43b1cd
test ax, ax
je 0x43b161
mov word [edi], ax
add edi, 2
mov ax, word [esp + 0x10]
mov ecx, dword [esp + 0x18]
mov esi, edi
mov edx, dword [esp + 0x1c]
sub esi, ecx
sar esi, 1
cmp esi, edx
jle 0x43b1a8
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x4a5a70]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
mov ax, word [esp + 0x10]
mov dword [esp + 0x18], ecx
lea edi, [ecx + esi*2]
test ax, ax
je 0x43b1cd
cmp dword [esp + 0x30], 0
jne 0x43b106
cmp ax, 0xd
je 0x43b1d4
cmp ax, 0xa
jne 0x43b106
sub edi, 2
jmp 0x43b24c
cmp dword [esp + 0x30], 0
jne 0x43b24c
cmp ax, 0xa
jne 0x43b1df
sub edi, 2
jmp 0x43b24c
cmp ax, 0xd
jne 0x43b24c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x43b201
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.0043b570
mov dword [esp + 0x14], eax
jmp 0x43b217
push 0
lea eax, [esp + 0x18]
push eax
push 2
lea eax, [esp + 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp word [esp + 0x10], 0xa
je 0x43b24c
cmp dword [ebx + 4], 0
je 0x43b22b
add dword [ebx + 0xc], 2
jmp 0x43b24c
push 1
lea eax, [esp + 0x28]
mov dword [esp + 0x24], 0xfffffffe
push eax
push 0xfffffffffffffffe
push dword [ebx]
mov dword [esp + 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x38]
mov ecx, edi
sub ecx, dword [esp + 0x18]
sar ecx, 1
mov dword [eax], ecx
xor eax, eax
mov word [edi], ax
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
xor eax, eax
add esp, 0x18
ret 0x10
Function at 0x43b280
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4a5a70]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x43b3d0
mov eax, dword [esp + 0x1c]
mov cl, byte [esp + 3]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, edx
cmp edi, 0xffffffff
je 0x43b2cc
test edi, edi
je 0x43b33d
dec edi
push esi
push ebp
call fcn.0043b810
mov dword [esp + 0x20], eax
test eax, eax
jne 0x43b2df
xor cl, cl
jmp 0x43b2e1
mov cl, byte [esi]
mov edx, dword [esp + 0x1c]
add esi, eax
mov eax, dword [esp + 0x14]
mov ebx, esi
sub ebx, edx
mov byte [esp + 0x13], cl
add eax, 0xfffffffb
cmp ebx, eax
jle 0x43b324
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4a5a70]
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x1c], edx
lea esi, [ebx + edx]
mov eax, dword [esp + 0x2c]
test cl, cl
je 0x43b33d
test eax, eax
jne 0x43b2c2
cmp cl, 0xd
je 0x43b341
cmp cl, 0xa
jne 0x43b2c2
dec esi
jmp 0x43b3b3
test eax, eax
jne 0x43b3b3
cmp cl, 0xa
jne 0x43b349
dec esi
jmp 0x43b3b3
cmp cl, 0xd
jne 0x43b3b3
dec esi
cmp dword [ebp + 4], 0
je 0x43b368
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.0043b570
mov dword [esp + 0x20], eax
jmp 0x43b37f
push 0
lea eax, [esp + 0x24]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x43b3b3
cmp dword [ebp + 4], 0
je 0x43b391
inc dword [ebp + 0xc]
jmp 0x43b3b3
push 1
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebp]
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
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, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x43b3e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x4a5a70]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x43b564
mov cl, byte [esp + 3]
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x28]
push esi
push edi
mov esi, edx
mov edi, edi
cmp ebp, 0xffffffff
je 0x43b42e
test ebp, ebp
je 0x43b4d0
dec ebp
cmp dword [ebx + 4], 0
je 0x43b447
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0043b570
mov dword [esp + 0x14], eax
jmp 0x43b461
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x13]
cmp eax, 1
jne 0x43b4d0
test cl, cl
je 0x43b475
mov byte [esi], cl
inc esi
mov cl, byte [esp + 0x13]
mov eax, dword [esp + 0x18]
mov edi, esi
mov edx, dword [esp + 0x20]
dec eax
sub edi, edx
cmp edi, eax
jle 0x43b4b0
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x4a5a70]
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov cl, byte [esp + 0x13]
mov edx, eax
mov dword [esp + 0x20], edx
lea esi, [edi + edx]
test cl, cl
je 0x43b4d0
cmp dword [esp + 0x2c], 0
jne 0x43b420
cmp cl, 0xd
je 0x43b4d7
cmp cl, 0xa
jne 0x43b420
dec esi
jmp 0x43b547
cmp dword [esp + 0x2c], 0
jne 0x43b547
cmp cl, 0xa
jne 0x43b4df
dec esi
jmp 0x43b547
cmp cl, 0xd
jne 0x43b547
dec esi
cmp dword [ebx + 4], 0
je 0x43b4fe
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.0043b570
mov dword [esp + 0x14], eax
jmp 0x43b514
push 0
lea eax, [esp + 0x18]
push eax
push 1
lea eax, [esp + 0x1f]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp byte [esp + 0x13], 0xa
je 0x43b547
cmp dword [ebx + 4], 0
je 0x43b526
inc dword [ebx + 0xc]
jmp 0x43b547
push 1
lea eax, [esp + 0x20]
mov dword [esp + 0x1c], 0xffffffff
push eax
push 0xffffffffffffffff
push dword [ebx]
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x34]
mov ecx, esi
sub ecx, dword [esp + 0x20]
pop edi
mov dword [eax], ecx
mov eax, dword [esp + 0x1c]
mov byte [esi], 0
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x43b570
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x43b591
push esi
call fcn.0043a8e0
mov dword [esi + 0x14], 1
mov dword [esi + 0xc], 0
mov ebx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x10]
cmp ebx, edi
jl 0x43b605
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x43b5f2
dec ecx
je 0x43b5dd
sub ecx, 2
je 0x43b5ca
push edi
push eax
push dword [esp + 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [eax]
mov eax, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov cx, word [eax]
mov eax, dword [esp + 0x14]
mov word [eax], cx
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
mov ecx, dword [esp + 0x14]
mov dl, byte [eax]
mov eax, edi
mov byte [ecx], dl
sub dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
ret 0xc
push ebp
mov ebp, dword [esp + 0x18]
sub eax, ebx
add eax, dword [esi + 4]
push ebx
push eax
push ebp
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 8]
add esp, 0xc
sub edi, ebx
add ebp, ebx
push 0
cmp edi, eax
jl 0x43b64a
lea eax, [esp + 0x18]
push eax
push edi
push ebp
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
pop ebp
pop edi
mov dword [esi + 0xc], 0
add eax, ebx
pop esi
pop ebx
ret 0xc
lea ecx, [esp + 0x18]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
cmp edi, eax
jle 0x43b66b
mov edi, eax
push edi
push dword [esi + 4]
push ebp
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0xc], edi
lea eax, [ebx + edi]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret 0xc