joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4095d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40960d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042c0
jmp 0x409616
mov eax, ebx
mov edx, esi
call fcn.00404224
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409620
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x409641
mov al, byte [esp]
jmp 0x409643
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409cc8
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409b40
mov eax, dword [0x42074c]
cmp byte [eax], 0
je 0x409d35
mov eax, dword [0x42065c]
call fcn.00402c3c
call fcn.00402810
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407cec
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x409d7c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409d6b
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x420638]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x421710]
call fcn.004057c4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40a810
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40a874
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404438
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407994
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a87b
lea eax, [ebp - 0xc]
call fcn.004041d0
ret

Function at 0x41ed00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41ed8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.004041d0
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
test eax, eax
je 0x41ed72
lea eax, [ebp - 0x208]
lea edx, [ebp - 0x104]
call fcn.00402f1c
lea edx, [ebp - 0x208]
lea eax, [ebp - 0x108]
call fcn.0040442c
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x41eda0
call fcn.004044d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ed92
lea eax, [ebp - 0x108]
call fcn.004041d0
ret
Function at 0x41ef94
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41f026
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, 0x104
call fcn.00402d1c
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
lea eax, [ebp - 0x208]
lea edx, [ebp - 0x104]
call fcn.00402f1c
lea edx, [ebp - 0x208]
lea eax, [ebp - 0x108]
call fcn.0040442c
mov edx, dword [ebp - 0x108]
mov eax, ebx
mov ecx, 0x41f03c
call fcn.004044d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f02d
lea eax, [ebp - 0x108]
call fcn.004041d0
ret

