joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10139520
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0x1014dba8
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x10139566
push str.GLOBAL_C5FD4B75_0292_4B34_9408_0B6CFB5FAE48
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x10139566
xor al, al
jmp 0x1013957e
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1013957c
xor al, al
jmp 0x1013957e
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x10139810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov byte [ebp - 9], 0
mov dword [ebp - 8], 0
push str.Cache__n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
lea ecx, [ebp - 4]
call fcn.101395b0
push str.wait_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
lea ecx, [ebp - 4]
call fcn.10139520
push str.lock_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
push 0x1014dcf4
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
push ecx
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x10139896
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push edx
push str.Failed_to_open_cachefile__code__d
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
jmp 0x101398d6
mov eax, dword [ebp - 8]
push eax
push 1
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
test eax, eax
jae 0x101398ca
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push eax
push str.Failed_to_write_data__code__d
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
jmp 0x101398d6
mov byte [ebp - 9], 1
xor ecx, ecx
jne 0x1013983a
cmp dword [ebp - 8], 0
je 0x101398e9
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
lea ecx, [ebp - 4]
call fcn.101394e0
push str.unlock_n
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 4
mov al, byte [ebp - 9]
mov byte [ebp - 0x11], al
lea ecx, [ebp - 4]
call fcn.10139590
mov al, byte [ebp - 0x11]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10139a40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 5], 0
mov dword [ebp - 4], 0
push 0x1014dc88
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x10139a8c
call dword [sym.imp.MSVCR80.dll__errno]
mov edx, dword [eax]
push edx
push 0x1014dc8c
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
jmp 0x10139b09
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x20]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x10
call fcn.1011dcd0
mov edx, dword [eax]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x28]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 0xc]
add eax, ecx
sub eax, dword [ebp - 0x14]
cdq
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0
jl 0x10139afd
jg 0x10139ac9
cmp dword [ebp - 0x10], 0
jbe 0x10139afd
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
test eax, eax
jae 0x10139afd
call dword [sym.imp.MSVCR80.dll__errno]
mov eax, dword [eax]
push eax
push 0x1014dcb0
call dword [sym.imp.MSVCR80.dll_printf]
add esp, 8
jmp 0x10139b09
mov byte [ebp - 5], 1
xor ecx, ecx
jne 0x10139a54
cmp dword [ebp - 4], 0
je 0x10139b1c
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret 4
Function at 0x10139bc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x19], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
push 0x1014dcd8
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 4]
push ecx
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x10139c30
jmp 0x10139d37
push 2
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_ftell]
add esp, 4
cdq
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
push 0
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCR80.dll_fseek]
add esp, 0xc
mov edx, dword [ebp - 0x28]
push edx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 0x40]
cmp dword [edx + 0xc], 0
jne 0x10139c8c
jmp 0x10139d37
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x28]
mov dword [eax + 0x28], ecx
mov edx, dword [ebp - 0x24]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 4]
push eax
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x10
test eax, eax
jae 0x10139cbb
jmp 0x10139d37
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x24]
ja 0x10139d2b
jb 0x10139ccd
mov edx, dword [ebp - 0x18]
cmp edx, dword [ebp - 0x28]
jae 0x10139d2b
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x40]
add eax, dword [ecx + 0xc]
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
cmp dword [edx], 0
je 0x10139d07
mov eax, dword [ebp - 0x38]
mov eax, dword [eax]
cdq
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
cmp edx, dword [ebp - 0x24]
jb 0x10139d09
ja 0x10139d07
mov eax, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x28]
jbe 0x10139d09
jmp 0x10139d2b
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.1011dd00
mov edx, dword [ebp - 0x38]
mov eax, dword [edx]
cdq
add eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
adc ecx, edx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x10139cbb
mov byte [ebp - 0x19], 1
xor edx, edx
jne 0x10139c0c
cmp dword [ebp - 4], 0
je 0x10139d4a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov al, byte [ebp - 0x19]
mov esp, ebp
pop ebp
ret 8
Function at 0x1013adc0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1014021e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x50]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x50]
mov eax, dword [edx + 0xb8]
call eax
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 4], 0
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov edx, dword [ecx]
push edx
push 0x5c
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::rfind_char__unsigned_int_const]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x1013ae66
mov eax, dword [ebp - 0x2c]
push eax
push 0
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push str.other.ini
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
jmp 0x1013ae74
push str..other.ini
lea ecx, [ebp - 0x28]
call dword [0x1014c530]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 1
push 0x1014e084
push 0x1014e094
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, 1
sete cl
mov byte [ebp - 0x49], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, byte [ebp - 0x49]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x1013e070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101409f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x3c]
movzx ecx, byte [eax + 0xb]
test ecx, ecx
jne 0x1013e0a4
xor al, al
jmp 0x1013e156
mov edx, dword [ebp - 0x3c]
cmp dword [edx + 4], 0xffffffff
jne 0x1013e0de
mov dword [ebp - 0x38], 0
lea eax, [ebp - 0x38]
push eax
push 0
mov ecx, dword [ebp - 0x3c]
push ecx
push 0x1013b970
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x3c]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x3c]
cmp dword [eax + 4], 0xffffffff
jne 0x1013e0de
jmp 0x1013e153
lea ecx, [ebp - 0x34]
call fcn.10118040
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x34], ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edx + 0x88]
call eax
mov ecx, dword [ebp - 0x3c]
add ecx, 0x140
push ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea edx, [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x3c]
add ecx, 0x12c
call fcn.10118790
mov eax, dword [ebp - 0x3c]
add eax, 0x140
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 0xd], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.101180a0
xor ecx, ecx
jne 0x1013e0a4
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x401154
Capabilities:
Read file on windows

