joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x464238
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 8]
mov ecx, esi
push eax
push 0x406
mov dword [esp + 0x40], 0
mov dword [esp + 0x20], 0xa0b5ed8d
mov dword [esp + 0x24], 0x3eb0c6f7
mov dword [esp + 0x28], 0xd2f1a9fc
mov dword [esp + 0x2c], 0x3f50624d
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0x3ff00000
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
lea ecx, [esp + 8]
push ecx
push 0x406
mov ecx, esi
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
mov edx, dword [esp + 8]
push 0
push edx
call dword [sym.imp.MSVCRT.dll_strtod]
fmul qword [0x46b100]
add esp, 8
fst qword [esp + 0xc]
fcomp qword [0x46b0f8]
fnstsw ax
test ah, 1
je 0x40392c
push 0x48714c
push 0x406
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetDlgItemTextA
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0x412e8480
lea eax, [esp + 8]
mov ecx, esi
push eax
push 0x51f
call sub.MFC42.DLL_CWnd::GetDlgItemTextA
mov ecx, dword [esi + 0xc0]
push 0
push 0
push 0x147
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 8]
push 0
push edx
mov esi, eax
call dword [sym.imp.MSVCRT.dll_strtod]
fmul qword [esp + esi*8 + 0x20]
add esp, 8
fmul qword [esp + 0xc]
fadd qword [0x46b0f0]
call sub.MSVCRT.dll__ftol
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4070e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x464570
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, ecx
push edi
xor edi, edi
mov al, byte [esi + 0x26]
mov dword [esp + 0xc], edi
test al, al
je 0x407172
mov al, byte [esi + 0xdd0]
mov cl, byte [esi + 0xdd1]
cmp al, cl
jne 0x407124
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov cl, byte [esi + 0xdd0]
mov al, byte [esi + 0xdd1]
cmp cl, al
je 0x407188
mov ecx, dword [esp + 0x24]
xor edx, edx
mov dl, byte [esi + 0xdd1]
mov al, byte [edx + esi + 0xcd0]
mov edx, dword [esp + 0xc]
mov byte [edx + ebp], al
mov edx, dword [esp + 0xc]
mov al, byte [esi + 0xdd1]
inc edx
inc al
dec ecx
mov dword [esp + 0xc], edx
mov byte [esi + 0xdd1], al
je 0x407188
cmp byte [esi + 0xdd0], al
jne 0x407138
jmp 0x407188
mov ecx, dword [esp + 0x24]
mov edx, dword [esi + 0x10]
lea eax, [esp + 0xc]
push edi
push eax
push ecx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp + 0xc], edi
je 0x4072a1
mov al, byte [esi + 0x24]
test al, al
je 0x407289
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esi + 0x198]
mov byte [esp + 0x18], 1
test edi, edi
jne 0x4071d2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esi + 0x198], edi
jmp 0x4071de
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x198], eax
mov eax, dword [esi + 0x198]
lea ecx, [esp + 0x24]
sub eax, edi
push eax
push str._r_nIN___4d__:
push ecx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x18]
add esp, 0xc
xor edi, edi
test eax, eax
jle 0x407254
xor edx, edx
lea eax, [esp + 0x20]
mov dl, byte [edi + ebp]
push edx
push 0x490728
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x28]
call fcn.00456ba8
mov edx, edi
and edx, 0x8000000f
jns 0x407238
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x40724b
push 0x490718
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0xc]
inc edi
cmp edi, eax
jl 0x407203
mov eax, dword [esp + 0x24]
mov byte [esi + 0x25], 1
push eax
push esi
call fcn.00406ea0
add esp, 8
lea ecx, [esp + 0x20]
mov byte [esi + 0x25], 0
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x18], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 8
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4072c0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x464590
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x24]
test al, al
je 0x4073df
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esi + 0x198]
mov byte [esp + 0x1c], 1
test edi, edi
jne 0x407328
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
mov dword [esi + 0x198], edi
jmp 0x407334
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x198], eax
mov eax, dword [esi + 0x198]
lea ecx, [esp + 0x28]
sub eax, edi
push eax
push str._r_nOUT__4d__:
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
xor edi, edi
test ebp, ebp
mov dword [esp + 0x24], ebp
jle 0x4073aa
xor edx, edx
lea eax, [esp + 0x10]
mov dl, byte [edi + ebx]
push edx
push 0x490728
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x2c]
call fcn.00456ba8
mov edx, edi
and edx, 0x8000000f
jns 0x40738e
dec edx
or edx, 0xfffffff0
inc edx
cmp edx, 0xf
jne 0x4073a1
push 0x490718
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x24]
inc edi
cmp edi, eax
jl 0x407359
mov eax, dword [esp + 0x28]
mov byte [esi + 0x25], 1
push eax
push esi
call fcn.00406ea0
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esi + 0x25], 0
mov byte [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov al, byte [esi + 0x26]
test al, al
je 0x407412
mov edx, dword [esi + 0x10]
lea edi, [esi + 0xca8]
lea ecx, [esp + 0x24]
push edi
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 0x10]
lea eax, [esp + 0x24]
push 1
push eax
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
jmp 0x407453
mov eax, dword [esi + 0x17c]
test eax, eax
jne 0x407431
mov eax, dword [esi + 0x10]
lea edx, [esp + 0x24]
push 0
push edx
push ebp
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x407453
xor edi, edi
test ebp, ebp
jle 0x407453
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0x24]
push 0
push ecx
lea edx, [edi + ebx]
push 1
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc edi
cmp edi, ebp
jl 0x407437
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4131f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, ecx
push esi
push edi
mov esi, dword [ebp + 0x168]
push esi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
mov dword [esp + 0x14], 0
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [esp + 0x18]
push eax
push esi
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4132a8
cmp dword [esp + 0x14], esi
jne 0x4132a8
cmp byte [ebx + 1], 0x46
jne 0x4132a8
cmp byte [ebx + 2], 0xb9
jne 0x4132a8
cmp byte [ebx + 3], 0x68
jne 0x4132a8
mov al, byte [ebx + 4]
test al, al
jne 0x4132a8
xor edx, edx
push 3
mov dl, byte [ebx + 5]
mov ecx, ebp
mov esi, edx
sub esi, 6
lea eax, [esi + 3]
push eax
push ebx
call fcn.00406fb0
mov dl, byte [esi + ebx + 6]
xor ecx, ecx
mov cl, ah
cmp dl, cl
jne 0x4132a8
cmp byte [esi + ebx + 7], al
jne 0x4132a8
cmp byte [esi + ebx + 8], 0x16
jne 0x4132a8
mov edi, dword [esp + 0x1c]
mov ecx, esi
mov edx, ecx
mov dword [esp + 0x10], esi
lea esi, [ebx + 6]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x14]
add esp, 4
mov dword [ebp + 0x19c], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x4132d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [ecx + 0x16c]
push edi
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], esi
call sub.MFC42.DLL_operatornew
mov edi, eax
push 0x100
mov dword [esp + 0x18], edi
call sub.MFC42.DLL_operatornew
mov ecx, esi
mov ebp, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov ebx, dword [esp + 0x2c]
and ecx, 3
mov esi, dword [esp + 0x30]
rep stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
mov edi, ebp
add esp, 8
rep stosd dword es:[edi], eax
mov byte [ebp + 3], al
mov ecx, ebx
mov al, bl
mov edx, ecx
add al, 6
lea edi, [ebp + 5]
shr ecx, 2
mov byte [ebp], 0x46
mov byte [ebp + 1], 0xb9
mov byte [ebp + 2], 0x6a
mov byte [ebp + 4], al
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [ebx + 3]
and ecx, 3
push 2
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x18]
push eax
push ebp
call fcn.00406fb0
xor ecx, ecx
mov dword [esp + 0x24], 0
mov cl, ah
mov byte [ebx + ebp + 5], cl
mov byte [ebx + ebp + 6], al
test ebx, ebx
mov byte [ebx + ebp + 7], 0x16
jle 0x4133d2
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push 0
lea esi, [edx + ebp]
mov edx, dword [esp + 0x14]
lea ecx, [eax - 1]
lea edi, [edx + 1]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
push eax
mov eax, dword [esp + 0x20]
push edx
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [esp + 0x24]
lea ecx, [edx - 1]
add eax, ecx
cmp eax, ebx
mov dword [esp + 0x24], eax
jl 0x41337b
jmp 0x4133d6
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push eax
call sub.MFC42.DLL_operatordelete
push ebp
call sub.MFC42.DLL_operatordelete
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x4183f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
mov byte [esp + 7], 0
mov cl, 0x4c
test ebp, ebp
mov byte [esp + 8], cl
jbe 0x41847c
push ebx
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x20]
sub edi, esi
mov eax, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor edx, edx
and ebx, 0xff
mov eax, dword [eax + 0x1c0]
mov dl, byte [edi + esi]
mov dl, byte [edx + eax]
xor dl, byte [ebx + eax]
mov bl, cl
inc bl
and ebx, 0xff
add dl, byte [ebx + eax]
and edx, 0xff
mov al, byte [edx + eax]
mov dl, byte [esp + 0x13]
mov bl, al
mov byte [esi], al
xor bl, cl
add bl, dl
mov cl, bl
mov bl, byte [esp + 0x2c]
add dl, bl
inc esi
dec ebp
mov byte [esp + 0x14], cl
mov byte [esp + 0x13], dl
jne 0x418418
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
add esp, 0xc
ret 0x10
mov eax, 1
pop ebp
add esp, 0xc
ret 0x10