Function at 0x41f13c
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x41f144
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404670
xor eax, eax
push ebp
push 0x41f23a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
call fcn.0041ef94
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0041f040
push 4
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004044d4
mov eax, dword [ebp - 0x10]
call fcn.00404680
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004044d4
mov eax, dword [ebp - 0x14]
call fcn.00407b48
push 1
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004044d4
push ebx
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.004044d4
mov eax, dword [ebp - 0x1c]
call fcn.00404680
push eax
call sub.kernel32.dll_MoveFileExA
push 4
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004044d4
push ebx
call sub.kernel32.dll_SetFileAttributesA
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004044d4
mov eax, dword [ebp - 0x24]
call fcn.00407b48
push 4
push 0
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004044d4
push ebx
call sub.kernel32.dll_MoveFileExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f241
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.004041f4
ret
Function at 0x41f338
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404670
mov eax, dword [ebp - 8]
call fcn.00404670
xor eax, eax
push ebp
push 0x41f48a
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
call fcn.0041f13c
lea eax, [ebp - 0x10]
call fcn.0041ef94
mov eax, dword [ebp - 4]
push eax
push 0xa
mov ecx, dword [0x421710]
mov dl, 1
mov eax, dword [0x415ec8]
call fcn.004190bc
mov dword [ebp - 0x1c], eax
call fcn.0041f248
fstp qword [ebp - 0x18]
wait
xor eax, eax
push ebp
push 0x41f453
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x41f433
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004044d4
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
call fcn.00418ef0
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00407c5c
push eax
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004044d4
mov eax, dword [ebp - 0x24]
pop edx
call fcn.0041f300
push 5
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004044d4
mov eax, dword [ebp - 0x28]
call fcn.00404680
push eax
call sub.kernel32.dll_SetFileAttributesA
mov dword [ebp - 0xc], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41f43d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f45a
mov eax, dword [ebp - 0x1c]
call fcn.00403410
ret
Function at 0x41f648
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404670
xor eax, eax
push ebp
push 0x41f77c
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
call fcn.0041ef94
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.004044d4
push 4
mov eax, dword [ebp - 4]
call fcn.00404680
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
mov edx, dword [ebp - 4]
mov eax, 0x41f798
call fcn.0041e360
test al, al
je 0x41f75e
push 4
push 0
push ebx
call sub.kernel32.dll_MoveFileExA
xor eax, eax
push ebp
push 0x41f6db
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
call sub.kernel32.dll_LoadLibraryA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41f6e7
test ebx, ebx
je 0x41f75e
push 0x41f7a0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov esi, eax
push 0x41f7a8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov edi, eax
push 0x41f7b0
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [ebp - 0xc], eax
test esi, esi
je 0x41f721
test edi, edi
je 0x41f721
cmp dword [ebp - 0xc], 0
jne 0x41f729
push ebx
call sub.kernel32.dll_FreeLibrary_1
jmp 0x41f75e
call fcn.0041f578
push edx
push eax
call esi
test eax, eax
je 0x41f758
call fcn.0041f578
push edx
push eax
call edi
test eax, eax
je 0x41f758
call fcn.0041f578
push edx
push eax
call dword [ebp - 0xc]
test eax, eax
je 0x41f758
mov dword [ebp - 8], 0xffffffff
push ebx
call sub.kernel32.dll_FreeLibrary_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41f783
lea eax, [ebp - 0x10]
call fcn.004041d0
lea eax, [ebp - 4]
call fcn.004041d0
ret
Function at 0x404410
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
shl ecx, 7
add ecx, 0x43e528
push ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [esp + 0x104]
lea eax, [ecx + ecx*4]
shl eax, 3
sub eax, ecx
shl eax, 7
mov ecx, dword [eax + 0x43f884]
lea edx, [ecx + 0x8c]
test edx, edx
je 0x4045e0
cmp word [ecx + 0xcc], 0
je 0x4045e0
mov ecx, dword [eax + 0x43e524]
test ecx, ecx
jne 0x4045e0
push edx
call fcn.0041dd60
add esp, 4
test eax, eax
je 0x404588
mov eax, dword [esp + 0x104]
push 0
push 0
push 0
lea edx, [eax + eax*4]
push 0
shl edx, 3
sub edx, eax
shl edx, 7
mov eax, dword [edx + 0x43f884]
mov dword [eax + 0xd8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x104]
push 0
push 0
lea edx, [ecx + ecx*4]
shl edx, 3
sub edx, ecx
shl edx, 7
mov dword [edx + 0x43e50c], eax
lea eax, [esp + 0x10c]
push eax
push 0x404680
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
mov edx, dword [esp + 0x11c]
add esp, 0x18
lea ecx, [edx + edx*4]
shl ecx, 3
sub ecx, edx
shl ecx, 7
test eax, eax
mov dword [ecx + 0x43e524], eax
je 0x404545
mov ecx, dword [ecx + 0x43e50c]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x104]
lea edx, [eax + eax*4]
shl edx, 3
sub edx, eax
shl edx, 7
mov eax, dword [edx + 0x43f884]
lea edx, [esp]
lea ecx, [eax + 0x8c]
add eax, 4
push ecx
push eax
push str.INFO:_Started_OpBox:___s___s
push edx
jmp 0x404560
mov ecx, dword [ecx + 0x43f884]
lea eax, [ecx + 0x8c]
add ecx, 4
push eax
push ecx
lea ecx, [esp + 8]
push str.ERROR:_Start_OpBox_failed:___s___s
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [0x4d9598]
add esp, 0x10
lea edx, [esp]
push edx
push eax
call fcn.0041a390
add esp, 8
mov eax, 1
add esp, 0x100
ret
mov eax, dword [esp + 0x104]
push edi
mov ecx, 0x4e0
lea edx, [eax + eax*4]
shl edx, 3
sub edx, eax
xor eax, eax
shl edx, 7
lea edi, [edx + 0x43e508]
rep stosd dword es:[edi], eax
mov edx, dword [edx + 0x43f884]
lea ecx, [edx + 0x8c]
add edx, 4
push ecx
push edx
lea edx, [esp + 0xc]
push str.Error:___s_:_Not_valid_IP_address:__s_thread_not_started_
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, dword [0x4d9598]
lea eax, [esp + 0x14]
push eax
push ecx
call fcn.0041a390
add esp, 0x18
pop edi
xor eax, eax
add esp, 0x100
ret

