joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x3c]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + ebx], 0
lea ebx, [ebx + 2]
jne 0x445f40
add ebx, 0xfffffffe
and ebx, 0xfffe
mov word [esp + 8], bx
add ebx, 2
mov word [esp + 0xa], bx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0x40
lea eax, [esp + 8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp], 0x4c4d4a4b
mov word [esp + 4], 0
mov eax, 0x72
mov edi, 0x8d
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebp, byte [esp + eax - 0x72]
mov ebx, eax
xor ebx, edi
and ebx, ebp
xor ebx, edi
mov cl, 0xc5
sub cl, bl
mov byte [esp + eax - 0x72], cl
inc eax
dec edi
cmp eax, 0x78
jne 0x445fb0
mov eax, dword [esp]
mov edi, dword [0x451ae0]
test edi, edi
je 0x446025
xor ebx, ebx
mov ebp, dword [0x451ae4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0x9ecf05eb
je 0x446001
inc ebx
cmp edi, ebx
jne 0x445ff0
jmp 0x446025
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x446025
lea eax, [esp + 0x10]
push esi
push eax
push edx
push dword [esp + 0x4c]
push 4
push dword [0x451ae8]
push edi
call fcn.004425f0
add esp, 0x1c
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4011b0
Capabilities:
Access peb ldr_data
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x403197
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov dword [esp + 0xc], 0
xor eax, eax
xor ecx, ecx
mov byte [esp + 0x10], 0
mov dword [esp + 0x11], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x15], eax
mov dword [esp + 0x14], ecx
mov byte [esp + 0x19], al
mov ebx, 1
mov word [esp + 0x18], cx
lea ecx, [esp + 8]
mov dword [esp + 0x24], ebx
call sub.MFC42.DLL_CString::CString_2
mov edx, dword [esp + 0x30]
push 0x406030
push edx
mov byte [esp + 0x2c], 2
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x401266
mov esi, dword [esp + 0x2c]
push 0x4061f0
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x24], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
push edi
mov edi, dword [sym.imp.MSVCRT.dll_fread]
push esi
push ebx
lea eax, [esp + 0x1c]
push ebx
push eax
call edi
add esp, 0x10
test eax, eax
je 0x4012ac
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x10]
call fcn.00402cee
xor edx, edx
push esi
mov dword [esp + 0x18], edx
push ebx
lea eax, [esp + 0x1c]
mov dword [esp + 0x20], edx
push ebx
push eax
mov word [esp + 0x2c], dx
call edi
add esp, 0x10
test eax, eax
jne 0x40127e
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x34]
add esp, 4
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00402ce8
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], ebx
mov byte [esp + 0x28], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x401300
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
mov ecx, dword [esp + 0xc]
push 0x4031c6
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x130
and ecx, 0xffff
push ebp
push esi
push edi
push eax
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebp, eax
test ebp, ebp
je 0x401441
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401441
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401441
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x38]
mov dword [esp + 0x144], 0
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 0x38]
lea ecx, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
push str._readtxttemp.txt
lea ecx, [esp + 0x10]
call fcn.00402cee
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CFileFind::CFileFind
mov ecx, dword [esp + 0xc]
push 0
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x14c], 1
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0x1c]
mov esi, eax
call sub.MFC42.DLL_CFileFind::Close
test esi, esi
je 0x4013dd
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0xc]
push 0
push 0
push 1
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40145e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], al
call fcn.00402d0c
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 0x4061f0
mov ecx, dword [esp + 0x13c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x13c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
call fcn.00402ce8
lea eax, [esp + 0x14]
push eax
call fcn.004011b0
mov ecx, dword [esp + 0x14]
add esp, 8
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x144], 0
call fcn.00402d0c
lea ecx, [esp + 0xc]
mov dword [esp + 0x144], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
jmp 0x401446
Function at 0x401560
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4031ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
mov dword [esp + 0x14], 0
lea ecx, [esp + 4]
mov dword [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 4]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::Empty
mov ecx, dword [esp + 0x2c]
xor esi, esi
mov eax, dword [ecx - 8]
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x40162a
push edi
mov al, byte [ecx + esi*2]
mov cl, byte [ecx + esi*2 + 1]
mov byte [esp + 0x10], al
mov byte [esp + 0x14], cl
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
and eax, 0xff
and ecx, 0xff
push 0x406048
lea edx, [eax + eax*2]
lea eax, [eax + edx*4]
lea edi, [ecx + eax*2 - 0x6db]
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
push edi
push 0
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::SetAt
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator_1
mov ecx, dword [esp + 0x30]
inc esi
mov eax, dword [ecx - 8]
cdq
sub eax, edx
sar eax, 1
cmp esi, eax
jl 0x4015c1
pop edi
lea eax, [esp + 4]
lea ecx, [esp + 0x2c]
push eax
call fcn.00402d3c
mov edx, dword [esp + 0x2c]
xor esi, esi
mov eax, dword [edx - 8]
test eax, eax
jle 0x40168d
push ebx
mov ebx, dword [esp + 0x34]
mov dl, byte [esi + edx]
xor ecx, ecx
mov cl, bh
xor cl, dl
push ecx
push esi
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::SetAt
mov edx, dword [esp + 0x30]
movzx ax, byte [esi + edx]
add eax, ebx
mov ebx, 0x58bf
lea ecx, [eax + eax*2]
shl ecx, 4
sub ecx, eax
lea ecx, [ecx + ecx*2]
lea ecx, [ecx + ecx*4]
lea ecx, [ecx + ecx*8]
lea eax, [eax + ecx*2]
sub ebx, eax
mov eax, dword [edx - 8]
inc esi
cmp esi, eax
jl 0x40164a
pop ebx
mov esi, dword [esp + 0x28]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00402ce8
mov dword [esp + 0x14], 1
lea ecx, [esp + 8]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x4023a0
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x403378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebp
push esi
push edi
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
and ecx, 0xffff
push eax
push ecx
push 0
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0xc]
mov ebp, eax
call sub.MFC42.DLL_CFileFind::CFileFind
mov edx, dword [esp + 0x40]
push 0
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 0xc]
mov edi, eax
call sub.MFC42.DLL_CFileFind::Close
test edi, edi
jne 0x402460
mov eax, dword [esp + 0x40]
push edi
push edi
push 1
push edi
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 0xc]
lea ecx, [esp + 0x3c]
push 0
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402460
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call fcn.00402d0c
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x28
ret 0xc

Function at 0x4024b0
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4033a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
mov dword [esp + 0x28], 0
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CFileFind::FindFile
lea ecx, [esp + 4]
mov esi, eax
call sub.MFC42.DLL_CFileFind::Close
test esi, esi
je 0x40253e
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x28], 0
call fcn.00402d0c
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret 4
lea ecx, [esp + 4]
mov byte [esp + 0x28], 0
call fcn.00402d0c
lea ecx, [esp + 0x30]
mov dword [esp + 0x28], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret 4
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x2bda2bf2
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x7c1060dd
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x5b4b15df
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x6da672cc
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402740
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 1
push 0x519264
mov eax, dword [ebp + 8]
push eax
call fcn.004cfb4e
add esp, 8
mov dword [0x519244], eax
cmp dword [0x519244], 0
jne 0x40277a
xor eax, eax
jmp 0x402972
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, dword [ebp + 0x10]
jbe 0x402794
xor eax, eax
jmp 0x402972
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x519268
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004cf9c0
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x519274
mov eax, dword [ebp + 0xc]
push eax
call fcn.004cfb4e
add esp, 8
mov dword [0x519248], eax
cmp dword [0x519248], 0
jne 0x4027ee
mov ecx, dword [0x519244]
push ecx
call fcn.004cfaa0
add esp, 4
xor eax, eax
jmp 0x402972
mov edx, dword [0x519244]
push edx
call fcn.004cf944
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40280b
jmp 0x402950
cmp dword [ebp - 4], 0x80
je 0x402848
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004cf9b0
add esp, 8
mov edx, dword [0x519244]
push edx
call fcn.004cfaa0
add esp, 4
mov eax, dword [0x519248]
push eax
call fcn.004cfaa0
add esp, 4
xor eax, eax
jmp 0x402972
mov ecx, dword [0x519244]
push ecx
call fcn.004cf944
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x14], 1
je 0x40287f
cmp dword [ebp - 0x14], 2
je 0x4028f6
cmp dword [ebp - 0x14], 3
je 0x40293c
jmp 0x40293e
cmp dword [ebp - 0xc], 1
je 0x402895
mov eax, dword [0x519248]
push eax
push 0xa
call fcn.004cf975
add esp, 8
mov dword [ebp - 0xc], 1
call fcn.00402660
mov dword [ebp - 8], eax
jmp 0x4028af
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
jbe 0x4028f4
mov edx, dword [0x519244]
push edx
call fcn.004cf944
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xd
jne 0x4028df
mov eax, dword [0x519248]
push eax
push 0xa
call fcn.004cf975
add esp, 8
jmp 0x4028f2
mov ecx, dword [0x519248]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.004cf975
add esp, 8
jmp 0x4028a6
jmp 0x402942
mov dword [ebp - 0xc], 2
call fcn.00402660
mov dword [ebp - 8], eax
jmp 0x402910
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x402930
mov ecx, dword [0x519244]
push ecx
call fcn.004cf944
add esp, 4
push eax
call fcn.004026c9
add esp, 4
jmp 0x402907
mov dword [0x538ad8], 0
jmp 0x402942
jmp 0x402942
xor eax, eax
jmp 0x402972
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x4027ee
mov eax, dword [0x519244]
push eax
call fcn.004cfaa0
add esp, 4
mov ecx, dword [0x519248]
push ecx
call fcn.004cfaa0
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40883f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0xc], 2
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
cmp dword [0x539aec], 0
je 0x408869
mov dword [ebp - 0xc], 0
jmp 0x408870
mov dword [ebp - 0xc], 2
push 0x539a68
mov ax, word [0x539acc]
push eax
mov cx, word [0x539ace]
push ecx
push 4
mov edx, dword [ebp - 0xc]
push edx
call dword [0x538b68]
add esp, 0x14
mov dword [ebp - 4], eax
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x4088c8
mov ecx, dword [ebp - 4]
push ecx
push str._PSU__Device_open_return_value_:__d
lea edx, [ebp - 0x94]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 4], 0
jne 0x408908
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x408906
push 0x539a68
mov edx, dword [ebp - 0xc]
push edx
push str._PSU_DOpen___d_4_vid_pid__s__failed
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
jmp 0x40895b
lea edx, [ebp - 8]
push edx
push 0
push 0
push 1
lea eax, [ebp - 0x14]
push eax
push 0x182014
call dword [0x538b7c]
add esp, 0x18
xor ecx, ecx
mov cx, word [0x539ae2]
test ecx, ecx
je 0x408944
xor edx, edx
mov dx, word [0x539ae2]
push edx
call dword [0x538b78]
add esp, 4
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x40895b
push str._PSU_DOpen_Success
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x408962
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push 4
call dword [0x538b74]
add esp, 4
mov dword [ebp - 4], eax
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x4089ab
mov ecx, dword [ebp - 4]
push ecx
push str._RCP__Device_close_return_value_:__d
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [ebp - 4], 0
jne 0x4089cb
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x4089cb
push str._RCP__DClose_4___failed
call fcn.0044ce42
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4089d2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x538b6c]
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x408a24
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x408a12
push str._RCP__result0_:_write_function_failed__sms
call fcn.0044ce42
add esp, 4
push str.RCP_:_DeviceWrite___FAILED_SSDeviceWrite
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 8], 0
xor ecx, ecx
mov cx, word [0x539af6]
test ecx, ecx
je 0x408a7d
mov edx, dword [ebp - 4]
push edx
push str._RCP__Write_result___d__n
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x88]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edx, dword [ebp - 8]
push edx
push str._RCP__Write_nBytes___d__n
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x408a86
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x538b70]
add esp, 0xc
mov dword [ebp - 4], eax
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x408af5
cmp dword [ebp - 4], 0
jne 0x408acf
push str._RCP__read_function_failed___sms
call fcn.0044ce42
add esp, 4
jmp 0x408af5
mov ecx, dword [ebp - 8]
push ecx
push str._RCP___d_byte_read
lea edx, [ebp - 0x88]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x408afe
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.PortAcquire
mov eax, dword [0x538b90]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x408b46
mov cl, byte [ebp + 8]
push ecx
call dword [ebp - 4]
add esp, 4
test eax, eax
je 0x408b46
mov ecx, 0x538b68
call fcn.00422a50
push str.RCP:_Port_Acquire___SUCCESS
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, 1
jmp 0x408b53
push str.RCP:_Port_Acquire___FAILED
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x408b57
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [0x538b90], 0
jne 0x408b6a
xor eax, eax
jmp 0x408bbb
push str.PortRelease
mov eax, dword [0x538b90]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x408ba6
mov cl, byte [ebp + 8]
push ecx
call dword [ebp - 8]
add esp, 4
test eax, eax
je 0x408ba6
push str.RCP:_Port_Release___TRUE_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 1
jmp 0x408bb8
push str.RCP:_Port_Release___FALSE_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40d3a9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
call fcn.0040883f
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40d3c7
xor eax, eax
jmp 0x40d4cc
mov dword [ebp - 8], 0x51a218
mov dword [ebp - 0x10], 9
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.004089d2
mov dword [ebp - 0xc], eax
xor edx, edx
mov dx, word [0x539af6]
test edx, edx
je 0x40d423
push str._RCP____GSet_Locale___n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebp - 0xc]
push eax
push 0x51a244
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x5dc
call fcn.0044cfec
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jne 0x40d4b7
mov dword [ebp - 0x10], 0x11
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004e8de9
add esp, 4
mov dword [ebp - 0x94], eax
mov edx, dword [ebp - 0x94]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x40d47b
mov eax, dword [ebp - 0x10]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
call fcn.004cf390
add esp, 0xc
jmp 0x40d48f
push 0x51a25c
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call fcn.00408962
xor eax, eax
jmp 0x40d4cc
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
call fcn.00408a86
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x98], ecx
mov edx, dword [ebp - 0x98]
push edx
call fcn.004e8e12
add esp, 4
call fcn.00408962
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40d4c9
xor eax, eax
jmp 0x40d4cc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x41ac26
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f38bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x8c
lea ecx, [ebp - 0x10]
call fcn.00401900
mov dword [ebp - 4], 0
push 0x51ba04
lea ecx, [ebp - 0x10]
call fcn.004e82b5
push 0x51ba48
lea ecx, [ebp - 0x10]
call fcn.004e8508
mov eax, dword [ebp + 8]
imul eax, eax, 0x138c
mov ecx, dword [0x53a2a0]
lea edx, [ecx + eax + 0x181]
push edx
lea ecx, [ebp - 0x10]
call fcn.004e8508
push str._CURRENT_PRESSED____
lea ecx, [ebp - 0x10]
call fcn.004e8508
push 0x51ba64
lea ecx, [ebp - 0x10]
call fcn.004e8508
lea ecx, [ebp - 0x10]
call fcn.00408660
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea ecx, [ebp - 0x10]
call fcn.00401920
push eax
mov edx, dword [ebp + 0xc]
push edx
call fcn.004cf9b0
add esp, 8
xor eax, eax
mov ax, word [0x539af6]
test eax, eax
je 0x41ace1
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004ec58c
xor edx, edx
mov dx, word [0x539af2]
test edx, edx
je 0x41ad19
push ecx
mov ecx, esp
mov dword [ebp - 0x94], esp
push 0x51ba84
call fcn.004e819a
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
call fcn.00418fa5
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
push ecx
push 0x51ba90
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.004e812c
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret