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

Disassembly:
sub esp, 0x814
xor ecx, ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x828]
xor ebx, ebx
inc ebx
mov ebp, ecx
cmp word [edi + 0x20], bx
jne 0x542763
push ecx
push ecx
push dword [edi]
call dword [sym.imp.WSOCK32.DLL_accept]
mov esi, eax
cmp esi, 0xffffffff
je 0x54285e
lea eax, [edi + 0x28]
push 0x18
push eax
call fcn.005697b6
pop ecx
pop ecx
mov ecx, eax
mov ebp, ebx
mov dword [ecx], ebx
mov dword [ecx + 8], esi
mov dword [ecx + 0xc], edi
mov eax, dword [edi + 0x24]
mov dword [0xb2e578], eax
mov dword [0xb2e574], ecx
jmp 0x54285e
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x10
push eax
lea eax, [esp + 0x18]
push eax
push ecx
push 0x800
lea eax, [esp + 0x34]
push eax
push dword [edi]
call dword [sym.imp.WSOCK32.DLL_recvfrom]
mov ebx, eax
test ebx, ebx
jle 0x54285e
mov esi, dword [edi + 0x28]
push 2
pop ebp
push dword [esp + 0x16]
call dword [sym.imp.WSOCK32.DLL_ntohs]
movzx ecx, ax
test esi, esi
je 0x5427bd
mov eax, dword [esp + 0x18]
cmp dword [esi + 0x10], ecx
jne 0x5427b7
cmp dword [esi + 0xc], eax
je 0x542817
mov esi, dword [esi]
test esi, esi
jne 0x5427ad
lea eax, [edi + 0x28]
push 0x28
push eax
call fcn.005697b6
mov esi, eax
pop ecx
pop ecx
mov dword [esi], ebp
push dword [esp + 0x16]
call dword [sym.imp.WSOCK32.DLL_ntohs]
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 4], eax
mov dword [esi + 0xc], edi
cmp dword [esi + 0x14], 0
jne 0x54281c
push ebx
push 0
push dword [0xb2ad40]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push ebx
lea ecx, [esp + 0x28]
mov dword [esi + 0x14], eax
push ecx
push eax
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
jmp 0x54284f
add esi, 8
jmp 0x5427e8
mov eax, dword [esi + 0x18]
add eax, ebx
push eax
push dword [esi + 0x14]
push 8
push dword [0xb2ad40]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
lea eax, [esp + 0x24]
push ebx
push eax
mov eax, dword [esi + 0x18]
add eax, ecx
mov dword [esi + 0x14], ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [esi + 0x18], ebx
mov dword [0xb2e574], esi
mov ecx, dword [edi + 0x24]
mov dword [0xb2e578], ecx
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x814
ret

Function at 0x5429a9
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [esi], 1
jne 0x5429cf
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov edi, eax
jmp 0x542a0c
cmp dword [esi + 0x14], ebx
je 0x542a0c
mov edi, dword [ebp + 0x10]
cmp edi, dword [esi + 0x18]
jle 0x5429df
mov edi, dword [esi + 0x18]
push edi
push dword [esi + 0x1c]
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
sub dword [esi + 0x18], edi
add esp, 0xc
add dword [esi + 0x1c], edi
cmp dword [esi + 0x18], ebx
jne 0x542a0c
push dword [esi + 0x14]
push ebx
push dword [0xb2ad40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 0x14], ebx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x542a15
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 0x542a38
lea eax, [ebp + 0xc]
push eax
push 0x4004667f
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_ioctlsocket]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x542a7f
push 2
push eax
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.DLL_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x542a78
call dword [sym.imp.WSOCK32.DLL_WSAGetLastError]
cmp eax, 0x2745
je 0x542a7c
cmp eax, 0x2746
je 0x542a7c
cmp eax, 0x2749
je 0x542a7c
cmp eax, 0x274a
je 0x542a7c
xor esi, esi
jmp 0x542a7f
test esi, esi
jne 0x542a7f
push 0xfffffffffffffffe
pop esi
mov eax, esi
pop esi
pop ebp
ret 0xc