Function at 0x4045f0
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esp + 4]
push esi
lea esi, [eax + eax*4]
shl esi, 3
sub esi, eax
shl esi, 7
mov eax, dword [esi + 0x43e524]
test eax, eax
je 0x40466e
mov dword [esi + 0x43e51c], 1
mov eax, dword [esi + 0x43e50c]
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404639
mov ecx, dword [esi + 0x43e524]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x43e524]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov dword [esi + 0x43e524], 0
mov eax, dword [esi + 0x43e50c]
push eax
call edi
mov dword [esi + 0x43e50c], 0
pop edi
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x404ba0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x400
push esi
lea esi, [eax + eax*4]
shl esi, 3
sub esi, eax
push edi
shl esi, 7
xor edi, edi
mov eax, dword [esi + 0x43e510]
test eax, eax
jle 0x404c73
mov cl, byte [esi + 0x43e541]
test cl, cl
je 0x404c3f
mov eax, dword [esi + 0x43e588]
mov edx, dword [esi + 0x43f884]
push edi
push eax
mov eax, dword [edx + 0xd4]
lea ecx, [esi + 0x43e540]
push ecx
push eax
call sub.WS2_32.dll_send
mov edi, eax
cmp edi, 0xffffffff
jne 0x404c73
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x404c73
mov ecx, dword [esi + 0x43f884]
lea edx, [esp + 8]
add ecx, 4
push ecx
push eax
push str.Error__d_Sending:_to___s_
push edx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov ecx, dword [0x4d9598]
lea eax, [esp + 0x18]
push eax
push ecx
call fcn.0041a390
add esp, 0x18
mov eax, edi
pop edi
pop esi
add esp, 0x400
ret
test eax, eax
jle 0x404c73
dec eax
test eax, eax
mov dword [esi + 0x43e510], eax
jle 0x404c73
cmp eax, 0x3f
jg 0x404c58
mov eax, 0x3f
imul eax, eax, 0x4c
push eax
lea edx, [esi + 0x43e58c]
lea eax, [esi + 0x43e540]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
mov eax, edi
pop edi
pop esi
add esp, 0x400
ret

Function at 0x404c80
Capabilities:
Get socket status
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0x114
mov al, byte [0x43e500]
push ebx
mov byte [esp + 7], al
mov eax, dword [esp + 0x124]
mov ebx, dword [esp + 0x120]
push ebp
lea eax, [eax + eax*4]
push esi
push edi
mov edi, dword [esp + 0x128]
lea eax, [eax + eax*4]
mov ebp, 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x24], edi
lea ecx, [eax + eax*4]
mov dword [esp + 0x20], ebp
shl ecx, 3
cmp ebx, ebp
mov dword [esp + 0x1c], ecx
jne 0x404ce1
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
push 0
push 0
push eax
jmp 0x404cef
lea ecx, [esp + 0x18]
lea edx, [esp + 0x20]
push ecx
push 0
push edx
push 0
push 0
call sub.WS2_32.dll_select
mov esi, eax
xor eax, eax
test esi, esi
setg al
test eax, eax
je 0x404d0e
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
cmp ebx, 1
jne 0x404d4a
test eax, eax
je 0x404d34
lea ecx, [esp + 0x14]
push ecx
push 0x4004667f
push edi
call sub.WS2_32.dll_ioctlsocket
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x404d64
or esi, 0xffffffff
jmp 0x404d68
cmp esi, 0xffffffff
je 0x404d64
push 0
lea edx, [esp + 0x17]
push 0
push edx
push edi
call sub.WS2_32.dll_send
jmp 0x404d64
cmp ebx, 2
jne 0x404d64
test eax, eax
je 0x404d64
push 0
lea eax, [esp + 0x17]
push 1
push eax
push edi
call sub.WS2_32.dll_send
mov esi, eax
test esi, esi
jg 0x404dbb
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2744
je 0x404dae
cmp eax, 0x2745
je 0x404dae
cmp eax, 0x2746
je 0x404dae
cmp eax, 0x2749
je 0x404dae
cmp eax, 0x2726
je 0x404dae
cmp esi, 0xffffffff
je 0x404dae
test esi, esi
jg 0x404d9e
cmp ebx, 2
je 0x404dae
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x114
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
cmp esi, 2
mov eax, 2
je 0x404dc7
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x406ae0
Capabilities:
Copy file