Function at 0x41fd90
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x465158
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
push 0
push 0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.0041dfa0
lea eax, [esp + 8]
mov ecx, esi
push eax
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
lea ecx, [esp + 0xc]
push 2
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x497528
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
lea ecx, [esp + 0xc]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x41fe12
mov edx, dword [esp + 8]
push 0x78
push edx
jmp 0x41fe19
mov eax, dword [esp + 8]
push 0x64
push eax
lea ecx, [esp + 0x18]
call fcn.0041e550
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, esi
mov dword [esp + 0x28], 0xffffffff
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x1c]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x42d4b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4661c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea eax, [esp + 0x10]
lea ecx, [ebp + 0x60]
push eax
mov dword [esp + 0x2c], 0
call sub.MFC42.DLL_CWnd::GetWindowTextA_1
mov ecx, dword [esp + 0x10]
push ecx
push str.SelfDefine_TxString
push str.Settings
mov ecx, 0x4addc0
call sub.MFC42.DLL_CWinApp::WriteProfileStringA
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
lea esi, [ebp + 0x1bc]
mov bl, 1
push 0xffffffffffffffff
push 0
mov ecx, esi
mov byte [esp + 0x30], bl
call sub.MFC42.DLL_CByteArray::SetSize
mov edx, dword [esp + 0x10]
push str.___._t_r_n
push edx
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
test eax, eax
je 0x42d603
push edi
mov edi, dword [sym.imp.MSVCRT.dll_strtoul]
push eax
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x42d5ea
lea ecx, [esp + 0x1c]
push 2
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x10
push 0
push eax
mov byte [esp + 0x38], 2
call edi
mov byte [esp + 0x24], al
mov eax, dword [esi + 8]
mov edx, dword [esp + 0x24]
add esp, 0xc
mov ecx, esi
push edx
push eax
call sub.MFC42.DLL_CByteArray::SetAtGrow
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 8]
add eax, 0xfffffffe
test eax, eax
jle 0x42d5ea
lea ecx, [esp + 0x20]
push 2
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Mid
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.00456b96
lea ecx, [esp + 0x20]
mov byte [esp + 0x2c], bl
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x10]
mov eax, dword [edx - 8]
test eax, eax
jne 0x42d55f
push str.___._t_r_n
push 0
call dword [sym.imp.MSVCRT.dll_strtok]
add esp, 8
test eax, eax
jne 0x42d546
pop edi
push 0x4adc80
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [ebp + 0x1c4]
xor esi, esi
test eax, eax
jle 0x42d676
mov eax, dword [ebp + 0x1c0]
xor ecx, ecx
lea edx, [esp + 0xc]
mov cl, byte [esi + eax]
push ecx
push 0x490728
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.00456ba8
mov ecx, esi
and ecx, 0x80000007
jns 0x42d658
dec ecx
or ecx, 0xfffffff8
inc ecx
cmp ecx, 7
jne 0x42d66b
push 0x490d1c
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp + 0x1c4]
inc esi
cmp esi, eax
jl 0x42d61d
push 0x515
mov ecx, ebp
call sub.MFC42.DLL_CWnd::GetDlgItem
test eax, eax
je 0x42d689
mov eax, dword [eax + 0x20]
mov edx, dword [esp + 0x10]
add ebp, 0x160
push edx
push eax
push ebp
call fcn.0042fea0
add esp, 0xc
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x430340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x466540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x1c]
push edi
mov dword [esp + 0x3c], 0
call sub.MFC42.DLL_CClientDC::CClientDC
mov eax, dword [edi + 0x20]
mov byte [esp + 0x38], 1
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call sub.MFC42.DLL_CWnd::FromHandle
mov ecx, dword [eax + 0x20]
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call sub.MFC42.DLL_CGdiObject::FromHandle
push eax
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CDC::SelectObject_2
mov edx, dword [esp + 0x44]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [edi + 0x20]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
lea esi, [esp + 0x1c]
neg esi
sbb esi, esi
sub edx, eax
sub edx, 5
and esi, ecx
push edx
push 0x104
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathCompactPathA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov eax, dword [esp + 8]
mov ecx, edi
push eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0x1c]
mov byte [esp + 0x38], 0
call fcn.00456e24
lea ecx, [esp + 8]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret
Function at 0x430450
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
mov al, byte [0x4addb8]
sub esp, 0x30
test al, 1
jne 0x43047e
mov dl, al
mov ecx, 0x4adda8
or dl, 1
mov byte [0x4addb8], dl
call fcn.0041df90
push 0x4305b0
call fcn.00457216
add esp, 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push edi
lea eax, [esp + 0x10]
xor edi, edi
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 8]
push ecx
call esi
cmp dword [esp + 0x3c], edi
je 0x43054b
push edi
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
lea ecx, [esp + 0x18]
cdq
push edx
push eax
call fcn.0041dfa0
lea edx, [esp + 0x18]
mov ecx, 0x4adda8
push edx
call fcn.0041dfe0
mov eax, dword [esp + 0x10]
mov ecx, 0x4adda8
push eax
call fcn.0041e020
mov ecx, dword [esp + 8]
push ecx
mov ecx, 0x4adda8
call fcn.0041e020
mov edx, dword [esp + 0x14]
mov ecx, 0x4adda8
push edx
call fcn.0041e020
mov eax, dword [esp + 0xc]
mov ecx, 0x4adda8
push eax
call fcn.0041e020
push edi
push 1
lea ecx, [esp + 0x20]
call fcn.0041dfa0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [0x4adda8], ecx
mov ecx, dword [esp + 0x24]
mov dword [0x4addac], edx
mov dword [0x4addb0], eax
mov dword [0x4addb4], ecx
mov edx, dword [esp + 8]
mov eax, dword [esp + 0x10]
add edx, 0x269ec3
add eax, 0x343fd
push edx
push eax
lea ecx, [esp + 0x20]
push 0x4adda8
push ecx
call fcn.0041e2e0
add esp, 0xc
lea edx, [esp + 0x2c]
push eax
push edx
call fcn.0041e0b0
mov ecx, dword [eax]
add esp, 0xc
mov dword [0x4adda8], ecx
mov edx, dword [eax + 4]
pop edi
mov dword [0x4addac], edx
pop esi
mov ecx, dword [eax + 8]
mov dword [0x4addb0], ecx
mov edx, dword [eax + 0xc]
mov dword [0x4addb4], edx
mov al, byte [0x4addb7]
add esp, 0x30
ret
Function at 0x445bb0
Capabilities:
Get mac address on windows

Disassembly:
push ecx
push esi
push edi
mov ecx, 0x40
xor eax, eax
mov edi, 0x4adf98
mov dword [esp + 8], eax
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 8]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 8]
mov esi, eax
push edx
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x445c3e
test esi, esi
je 0x445c3e
mov al, byte [esi + 0x199]
xor ecx, ecx
mov cl, byte [esi + 0x198]
xor edx, edx
mov dl, byte [esi + 0x197]
push eax
push ecx
xor eax, eax
mov al, byte [esi + 0x196]
push edx
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + 0x195]
mov dl, byte [esi + 0x194]
push eax
push ecx
lea eax, [esi + 8]
push edx
push eax
push str.NET__s__02X_02X_02X_02X_02X_02X
push 0x4adf98
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, 0x4adf98
pop edi
pop esi
pop ecx
ret
Function at 0x450440
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x60], 0xffffffff
je 0x4504da
xor eax, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [esp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esi + 0x60]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esi + 0x60]
lea eax, [esp + 4]
push 1
lea ecx, [esp + 0xc]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov eax, dword [esp + 4]
mov edx, dword [esi + 0x230]
add edx, eax
push 1
mov eax, edx
mov ecx, esi
push eax
push 0x514
mov dword [esi + 0x230], edx
call sub.MFC42.DLL_CWnd::SetDlgItemInt
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
add esp, 0x18
ret 8
Function at 0x450ce0
Capabilities:
Access peb ldr_data
Resume thread
Suspend thread