Function at 0x542bf1
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.DLL_GetKeyState]
xor esi, esi
push 1
call edi
mov ebx, 0x8000
test bx, ax
je 0x542c0b
inc esi
push 2
call edi
test bx, ax
je 0x542c17
or esi, 2
push 4
call edi
test bx, ax
je 0x542c23
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x54314f
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
push dword [edi]
call dword [sym.imp.USER32.DLL_GetClientRect]
mov esi, dword [esp + 0x2c]
test esi, esi
jne 0x543187
push dword [edi]
call dword [sym.imp.USER32.DLL_GetDC]
mov esi, eax
mov dword [esp + 0x10], 1
test byte [edi + 0x14], 8
je 0x54326c
call dword [sym.imp.USER32.DLL_GetFocus]
cmp dword [edi], eax
jne 0x54326c
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
sub ebp, dword [esp + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
jle 0x54329a
test ebp, ebp
jle 0x54329a
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleDC]
mov ebx, eax
test ebx, ebx
je 0x54329a
push ebp
push dword [esp + 0x2c]
push esi
call dword [sym.imp.GDI32.DLL_CreateCompatibleBitmap]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x543263
push eax
push ebx
call dword [sym.imp.GDI32.DLL_SelectObject]
cmp dword [edi + 0x10], 0
je 0x54320d
push 4
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi + 0x10]
push eax
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x543222
push 0
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.DLL_FillRect]
push 2
pop eax
add dword [esp + 0x14], eax
add dword [esp + 0x18], eax
sub dword [esp + 0x1c], eax
sub dword [esp + 0x20], eax
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.USER32.DLL_DrawFocusRect]
push 0xcc0020
xor eax, eax
push eax
push eax
push ebx
push ebp
push dword [esp + 0x3c]
push eax
push eax
push esi
call dword [sym.imp.GDI32.DLL_BitBlt]
push dword [esp + 0x2c]
call dword [sym.imp.GDI32.DLL_DeleteObject]
push ebx
call dword [sym.imp.GDI32.DLL_DeleteDC]
jmp 0x54329a
cmp dword [edi + 0x10], ebx
je 0x543286
push 4
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [edi + 0x10]
push ebx
push ebx
push esi
call dword [sym.imp.USER32.DLL_DrawStateW]
jmp 0x54329a
push ebx
call dword [sym.imp.GDI32.DLL_GetStockObject]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.USER32.DLL_FillRect]
cmp dword [esp + 0x10], 0
je 0x5432aa
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_ReleaseDC]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x5432b2
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
xor ebx, ebx
call dword [sym.imp.USER32.DLL_GetMessagePos]
mov edi, dword [esp + 0x20]
mov esi, eax
push 0xfffffffffffffff4
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
push dword [edi]
mov dword [esp + 0x14], eax
call fcn.00549a0c
push eax
call fcn.0054b277
push dword [0xb2cbdc]
mov dword [esp + 0x24], eax
call fcn.00568f5d
mov ebp, eax
movsx ecx, si
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push dword [edi]
shr esi, 0x10
movsx ecx, si
mov dword [esp + 0x20], ecx
call dword [sym.imp.USER32.DLL_ScreenToClient]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
push 0x10
call esi
mov edi, 0x8000
test di, ax
je 0x543326
inc ebx
push 0x12
call esi
test di, ax
je 0x543332
or ebx, 2
push 0x11
call esi
test di, ax
je 0x54333e
or ebx, 4
mov eax, dword [esp + 0x14]
mov dword [ebp], eax
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], eax
call fcn.00542bf1
push 0x543396
push ebp
push dword [esp + 0x2c]
mov dword [ebp + 8], eax
mov eax, dword [esp + 0x34]
push dword [esp + 0x2c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x3c]
push dword [esp + 0x20]
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 0x44]
movzx eax, ax
push 0x332c
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], eax
call fcn.0054e2c5
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x548187
Capabilities:
Check os version

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
push edi
push dword [0xb2e584]
call fcn.00568e0d
xor ebp, ebp
mov esi, eax
cmp dword [0xb2d2f0], ebp
jne 0x548263
xor ebx, ebx
inc ebx
mov dword [0xb2d2f0], ebx
call fcn.00549874
mov edi, 0xa4
push edi
push ebp
push 0xb2d2f8
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [0xb2d2f8], 0x13
lea eax, [esp + 0x10]
mov dword [0xb2d2fc], edi
mov dword [0xb2d308], 0x5480d2
mov dword [0xb2d30c], 0x5483f8
push eax
mov dword [0xb2d360], 0x5480ad
mov dword [0xb2d364], 0x548343
mov dword [0xb2d304], 0x548088
mov dword [0xb2d388], 0x5480ed
mov dword [0xb2d39c], ebx
mov dword [esp + 0x14], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x548263
cmp dword [esp + 0x20], ebx
je 0x54824b
cmp dword [esp + 0x20], 2
jne 0x548263
cmp dword [esp + 0x14], 5
jae 0x548253
mov dword [0xb2d39c], ebp
jmp 0x548263
jne 0x548263
mov eax, dword [esp + 0x18]
neg eax
sbb eax, eax
and dword [0xb2d39c], eax
mov eax, dword [esp + 0x140]
push ebp
push dword [0xb2ad44]
or eax, 0x50010000
push 0xffffffffffffffff
push dword [esi]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push dword [esp + 0x148]
push eax
push ebp
push str.BUTTON
push ebp
call dword [sym.imp.USER32.DLL_CreateWindowExW]
mov edi, eax
test edi, edi
je 0x548314
push dword [esp + 0x128]
push dword [0xb2e5a0]
call fcn.0056948c
mov ebx, dword [esp + 0x13c]
mov esi, eax
mov dword [esi + 0x10], ebx
test ebx, ebx
je 0x5482e3
push ebx
call fcn.00562f49
test eax, eax
je 0x5482e3
push ebp
push ebp
push ebx
call fcn.00562abe
mov dword [esi + 0x18], eax
jmp 0x5482e6
mov dword [esi + 0x18], ebp
push 0x547dc8
push 0xfffffffffffffffc
push edi
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [sym.imp.USER32.DLL_SetWindowLongW]
push 0xb2d2f8
push edi
push esi
push dword [esp + 0x134]
mov dword [0xb2d2f4], eax
call fcn.00549a3b
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret 0x1c
Function at 0x54b018
Capabilities:
Check os version

