joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43286c
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x840
push ebx
push ebp
push esi
push edi
push dword [0x555768]
xor esi, esi
mov dword [esp + 0x14], esi
call fcn.004490be
mov ebp, dword [esp + 0x854]
xor edi, edi
inc edi
mov ebx, eax
mov dword [esp + 0x20], ebx
cmp word [ebp + 0x20], di
jne 0x4328db
push esi
push esi
push dword [ebp]
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x432a37
lea eax, [ebp + 0x28]
push 0x18
push eax
call fcn.0044999e
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x10], edi
mov dword [ecx], edi
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], ebp
mov eax, dword [ebp + 0x24]
mov dword [ebx + 4], eax
mov dword [ebx], ecx
jmp 0x432a37
cmp word [ebp + 0x22], si
je 0x43290f
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0x1c
push eax
lea eax, [esp + 0x38]
push eax
push esi
push 0x800
lea eax, [esp + 0x60]
push eax
push dword [ebp]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov dword [esp + 0x14], edi
jmp 0x43293b
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x10
push eax
lea eax, [esp + 0x28]
push eax
push esi
push 0x800
lea eax, [esp + 0x60]
push eax
push dword [ebp]
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
mov dword [esp + 0x14], eax
test edi, edi
jle 0x432a37
lea ebx, [ebp + 0x28]
mov dword [esp + 0x10], 2
mov esi, dword [ebx]
jmp 0x43297f
xor eax, eax
cmp word [ebp + 0x22], ax
je 0x432964
push dword [esp + 0x1c]
lea eax, [esp + 0x38]
jmp 0x43296c
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
lea eax, [esi + 0xc]
push eax
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
je 0x432985
mov esi, dword [esi]
test esi, esi
jne 0x432952
jmp 0x43298f
lea ebx, [esi + 8]
test esi, esi
jne 0x4329c8
lea ebx, [ebp + 0x28]
push 0x40
push ebx
call fcn.0044999e
mov ebx, eax
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
mov dword [ebx], eax
lea edi, [ebx + 4]
xor eax, eax
mov dword [ebx + 0x24], ebp
cmp word [ebp + 0x22], ax
je 0x4329be
push 7
pop ecx
lea esi, [esp + 0x34]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x4329ca
lea esi, [esp + 0x24]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x4329b8
xor eax, eax
cmp dword [ebx + 0x2c], 0
jne 0x4329f8
push edi
push eax
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push edi
lea ecx, [esp + 0x54]
mov dword [ebx + 0x2c], eax
push ecx
push eax
mov dword [ebx + 0x30], edi
mov dword [ebx + 0x34], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x432a2b
mov eax, dword [ebx + 0x30]
add eax, edi
push eax
push dword [ebx + 0x2c]
push 8
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
lea eax, [esp + 0x50]
push edi
push eax
mov eax, dword [ebx + 0x30]
add eax, ecx
mov dword [ebx + 0x2c], ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [ebx + 0x30], edi
mov eax, dword [esp + 0x20]
mov dword [eax], ebx
mov ecx, dword [ebp + 0x24]
mov dword [eax + 4], ecx
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x840
ret
Function at 0x432ba7
Capabilities:
Set socket configuration

Disassembly:
push ecx
push ecx
push ebx
push edi
push dword [esp + 0x14]
xor edi, edi
push dword [0x554ca4]
call fcn.0044929c
mov ebx, eax
test ebx, ebx
je 0x432d3a
cmp dword [esp + 0x18], 0xffff
push ebp
push esi
ja 0x432d21
mov ebp, dword [esp + 0x24]
push 2
pop ecx
push 0x17
pop eax
test ebp, 0x10000000
je 0x432bf4
mov dword [esp + 0x24], eax
and ebp, 0xefffffff
jmp 0x432bfa
mov eax, ecx
mov dword [esp + 0x24], ecx
test ebp, ebp
jne 0x432bff
inc ebp
push edi
push ebp
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, 0xffffffff
je 0x432d21
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 1
push eax
push 0x8004667e
push esi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jle 0x432d16
push 0x17
pop eax
cmp dword [esp + 0x24], eax
je 0x432c45
push 2
pop eax
push dword [esp + 0x20]
mov word [ebx + 4], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 6], ax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x432ca1
cmp word [eax], di
je 0x432ca1
push eax
call fcn.004f3530
cmp dword [esp + 0x24], 0x17
mov ecx, eax
mov dword [esp + 0x20], ecx
jne 0x432c88
lea eax, [ebx + 0xc]
push eax
push ecx
push 0x17
call fcn.004322cb
add esp, 0xc
jmp 0x432c92
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebx + 8], eax
push dword [esp + 0x20]
call fcn.004f3520
mov eax, dword [esp + 0x24]
jmp 0x432cc1
mov eax, dword [esp + 0x24]
cmp eax, 0x17
jne 0x432cbe
mov esi, 0x4fb8b4
lea edi, [ebx + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
xor edi, edi
jmp 0x432cc6
mov dword [ebx + 8], edi
cmp eax, 0x17
jne 0x432cca
push 0x1c
jmp 0x432ccc
push 0x10
lea eax, [ebx + 4]
push eax
push esi
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x432d16
cmp ebp, 1
jne 0x432ced
push 0x64
push esi
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x432d16
xor eax, eax
mov dword [ebx], esi
cmp dword [esp + 0x24], 0x17
mov word [ebx + 0x20], bp
sete al
mov word [ebx + 0x22], ax
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
jne 0x432d0f
mov dword [ebx + 0x24], ebx
jmp 0x432d12
mov dword [ebx + 0x24], eax
mov edi, ebx
jmp 0x432d1d
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
jne 0x432d38
mov eax, dword [esp + 0x1c]
cmp eax, 0xffffffff
je 0x432d2c
mov ebx, eax
push ebx
push dword [0x554ca4]
call fcn.0044920e
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
pop ecx
ret 0x10
Function at 0x432d55
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
xor esi, esi
cmp eax, 0xffffffff
jne 0x432d78
lea eax, [ebp + 0xc]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x432dbf
push 2
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x432db8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2745
je 0x432dbc
cmp eax, 0x2746
je 0x432dbc
cmp eax, 0x2749
je 0x432dbc
cmp eax, 0x274a
je 0x432dbc
xor esi, esi
jmp 0x432dbf
test esi, esi
jne 0x432dbf
push 0xfffffffffffffffe
pop esi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x432ecf
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x433045
mov eax, dword [esp + 0x24]
dec eax
je 0x433028
dec eax
jne 0x433045
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.00432e88
pop ecx
test eax, eax
je 0x432f86
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x432f49
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x433024
dec ebx
je 0x433020
dec ebx
je 0x432fff
dec ebx
je 0x432fb9
sub ebx, 4
jne 0x433045
test edi, edi
jne 0x433045
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x433045
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x432f49
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x432f44
sub edi, 0
je 0x432ff1
dec edi
je 0x432fe3
dec edi
je 0x432fd5
dec edi
jne 0x433045
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x433045
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x433045
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x433045
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x433045
sub edi, 0
je 0x43301c
dec edi
je 0x433018
dec edi
jne 0x433045
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x433045
push 0x3c
jmp 0x433044
push 0x32
jmp 0x433044
push 0x14
jmp 0x433044
push 5
jmp 0x433044
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x433042
cmp eax, 0xa
je 0x43303e
cmp eax, 0x5a
jne 0x433045
push 0x28
jmp 0x433044
push 0x1e
jmp 0x433044
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x4330f2
Capabilities:
Check if file exists

Disassembly:
xor eax, eax
push ebp
mov ebp, eax
mov eax, dword [0x554cd0]
push esi
test eax, eax
jne 0x433117
push fcn.0043321f
push 0x10
push 0x258
call fcn.00449330
mov dword [0x554cd0], eax
push dword [esp + 0xc]
push eax
call fcn.0044929c
mov esi, eax
test esi, esi
je 0x433218
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jne 0x433139
mov edi, 0x4fb10c
push ebx
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x433149
xor eax, eax
cmp word [ebx], ax
jne 0x43314e
mov ebx, 0x4fb93c
push edi
call sub.MSVCRT.dll_wcslen
push ebx
mov dword [esp + 0x24], eax
call sub.MSVCRT.dll_wcslen
add eax, dword [esp + 0x24]
pop ecx
pop ecx
lea eax, [eax*2 + 4]
push eax
xor eax, eax
push eax
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4331ff
push edi
push eax
call sub.MSVCRT.dll_wcscpy
mov eax, dword [esp + 0x24]
pop ecx
pop ecx
test eax, eax
je 0x4331af
cmp word [edi + eax*2 - 2], 0x5c
mov edi, dword [esp + 0x18]
je 0x4331b3
push 0x4fb944
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
jmp 0x4331b3
mov edi, dword [esp + 0x18]
push ebx
push edi
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x4331d7
xor eax, eax
mov ebp, esi
mov dword [esi + 4], eax
jmp 0x4331ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4331eb
mov dword [esi + 4], 1
mov ebp, esi
xor eax, eax
push edi
push eax
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebp, ebp
jne 0x433216
cmp dword [esp + 0x14], 0xffffffff
je 0x43320a
mov esi, dword [esp + 0x14]
push esi
push dword [0x554cd0]
call fcn.0044920e
pop ebx
pop edi
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x4334a0
Capabilities:
Get disk information
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x45c
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x4335e8
xor ecx, ecx
cmp word [eax], cx
je 0x4335e8
push 0x104
push eax
lea eax, [esp + 0x10]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x21c], ax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcslen
add esp, 0x10
lea ecx, [esp + eax*2 + 6]
cmp eax, 2
je 0x4334f9
cmp eax, 3
jne 0x433533
cmp word [esp + 0xa], 0x3a
jne 0x433533
cmp eax, 2
jne 0x433517
lea eax, [esp + 8]
push 0x4fb944
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4335e8
push 0xfffffffffffffffe
pop edi
jmp 0x4335e8
push ebx
push ebp
push 0x5c
pop ebp
push 0x2f
pop ebx
movzx eax, word [ecx]
cmp ax, bp
je 0x433548
cmp ax, bx
jne 0x433552
xor eax, eax
mov word [ecx], ax
sub ecx, 2
jmp 0x43353b
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x433591
test byte [esp + 0x21c], 0x10
je 0x433578
push 0xfffffffffffffffe
pop edi
jmp 0x433588
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x4335e6
cmp word [esp + 0x10], bp
jne 0x43359f
cmp word [esp + 0x12], bp
je 0x4335be
cmp word [esp + 0x10], bx
jne 0x4335ad
cmp word [esp + 0x12], bx
je 0x4335be
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x4335e6
cmp word [esp + 0x12], ax
jne 0x4335e6
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x4335d3
test al, 0x10
je 0x4335e6
jmp 0x4335e3
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4335e6
push 0xfffffffffffffffe
pop edi
pop ebp
pop ebx
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x4335f7
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [ebp + 8], 0
je 0x43366f
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [ebp - 4], ax
lea eax, [ebp - 0x20c]
push eax
call sub.MSVCRT.dll_wcslen
lea ecx, [ebp - 0x20c]
add esp, 0x10
lea eax, [ecx + eax*2]
jmp 0x433650
movzx ecx, word [eax - 2]
cmp ecx, 0x20
je 0x43364d
cmp ecx, 0x5c
je 0x43364d
cmp ecx, 0x2f
jne 0x43365a
add eax, 0xfffffffe
lea ecx, [ebp - 0x20c]
cmp eax, ecx
ja 0x43363a
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x433671
xor eax, eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4336da
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x433703
test byte [esp + 8], 2
je 0x4336f7
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x433705
xor eax, eax
ret 8
Function at 0x433716
Capabilities:
Copy file

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