Disassembly:
sub esp, 0x210
push ebx
push esi
push edi
mov edi, dword [esp + 0x224]
test edi, edi
je 0x406c26
mov ebx, dword [sym.imp.MSVCRT.dll_wcslen]
push edi
call ebx
add esp, 4
test eax, eax
je 0x406c26
mov esi, dword [esp + 0x220]
test esi, esi
je 0x406c26
push esi
call ebx
add esp, 4
test eax, eax
je 0x406c26
push edi
call fcn.0041c8c0
add esp, 4
test eax, eax
je 0x406c26
lea eax, [esp + 0x14]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
push 1
lea ecx, [esp + 0x20]
push 0
push ecx
call fcn.0041b190
push esi
call ebx
lea eax, [esi + eax*2 - 2]
add esp, 0x18
cmp eax, esi
jb 0x406b6f
cmp word [eax], 0x5c
je 0x406b6f
sub eax, 2
cmp eax, esi
jae 0x406b62
add eax, 2
lea edx, [esp + 0x14]
push eax
push edx
call dword [sym.imp.MSVCRT.dll_wcscat]
push esi
call fcn.0041b7f0
lea eax, [esp + 0x20]
fstp st(0)
push eax
call fcn.0041b7f0
mov eax, dword [esp + 0x238]
add esp, 0x10
test eax, eax
fstp st(0)
je 0x406bbe
push 0
lea ecx, [esp + 0x18]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x210
ret
push esi
call fcn.0041b7f0
fstp qword [esp + 0x10]
lea edx, [esp + 0x18]
push edx
call fcn.0041b7f0
fcomp qword [esp + 0x14]
add esp, 8
fnstsw ax
test ah, 0x40
je 0x406c08
push esi
call fcn.0041cac0
mov edi, eax
lea eax, [esp + 0x18]
push eax
call fcn.0041cac0
add esp, 8
cmp edi, eax
jne 0x406c08
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x210
ret
lea ecx, [esp + 0x14]
push 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x210
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x4191e0
Capabilities:
Create thread

