joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1013d660
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x2c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebp
mov ebp, dword [esp + 0x40]
push esi
push edi
mov edi, ecx
cmp dword [edi + 8], 0xffffffff
je 0x1013d6c8
mov ecx, ebp
call fcn.10139bc0
push eax
mov ecx, ebp
call fcn.101397e0
push eax
push dword [esp + 0x54]
push dword [esp + 0x50]
push dword [esp + 0x50]
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_sendto]
cmp byte [edi + 0x20], 0
mov esi, eax
je 0x1013d6b3
test esi, esi
jns 0x1013d6bc
call ebx
cmp eax, 0x2714
je 0x1013d673
test esi, esi
jns 0x1013d6bc
call fcn.1013ce40
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x10
push 0
lea ecx, [esp + 0x14]
call fcn.10138400
push 0x101f6648
lea eax, [esp + 0x14]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1013d6f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x2c
cmp eax, 0xffffffff
je 0x1013d71a
push 1
push 1
lea ecx, [esp + 0x38]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1013d714
call fcn.1013ce40
add esp, 0x2c
ret 4
push 0
lea ecx, [esp + 4]
call fcn.10138400
push 0x101f6648
lea eax, [esp + 4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x1013d790
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [ecx + 8]
sub esp, 0x2c
cmp eax, 0xffffffff
je 0x1013d7c2
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1013d7bc
call fcn.1013ce40
add esp, 0x2c
ret 0x10
push 0
lea ecx, [esp + 4]
call fcn.10138400
push 0x101f6648
lea eax, [esp + 4]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x10141890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018bac9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.10156a60
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
call fcn.10150ea0
push dword [ebp + 8]
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
mov dword [edi], vtable.Poco::Task.0
mov dword [edi + 4], vtable.Poco::Task.1.0
call fcn.10011bc0
push 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.10156aa0
lea ecx, [edi + 0x34]
mov byte [ebp - 4], 3
call fcn.10141ca0
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x10148890
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018bf28
push eax
mov dword fs:[0], esp
sub esp, 0x84
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x10b
ja 0x10148a68
je case.0x101488de.123
lea eax, [esi - 2]
cmp eax, 0xcc
ja case.0x101488de.4
movzx eax, byte [eax + 0x10148b04]
jmp dword [eax*4 + 0x10148ac8]
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013ee50
push 0x101f78b0
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013ed30
push 0x101f7988
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013ee00
push 0x101f7868
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013ea20
push 0x101f79d0
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013eaf0
push 0x101f7aa8
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013f630
push 0x101f7a18
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x38]
call fcn.1013f3d0
push 0x101f7a60
lea eax, [ebp - 0x38]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.sharing_violation
lea ecx, [ebp - 0x24]
call fcn.10011b80
mov dword [ebp - 4], 0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x64]
call fcn.1013ed80
push 0x101f7824
lea eax, [ebp - 0x64]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.lock_violation
lea ecx, [ebp - 0x24]
call fcn.10011b80
mov dword [ebp - 4], 1
jmp 0x101489af
push str.EOF_reached
lea ecx, [ebp - 0x24]
call fcn.10011b80
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 2
push eax
lea ecx, [ebp - 0x64]
call fcn.1013f3a0
push 0x101f7a60
jmp 0x101489c4
push str.disk_is_full
lea ecx, [ebp - 0x24]
call fcn.10011b80
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 3
push eax
lea ecx, [ebp - 0x64]
call fcn.1013f600
push 0x101f7a18
jmp 0x101489c4
push str.negative_seek
lea ecx, [ebp - 0x24]
call fcn.10011b80
mov dword [ebp - 4], 4
jmp 0x101489af
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.1013f2e0
push 0x101f77dc
jmp 0x101489c4
cmp esi, 0x781
je case.0x101488de.3
cmp esi, 0x1779
je 0x10148a97
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x90]
call fcn.1013edb0
push 0x101f7824
lea eax, [ebp - 0x90]
jmp 0x101489c7
push 0x1779
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.1013eea0
push 0x101f7940
jmp 0x101489c4
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x64]
call fcn.1013f290
push 0x101f78f8
jmp 0x101489c4
Function at 0x10148de0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1018b8e0
push eax
mov dword fs:[0], esp
sub esp, 0x88
push esi
mov esi, ecx
lea eax, [esi + 0xc]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x14]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
je 0x10148e45
mov eax, dword [esi + 0x10]
pop esi
test eax, eax
je 0x10148e35
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x10148e75
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push str.cannot_create_thread
lea ecx, [ebp - 0x24]
call fcn.10011b80
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x68]
call fcn.1013f540
push 0x101f97b8
lea eax, [ebp - 0x68]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push str.cannot_set_thread_priority
lea ecx, [ebp - 0x3c]
call fcn.10011b80
push 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x94]
call fcn.1013f540
push 0x101f97b8
lea eax, [ebp - 0x94]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x1014f130
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018c029
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
push 0x100
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], 0x100
mov dword [esi + 0x3c], 0
call fcn.1015f931
mov dword [esi + 0x40], eax
add esp, 4
mov dword [esi + 0x44], 2
lea ecx, [eax + 4]
mov eax, dword [esi + 0xc]
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x38]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, dword [ebp + 8]
mov dword [esi + 0x48], eax
mov eax, esi
mov dword [esi], vtable.Poco::DigestBuf.0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x1014f7d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018c029
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
push 0x1000
mov dword [ebp - 4], 0
mov dword [esi], vtable.Poco::BasicBufferedBidirectionalStreamBuf_char__struct_std::char_traits_char___class_Poco::BufferAllocator_char__.0
mov dword [esi + 0x38], 0x1000
mov dword [esi + 0x3c], 0
call fcn.1015f931
push dword [esi + 0x38]
mov dword [esi + 0x40], eax
call fcn.1015f931
mov ecx, dword [esi + 0x40]
add esp, 8
mov dword [esi + 0x44], eax
add ecx, 4
mov eax, dword [esi + 0xc]
mov dword [esi + 0x48], 3
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x38]
mov dword [eax], ecx
mov eax, dword [esi + 0x20]
mov dword [eax], ecx
mov eax, dword [esi + 0x30]
mov ecx, dword [ebp - 0xc]
mov dword [eax], edx
mov eax, esi
mov dword [esi], vtable.Poco::FileStreamBuf.0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0xf
mov byte [esi + 0x50], 0
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x70], 0
mov dword [esi + 0x74], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1014fd50
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x1014fdb1
mov ecx, dword [esi + 0x48]
test cl, 1
je 0x1014fdb1
test cl, 2
je 0x1014fd73
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x34]
mov eax, dword [esi + 0x68]
push 0
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push dword [esp + 0x18]
push dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1014fda1
lea eax, [esi + 0x50]
push eax
call fcn.10148880
add esp, 4
mov eax, dword [esp + 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
pop ecx
ret 0xc
or eax, 0xffffffff
pop esi
pop ecx
ret 0xc

Function at 0x10150090
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 0x68]
cmp eax, 0xffffffff
je 0x1015013c
mov ecx, dword [esi + 0x48]
test cl, 2
je 0x1015013c
test cl, 8
je 0x101500fc
push 2
lea ecx, [esp + 0x10]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x101500ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x101500eb
lea eax, [esi + 0x50]
push eax
call fcn.10148880
add esp, 4
mov eax, dword [esp + 8]
mov dword [esi + 0x70], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 0x74], eax
mov eax, dword [esi + 0x68]
push 0
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push dword [esp + 0x20]
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1015012a
lea eax, [esi + 0x50]
push eax
call fcn.10148880
add esp, 4
mov eax, dword [esp + 4]
add dword [esi + 0x70], eax
adc dword [esi + 0x74], 0
pop esi
add esp, 0xc
ret 0xc
or eax, 0xffffffff
pop esi
add esp, 0xc
ret 0xc

Function at 0x101503a0
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push 0x40
push 0
lea eax, [esi + 0x1c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
pop esi
ret
Function at 0x1015a3c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1018c5ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.1015d9a0
lea esi, [edi + 4]
mov dword [edi], vtable.Poco::JSON::ParseHandler.0
push 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.1015f474
mov dword [esi], eax
add esp, 4
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [esi]
mov dword [eax], esi
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0xf
mov byte [edi + 0x18], 0
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 2
call fcn.10107670
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov byte [edi + 0x34], al
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x438caf
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x438a14
mov edx, edi
add edi, 0x17af8d87
call fcn.00438cf1
add edx, edi
add edi, 0xd964e251
sub edx, 0x35cffe62
xor dword [eax], ecx
sub edi, edi
and edx, edx
inc eax
or edi, edx
sub edi, 0x7aafce47
sub edi, 0x25e17a70
cmp eax, esi
jne fcn.00438caf
sub edx, edi
ret
Function at 0x1000154a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
cmp dword [ebp + 8], 0
jne 0x1000155e
xor eax, eax
jmp 0x10001711
push 0
push 0x8000080
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x1000158a
xor eax, eax
jmp 0x10001711
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x100015b8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10001711
mov ecx, dword [ebp - 0x24]
cmp dword [ecx], 0x28
je 0x100015db
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x10001711
mov word [ebp - 0x14], 0x4d42
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.1000133b
add esp, 4
and eax, 0xffff
mov edx, dword [ebp - 0x24]
mov ecx, dword [edx]
add ecx, eax
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x10], 1
je 0x1000160e
mov eax, dword [ebp - 0x24]
cmp dword [eax + 0x10], 2
jne 0x1000161c
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + 0x14]
mov dword [ebp - 0x18], edx
jmp 0x10001653
mov eax, dword [ebp - 0x24]
xor ecx, ecx
mov cx, word [eax + 0xe]
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 4]
imul eax, ecx
add eax, 0x1f
shr eax, 5
shl eax, 2
mov ecx, dword [ebp - 0x24]
imul eax, dword [ecx + 8]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
add edx, 0xe
mov dword [ebp - 0x12], edx
mov word [ebp - 0xe], 0
mov word [ebp - 0xc], 0
mov eax, dword [ebp - 0x24]
mov esi, dword [eax]
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.1000133b
add esp, 4
and eax, 0xffff
lea edx, [esi + eax + 0xe]
mov dword [ebp - 0xa], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x28], 1
push 0
lea eax, [ebp - 4]
push eax
push 0xe
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100016b8
cmp dword [ebp - 4], 0xe
je 0x100016bf
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x100016e8
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x18]
je 0x100016ef
mov dword [ebp - 0x28], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x1000170e
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x28]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100044e8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 8], 1
jge 0x100044fe
mov eax, 0x3ea
jmp 0x10004705
cmp dword [0x1001f998], 0
jne 0x100046b6
push str.LabelUSBPrintDll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1001f998], eax
cmp dword [0x1001f998], 0
jne 0x10004537
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, 0x3f3
jmp 0x10004705
push str.EnumByUSBPrinter
mov eax, dword [0x1001f998]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10029b4c], eax
cmp dword [0x10029b4c], 0
jne 0x10004577
mov ecx, dword [0x1001f998]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1001f998], 0
mov eax, 0x3f4
jmp 0x10004705
push str.OpenByUSBPrinter
mov edx, dword [0x1001f998]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10029b50], eax
cmp dword [0x10029b50], 0
jne 0x100045b7
mov eax, dword [0x1001f998]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1001f998], 0
mov eax, 0x3f4
jmp 0x10004705
push str.WriteByUSBPrinter
mov ecx, dword [0x1001f998]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10029b54], eax
cmp dword [0x10029b54], 0
jne 0x100045f8
mov edx, dword [0x1001f998]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1001f998], 0
mov eax, 0x3f4
jmp 0x10004705
push str.ReadByUSBPrinter
mov eax, dword [0x1001f998]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10029b58], eax
cmp dword [0x10029b58], 0
jne 0x10004638
mov ecx, dword [0x1001f998]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1001f998], 0
mov eax, 0x3f4
jmp 0x10004705
push str.CloseByUSBPrinter
mov edx, dword [0x1001f998]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10029b5c], eax
cmp dword [0x10029b5c], 0
jne 0x10004678
mov eax, dword [0x1001f998]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1001f998], 0
mov eax, 0x3f4
jmp 0x10004705
push str.SetPortTimeout
mov ecx, dword [0x1001f998]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10029b60], eax
cmp dword [0x10029b60], 0
jne 0x100046b6
mov edx, dword [0x1001f998]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1001f998], 0
mov eax, 0x3f4
jmp 0x10004705
call dword [0x10029b4c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jg 0x100046cc
mov eax, 0x3e9
jmp 0x10004705
mov eax, dword [ebp + 8]
push eax
call dword [0x10029b50]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x100046e6
mov eax, 0x3e9
jmp 0x10004705
push 0x1388
push 0xbb8
call dword [0x10029b60]
mov dword [0x1001fb18], 5
mov eax, 0x3e8
mov esp, ebp
pop ebp
ret 4
Function at 0x100047ba
Capabilities:
Check for time delay via gettickcount
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jg 0x100047d7
mov eax, 0x3ea
jmp 0x100049af
cmp dword [ebp + 0x14], 0
jg 0x100047e7
mov eax, 0x3ea
jmp 0x100049af
cmp dword [0x1001fb18], 0
jne 0x100047fa
mov eax, 0x3f5
jmp 0x100049af
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
cmp dword [0x1001fb18], 1
jne 0x100048bf
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 0x14]
jle 0x10004890
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x10017050]
push ecx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp dword [ebp - 0x1c], 0
jbe 0x10004885
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [0x10017050]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10004868
mov eax, 0x3e9
jmp 0x100049af
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jl 0x10004883
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
jmp 0x10004890
jmp 0x1000488e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x14], eax
jmp 0x10004819
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0xc]
jl 0x100048ba
cmp dword [ebp - 4], 0
jne 0x100048a8
mov eax, 0x3f2
jmp 0x100049af
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov eax, 0x3e8
jmp 0x100049af
jmp 0x100049aa
cmp dword [0x1001fb18], 4
jne 0x100048fe
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 1
mov eax, dword [0x1001705c]
push eax
call dword [0x10029b40]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jg 0x100048f1
mov eax, 0x3e9
jmp 0x100049af
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x24]
mov dword [ecx], edx
jmp 0x100049aa
cmp dword [0x1001fb18], 5
jne 0x10004932
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [0x10029b58]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jg 0x10004928
mov eax, 0x3e9
jmp 0x100049af
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x28]
mov dword [edx], eax
jmp 0x100049aa
cmp dword [0x1001fb18], 3
jne 0x1000496a
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [0x10017054]
push edx
call fcn.1000d8b6
add esp, 0x14
cmp eax, 0x3e8
je 0x10004968
mov eax, 0x3e9
jmp 0x100049af
jmp 0x100049aa
cmp dword [0x1001fb18], 7
jne 0x100049a3
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [0x10017060]
push eax
call fcn.1000d4fc
add esp, 0x10
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
cmp dword [edx], 0
jg 0x100049a1
mov eax, 0x3e9
jmp 0x100049af
jmp 0x100049aa
mov eax, 0x3e9
jmp 0x100049af
mov eax, 0x3e8
mov esp, ebp
pop ebp
ret 0x10