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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov word [ebp - 0x814], 0
mov ax, word [ebp + 8]
mov word [ebp - 0x80e], ax
mov ecx, dword [0x40e164]
mov dword [ebp - 0x812], ecx
mov edx, dword [0x40e164]
add edx, 0x400
mov dword [0x40e164], edx
mov eax, dword [ebp + 8]
push eax
push 0x40e8e0
lea ecx, [ebp - 0x80c]
push ecx
call fcn.004028c0
add esp, 0xc
push 0
mov edx, dword [ebp - 0x80e]
and edx, 0xffff
add edx, 8
push edx
lea eax, [ebp - 0x814]
push eax
mov ecx, dword [0x40e4a8]
push ecx
call sub.WSOCK32.dll_send
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x80e]
and edx, 0xffff
add edx, 8
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
je 0x401719
mov dword [0x40b1d8], 1
mov eax, 1
jmp 0x4017af
push 0
push 0x400
lea ecx, [ebp - 0x40c]
push ecx
mov edx, dword [0x40e4a8]
push edx
call sub.WSOCK32.dll_recv
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x40174d
mov dword [0x40b1d8], 1
mov eax, 1
jmp 0x4017af
lea eax, [ebp - 0x40c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx]
mov dword [ebp - 0x818], edx
cmp dword [ebp - 0x818], 1
je 0x40177a
cmp dword [ebp - 0x818], 2
je 0x401778
jmp 0x40177c
jmp 0x4017ad
jmp 0x4017ad
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cx, word [eax]
push ecx
push 0x40b130
call fcn.004027d4
add esp, 8
mov dword [0x40b1e4], 9
mov dword [0x40b1d8], 1
mov eax, 1
jmp 0x4017af
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4017b3
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov word [ebp - 0x814], 1
mov eax, dword [0x40e4a4]
mov dword [ebp - 0x812], eax
mov word [ebp - 0x80e], 0
push 0
mov ecx, dword [ebp - 0x80e]
and ecx, 0xffff
add ecx, 8
push ecx
lea edx, [ebp - 0x814]
push edx
mov eax, dword [0x40e4a8]
push eax
call sub.WSOCK32.dll_send
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp - 4]
je 0x401823
mov dword [0x40b1d8], 1
mov eax, 1
jmp 0x4018c0
push 0
push 0x400
lea edx, [ebp - 0x40c]
push edx
mov eax, dword [0x40e4a8]
push eax
call sub.WSOCK32.dll_recv
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jg 0x401856
mov dword [0x40b1d8], 1
mov eax, 1
jmp 0x4018c0
lea ecx, [ebp - 0x40c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
xor eax, eax
mov ax, word [edx]
mov dword [ebp - 0x818], eax
cmp dword [ebp - 0x818], 0
jle 0x40188d
cmp dword [ebp - 0x818], 2
jle 0x401881
jmp 0x40188d
mov dword [0x40b1d8], 1
jmp 0x4018be
mov ecx, dword [ebp - 8]
xor edx, edx
mov dx, word [ecx]
push edx
push str._nDAP_Response_Cmd_Error__d
call fcn.004027d4
add esp, 8
mov dword [0x40b1e4], 9
mov dword [0x40b1d8], 1
mov eax, 1
jmp 0x4018c0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40194c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov word [0x40e4c0], 3
mov dword [ebp - 4], 2
push str.Send:_Abort_Command_..._n
call fcn.004027d4
add esp, 4
push 0
mov eax, dword [ebp - 4]
push eax
push 0x40e4c0
mov ecx, dword [0x40e4a8]
push ecx
call sub.WSOCK32.dll_send
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 4]
je 0x4019b5
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
push str.send_abort_cmd_error__cnt_d__ret_d_n
call fcn.004027d4
add esp, 0xc
mov dword [0x40b1d8], 1
or eax, 0xffffffff
jmp 0x4019c4
push str._nAbort_Downloading_n
call fcn.004027d4
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x405479
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40bd08
cmp edx, dword [eax]
je 0x40549b
add eax, 8
inc ecx
cmp eax, 0x40bd98
jl 0x40548c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40bd08]
jne 0x4055c9
mov eax, dword [0x40e1f4]
cmp eax, 1
je 0x4055a3
test eax, eax
jne 0x4054cc
cmp dword [0x40b7a4], 1
je 0x4055a3
cmp edx, 0xfc
je 0x4055c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405503
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00403050
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00402c00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405546
lea eax, [ebp - 0x1a4]
push eax
call fcn.00402c00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a4ac
push edi
call fcn.00407b70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00403050
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403060
lea eax, [ebp - 0xa0]
push 0x40a48c
push eax
call fcn.00403060
push dword [esi + 0x40bd0c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403060
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407ae0
add esp, 0x2c
pop edi
jmp 0x4055c9
lea eax, [ebp + 8]
lea esi, [esi + 0x40bd0c]
push 0
push eax
push dword [esi]
call fcn.00402c00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x10006010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017db4d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x101e4e54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount64]
call esi
mov dword [ebp - 0x14], eax
nop dword [eax]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ClearCommError]
cmp eax, 1
jne 0x1000606d
cmp dword [ebp - 0x24], 0x200
jae 0x100060b8
call esi
sub eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x1c]
jbe 0x10006050
push str.Read_serial_port_timeout
push 0xcd
push str.Com_Recv_datas
push 4
push 0
push dword [0x101ee094]
call fcn.1000cdf0
add esp, 0x18
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015155e
mov esp, ebp
pop ebp
ret 0x18
push 0
lea eax, [ebp - 0x1c]
push eax
push 0x200
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100060db
push str.Read_serial_port_error
push 0xd5
jmp 0x10006081
mov al, byte [edi]
cmp al, 0xf8
jne 0x100060e7
cmp byte [edi + 2], 1
jmp 0x100060e9
cmp al, 0xf3
je 0x1000614d
push ecx
push 0x200
mov edx, edi
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.1000af70
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
push esi
push str.recv:_s
push 0xe0
push str.Com_Recv_datas
push 0
push 0
push dword [0x101ee094]
call fcn.1000cdf0
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1000614d
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [ebp + 0x18]
xor edx, edx
test esi, esi
jle 0x10006171
mov ecx, dword [ebp + 0x14]
sub edi, ecx
nop dword [eax + eax]
mov al, byte [edi + ecx]
cmp al, byte [ecx]
jne 0x10006098
inc edx
inc ecx
cmp edx, esi
jl 0x10006160
mov al, 1
jmp 0x1000609a
Function at 0x1000a080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x1000a0a9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1000a0bf
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000a0b6
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x1000a0f2
nop
cmp esi, ecx
jae 0x1000a0b6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x1000a0e0
cmp esi, ecx
jae 0x1000a0b6
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000b3f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e01d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x101e4e54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
test ecx, ecx
je 0x1000b4d3
cmp byte [ecx], 0
je 0x1000b4d3
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.1000a230
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [eax - 0xc]
lea ecx, [edi - 1]
cmp ecx, 2
ja 0x1000b494
cmp edi, 2
jne 0x1000b494
cmp byte [eax + 1], 0x3a
jne 0x1000b494
mov ecx, dword [eax - 8]
lea esi, [edi + 1]
mov edx, 1
sub ecx, esi
sub edx, dword [eax - 4]
or ecx, edx
jge 0x1000b47b
push esi
lea ecx, [ebp - 0x14]
call fcn.1000a400
mov eax, dword [ebp - 0x14]
mov byte [edi + eax], 0x5c
mov eax, dword [ebp - 0x14]
cmp esi, dword [eax - 8]
jg 0x1000b4f0
mov dword [eax - 0xc], esi
mov eax, dword [ebp - 0x14]
mov byte [esi + eax], 0
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000b4ab
test al, 0x10
je 0x1000b4ab
mov esi, 1
jmp 0x1000b4ad
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edi, dword [ebp - 0x14]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x1000b4cf
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
jmp 0x1000b4d5
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015155e
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.1000a750
int3
Function at 0x1000b950
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e155
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x101e4e54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x1000ba3c
cmp byte [esi], 0
je 0x1000ba3c
call fcn.1000b3f0
test eax, eax
je 0x1000b9a0
mov eax, 1
jmp 0x1000ba3e
push esi
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.1000a230
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0
call fcn.1000c1e0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push 0
mov dword [ebp - 0x18], 0
call fcn.1000b590
add esp, 4
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x18]
call fcn.1000b950
test eax, eax
jne 0x1000b9eb
xor edi, edi
jmp 0x1000b9f8
push 0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, eax
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x18]
mov ecx, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1000ba19
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x1000ba38
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
jmp 0x1000ba3e
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015155e
mov esp, ebp
pop ebp
ret