Disassembly:
sub esp, 0x130
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 6
xor eax, eax
lea edi, [esp + 0x10]
mov dword [esp + 0xc], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x140]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
push ecx
mov dword [esp + 0x38], eax
mov dword [esp + 0x2c], 0xa
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], 0x64
call fcn.00419530
add esp, 4
test eax, eax
jne 0x419269
mov edx, dword [0x435d90]
push edx
push 0x455340
push str.Cannot_close_OBox_
push ebx
push 0xffffffffffffffff
push ebx
push 0x3e
call fcn.0041e0b0
mov eax, dword [esp + 0x15c]
add esp, 0x1c
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
shl ecx, 7
mov dword [ecx + 0x43f880], ebx
jmp 0x419270
mov eax, dword [esp + 0x140]
lea edx, [eax + eax*4]
shl edx, 3
sub edx, eax
shl edx, 7
mov eax, dword [edx + 0x43f884]
add eax, 0x44
cmp word [eax], bx
je 0x419418
mov edi, dword [sym.imp.MSVCRT.dll_swprintf]
push eax
lea eax, [esp + 0x40]
push str.._s
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0x3c]
push ebx
push 0x40000000
push 3
push ebx
push ebx
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4193a6
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0x1c
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esp + 0x140]
mov edi, dword [esp + 0x14]
and edi, 0xfffffffd
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
shl ecx, 7
mov edx, dword [ecx + 0x43f884]
lea ecx, [esp + 0xc]
push ecx
push esi
mov eax, dword [edx + 0x84]
mov byte [esp + 0x26], 8
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edi
mov byte [esp + 0x2d], 0xd
mov byte [esp + 0x27], bl
mov byte [esp + 0x28], bl
call dword [sym.imp.KERNEL32.dll_SetCommState]
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov eax, dword [esp + 0x140]
push 0xc
push esi
mov edi, 1
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
shl ecx, 7
mov dword [ecx + 0x43f880], esi
call dword [sym.imp.KERNEL32.dll_PurgeComm]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [esp + 0x140]
lea edx, [ecx + ecx*4]
shl edx, 3
sub edx, ecx
shl edx, 7
mov dword [edx + 0x43e524], eax
lea eax, [esp + 0x140]
push eax
push ebx
push 0x418b90
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, edi
pop edi
pop esi
pop ebx
add esp, 0x130
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [esp + 0x144]
lea ecx, [eax + eax*4]
shl ecx, 3
sub ecx, eax
lea eax, [esp + 0x40]
shl ecx, 7
mov edx, dword [ecx + 0x43f884]
add edx, 0x44
push edx
push 0x432f8c
push eax
call edi
mov ecx, dword [0x435d90]
lea edx, [esp + 0x4c]
push ecx
push 0x455340
push edx
push ebx
push 0xffffffffffffffff
push ebx
push 0x3e
call fcn.0041e0b0
mov eax, dword [esp + 0x16c]
add esp, 0x2c
lea ecx, [eax + eax*4]
pop edi
shl ecx, 3
sub ecx, eax
mov eax, ebx
shl ecx, 7
pop esi
mov dword [ecx + 0x43f880], ebx
pop ebx
add esp, 0x130
ret
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x130
ret
Function at 0x419810
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x118
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp + 0x10], ecx
push esi
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x120]
mov esi, dword [esp + 0x12c]
lea edx, [ecx + ecx*4]
shl edx, 3
sub edx, ecx
shl edx, 7
mov ecx, dword [edx + 0x43f884]
cmp dword [ecx], 0
jne 0x419860
cmp byte [esi], 0x1b
jne 0x41993d
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esp + 0x18], eax
mov al, byte [esi]
cmp al, 0x1b
je 0x4198a1
mov eax, dword [0x432f08]
test eax, eax
jge 0x4198a1
mov edx, dword [0x4d959c]
push 0
push 0x3e8
push 0x65
push edx
mov dword [0x432f08], 0
call dword [sym.imp.USER32.dll_SetTimer]
lea eax, [esp + 8]
push edi
mov edi, dword [esp + 0x134]
lea ecx, [esp + 8]
push eax
push ecx
push edi
push esi
mov esi, dword [esp + 0x13c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x419913
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 0x3e5
jne 0x4198eb
lea edx, [esp + 8]
push 1
lea eax, [esp + 0x10]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x41992d
call edi
push eax
lea ecx, [esp + 0x24]
push str.Error_SerialOB_WriteFile:__lu
push ecx
call dword [sym.imp.MSVCRT.dll_swprintf]
mov eax, dword [0x4d9598]
lea edx, [esp + 0x2c]
push edx
push eax
call fcn.0041a390
add esp, 0x14
jmp 0x41992d
cmp dword [esp + 8], edi
je 0x41992d
mov ecx, dword [0x4d9598]
push str.Error:_not_all_data_sent_on_port
push ecx
call fcn.0041a390
add esp, 8
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x118
ret