Disassembly:
push 0xffffffffffffffff
push 0x468e58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esi + 0x60]
mov dword [esp + 0x2c], 0
cmp eax, 0xffffffff
jne 0x450d35
lea ecx, [esp + 4]
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov eax, dword [esi + 0x68]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esi + 0x60]
lea ecx, [esp + 0xc]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetCommState]
mov eax, dword [esi + 0x42c]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x147
push eax
call edi
lea ecx, [esp + 8]
push ecx
push eax
lea ecx, [esi + 0x40c]
call sub.MFC42.DLL_CComboBox::GetLBText
mov edx, dword [esp + 8]
push 0
push 0
push edx
call dword [sym.imp.MSVCRT.dll_strtoul]
add esp, 0xc
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x3ec]
mov byte [esp + 0x1e], 8
push 0
push 0
push 0x147
push eax
call edi
mov ecx, dword [esi + 0x3ac]
push 0
push 0
push 0x147
push ecx
mov byte [esp + 0x2f], al
call edi
mov ecx, dword [esp + 0x14]
mov byte [esp + 0x20], al
mov eax, dword [esi + 0x60]
lea edx, [esp + 0xc]
or ecx, 1
push edx
push eax
mov dword [esp + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_SetCommState]
mov ecx, dword [esi + 0x60]
push 0xf
push ecx
call dword [sym.imp.KERNEL32.dll_PurgeComm]
mov edx, dword [esi + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0x46c]
push 0
push 0
push 0x147
push eax
call edi
push eax
push str.UartHelper_COMx
push str.Settings
mov ecx, 0x4addc0
call sub.MFC42.DLL_CWinApp::WriteProfileInt
mov ecx, dword [esi + 0x42c]
push 0
push 0
push 0x147
push ecx
call edi
push eax
push str.UartHelper_Baud
push str.Settings
mov ecx, 0x4addc0
call sub.MFC42.DLL_CWinApp::WriteProfileInt
push 0
mov edx, dword [esi + 0x3ec]
push 0
push 0x147
push edx
call edi
push eax
push str.UartHelper_Parity
push str.Settings
mov ecx, 0x4addc0
call sub.MFC42.DLL_CWinApp::WriteProfileInt
mov eax, dword [esi + 0x3ac]
push 0
push 0
push 0x147
push eax
call edi
push eax
push str.UartHelper_Stop
push str.Settings
mov ecx, 0x4addc0
call sub.MFC42.DLL_CWinApp::WriteProfileInt
lea ecx, [esp + 8]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret