joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410fc0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41e5ab
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x42b75c]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov esi, dword [esp + 0x6c]
lea ecx, [esp + 0x50]
mov dword [esp + 0x10], 2
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
lea ecx, [esp + 0x18]
cmp eax, 0x42099c
jne 0x41106e
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
mov eax, dword [esp + 0x74]
push eax
push esi
push 0x42099c
push 0
lea ecx, [esp + 0x48]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [esp + 0x10], 1
lea ecx, [esp + 0x18]
test eax, eax
jbe 0x41108d
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0x10], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x50]
mov dword [esp + 0x10], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov ecx, dword [esp + 0x70]
push eax
push ecx
push esi
push 0x42099c
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
jmp 0x411016
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0x10], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x50]
mov dword [esp + 0x10], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
xor al, al
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
Function at 0x413100
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41ea20
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
push edi
mov eax, dword [0x42b75c]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esp + 0x24]
call fcn.004019f0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x48], 0
call fcn.004019f0
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 1
call fcn.004019f0
lea ecx, [esp + 0xc]
mov byte [esp + 0x48], 2
call fcn.004019f0
mov edi, dword [ebp + 8]
lea eax, [esp + 0x24]
push eax
push edi
mov ecx, esi
mov byte [esp + 0x50], 3
call fcn.00412960
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.00412fc0
push str.MVpC
lea ecx, [esp + 0x38]
call fcn.00401a40
push str.RegData
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0x54], 4
call fcn.00401e70
add esp, 0xc
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x4c], 5
call fcn.00401580
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 4
call fcn.00401cb0
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 3
call fcn.00401cb0
push str.SoftwareHewlett_Packardusg_
lea ecx, [esp + 0x30]
call fcn.00401a40
push edi
push eax
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x54], 6
call fcn.00401e70
add esp, 0xc
mov eax, dword [eax + 4]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x4c], 7
call fcn.00401580
lea ecx, [esp + 0x34]
mov byte [esp + 0x48], 6
call fcn.00401cb0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x48], 3
call fcn.00401cb0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
push edx
push eax
push ecx
call fcn.00415250
add esp, 0xc
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x48], 2
call fcn.00401cb0
lea ecx, [esp + 0x14]
mov byte [esp + 0x48], 1
call fcn.00401cb0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x48], 0
call fcn.00401cb0
lea ecx, [esp + 0x24]
mov dword [esp + 0x48], 0xffffffff
call fcn.00401cb0
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x413e40
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
mov eax, dword [0x42b75c]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
mov esi, dword [esp + 0x114]
push 0x104
lea eax, [esp + 0xc]
push eax
push str.ALLUSERSPROFILE
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.00401a40
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041bd34
add esp, 0x10c
ret
Function at 0x413f80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ed08
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x42b75c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
push esi
lea ecx, [esp + 0x10]
call fcn.00401a10
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0
call fcn.00401520
mov ecx, esi
mov edi, eax
call fcn.00401310
lea eax, [edi + 1]
push eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.004028c0
mov eax, dword [eax + 4]
push eax
mov ecx, esi
mov byte [esp + 0x28], 1
call fcn.00401580
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00401cb0
push edi
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x14]
call fcn.00402390
mov eax, dword [eax + 4]
mov ecx, dword [esp + 0x2c]
push eax
mov byte [esp + 0x28], 2
call fcn.00402190
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 0
call fcn.00401cb0
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00401cb0
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x414060
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x42b75c]
xor eax, esp
mov dword [esp + 0x94], eax
push esi
xor esi, esi
call fcn.00413d40
test eax, eax
je 0x414099
lea eax, [esi + 1]
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041bd34
add esp, 0x98
ret
call fcn.00413d20
test eax, eax
jne 0x4140e6
push 0x94
push eax
lea eax, [esp + 0xc]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 8], 6
pop esi
sbb eax, eax
inc eax
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0041bd34
add esp, 0x98
ret
mov ecx, dword [esp + 0x98]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0041bd34
add esp, 0x98
ret