Disassembly:
sub esp, 0x34c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x114
push eax
mov esi, 0xc8
xor ebx, ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x54b170
mov eax, dword [esp + 0x20]
dec eax
je 0x54b153
dec eax
jne 0x54b170
lea eax, [esp + 0x124]
xor ebp, ebp
push eax
call fcn.0054afd1
pop ecx
test eax, eax
je 0x54b084
mov ebx, dword [esp + 0x128]
mov edi, dword [esp + 0x12c]
cmp byte [esp + 0x23e], 1
jmp 0x54b0b1
lea eax, [esp + 0x240]
mov dword [esp + 0x240], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x54b0b6
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
cmp byte [esp + 0x35a], 1
jne 0x54b0b6
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x54b14f
dec ebx
je 0x54b14b
dec ebx
je 0x54b12a
dec ebx
je 0x54b0e4
sub ebx, 4
jne 0x54b170
test edi, edi
jne 0x54b170
push 0x6e
jmp 0x54b16f
sub edi, 0
je 0x54b11c
dec edi
je 0x54b10e
dec edi
je 0x54b100
dec edi
jne 0x54b170
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x54b170
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x54b170
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x54b170
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x54b170
sub edi, 0
je 0x54b147
dec edi
je 0x54b143
dec edi
jne 0x54b170
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x54b170
push 0x3c
jmp 0x54b16f
push 0x32
jmp 0x54b16f
push 0x14
jmp 0x54b16f
push 5
jmp 0x54b16f
mov eax, dword [esp + 0x18]
test eax, eax
je 0x54b16d
cmp eax, 0xa
je 0x54b169
cmp eax, 0x5a
jne 0x54b170
push 0x28
jmp 0x54b16f
push 0x1e
jmp 0x54b16f
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x34c
ret
Function at 0x54c6d4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
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 0x54c74e
push 9
call esi
test al, al
jns 0x54c74e
push 0x11
call esi
test al, al
js 0x54c74e
push 0x10
call esi
test al, al
js 0x54c74e
push 0x12
call esi
test al, al
js 0x54c74e
push 5
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.USER32.DLL_GetClassNameW]
push 4
lea eax, [ebp - 0x10]
push str.Rich
push eax
call sub.MSVCRT.dll_wcsncmp
add esp, 0xc
test eax, eax
jne 0x54c74e
push eax
push eax
push 0x44e
push ebx
call dword [sym.imp.USER32.DLL_SendMessageW]
test eax, 0x800
jne 0x54c74e
xor eax, eax
jmp 0x54c7cf
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x54c776
push 0x11
call esi
test al, al
js 0x54c76e
push 0x10
call esi
test al, al
js 0x54c76e
push 0x12
call esi
test al, al
jns 0x54c776
push 1
push edi
call fcn.0054c7d7
mov esi, dword [sym.imp.USER32.DLL_GetPropW]
test ebx, ebx
je 0x54c78c
push str.PB_Hotkey
push ebx
call esi
test eax, eax
jne 0x54c7cc
push str.PB_WindowID
push edi
call esi
mov esi, eax
test esi, esi
je 0x54c7cc
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x54c7cc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x54c7cc
lea eax, [esi - 1]
push eax
push dword [0xb2e5b0]
call fcn.0056944d
test eax, eax
je 0x54c7cc
mov eax, dword [eax + 8]
jmp 0x54c7ce
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x54c9b0
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 0x54c9ec
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 0x54d190
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
mov dword [esp], 0
test edx, edx
je 0x54d284
cmp word [edx], 0
je 0x54d284
mov ecx, dword [esp + 0x10]
push esi
cmp ecx, 0x19
jne 0x54d21d
mov esi, dword [esp + 0xc]
mov ecx, edx
push edi
cmp dword [esi + 4], 0
lea edi, [ecx + 2]
je 0x54d1f0
jmp 0x54d1d0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54d1d0
sub ecx, edi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push edx
push esi
call fcn.0054dc10
pop edi
pop esi
pop ecx
ret 0xc
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54d1f0
sub ecx, edi
lea eax, [esp + 8]
push 0
sar ecx, 1
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
xor eax, eax
cmp ecx, 2
lea ecx, [esp + 0x10]
setne al
push ecx
dec eax
and eax, 0xfde9
push edx
push eax
call fcn.0054dd20
mov esi, eax
test esi, esi
je 0x54d27b
mov eax, dword [esp + 0xc]
cmp dword [eax + 4], 0
je 0x54d258
push dword [esp + 0x10]
push esi
push eax
call fcn.0054dc10
mov dword [esp + 4], eax
jmp 0x54d26c
push 0
lea ecx, [esp + 8]
push ecx
push dword [esp + 0x18]
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push dword [0xb2ad40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 0xc
xor eax, eax
pop ecx
ret 0xc

Function at 0x54d290
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0xb2e5c4]
call fcn.0056944d
test eax, eax
je 0x54d2ac
mov dword [esp + 4], eax
jmp fcn.0054d190
xor eax, eax
ret 0xc

Function at 0x54d4b0
Capabilities:
Write file on windows

Disassembly:
push dword [esp + 4]
push dword [0xb2e5c4]
call fcn.0056944d
test eax, eax
je 0x54d4cc
mov dword [esp + 4], eax
jmp fcn.0054c9b0
xor eax, eax
ret 4
Function at 0x54d5d0
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
cmp dword [esi + 0x14], 0
jne 0x54d5f1
push esi
call fcn.0054c9b0
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 0x54d665
add eax, dword [esi + 4]
mov ecx, edi
sub eax, ebx
dec ecx
je 0x54d652
dec ecx
je 0x54d63d
sub ecx, 2
je 0x54d62a
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 0x54d6aa
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 0x54d6cb
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
Function at 0x54dc10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
mov dword [esp + 4], 0
cmp dword [esi + 0x1c], 0
jne 0x54dd17
cmp dword [esi + 0x14], 1
jne 0x54dc5b
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0xc]
push 1
neg eax
cdq
push ecx
push eax
push dword [esi]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [esp + 0x20]
cmp eax, edi
jle 0x54dcd8
mov ecx, dword [esi + 8]
add ecx, dword [esi + 4]
sub ecx, eax
mov eax, edi
dec eax
je 0x54dcc3
dec eax
je 0x54dcac
sub eax, 2
je 0x54dc97
push edi
push dword [esp + 0x20]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov ax, word [eax]
mov word [ecx], ax
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esp + 0x1c]
mov al, byte [eax]
mov byte [ecx], al
mov eax, edi
sub dword [esi + 0xc], edi
pop edi
pop esi
add esp, 0xc
ret 0xc
push esi
call fcn.0054c9b0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x54dd05
push 0
lea eax, [esp + 0xc]
push eax
push edi
push dword [esp + 0x28]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0xc
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
push edi
push dword [esp + 0x20]
add ecx, eax
jmp 0x54dc81
xor eax, eax
pop esi
add esp, 0xc
ret 0xc
Function at 0x54dd90
Capabilities:
Read file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [edi + 4], 0
je 0x54ddb7
push 1
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0054d5d0
mov dword [esp + 4], eax
jmp 0x54ddd1
push 0
lea eax, [esp + 8]
push eax
push 1
lea eax, [esp + 0x18]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 4]
cmp eax, 1
je 0x54dddd
xor eax, eax
pop edi
pop ecx
ret 8
mov cl, byte [esp + 0xc]
test cl, cl
js 0x54ddf9
mov eax, dword [esp + 0x10]
pop edi
mov byte [eax], cl
mov byte [eax + 1], 0
mov eax, 1
pop ecx
ret 8
mov al, cl
and al, 0xe0
push esi
cmp al, 0xc0
jne 0x54de09
mov esi, 2
jmp 0x54de25
mov al, cl
and al, 0xf0
cmp al, 0xe0
jne 0x54de18
mov esi, 3
jmp 0x54de25
mov al, cl
and al, 0xf8
cmp al, 0xf0
jne 0x54de82
mov esi, 4
mov edx, dword [esp + 0x14]
mov byte [edx], cl
cmp dword [edi + 4], 0
je 0x54de54
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push edi
call fcn.0054d5d0
mov edx, eax
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
push 0
lea eax, [esp + 0xc]
push eax
lea eax, [esi - 1]
push eax
lea eax, [edx + 1]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [esp + 8]
lea ecx, [esi - 1]
xor eax, eax
cmp edx, ecx
setne al
dec eax
and eax, esi
pop esi
pop edi
pop ecx
ret 8
mov eax, dword [esp + 0x14]
pop esi
pop edi
mov word [eax], 0x3f
mov eax, 1
pop ecx
ret 8