Function at 0x433d70
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
push dword [esp + 0x10]
mov dword [esp + 8], 0
push dword [0x55576c]
call fcn.0044925d
mov esi, eax
test esi, esi
je 0x433def
cmp dword [esi + 4], 0
je 0x433dc0
push 1
lea eax, [esp + 8]
push eax
push esi
call fcn.00434610
test eax, eax
je 0x433db4
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 0x433dfa
cmp dword [esp + 8], 0
je 0x433dfa
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 0x433e80
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 0x433ebc
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 0x433f80
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
mov dword [esp + 4], 0
test esi, esi
je 0x433fe5
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x433fdd
push dword [esp + 0x10]
push dword [0x55576c]
call fcn.0044925d
test eax, eax
je 0x433fd3
cmp dword [eax + 4], 0
je 0x433fc2
push edi
push esi
push eax
call fcn.00434840
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 0x433ff0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push ebx
push dword [0x55576c]
mov dword [esp + 0x10], 0
call fcn.0044925d
mov ebp, eax
test ebp, ebp
je 0x43414c
push esi
push edi
push ebx
call fcn.00434950
cmp dword [ebp + 4], 0
mov esi, eax
mov edi, edx
je 0x43403c
push 4
lea eax, [esp + 0x1c]
push eax
push ebp
call fcn.00434610
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x434057
push 0
lea eax, [esp + 0x14]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x10]
cmp ecx, 2
jl 0x434085
lea edx, [esp + 0x18]
mov eax, 0xfeff
cmp word [edx], ax
jne 0x434085
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.004349c0
pop edi
pop esi
pop ebp
mov eax, 0x19
pop ebx
pop ecx
ret 4
cmp ecx, 3
jl 0x4340b6
lea edx, [esp + 0x18]
cmp word [edx], 0xbbef
jne 0x4340b6
cmp byte [edx + 2], 0xbf
jne 0x4340b6
add esi, 3
adc edi, 0
push edi
push esi
push ebx
call fcn.004349c0
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
pop ecx
ret 4
cmp ecx, 2
jl 0x4340e4
lea edx, [esp + 0x18]
mov eax, 0xfffe
cmp word [edx], ax
jne 0x4340e4
add esi, 2
adc edi, 0
push edi
push esi
push ebx
call fcn.004349c0
pop edi
pop esi
pop ebp
mov eax, 4
pop ebx
pop ecx
ret 4
cmp ecx, 4
jl 0x434137
lea eax, [esp + 0x18]
cmp dword [eax], 0xfeff
jne 0x434110
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.004349c0
pop edi
pop esi
pop ebp
mov eax, 5
pop ebx
pop ecx
ret 4
lea eax, [esp + 0x18]
cmp dword [eax], 0xfffe0000
jne 0x434137
add esi, 4
adc edi, 0
push edi
push esi
push ebx
call fcn.004349c0
pop edi
pop esi
pop ebp
mov eax, 6
pop ebx
pop ecx
ret 4
push edi
push esi
push ebx
call fcn.004349c0
pop edi
pop esi
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4
pop ebp
mov eax, 0x18
pop ebx
pop ecx
ret 4
Function at 0x434160
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x553c50]
mov dword [esp + 0x14], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x4342e4
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 0x4341ae
test ebp, ebp
je 0x434250
dec ebp
cmp dword [ebx + 4], 0
je 0x4341c7
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00434610
mov dword [esp + 0x14], eax
jmp 0x4341e1
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 0x434250
test cl, cl
je 0x4341f5
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 0x434230
mov eax, dword [esp + 0x18]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x553c50]
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 0x434250
cmp dword [esp + 0x2c], 0
jne 0x4341a0
cmp cl, 0xd
je 0x434257
cmp cl, 0xa
jne 0x4341a0
dec esi
jmp 0x4342c7
cmp dword [esp + 0x2c], 0
jne 0x4342c7
cmp cl, 0xa
jne 0x43425f
dec esi
jmp 0x4342c7
cmp cl, 0xd
jne 0x4342c7
dec esi
cmp dword [ebx + 4], 0
je 0x43427e
push 1
lea eax, [esp + 0x17]
push eax
push ebx
call fcn.00434610
mov dword [esp + 0x14], eax
jmp 0x434294
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 0x4342c7
cmp dword [ebx + 4], 0
je 0x4342a6
inc dword [ebx + 0xc]
jmp 0x4342c7
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 0x4342f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push 0x1000
push 0
push dword [0x553c50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, eax
mov dword [esp + 8], ecx
test ecx, ecx
je 0x43449d
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 0x434344
test ebp, ebp
je 0x4343fd
dec ebp
cmp dword [ebx + 4], 0
je 0x43435d
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00434610
mov dword [esp + 0x14], eax
jmp 0x434377
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 0x4343fd
test ax, ax
je 0x434391
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 0x4343d8
mov eax, dword [esp + 0x20]
add edx, 0x800
add eax, 0x1000
mov dword [esp + 0x1c], edx
push eax
push ecx
push 8
push dword [0x553c50]
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 0x4343fd
cmp dword [esp + 0x30], 0
jne 0x434336
cmp ax, 0xd
je 0x434404
cmp ax, 0xa
jne 0x434336
sub edi, 2
jmp 0x43447c
cmp dword [esp + 0x30], 0
jne 0x43447c
cmp ax, 0xa
jne 0x43440f
sub edi, 2
jmp 0x43447c
cmp ax, 0xd
jne 0x43447c
sub edi, 2
cmp dword [ebx + 4], 0
je 0x434431
push 2
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.00434610
mov dword [esp + 0x14], eax
jmp 0x434447
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 0x43447c
cmp dword [ebx + 4], 0
je 0x43445b
add dword [ebx + 0xc], 2
jmp 0x43447c
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 0x4344b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x14
push 0x1000
push 0
push dword [0x553c50]
mov dword [esp + 0x10], 0x1000
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x434600
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 0x4344fc
test edi, edi
je 0x43456d
dec edi
push esi
push ebp
call fcn.00434a30
mov dword [esp + 0x20], eax
test eax, eax
jne 0x43450f
xor cl, cl
jmp 0x434511
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 0x434554
mov eax, dword [esp + 0x14]
add eax, 0x1000
push eax
push edx
push 8
push dword [0x553c50]
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 0x43456d
test eax, eax
jne 0x4344f2
cmp cl, 0xd
je 0x434571
cmp cl, 0xa
jne 0x4344f2
dec esi
jmp 0x4345e3
test eax, eax
jne 0x4345e3
cmp cl, 0xa
jne 0x434579
dec esi
jmp 0x4345e3
cmp cl, 0xd
jne 0x4345e3
dec esi
cmp dword [ebp + 4], 0
je 0x434598
push 1
lea eax, [esp + 0x17]
push eax
push ebp
call fcn.00434610
mov dword [esp + 0x20], eax
jmp 0x4345af
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 0x4345e3
cmp dword [ebp + 4], 0
je 0x4345c1
inc dword [ebp + 0xc]
jmp 0x4345e3
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