Disassembly:
jmp 0x40f670
push ecx
xor eax, eax
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
mov word [esp + 8], ax
push esi
push edi
xor esi, esi
mov byte [esp + 0x12], al
mov eax, dword [esp + 0x18]
xor edi, edi
cmp esi, 3
jae 0x40f6c2
mov edx, 3
lea ecx, [esp + 0x18]
push 0
sub edx, esi
push ecx
lea eax, [esp + esi + 0x18]
push edx
push eax
push ebx
mov dword [esp + 0x2c], 0
call ebp
mov ecx, dword [esp + 0x18]
add esi, ecx
inc edi
cmp edi, 5
jl 0x40f692
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x401181
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x426940
push 0xffffffffffffffff
push 0x49f00c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004902a8
mov eax, dword [0x4c2da4]
xor edi, edi
mov dword [esp + 0x14], edi
mov dword [esi + 0xc4], eax
mov ecx, dword [0x4c2da4]
mov dword [esi + 0xc8], ecx
mov edx, dword [0x4c2da4]
mov dword [esi + 0xcc], edx
mov eax, dword [0x4c2da4]
mov dword [esi + 0xd0], eax
mov ecx, dword [0x4c2da4]
mov dword [esi + 0xd4], ecx
mov edx, dword [0x4c2da4]
mov dword [esi + 0xd8], edx
mov eax, dword [0x4c2da4]
mov dword [esi + 0xdc], eax
mov ecx, 0x4a68c8
mov eax, 0xa
mov dword [esi + 0xf0], ecx
mov dword [esi + 0xfc], edi
mov dword [esi + 0x100], edi
mov dword [esi + 0xf8], edi
mov dword [esi + 0xf4], edi
mov dword [esi + 0x104], edi
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], ecx
mov dword [esi + 0x118], edi
mov dword [esi + 0x11c], edi
mov dword [esi + 0x114], edi
mov dword [esi + 0x110], edi
mov dword [esi + 0x120], edi
mov dword [esi + 0x124], eax
mov dword [esi + method.CCommandLineInfo.virtual_0], 0x4a75fc
mov dword [esi + 0x134], edi
mov dword [esi + 0x138], edi
mov dword [esi + 0x130], edi
mov dword [esi + 0x12c], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x140], eax
mov ecx, dword [0x4c2da4]
mov dword [esi + 0x148], ecx
lea ecx, [esi + 0x154]
mov byte [esp + 0x14], 0xb
call fcn.00497b78
lea ecx, [esi + 0x1d0]
mov byte [esp + 0x14], 0xc
call fcn.0049756b
lea ecx, [esi + 0x26c]
mov byte [esp + 0x14], 0xd
call fcn.00402077
push edi
push edi
push edi
push edi
push 0x4cb190
push edi
push str.Touch_Contol_Manager
mov byte [esp + 0x30], 0xe
mov dword [esi], 0x4a74d8
push edi
mov ecx, esi
call fcn.00490ab9
mov ecx, dword [esp + 0xc]
mov dword [esi + 0xc0], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4011ae
Capabilities:
Terminate process

Disassembly:
jmp 0x4331b0
push 0xffffffffffffffff
push 0x4a0378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push ecx
lea eax, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 8], esp
push eax
mov dword [esp + 0x18], 0
call fcn.0047a831
mov ecx, esi
call fcn.00401258
test eax, eax
jne 0x433212
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.0047aabc
xor eax, eax
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 4
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], 0xffffffff
call fcn.0047aabc
mov ecx, dword [esp + 8]
mov eax, 1
mov dword fs:[0], ecx
pop esi
add esp, 0x10
ret 4
Function at 0x40123f
Capabilities:
Access peb ldr_data

Disassembly:
jmp 0x41ac20
push 0xffffffffffffffff
push 0x49dec8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x20]
call fcn.00481a52
mov esi, dword [esp + 0x50]
xor ebp, ebp
mov dword [esp + 0x48], ebp
mov ebx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x4a654c
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x30]
push eax
push ecx
mov byte [esp + 0x50], 1
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 0xc], ebp
jne 0x41ace7
cmp esi, ebp
jne 0x41ac80
xor eax, eax
jmp 0x41ac83
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
lea ecx, [esp + 0x24]
call fcn.00481b09
cmp eax, ebp
je 0x41ace7
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x38]
push eax
sub ecx, edx
mov edx, dword [esi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
lea ecx, [esp + 0x14]
call fcn.00482df0
cmp eax, ebp
je 0x41ace7
mov ebp, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
lea ebx, [esp + 0x20]
and eax, ebp
push eax
mov eax, dword [esp + 0x28]
push eax
call fcn.00481c82
mov ebp, eax
jmp 0x41aceb
mov ebp, dword [esp + 0x50]
push ebx
mov ecx, edi
call fcn.00401a28
mov eax, dword [edi + 0x5c]
test eax, eax
je 0x41ad02
push ebx
mov ecx, edi
call fcn.00401b2c
cmp ebx, esi
je 0x41adac
mov edx, dword [esi]
push 0
lea eax, [esp + 0x1c]
push 0
push eax
mov ecx, esi
call dword [edx + 0x38]
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
mov ecx, esi
call fcn.0048208e
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx + 0x34]
push 0
lea eax, [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x2c]
call fcn.00481f52
push 0
lea ecx, [esp + 0x1c]
push 0
push ecx
lea ecx, [esp + 0x2c]
call fcn.0048208e
push 1
lea ecx, [esp + 0x24]
call fcn.00481f24
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x20]
sub ecx, edi
sub edx, ebx
push 0xcc0020
neg eax
sbb eax, eax
push 0
and eax, dword [esp + 0x2c]
push 0
push eax
push ecx
push edx
mov edx, dword [esi + 4]
push edi
push ebx
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
test ebp, ebp
je 0x41ada1
mov ebp, dword [ebp + 4]
mov eax, dword [esp + 0x24]
push ebp
push eax
call fcn.00481c82
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov byte [esp + 0x48], 2
call fcn.00482e47
lea ecx, [esp + 0x20]
mov dword [esp + 0x48], 0xffffffff
call fcn.00481b87
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4
Function at 0x4012df
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
jmp 0x430c40
push 0xffffffffffffffff
push 0x49fed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], vtable.CBrush.0
mov ecx, vtable.CRgn.0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], ecx
push eax
mov byte [esp + 0x40], 2
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x18]
call fcn.00482df0
mov esi, dword [esp + 0x48]
mov eax, dword [esi + 0xc]
mov edi, dword [esi]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
add eax, 5
sub edi, 5
add ecx, 5
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x14]
sub edx, 5
mov dword [esp + 0x2c], ecx
push eax
mov ecx, edi
mov dword [esp + 0x2c], edx
call fcn.00481d1b
push esi
mov esi, dword [sym.imp.GDI32.dll_CreateRectRgnIndirect]
mov ebx, eax
call esi
push eax
lea ecx, [esp + 0x10]
call fcn.00482df0
lea ecx, [esp + 0x24]
push ecx
call esi
push eax
lea ecx, [esp + 0x20]
call fcn.00482df0
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x1c]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0xc]
neg eax
sbb eax, eax
push 3
and eax, esi
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
push ecx
push edx
call dword [sym.imp.GDI32.dll_CombineRgn]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
neg eax
mov edx, dword [esp + 0x10]
sbb eax, eax
and eax, ecx
lea ecx, [esp + 0xc]
neg ecx
sbb ecx, ecx
push eax
and ecx, edx
mov edx, dword [edi + 4]
push ecx
push edx
call dword [sym.imp.GDI32.dll_FillRgn]
push ebx
mov ecx, edi
call fcn.00481d1b
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x1c]
mov byte [esp + 0x3c], 3
call fcn.00482e47
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c], 4
call fcn.00482e47
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], 5
call fcn.00482e47
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 8

Function at 0x4012f8
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x43b740
sub esp, 0xc
mov ecx, dword [esp + 0x10]
lea eax, [esp]
push eax
push 0xf003f
push 0
push ecx
push 0x80000002
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x43b783
xor eax, eax
add esp, 0xc
ret 8
lea edx, [esp + 8]
lea eax, [esp + 4]
push edx
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 8]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x43b7bb
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
add esp, 0xc
ret 8
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 4]
add esp, 0xc
ret 8
Function at 0x401302
Capabilities:
Get number of processors

Disassembly:
jmp 0x421da0
push 0xffffffffffffffff
push 0x49e910
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x10], 0x4a656c
xor ebx, ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x3c], ebx
call fcn.0040178f
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x18]
push str.BaudRate
rep stosd dword es:[edi], eax
mov eax, dword [0x4c9538]
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
mov eax, dword [eax + 0xc4]
push eax
call fcn.004012f8
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x8c]
mov ebp, dword [esp + 0x44]
and edx, 0xffffd083
sub esp, 0x1c
mov dword [esp + 0x38], ecx
or edx, 0x5083
mov ecx, 7
lea esi, [esp + 0x34]
mov edi, esp
mov dword [esp + 0x34], 0x1c
mov dword [esp + 0x3c], edx
mov byte [esp + 0x46], 8
mov byte [esp + 0x47], bl
mov byte [esp + 0x48], bl
push ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x30]
call fcn.004017ee
sub esp, 0x14
mov eax, 0x64
mov ecx, 5
lea esi, [esp + 0x2c]
mov edi, esp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], 0x1f4
rep movsd dword es:[edi], dword [esi]
push ebp
lea ecx, [esp + 0x28]
call fcn.00401a05
push ebp
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.004019c4
push 1
push ebp
lea ecx, [esp + 0x18]
call fcn.00401e9c
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], bl
call fcn.0040228e
mov ecx, dword [esp + 0x34]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x30
ret 4
Function at 0x40143d
Capabilities:
Read file on windows

Disassembly:
jmp 0x4313c0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
ret 0x10
Function at 0x40150f
Capabilities:
Read file on windows

Disassembly:
jmp 0x41a6b0
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [esp + 4], eax
mov byte [esi + 0x1d0], al
mov byte [esi + 0x1cf], al
mov byte [esi + 0x1ce], al
mov byte [esi + 0x1cd], al
mov eax, dword [esi + 0x6c]
cmp eax, 0xffffffff
je 0x41a701
lea ecx, [esi + 0xb8]
lea edx, [esp + 4]
push ecx
xor ecx, ecx
mov cx, word [esi + 0x2c]
push edx
lea edx, [esi + 0x1cc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [esi + 0xa8], eax
mov al, byte [esi + 0x1cd]
pop esi
cmp al, 0xc1
jne 0x41a713
mov eax, 1
pop ecx
ret
xor ecx, ecx
cmp al, 0xc2
setne cl
dec ecx
and ecx, 2
mov eax, ecx
pop ecx
ret