Function at 0x414100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ed40
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x42b75c]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x14]
call fcn.00401a40
mov ecx, dword [esp + 0x34]
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0
call fcn.00401a40
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x30], 1
call fcn.00413f80
lea ecx, [esp + 0x20]
push ecx
call fcn.00413f10
mov eax, dword [eax + 4]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push eax
mov eax, dword [esp + 0x10]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.00401cb0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.00401cb0
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
call fcn.00401cb0
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x24
ret
Function at 0x4141c0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41ed76
mov eax, dword fs:[0]
push eax
sub esp, 0x404
mov eax, dword [0x42b75c]
xor eax, esp
mov dword [esp + 0x400], eax
push ebp
push esi
push edi
mov eax, dword [0x42b75c]
xor eax, esp
push eax
lea eax, [esp + 0x414]
mov dword fs:[0], eax
mov eax, dword [str.MarsUnknown]
mov ecx, dword [0x4227c8]
mov edx, dword [0x4227cc]
mov esi, dword [esp + 0x424]
mov edi, dword [esp + 0x428]
mov ebp, dword [esp + 0x42c]
push 0x1e8
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x38]
push 0
push eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
call sub.MSVCR90.dll_memset
add esp, 0xc
push esi
lea ecx, [esp + 0x1c]
call fcn.00401a40
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x420], 0
call fcn.00401a40
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
mov byte [esp + 0x424], 1
call fcn.00413f80
lea eax, [esp + 0x28]
push eax
call fcn.00413f10
mov eax, dword [eax + 4]
add esp, 0xc
push eax
mov eax, dword [esp + 0x18]
push 0x1f4
lea ecx, [esp + 0x224]
push ecx
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x34]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x20]
call fcn.00401cb0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.MSVCR90.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4142df
lea ecx, [esp + 0x21c]
push ecx
mov ecx, ebp
call fcn.00401580
mov al, 1
jmp 0x4142e8
mov ecx, ebp
call fcn.00401310
xor al, al
lea ecx, [esp + 0x10]
movzx esi, al
mov byte [esp + 0x41c], 0
call fcn.00401cb0
lea ecx, [esp + 0x18]
mov dword [esp + 0x41c], 0xffffffff
call fcn.00401cb0
mov eax, esi
mov ecx, dword [esp + 0x414]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x400]
xor ecx, esp
call fcn.0041bd34
add esp, 0x410
ret

Function at 0x4146f0
Capabilities:
Query or enumerate registry value

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x4146fd
xor eax, eax
pop edi
ret
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0
push ebx
push edi
call ebp
test eax, eax
je 0x414722
pop ebp
pop ebx
xor eax, eax
pop edi
ret
mov ecx, dword [esp + 0x10]
inc ecx
push esi
push ecx
call sub.mfc90.dll_Ordinal_265
add esp, 4
lea edx, [esp + 0x14]
push edx
mov esi, eax
push esi
push 0
push 0
push ebx
push edi
call ebp
push esi
test eax, eax
je 0x414755
call sub.mfc90.dll_Ordinal_266
add esp, 4
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret
mov ecx, dword [esp + 0x20]
call fcn.00401580
push esi
call sub.mfc90.dll_Ordinal_266
add esp, 4
pop esi
pop ebp
pop ebx
mov eax, 1
pop edi
ret

Function at 0x414780
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x414789
ret
mov edx, dword [esp + 0xc]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push 0
push 0
push ecx
push eax
mov dword [esp + 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x415250
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41f048
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x42b75c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, dword [esp + 0x38]
push esi
lea ecx, [esp + 0x1c]
call fcn.00401a40
mov edi, dword [esp + 0x3c]
xor ebx, ebx
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.00401a40
mov byte [esp + 0x30], 1
call fcn.00414060
test eax, eax
je 0x4152da
mov eax, dword [esp + 0x40]
push eax
lea ecx, [esp + 0x24]
call fcn.00401a40
mov eax, dword [eax + 4]
push eax
push edi
push esi
mov byte [esp + 0x3c], 2
call fcn.00414100
add esp, 0xc
lea ecx, [esp + 0x20]
mov byte [esp + 0x30], 1
call fcn.00401cb0
jmp 0x415373
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x1c]
push edx
push eax
push ecx
call fcn.004144e0
mov edx, dword [esp + 0x2c]
push edx
push SysReAllocStringLen
call fcn.004145f0
mov esi, eax
add esp, 0x18
cmp esi, ebx
je 0x41533a
mov edx, dword [esp + 0x40]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x415314
sub eax, edi
inc eax
push eax
mov eax, dword [esp + 0x18]
push edx
push 1
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
test eax, eax
je 0x41536d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.00401cb0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00401cb0
xor eax, eax
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], bl
call fcn.00401cb0
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xffffffff
call fcn.00401cb0
mov eax, 1
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x417050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41f416
mov eax, dword fs:[0]
push eax
sub esp, 0x428
mov eax, dword [0x42b75c]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
push esi
push edi
mov eax, dword [0x42b75c]
xor eax, esp
push eax
lea eax, [esp + 0x438]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401a40
mov edx, dword [esp + 0x1c]
push edx
xor esi, esi
push SysReAllocStringLen
mov dword [esp + 0x448], esi
call fcn.00415e40
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x4170e0
lea ecx, [esp + 0x18]
mov dword [esp + 0x440], 0xffffffff
call fcn.00401cb0
xor eax, eax
jmp 0x41717c
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push esi
push esi
push esi
push esi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x40]
push ecx
push esi
push edi
mov dword [esp + 0x34], 0x104
call ebx
test eax, eax
jne 0x41715c
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x28]
call fcn.00401a40
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0x444], 1
call fcn.00416fd0
lea ecx, [esp + 0x24]
mov byte [esp + 0x440], 0
call fcn.00401cb0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x40]
push edx
inc esi
push esi
push edi
mov dword [esp + 0x34], 0x104
call ebx
test eax, eax
je 0x417104
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x18]
mov dword [esp + 0x440], 0xffffffff
call fcn.00401cb0
mov eax, 1
mov ecx, dword [esp + 0x438]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x420]
xor ecx, esp
call fcn.0041bd34
mov esp, ebp
pop ebp
ret
Function at 0x4171a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41f466
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x42b75c]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push esi
push edi
mov eax, dword [0x42b75c]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [esp + 0x20], ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00401a40
mov edx, dword [esp + 0x1c]
push edx
xor esi, esi
push SysReAllocStringLen
mov dword [esp + 0x148], esi
call fcn.00415e40
mov edi, eax
add esp, 8
cmp edi, esi
jne 0x417230
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0xffffffff
call fcn.00401cb0
xor eax, eax
jmp 0x4172c0
lea ecx, [esp + 0x10]
call fcn.004019f0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x104
lea eax, [esp + 0x28]
push eax
push esi
push edi
mov byte [esp + 0x150], 1
call ebx
test eax, eax
jne 0x41728f
lea esp, [esp]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401580
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x10]
push edx
call fcn.00416fd0
push 0x104
lea eax, [esp + 0x28]
push eax
inc esi
push esi
push edi
call ebx
test eax, eax
je 0x417260
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x140], 0
call fcn.00401cb0
lea ecx, [esp + 0x18]
mov dword [esp + 0x140], 0xffffffff
call fcn.00401cb0
mov eax, 1
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0041bd34
mov esp, ebp
pop ebp
ret