Function at 0x1000c3c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e32e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x101e4e54]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp + 8]
mov dword [ebx], 0
call fcn.100198f7
mov ecx, eax
test ecx, ecx
je 0x1000c4b5
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [ebp - 0x14]
mov esi, 0x100
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push esi
call fcn.100195ae
push esi
mov edi, eax
push 0
push edi
call fcn.10155cd0
add esp, 0x10
push dword [ebx + 4]
push esi
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esi - 1]
cmp eax, ecx
je 0x1000c467
lea ecx, [esi - 2]
cmp eax, ecx
jne 0x1000c475
push edi
call fcn.100195a9
add esp, 4
shl esi, 2
jmp 0x1000c431
test edi, edi
jne 0x1000c47d
xor ecx, ecx
jmp 0x1000c48b
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c482
sub ecx, edx
push ecx
mov ecx, dword [ebp + 8]
push edi
call fcn.1000a4d0
push edi
call fcn.100195a9
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.1000a750
int3
Function at 0x1000d8c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e5ed
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x101e4e54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x101ed458]
mov edx, dword [eax + edx*4]
mov eax, dword [0x101ee20c]
cmp eax, dword [edx + 4]
jle 0x1000d940
push 0x101ee20c
call fcn.101519ea
add esp, 4
cmp dword [0x101ee20c], 0xffffffff
jne 0x1000d940
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x1018d400
mov dword [0x101ee210], eax
call fcn.101518a2
push 0x101ee20c
call fcn.101519a0
add esp, 8
push dword [0x101ee210]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1000d9ae
push dword [edi + 0x364]
call fcn.100195ae
add esp, 4
mov dword [ebp - 0x14], eax
push eax
push dword [0x101ee210]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 0x3a0]
lea esi, [edi + 0x3a0]
mov ecx, esi
mov dword [ebp - 0x18], esi
call dword [eax]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x390]
call fcn.1000eca0
mov dword [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
push dword [edi + 0x364]
push 0
push esi
call fcn.10155cd0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015155e
mov esp, ebp
pop ebp
ret
Function at 0x1000d9e0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e5ed
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x101e4e54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword fs:[0x2c]
mov edx, dword [0x101ed458]
mov edx, dword [eax + edx*4]
mov eax, dword [0x101ee214]
cmp eax, dword [edx + 4]
jle 0x1000da60
push 0x101ee214
call fcn.101519ea
add esp, 4
cmp dword [0x101ee214], 0xffffffff
jne 0x1000da60
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push 0x1018d410
mov dword [0x101ee218], eax
call fcn.101518a2
push 0x101ee214
call fcn.101519a0
add esp, 8
push dword [0x101ee218]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x1000dace
push dword [edi + 0x364]
call fcn.100195ae
add esp, 4
mov dword [ebp - 0x14], eax
push eax
push dword [0x101ee218]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [edi + 0x3a0]
lea esi, [edi + 0x3a0]
mov ecx, esi
mov dword [ebp - 0x18], esi
call dword [eax]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [edi + 0x390]
call fcn.1000eca0
mov dword [ebp - 4], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov esi, dword [ebp - 0x14]
push dword [edi + 0x364]
push 0
push esi
call fcn.10155cd0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015155e
mov esp, ebp
pop ebp
ret
Function at 0x100133b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.10013200
mov edi, dword [ebp + 8]
push 0
push 0
push edi
call fcn.10163a41
add esp, 0xc
push edi
call fcn.10163a98
add esp, 4
cmp eax, 0xffffffff
jne 0x100133f0
push edi
call fcn.10163ba0
add esp, 4
test eax, eax
jne 0x10013476
push 2
push 0
push edi
call fcn.10163a41
add esp, 0xc
push edi
call fcn.1015d801
add esp, 4
cdq
mov ebx, eax
mov dword [esp + 0xc], edx
push 0
push 0
push edi
call fcn.10163a41
mov edx, dword [esp + 0x18]
mov ecx, ebx
and ecx, edx
add esp, 0xc
cmp ecx, 0xffffffff
je 0x10013476
test edx, edx
jne 0x10013476
cmp ebx, 0xffffffff
jae 0x10013476
mov eax, ebx
or eax, edx
jne 0x1001343c
push eax
push eax
push 0xd
jmp 0x1001347c
lea eax, [ebx + 1]
push eax
call fcn.100195ae
add esp, 4
mov dword [esi + 0x50], eax
push edi
push ebx
push 1
push eax
call fcn.10163db2
add esp, 0x10
cmp eax, ebx
jne 0x10013476
mov eax, dword [esi + 0x50]
mov ecx, esi
mov byte [ebx + eax], 0
call fcn.100135f0
mov eax, dword [esi + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 5
push esi
call fcn.100134a0
mov eax, dword [esi + 0x38]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10014580
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017eb5d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x101e4e54]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
mov ebx, dword [ebp + 8]
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
test eax, eax
jne 0x100145d0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 4
jmp 0x100146d2
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10014635
push str.Write_serial_port_error
push 0x8e
push str.Com_Send_datas
push 4
push eax
push dword [0x101ee094]
call fcn.1000cdf0
add esp, 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetLastError_____d
push 0x8f
push str.Com_Send_datas
push 0
push 0
push dword [0x101ee094]
call fcn.1000cdf0
add esp, 0x1c
mov eax, 6
jmp 0x100146d2
cmp dword [ebp - 0x18], ebx
je 0x10014662
push str.Overflow_while_writing_serial_port
push 0x94
push str.Com_Send_datas
push 4
push 0
push dword [0x101ee094]
call fcn.1000cdf0
add esp, 0x18
mov eax, 6
jmp 0x100146d2
mov al, byte [esi]
cmp al, 0xf8
jne 0x1001466e
cmp byte [esi + 2], 1
jmp 0x10014670
cmp al, 0xf3
je 0x100146d0
push ecx
push ebx
mov edx, esi
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.1000af70
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
push esi
push str.send:_s
push 0x9f
push str.Com_Send_datas
push 0
push 0
push dword [0x101ee094]
call fcn.1000cdf0
add esp, 0x24
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100146d0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1015155e
mov esp, ebp
pop ebp
ret

Function at 0x10018f90
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x101ee1ec]
pop ebp
jmp fcn.10004e50

Function at 0x10019040
Capabilities:
Create thread

Disassembly:
mov ecx, dword [0x101ee1ec]
jmp fcn.100059a0

Function at 0x1001ecf4
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x1001ed47
push esi
push dword [ebp + 8]
call fcn.1001eeda
mov edi, eax
test edi, edi
je 0x1001ed42
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1001ed42
mov eax, dword [ebp - 8]
jmp 0x1001ed59
mov eax, dword [ebp + 0x10]
jmp 0x1001ed59
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x1002a8a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x1002a8e5
call fcn.1001c562
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1002a8e5
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002a8ed
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.10031cc3
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1002b2ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x1002b379
cmp dword [esi + 0x20], 0
je 0x1002b379
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1002b379
cmp dword [ebp + 8], 0
je 0x1002b379
xor edi, edi
mov ebx, edi
call fcn.1001c562
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x1002b35d
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002b379
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.1003281d
mov edi, eax
add esp, 0xc
test edi, edi
je 0x1002b375
mov ecx, esi
call fcn.1002b08b
mov eax, edi
jmp 0x1002b37b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1002f85c
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x1017f797
call fcn.10152052
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x1002f882
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x1002f8dc
lea ecx, [ebp - 0x10]
call fcn.1000a7c0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x1018e9fc]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.101643fa
push eax
call fcn.10009640
add esp, 0x14
test esi, esi
je 0x1002f8cf
push esi
call fcn.10164300
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.1000a7a0
mov eax, ebx
call fcn.10152020
ret 8