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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 8], edx
push ebx
mov dword [ebp - 4], eax
push esi
mov ecx, dword [eax]
mov eax, ecx
push edi
sub eax, 0
je 0x423c60
sub eax, 1
je 0x423c25
push ecx
push str.invalid_fileio_operation_d_n
push 0xfffffffffffffffe
push 0x4f
push str.fileio_rbin
push str.D:_a_avrdude_avrdude_src_fileio.c
push 0x405
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x20
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea esi, [edi + 4]
push dword [esi]
push 1
mov eax, dword [eax + 0x50]
add eax, dword [edi]
push eax
call fcn.00499fb5
mov ebx, eax
add esp, 0x10
test ebx, ebx
js 0x423c9a
mov eax, dword [ebp - 4]
cmp dword [eax], 1
jne 0x423c55
cmp ebx, dword [esi]
jl 0x423c9d
mov eax, dword [edi]
add eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x10]
push dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea esi, [edi + 4]
push dword [esi]
push 1
mov eax, dword [eax + 0x50]
add eax, dword [edi]
push eax
call fcn.0049a1c8
mov ebx, eax
add esp, 0x10
test ebx, ebx
jle 0x423c47
mov eax, dword [ebp + 0xc]
push ebx
push 1
mov eax, dword [eax + 0x54]
add eax, dword [edi]
push eax
call fcn.00489010
add esp, 0xc
jmp 0x423c49
mov eax, dword [ebp - 4]
mov esi, dword [esi]
mov edi, dword [eax + 0x10]
call fcn.00495b25
push esi
push ebx
push edi
push dword [eax]
call fcn.00497f19
add esp, 4
push eax
push dword [ebp - 8]
mov eax, dword [ebp - 4]
push dword [eax + 0xc]
push dword [eax + 8]
push str._s_error__s__s:__s___s__d_of_the_expected__d_bytes_n
push 0xfffffffffffffffd
push 0x4f
push str.fileio_rbin
push str.D:_a_avrdude_avrdude_src_fileio.c
push 0x40b
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x38
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x427550
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x61900c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x34c]
mov eax, dword [ecx + 0x1c]
cmp eax, 3
je 0x427754
cmp eax, 5
je 0x427754
push ebx
cmp eax, 4
jne 0x4275a7
mov ecx, edi
call fcn.00427340
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x4275c7
mov ecx, edi
call fcn.00427490
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
mov byte [ebp - 0x128], 0x1b
mov al, byte [ecx + 0x18]
mov byte [ebp - 0x127], al
mov eax, ebx
shr eax, 8
mov byte [ebp - 0x126], al
lea eax, [ebp - 0x123]
push edx
push eax
mov byte [ebp - 0x125], bl
mov byte [ebp - 0x124], 0xe
call fcn.004885b0
lea edx, [ebx + 5]
add esp, 0xc
cmp edx, 0x119
jae 0x427770
xor eax, eax
mov byte [ebp + edx - 0x128], 0
test edx, edx
je 0x427643
mov cl, byte [ebp + ebx - 0x123]
nop dword [eax]
nop word [eax + eax]
xor cl, byte [ebp + eax - 0x128]
inc eax
mov byte [ebp + ebx - 0x123], cl
cmp eax, edx
jb 0x427630
push str.STK500V2:_stk500v2_send_
push 5
push 0
push str.stk500v2_send
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x217
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
xor esi, esi
add ebx, 6
je 0x4276b9
nop word [eax + eax]
movzx eax, byte [ebp + esi - 0x128]
push eax
push str.0x_02x
push 5
push 0
push str.stk500v2_send
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x219
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
inc esi
add esp, 0x20
cmp esi, ebx
jb 0x427680
push ebx
push str.___d__n
push 5
push 0
push str.stk500v2_send
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x21a
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
push ebx
lea eax, [ebp - 0x128]
push eax
lea eax, [edi + 0xbc]
push eax
mov eax, dword [0x61a0e8]
mov eax, dword [eax + 0x10]
call eax
add esp, 0x2c
test eax, eax
je 0x427741
push str.unable_to_send_command_to_serial_port_n
push 0xfffffffffffffffe
push 0x4f
push str.stk500v2_send
push str.D:_a_avrdude_avrdude_src_stk500v2.c
push 0x21d
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
push ebx
mov ecx, edi
call fcn.004272c0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0048485e
mov esp, ebp
pop ebp
ret
call fcn.0048498e
int3
Function at 0x455000
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor eax, eax
xor esi, esi
mov ebx, ecx
test edi, edi
je 0x455028
nop
movzx edx, byte [esi + ebx]
inc esi
add edx, eax
imul eax, edx, 0x401
mov ecx, eax
shr ecx, 6
xor eax, ecx
cmp esi, edi
jne 0x455010
lea ecx, [eax + eax*8]
mov eax, ecx
shr eax, 0xb
pop edi
xor eax, ecx
pop esi
imul eax, eax, 0x8001
pop ebx
ret
Function at 0x45a640
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
mov eax, dword [esi + 0x34c]
cmp dword [eax + 8], 0
jne 0x45a676
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esi + 0x34c]
mov dword [ecx + 8], eax
mov ecx, dword [esi + 0x34c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov eax, dword [ecx + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x41
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi + 0x34c]
push dword [ebp + 0xc]
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x34c]
pop edi
pop esi
cmp eax, 0x102
jne 0x45a6d2
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CancelIo]
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
test ecx, ecx
cmovne eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x45a700
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
mov edi, edx
mov eax, dword [esi + 0x34c]
cmp dword [eax + 4], 0
jne 0x45a736
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [esi + 0x34c]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x34c]
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov eax, dword [ecx + 4]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
push 0x41
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 0x34c]
push dword [ebp + 0xc]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x34c]
pop edi
pop esi
cmp eax, 0x102
jne 0x45a792
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_CancelIo]
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
test ecx, ecx
cmovne eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x464430
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x61900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x631f74]
mov dword [ebp - 0x298], edx
push ebx
mov ebx, ecx
mov dword [ebp - 0x29c], ebx
test eax, eax
jne 0x46446a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048485e
mov esp, ebp
pop ebp
ret
mov ecx, dword [eax + 0xc]
mov dword [0x631f74], ecx
test ecx, ecx
jne 0x46447d
mov dword [0x631f7c], ecx
mov ecx, dword [eax]
xorps xmm0, xmm0
mov edx, dword [eax + 4]
push esi
mov esi, dword [eax + 8]
mov dword [ebp - 0x290], ecx
mov ecx, dword [0x631f70]
push edx
movups xmmword [eax], xmm0
lea edx, [ebp - 0x288]
mov dword [ebp - 0x294], esi
mov dword [eax + 0xc], ecx
mov dword [0x631f70], eax
call fcn.004627c0
add esp, 4
test esi, esi
jle 0x4645d7
lea eax, [ebp - 0x254]
mov dword [ebp - 0x28c], eax
push edi
nop word [eax + eax]
mov esi, dword [ebx + 0x54]
mov edi, dword [ebx + 0x50]
movzx ebx, byte [eax - 2]
movzx ecx, byte [eax]
xor ebx, esi
and ebx, edi
neg ebx
sbb bl, bl
xor ecx, esi
and bl, 0x80
mov al, bl
or al, 0x40
test edi, ecx
movzx edx, al
movzx eax, bl
cmove edx, eax
mov eax, dword [ebp - 0x28c]
movzx ecx, byte [eax + 2]
mov al, dl
or al, 0x20
xor ecx, esi
movzx ebx, al
test edi, ecx
movzx eax, dl
cmove ebx, eax
mov eax, dword [ebp - 0x28c]
movzx ecx, byte [eax + 4]
mov al, bl
or al, 0x10
xor ecx, esi
movzx edx, al
test edi, ecx
movzx eax, bl
cmove edx, eax
mov eax, dword [ebp - 0x28c]
movzx ecx, byte [eax + 6]
mov al, dl
or al, 8
xor ecx, esi
movzx ebx, al
test edi, ecx
movzx eax, dl
cmove ebx, eax
mov eax, dword [ebp - 0x28c]
movzx ecx, byte [eax + 8]
mov al, bl
or al, 4
xor ecx, esi
movzx edx, al
test edi, ecx
movzx eax, bl
cmove edx, eax
mov eax, dword [ebp - 0x28c]
movzx ecx, byte [eax + 0xa]
mov al, dl
or al, 2
xor ecx, esi
movzx ebx, al
test edi, ecx
movzx eax, dl
cmove ebx, eax
mov eax, dword [ebp - 0x28c]
movzx edx, byte [eax + 0xc]
mov al, bl
or al, 1
xor edx, esi
movzx ecx, al
test edi, edx
mov edx, dword [ebp - 0x290]
movzx eax, bl
mov ebx, dword [ebp - 0x29c]
cmove ecx, eax
mov eax, dword [ebp - 0x298]
mov eax, dword [eax + 0x50]
mov byte [edx + eax], cl
inc edx
mov eax, dword [ebp - 0x28c]
add eax, 0x40
mov dword [ebp - 0x290], edx
sub dword [ebp - 0x294], 1
mov dword [ebp - 0x28c], eax
jne 0x4644d0
pop edi
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.0048485e
mov esp, ebp
pop ebp
ret
Function at 0x46cb80
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x61b568]
sub esp, 8
mov eax, dword [eax + 4]
push esi
push edi
test byte [eax + 0x61b574], 1
je 0x46cba6
xor ecx, ecx
call fcn.0046cad0
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x63402c], 0
jne 0x46cc0f
push 8
call fcn.00484fc5
add esp, 4
mov esi, eax
push 4
call fcn.00484fc5
add esp, 4
lea edi, [esi + 4]
mov dword [eax], 0x46c880
push edi
push 0
push eax
push 0x46dd50
push 0
push 0
call fcn.0049ab2d
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x46cc51
mov eax, dword [0x63402c]
mov dword [0x63402c], esi
test eax, eax
je 0x46cc4b
cmp dword [eax + 4], 0
jne 0x46cc5e
push 8
push eax
call fcn.00484ff5
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
lea ecx, [ebp - 8]
call fcn.0046ccb0
cmp byte [0x61c854], 0
je 0x46cc40
cmp dword [0x61a94c], 0x10
mov ecx, 0x61a938
mov byte [0x61c854], 0
cmovae ecx, dword [0x61a938]
call fcn.0046cad0
push dword [ebp - 8]
call fcn.004871de
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.00485756
call fcn.0049ac12
int3
Function at 0x46f940
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
push edi
mov edi, edx
cmp dword [ebx], 0
jge 0x46f983
push str.net_send__:_connection_not_open_n
push 1
push 0x41
push str.net_send
push str.D:_a_avrdude_avrdude_src_ser_win32.c
push 0x15d
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
or eax, 0xffffffff
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x46f9d6
cmp dword [0x634734], 3
jle 0x46f9a2
push esi
mov ecx, str.net_send
call fcn.00415f90
add esp, 4
mov ecx, 0x400
nop word [eax + eax]
push 0
cmp esi, 0x400
mov eax, esi
cmova eax, ecx
push eax
push edi
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x46f9df
add edi, eax
mov ecx, 0x400
sub esi, eax
jne 0x46f9b0
pop esi
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push dword [ebp - 4]
push str.unable_to_send:__s_n
push 0xfffffffffffffffe
push 0x4f
push str.net_send
push str.D:_a_avrdude_avrdude_src_ser_win32.c
push 0x174
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x20
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x470b30
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
mov eax, 0xffff
test edi, edi
je 0x470b5f
movzx edx, byte [esi + ebx]
inc esi
xor edx, eax
shr ax, 8
movzx ecx, dl
xor ax, word [ecx*2 + 0x5c0810]
movzx eax, ax
cmp esi, edi
jb 0x470b42
pop edi
pop esi
pop ebx
ret