Function at 0x54fc99
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x54fcc2
test byte [esp + 8], 2
je 0x54fcb6
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 0x54fcc4
xor eax, eax
ret 8
Function at 0x54fce5
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 0x54fe20
push ebp
xor ebp, ebp
cmp word [eax], bp
je 0x54fe1f
push 0x104
push eax
lea eax, [esp + 0x14]
push eax
call sub.MSVCRT.dll_wcsncpy
xor eax, eax
mov word [esp + 0x220], ax
lea eax, [esp + 0x18]
push eax
call sub.MSVCRT.dll_wcslen
mov ecx, eax
add esp, 0x10
lea eax, [esp + ecx*2 + 0xa]
cmp ecx, 2
je 0x54fd41
cmp ecx, 3
jne 0x54fd7b
cmp word [esp + 0xe], 0x3a
jne 0x54fd7b
cmp ecx, 2
jne 0x54fd5f
lea eax, [esp + 0xc]
push 0x6a2340
push eax
call sub.MSVCRT.dll_wcscat
pop ecx
pop ecx
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x54fe1f
push 0xfffffffffffffffe
pop edi
jmp 0x54fe1f
push ebx
push 0x5c
pop ebx
movzx ecx, word [eax]
cmp cx, bx
je 0x54fd8c
cmp ecx, 0x2f
jne 0x54fd96
xor ecx, ecx
mov word [eax], cx
sub eax, 2
jmp 0x54fd7f
lea eax, [esp + 0x21c]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, esi
je 0x54fdd7
test byte [esp + 0x21c], 0x10
je 0x54fdbc
push 0xfffffffffffffffe
pop edi
jmp 0x54fdce
mov esi, dword [esp + 0x238]
xor edi, edi
or edi, dword [esp + 0x23c]
or esi, ebp
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x54fe1e
cmp word [esp + 0x10], bx
jne 0x54fde5
cmp word [esp + 0x12], bx
je 0x54fdf6
push 0x2e
pop eax
cmp word [esp + 0x10], ax
jne 0x54fe1e
cmp word [esp + 0x12], ax
jne 0x54fe1e
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, esi
je 0x54fe0b
test al, 0x10
je 0x54fe1e
jmp 0x54fe1b
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x54fe1e
push 0xfffffffffffffffe
pop edi
pop ebx
pop ebp
mov eax, edi
mov edx, esi
pop edi
pop esi
add esp, 0x45c
ret 4

Function at 0x55008b
Capabilities:
Copy file

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