joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x94], 0
je 0x4079e3
lea eax, [edi + 0xc]
push eax
mov dword [ebp - 0x338], eax
call dword [0x53e354]
push dword [edi + 0x30]
mov dword [ebp - 0x330], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [edi + 0x90]
mov esi, dword [eax]
cmp esi, eax
je 0x4079d7
nop dword [eax]
mov eax, dword [esi + 0xc]
mov ebx, dword [esi + 8]
push 0xf
push dword [edi + 0x2c]
mov dword [ebp - 0x334], eax
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_PurgeComm]
lea eax, [edi + 0x40]
push eax
lea eax, [ebp - 0x330]
push eax
push ebx
mov ebx, dword [ebp - 0x334]
push ebx
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40799a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x16
ja 0x407963
je 0x407906
sub eax, 5
je 0x4078a6
sub eax, 1
jne 0x40796a
mov dword [edi + 0x2c], 0xffffffff
mov esi, dword [esi]
jmp 0x4079cb
push 0x190
lea eax, [ebp - 0x19c]
mov dword [edi + 0x2c], 0xffffffff
push 0
push eax
call fcn.00504db0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 0x88]
lea eax, [ebp - 0x19c]
push 0x54e640
push 0xc8
push eax
call fcn.004084e0
add esp, 0x14
lea eax, [ebp - 0x19c]
push 0x10
push str.COM_WriteFile_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [esi]
jmp 0x4079cb
push 0x190
lea eax, [ebp - 0x32c]
mov dword [edi + 0x2c], 0xffffffff
push 0
push eax
call fcn.00504db0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [edi + 0x88]
lea eax, [ebp - 0x32c]
push 0x54e6d0
push 0xc8
push eax
call fcn.004084e0
add esp, 0x14
lea eax, [ebp - 0x32c]
push 0x10
push str.COM_WriteFile_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [esi]
jmp 0x4079cb
cmp eax, 0x3e5
je 0x40797a
push str.WriteFile__
mov ecx, edi
call sym.XinZhiZao.exe_protected:_void___thiscall_itas109::CSerialPort::ProcessErrorMessage_wchar_t_const__
mov esi, dword [esi]
jmp 0x4079cb
push 0
lea eax, [ebp - 0x330]
mov dword [ebp - 0x330], 0
push eax
lea eax, [edi + 0x40]
push eax
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test ebx, ebx
je 0x4079a9
push 1
push ebx
call fcn.0050057d
add esp, 8
mov eax, dword [esi + 4]
mov ebx, dword [esi]
push 0x10
push esi
mov dword [eax], ebx
mov ecx, dword [esi]
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
dec dword [edi + 0x94]
call fcn.0050057d
add esp, 8
mov esi, ebx
cmp esi, dword [edi + 0x90]
jne 0x407830
push dword [ebp - 0x338]
call dword [0x53e360]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000f2
mov esp, ebp
pop ebp
ret
Function at 0x407a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov dword [ebp - 0x334], 0
push dword [esi + 0x28]
mov dword [ebp - 0x338], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407c00
mov edi, dword [0x53e354]
lea ebx, [esi + 0xc]
nop dword [eax]
push ebx
call edi
lea eax, [ebp - 0x344]
push eax
lea eax, [ebp - 0x334]
push eax
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ClearCommError]
push ebx
call dword [0x53e360]
cmp dword [ebp - 0x340], 0
je 0x407c00
push ebx
call edi
lea edi, [esi + 0x40]
push edi
lea eax, [ebp - 0x338]
push eax
push 1
lea eax, [ebp - 0x32d]
push eax
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407bc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x334], eax
cmp eax, 0x16
ja 0x407b90
je 0x407b35
sub eax, 5
je 0x407ad7
sub eax, 1
jne 0x407b97
mov dword [esi + 0x2c], 0xffffffff
jmp 0x407bc1
push 0x190
lea eax, [ebp - 0x19c]
mov dword [esi + 0x2c], 0xffffffff
push 0
push eax
call fcn.00504db0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 0x88]
lea eax, [ebp - 0x19c]
push str.COM_d_ERROR_ACCESS_DENIED
push 0xc8
push eax
call fcn.004084e0
add esp, 0x14
lea eax, [ebp - 0x19c]
push 0x10
push str.COM_ReadFile_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x407bc1
push 0x190
lea eax, [ebp - 0x32c]
mov dword [esi + 0x2c], 0xffffffff
push 0
push eax
call fcn.00504db0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [esi + 0x88]
lea eax, [ebp - 0x32c]
push str.COM_d_ERROR_BAD_COMMAND
push 0xc8
push eax
call fcn.004084e0
add esp, 0x14
lea eax, [ebp - 0x32c]
push 0x10
push str.COM_ReadFile_Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x407bc1
cmp eax, 0x3e5
je 0x407b9e
push str.ReadFile__
jmp 0x407bba
push 1
lea eax, [ebp - 0x338]
push eax
push edi
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
jne 0x407bc1
push str.GetOverlappedResults___in_ReadFile__
mov ecx, esi
call sym.XinZhiZao.exe_protected:_void___thiscall_itas109::CSerialPort::ProcessErrorMessage_wchar_t_const__
push ebx
call dword [0x53e360]
push dword [esi + 0x88]
movzx eax, byte [ebp - 0x32d]
push eax
push 0x474
push dword [esi + 0x84]
call dword [sym.imp.USER32.dll_PostMessageW]
push 0
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [0x53e354]
test eax, eax
jne 0x407a50
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000f2
mov esp, ebp
pop ebp
ret
Function at 0x407ec0
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 4]
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x407ef8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
call edi
test ebx, ebx
je 0x407ef8
push dword [esi + 4]
call edi
cmp dword [esi + 0x2c], 0xffffffff
jne 0x407f1e
push 0xffffffffffffffff
call dword [0x53e34c]
pop edi
mov dword [esi + 0x2c], 0xffffffff
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000f2
mov esp, ebp
pop ebp
ret
mov edi, dword [0x53e500]
mov ebx, dword [0x53e504]
nop word [eax + eax]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 1
push 0
push 0
push dword [esi + 0x84]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x407f5f
lea eax, [ebp - 0x20]
push eax
call edi
lea eax, [ebp - 0x20]
push eax
call ebx
cmp dword [esi + 0x24], 0
jne 0x407f30
push 0x32
call dword [0x53e2e8]
mov eax, dword [esi + 0x2c]
cmp eax, 0xffffffff
je 0x407f83
push eax
call dword [0x53e34c]
mov dword [esi + 0x2c], 0xffffffff
mov eax, dword [esi + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
je 0x407f93
push eax
call edi
mov eax, dword [esi + 0x50]
test eax, eax
je 0x407f9d
push eax
call edi
mov eax, dword [esi + 0x30]
test eax, eax
je 0x407fa7
push eax
call edi
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x407fc4
push eax
call fcn.005005bb
add esp, 4
mov dword [esi + 0x8c], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005000f2
mov esp, ebp
pop ebp
ret
Function at 0x412fa0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x58a06c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
mov edx, dword [esi + 0x38]
test edx, edx
je 0x4130fa
cmp edi, 0x203
jne 0x41302e
mov eax, ebx
movsx ecx, bx
add ecx, dword [esi + 0x44]
xor edi, edi
shr eax, 0x10
cwde
add eax, dword [esi + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov word [esp + 0x20], di
mov dword [esp + 0xc], 0x13
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov word [esp + 0x22], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c0]
mov edi, dword [ebp + 8]
jmp 0x413127
cmp edi, 0x202
jne 0x413092
mov dword [esp + 0xc], 0xe
mov eax, ebx
movsx ecx, bx
add ecx, dword [esi + 0x44]
xor edi, edi
shr eax, 0x10
cwde
add eax, dword [esi + 0x48]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0xc]
mov word [esp + 0x20], di
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov word [esp + 0x22], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c4]
mov edi, dword [ebp + 8]
jmp 0x413127
cmp edi, 0x205
jne 0x4130a4
mov dword [esp + 0xc], 0x10
jmp 0x41303e
cmp edi, 0x20a
jne 0x4130fa
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
shr eax, 0x10
shr eax, 0xf
mov dword [esp + 0x10], 0
movlpd qword [esp + 0x18], xmm0
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], 0x15
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x38]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x1c4]
jmp 0x413102
cmp edi, 0x2a3
jne 0x413127
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x413127
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x413127
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
push dword [ebp + 0xc]
mov ecx, esi
push edi
call fcn.00486203
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret 0xc
Function at 0x413170
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x58a06c]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esp + 0x10], ebx
push edi
mov edi, dword [sym.imp.USER32.dll_IsWindow]
mov dword [esp + 0x10], eax
push dword [esi + 4]
call edi
test eax, eax
je 0x413333
cmp dword [ebp + 8], 0
je 0x413312
test ebx, ebx
je 0x413312
cmp word [ebx], 0
je 0x413312
mov ecx, dword [esi + 0x3c]
test ecx, ecx
jne 0x4131e7
mov ecx, dword [esi + 0x34]
push 1
push str.tooltiptext
add ecx, 0x55c
call fcn.0047d65a
mov dword [esi + 0x3c], eax
mov ecx, eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x50]
mov eax, dword [ebp + 8]
lea ecx, [esi + 0x40]
mov edx, ebx
mov dword [esi + 0x38], eax
lea edi, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x413200
sub edx, edi
sar edx, 1
push edx
push ebx
call fcn.0040b410
mov edx, dword [esp + 0x10]
mov ebx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], ecx
test ebx, ebx
je 0x413233
test edi, edi
jne 0x41329a
mov eax, dword [esi + 0x3c]
movaps xmm0, xmmword [0x56d6c0]
mov ecx, dword [esi + 0x34]
mov edx, ecx
push 0
push 0x410
mov dword [esp + 0x20], 0
movups xmmword [esp + 0x24], xmm0
mov ecx, dword [ecx + 0xac]
push dword [eax + 0x6c0]
lea eax, [esp + 0x24]
push eax
push 0
push 0
push 0
push dword [esp + 0x30]
lea eax, [esp + 0x3c]
push eax
call fcn.004aa161
add esp, 0x24
test ebx, ebx
jne 0x41328a
mov ebx, dword [esp + 0x24]
sub ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
test edi, edi
jne 0x41329a
mov edi, dword [esp + 0x28]
sub edi, dword [esp + 0x20]
test ebx, ebx
jle 0x4132a1
mov dword [esi + 0x4c], ebx
test edi, edi
jle 0x4132a8
mov dword [esi + 0x50], edi
push edx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [esi + 0x4c]
push 1
push dword [esi + 0x50]
add eax, 0xa
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push dword [eax]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MoveWindow]
add edi, edi
jbe 0x4132de
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x4132fc
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4132fc
push 1
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret 0x14
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x413333
push dword [esi + 4]
call edi
test eax, eax
je 0x413333
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esp + 0x2c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret 0x14
Function at 0x413350
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52e570
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x58a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x40]
or eax, 0xffffffff
mov dword [esi], vtable.IUToolTipWnd.5.0
sub edx, 0x10
mov dword [esi + 0x10], vtable.IUToolTipWnd.4.0
mov dword [esi + 0x24], vtable.IUToolTipWnd.3.0
mov dword [esi + 0x28], vtable.IUToolTipWnd.2.0
mov dword [esi + 0x2c], vtable.IUToolTipWnd.1.0
mov dword [esi + 0x30], vtable.IUToolTipWnd.0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4133b9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x34]
mov dword [esi], vtable.DuiLib::WindowImplBase.0
mov dword [esi + 0x10], vtable.DuiLib::WindowImplBase.5.0
mov dword [esi + 0x24], vtable.DuiLib::WindowImplBase.4.0
mov dword [esi + 0x28], vtable.DuiLib::WindowImplBase.3.0
mov dword [esi + 0x2c], vtable.DuiLib::WindowImplBase.2.0
mov dword [esi + 0x30], vtable.DuiLib::WindowImplBase.1.0
test ecx, ecx
je 0x4133f0
mov eax, dword [ecx]
push 1
call dword [eax + 0x1c]
lea ecx, [esi + 0x14]
call fcn.0047d558
test byte [ebp + 8], 1
je 0x413409
push 0x54
push esi
call fcn.0050057d
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x416310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52fd73
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0x40
mov dword [edi + 4], 0
mov dword [edi + 8], 0x20
mov dword [edi + 0xc], 0x20
call fcn.005008e0
push 0x40
mov esi, eax
push 0
push esi
call fcn.00504db0
xor eax, eax
mov word [esi], ax
mov dword [edi], esi
mov dword [ebp - 4], eax
push 0x40
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], 0x20
mov dword [edi + 0x1c], 0x20
call fcn.005008e0
push 0x40
mov esi, eax
push 0
push esi
call fcn.00504db0
xor eax, eax
mov word [esi], ax
mov dword [edi + 0x10], esi
mov byte [ebp - 4], 1
push 0x40
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], 0x20
mov dword [edi + 0x2c], 0x20
call fcn.005008e0
push 0x40
mov esi, eax
push 0
push esi
call fcn.00504db0
xor eax, eax
mov word [esi], ax
mov dword [edi + 0x20], esi
mov byte [ebp - 4], 2
push 0x40
mov dword [edi + 0x34], eax
mov dword [edi + 0x38], 0x20
mov dword [edi + 0x3c], 0x20
call fcn.005008e0
push 0x40
mov esi, eax
push 0
push esi
call fcn.00504db0
add esp, 0x40
xor eax, eax
mov word [esi], ax
mov dword [edi + 0x30], esi
mov word [edi + 0x40], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4190e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5300db
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
push 0x40
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0x20
mov dword [edi + 0x10], 0x20
call fcn.005008e0
push 0x40
mov esi, eax
push 0
push esi
call fcn.00504db0
xor eax, eax
mov word [esi], ax
mov dword [edi + 4], esi
mov dword [ebp - 4], eax
push 0x40
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], 0x20
mov dword [edi + 0x20], 0x20
call fcn.005008e0
push 0x40
mov esi, eax
push 0
push esi
call fcn.00504db0
xor eax, eax
mov word [esi], ax
mov dword [edi + 0x14], esi
mov byte [ebp - 4], 1
push 0x40
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 0x20
mov dword [edi + 0x30], 0x20
call fcn.005008e0
push 0x40
mov esi, eax
push 0
push esi
call fcn.00504db0
add esp, 0x30
xor eax, eax
mov word [esi], ax
mov eax, edi
mov dword [edi + 0x24], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41f730
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0x14]
mov eax, dword [esi + 0xf8]
cmp eax, 0xffffffff
je fcn.0041f789
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
invalid
Function at 0x422650
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x530d3b
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x58a06c]
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, ecx
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x424], 0
push eax
push 0x20019
push 0
push str.HardwareDeviceMapSerialComm
push reloc.OLEAUT32.dll_SysReAllocString
invalid
invalid
pop eax
mov cl, 1

Function at 0x428ea0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push str.click
mov edi, ecx
push dword [esi]
call fcn.00508b12
add esp, 8
test eax, eax
jne 0x428ecd
mov eax, dword [edi - 0x24]
lea ecx, [edi - 0x24]
push esi
call dword [eax + 0x20]
pop edi
pop esi
pop ebp
ret 4
push 0x552690
push dword [esi]
call fcn.00508b12
add esp, 8
test eax, eax
jne 0x428f50
mov ecx, dword [edi + 0x10]
push 1
push str.labelval
add ecx, 0x55c
call fcn.0047d65a
mov edx, eax
test edx, edx
je 0x428f50
mov ecx, dword [esi + 0x118]
test ecx, ecx
js 0x428f50
cmp ecx, dword [edx + 0x6e0]
jge 0x428f50
imul eax, ecx, 0x84
add eax, 0x764
add eax, edx
je 0x428f50
push 1
push 0
push 0
push dword [eax]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [edi - 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x428f50
push 0
push 0x3e8
push 0x10
push dword [edi - 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
ret 4
Function at 0x429fa0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x58a06c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push 0
push esi
mov dword [ebp - 0xc], 0
mov eax, dword [esi + 0x1c]
add eax, dword [esi + 0x2c]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x28]
sub eax, dword [esi + 0x2c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0x24]
mov dword [esi + 0x14], ecx
push eax
push 1
lea eax, [ebp - 0x14]
mov dword [esi + 0x18], 2
push eax
push dword [ecx + 8]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x42a01f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x271e
je 0x42a01f
cmp eax, 0x3e5
je 0x42a01f
mov eax, 1
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005000f2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.005000f2
mov esp, ebp
pop ebp
ret 4

Function at 0x42a0e0
Capabilities:
Create thread
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
mov eax, dword [0x58a06c]
xor eax, esp
mov dword [esp + 0x1b8], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 4], 0
jne 0x42a1cf
lea eax, [esp + 0x30]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x42a13a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret 4
push 0
push 0
push 0
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [edi], eax
test eax, eax
jne 0x42a16b
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret 4
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [esp + 0x20]
mov eax, 5
mov ebx, dword [0x53e34c]
add esi, 2
cmp esi, eax
cmovl esi, eax
nop dword [eax]
push 0
push 0
push dword [edi]
push 0x42a1f0
push 0
push 0
call fcn.0050d98d
add esp, 0x18
push eax
call ebx
sub esi, 1
jne 0x42a190
mov dword [edi + 4], 0x45d1c0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1b8]
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x1c4]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005000f2
mov esp, ebp
pop ebp
ret 4
Function at 0x42a530
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531494
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x58a06c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 0xc]
sub eax, 1
je 0x42a647
sub eax, 1
je 0x42a593
sub eax, 1
jne 0x42a67a
push 3
push dword [edi + 4]
call dword [sym.imp.USER32.dll_KillTimer]
push 0
push 0
push 0x4d7
push dword [edi + 0x3c]
call dword [0x53e4ec]
jmp 0x42a67a
mov eax, dword [edi + 0x4c]
mov ebx, dword [sym.imp.USER32.dll_KillTimer]
cmp eax, 0x3d4
jl 0x42a5c8
push 2
push dword [edi + 4]
call ebx
push 3
push dword [edi + 4]
call ebx
mov eax, dword [edi + 0x54]
test eax, eax
jle 0x42a5dd
push 0
push eax
push 3
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x42a5dd
cmp eax, 0x1f4
jl 0x42a5d4
add eax, 0xa
jmp 0x42a5d7
add eax, 0x32
push eax
call fcn.0042a990
mov eax, dword [0x58ee44]
test eax, eax
jne 0x42a612
push 0x70
call fcn.0050058b
mov esi, eax
mov dword [ebp + 0xc], esi
push 0x70
push 0
push esi
mov dword [ebp - 4], 0
call fcn.00504db0
add esp, 0x10
mov ecx, esi
call fcn.0045c650
mov dword [0x58ee44], eax
cmp byte [eax + 0xe], 0
jne 0x42a67a
push 2
push dword [edi + 4]
call ebx
push 3
push dword [edi + 4]
call ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x42a57c
push 0
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42a57c
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 1
push dword [edi + 4]
call esi
push 2
push dword [edi + 4]
call esi
push 3
push dword [edi + 4]
call esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
invalid
test eax, eax
je 0x42a67a
push 0
push dword [edi + 4]