Function at 0x472640
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
cmp dword [0x634518], 0
push ebx
push esi
push edi
mov esi, ecx
je 0x4726bc
mov ebx, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call ebx
push dword [0x634514]
push dword [0x634510]
push 0
push esi
call fcn.004b1600
push 0
push 0xf4240
push edx
push eax
call fcn.004b17d0
mov esi, eax
mov edi, edx
mov eax, dword [esp + 0x10]
add esi, eax
adc edi, dword [esp + 0x14]
cmp dword [esp + 0x14], edi
jg 0x4726dd
jl 0x4726a0
cmp eax, esi
jae 0x4726dd
lea eax, [esp + 0x10]
push eax
call ebx
cmp dword [esp + 0x14], edi
jl 0x4726a0
jg 0x4726dd
cmp dword [esp + 0x10], esi
jb 0x4726a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x63451c]
imul eax, esi
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
jbe 0x4726dd
nop
mov eax, dword [esp + 0xc]
sub eax, 1
mov dword [esp + 0xc], eax
jne 0x4726d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4727a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov byte [ebp - 2], dl
push 0
push 5
push esi
mov eax, dword [esi + 0x2f4]
call eax
add esp, 0xc
mov ecx, esi
call fcn.00472760
xor dl, dl
xor ebx, ebx
mov al, byte [ebp - 2]
mov cl, bl
shr al, cl
and al, 1
xor dl, al
movzx eax, al
push eax
mov eax, dword [esi + 0x2f4]
push 5
push esi
mov byte [ebp - 1], dl
call eax
add esp, 0xc
mov ecx, esi
call fcn.00472760
mov dl, byte [ebp - 1]
inc ebx
cmp ebx, 7
jle 0x4727c6
movzx eax, dl
push eax
mov eax, dword [esi + 0x2f4]
push 5
push esi
call eax
mov ecx, esi
call fcn.00472760
mov eax, dword [esi + 0x2f4]
push 1
push 5
push esi
call eax
add esp, 0x18
mov ecx, esi
call fcn.00472760
mov ecx, esi
call fcn.00472760
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
push 1
push 5
push edi
mov eax, dword [edi + 0x2f4]
call eax
add esp, 0xc
xor esi, esi
nop word [eax + eax]
mov ecx, edi
call fcn.00472760
test al, al
je 0x472895
inc esi
cmp esi, 0xa
jl 0x472850
push str.start_bit_not_received_correctly_n
push 0xfffffffffffffffe
push 0x4f
push str.bitbang_tpi_rx
push str.D:_a_avrdude_avrdude_src_bitbang.c
push 0x105
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
xor bh, bh
xor esi, esi
nop dword [eax]
mov ecx, edi
call fcn.00472760
mov ecx, esi
xor bh, al
shl al, cl
inc esi
or bl, al
cmp esi, 7
jle 0x4728a0
mov ecx, edi
mov byte [ebp - 1], bl
call fcn.00472760
movzx ecx, bh
cmp eax, ecx
je 0x4728e0
push str.parity_bit_is_wrong_n
push 0xfffffffffffffffe
push 0x4f
push str.bitbang_tpi_rx
push str.D:_a_avrdude_avrdude_src_bitbang.c
push 0x114
jmp 0x47290e
mov ecx, edi
call fcn.00472760
mov ecx, edi
mov ebx, eax
call fcn.00472760
and al, bl
test al, 1
jne 0x47292b
push str.stop_bits_not_received_correctly_n
push 0xfffffffffffffffe
push 0x4f
push str.bitbang_tpi_rx
push str.D:_a_avrdude_avrdude_src_bitbang.c
push 0x11d
push 2
call fcn.0048c22c
add esp, 4
push eax
call fcn.00401300
add esp, 0x1c
or eax, 0xffffffff
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
movzx eax, byte [ebp - 1]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x482ee0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
push edi
test ebx, ebx
je 0x482fe5
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x482fe5
push esi
mov esi, dword [ebp + 8]
xor edx, edx
mov ecx, esi
call fcn.00482390
movzx eax, word [esi + 8]
cmp edi, eax
jae 0x482f50
mov ebx, dword [esi + 0xc]
test ebx, ebx
jne 0x482f2d
push eax
call fcn.00498741
mov ebx, eax
add esp, 4
mov dword [esi + 0xc], ebx
push edi
push dword [ebp + 0xc]
push ebx
call fcn.004885b0
movzx eax, word [esi + 8]
sub eax, edi
push eax
lea eax, [ebx + edi]
push 0
push eax
call fcn.00489010
movzx edi, word [esi + 8]
add esp, 0x18
lea eax, [esi + 0x3c]
push eax
push 0
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x482fdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x482f87
mov edx, 0x60e2e0
mov ecx, esi
call fcn.00482380
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push 0x3e8
push dword [esi + 0x4c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x482faf
mov edx, str.hid_write_WaitForSingleObject
mov ecx, esi
call fcn.00482380
pop esi
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x3c]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x482fcf
mov eax, dword [ebp - 4]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.hid_write_GetOverlappedResult
mov ecx, esi
call fcn.00482380
or eax, 0xffffffff
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, str.Zero_buffer_length
call fcn.00482390
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], edi
je 0x48316e
test ebx, ebx
je 0x48316e
xor edx, edx
mov ecx, esi
call fcn.00482390
lea ecx, [esi + 0x28]
mov edx, dword [esi + 0x38]
lea eax, [esi + 0x24]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x20], edi
jne 0x4830cd
push dword [esi + 0x10]
mov dword [esi + 0x20], 1
push edi
push dword [eax]
call fcn.00489010
add esp, 0xc
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 0x28]
push eax
lea eax, [ebp - 4]
push eax
push dword [esi + 0x10]
push dword [esi + 0x24]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, eax
mov dword [ebp - 0x14], ecx
test ecx, ecx
jne 0x4830c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4830b8
mov edx, 0x60e36c
mov ecx, esi
call fcn.00482380
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CancelIo]
mov dword [esi + 0x20], edi
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov eax, 1
jmp 0x4830c4
xor eax, eax
test eax, eax
je 0x4830ff
mov edx, dword [ebp - 8]
jmp 0x4830d0
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp + 0x14]
test eax, eax
js 0x4830ec
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4830ec
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov ecx, eax
mov dword [esi + 0x20], edi
test ecx, ecx
je 0x483158
mov eax, dword [ebp - 4]
test eax, eax
je 0x48314f
mov ecx, dword [ebp - 0x10]
mov edi, ebx
mov ecx, dword [ecx]
cmp byte [ecx], 0
jne 0x48313c
dec eax
cmp ebx, eax
mov dword [ebp - 4], eax
cmova edi, eax
lea eax, [ecx + 1]
push edi
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.004885b0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, eax
cmova edi, eax
mov eax, dword [ebp + 0xc]
push edi
push ecx
push eax
call fcn.004885b0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.hid_read_timeout_GetOverlappedResult
mov ecx, esi
call fcn.00482380
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, str.Zero_buffer_length
mov ecx, esi
call fcn.00482390
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x48532a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x485369
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x485369
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x485369
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x485369
cmp dword [ecx + 0x74], 0xe
jbe 0x485369
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x48674b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x48676c
jl 0x486763
test edi, edi
jne 0x48676c
xor eax, eax
xor edx, edx
jmp 0x48682d
cmp dword [ebx + 0x38], 0
je 0x486781
push eax
push edi
push dword [ebp + 8]
call fcn.00486833
jmp 0x48682d
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4867c8
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4867c8
cmp eax, edi
jb 0x4867a2
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004885b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4867ce
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x486822
mov ecx, ebx
call fcn.00485ff9
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x48680d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0049a1c8
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x486822
jmp 0x4867e0
test edx, edx
je 0x486822
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0049a1c8
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x49594b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x61900c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4b7a90
push esi
call fcn.004a3dae
pop ecx
pop ecx
test eax, eax
jne 0x495979
xor al, al
jmp 0x4959f6
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.0049568c
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4959b3
push dword [ebp - 0x210]
call fcn.00495b38
xor al, al
jmp 0x4959f4
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4959b9
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4959d9
push edx
call fcn.00495882
pop ecx
test al, al
je 0x4959a4
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4959e7
mov bl, 1
push dword [ebp - 0x210]
call fcn.00495b38
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048485e
leave
ret