Function at 0x417970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x10]
xor eax, eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov word [ecx], ax
mov ecx, dword [esp + 8]
push ebp
push esi
mov eax, ecx
push edi
mov edi, dword [esp + 0x24]
shr eax, 4
inc eax
movzx esi, ax
push edx
push esi
push 6
and ecx, 0xf
push edi
xor ebp, ebp
mov dword [esp + 0x24], ecx
call ebx
test eax, eax
jne 0x4179bb
push 0x409
push esi
push 6
push edi
call ebx
test eax, eax
je 0x417a27
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x417a27
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x417a20
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x4179ec
mov edi, edi
sub eax, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4179e0
mov edi, dword [esp + 0x1c]
movzx eax, word [esi]
dec edi
cmp edi, eax
jge 0x4179fa
mov eax, edi
mov ebp, dword [esp + 0x18]
push eax
lea edx, [esi + 2]
push edx
push ebp
call dword [sym.imp.MSVCR90.dll_wcsncpy]
movzx eax, word [esi]
add esp, 0xc
cmp edi, eax
jl 0x417a16
mov edi, eax
xor eax, eax
mov word [ebp + edi*2], ax
movzx ebp, word [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x419f40
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
lea edx, [esp + 8]
push edx
call fcn.00419e70
mov eax, dword [esp + 8]
push eax
push 1
lea ecx, [esp + 0xc]
call dword [sym.imp.mfc90.dll_Ordinal_3178]
push eax
lea ecx, [esp + 0x10]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
lea ecx, [esp + 4]
call dword [sym.imp.mfc90.dll_Ordinal_601]
ret 8

Function at 0x419f90
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2714
call fcn.0041be10
mov eax, dword [0x42b75c]
xor eax, esp
mov dword [esp + 0x2710], eax
mov ecx, dword [esp + 0x2718]
push esi
mov esi, dword [esp + 0x2720]
lea eax, [esp + 4]
push eax
push 0
push 0
call fcn.0041af30
cmp al, 1
jne 0x419fe6
push esi
push 1
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov ecx, dword [esp + 0x2714]
pop esi
xor ecx, esp
call fcn.0041bd34
add esp, 0x2714
ret 8

Function at 0x41a000
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2714
call fcn.0041be10
mov eax, dword [0x42b75c]
xor eax, esp
mov dword [esp + 0x2710], eax
mov ecx, dword [esp + 0x2718]
push esi
mov esi, dword [esp + 0x2720]
lea eax, [esp + 4]
push eax
push 0
push 1
call fcn.0041af30
cmp al, 1
jne 0x41a056
push esi
push 1
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov ecx, dword [esp + 0x2714]
pop esi
xor ecx, esp
call fcn.0041bd34
add esp, 0x2714
ret 8
Function at 0x41a590
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0x14]
push ebx
push esi
push 0x4219d8
push eax
mov ebx, ecx
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a5b4
pop esi
xor al, al
pop ebx
ret 0x1c
mov ecx, dword [esp + 0x20]
push ebp
push edi
push ecx
mov ecx, ebx
call fcn.00419d30
mov ebp, dword [sym.imp.MSVCR90.dll_fwrite]
mov edi, dword [esp + 0x14]
mov dword [esp + 0x24], 1
cmp byte [edi], 0x5b
je 0x41a5e7
push esi
push 1
push 1
push edi
call ebp
add esp, 0x10
inc edi
jmp 0x41a5d4
cmp byte [edi + 2], 0x5d
je 0x41a5fb
push esi
push 1
push 1
push edi
call ebp
add esp, 0x10
inc edi
jmp 0x41a5d4
mov al, byte [edi + 1]
cmp al, 0x45
je 0x41a6b9
cmp al, 0x54
jne 0x41a61c
mov edx, dword [esp + 0x18]
push esi
push edx
mov ecx, ebx
call fcn.00419f90
add edi, 3
jmp 0x41a5d4
cmp al, 0x42
jne 0x41a632
mov eax, dword [esp + 0x18]
push esi
push eax
mov ecx, ebx
call fcn.0041a000
add edi, 3
jmp 0x41a5d4
cmp al, 0x43
jne 0x41a652
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
push ecx
push edx
push esi
push eax
mov ecx, ebx
call fcn.0041a070
add edi, 3
jmp 0x41a5d4
cmp al, 0x4d
jne 0x41a677
mov ecx, dword [esp + 0x1c]
push esi
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x24]
push eax
push edx
call ebp
add esp, 0x10
add edi, 3
jmp 0x41a5d4
cmp al, 0x53
jne 0x41a69c
mov eax, dword [esp + 0x20]
push esi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x28]
push eax
push ecx
call ebp
add esp, 0x10
add edi, 3
jmp 0x41a5d4
cmp al, 0x58
jne 0x41a6b1
mov edx, dword [esp + 0x24]
push esi
push edx
mov ecx, ebx
call fcn.00419f40
inc dword [esp + 0x24]
add edi, 3
jmp 0x41a5d4
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
pop edi
pop ebp
pop esi
mov al, 1
pop ebx
ret 0x1c
Function at 0x41bd34
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b75c]
jne 0x41bd3e
repz ret
jmp fcn.0041c3e8