joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401450
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x407020]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push edi
push 0x104
push 0
push esi
call sub.MSVCR80.dll_memset
push 0x104
lea edi, [esi + 0x104]
push 0
push edi
call sub.MSVCR80.dll_memset
mov edx, str.kernel
add esp, 0x18
mov ebp, 0x104
mov eax, esi
sub edx, esi
mov cl, byte [edx + eax]
test cl, cl
je 0x4014aa
mov byte [eax], cl
add eax, 1
sub ebp, 1
jne 0x401497
jmp 0x4014ae
test ebp, ebp
jne 0x4014b1
sub eax, 1
push 0x103
mov byte [eax], 0
lea eax, [esp + 0xd]
push 0
push eax
mov byte [esp + 0x14], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push 1
push 0x23
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
push esi
lea edx, [esp + 0xc]
push edx
push str._sQQPetRegistrar_s.ini
mov eax, 0x104
call entry0
push 0x103
lea eax, [esp + 0x11d]
push 0
push eax
mov byte [esp + 0x124], 0
call sub.MSVCR80.dll_memset
lea ecx, [esp + 0x20]
push ecx
push str._sQQPetRegistrar
mov eax, 0x104
lea edi, [esp + 0x12c]
call entry0
add esp, 0x20
mov edx, edi
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
pop edi
pop ebp
jne 0x40154a
lea eax, [esp + 0x104]
push eax
call fcn.00401630
mov ecx, dword [esp + 0x208]
xor ecx, esp
mov eax, esi
call fcn.00403a3e
add esp, 0x20c
ret

Function at 0x401fd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4044e8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea edi, [esi + 0xc]
mov ecx, edi
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi], ebx
mov dword [esp + 0x1c], ebx
call fcn.004026f0
push str.KERNELSMARTLOADER::
mov ecx, edi
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__]
push ebx
call dword [sym.imp.ole32.dll_CoInitialize]
call fcn.00401310
mov edi, eax
call fcn.00401100
push str.KernelFactory.dll
mov dword [esi + 0x34], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x402075
push str.CreateFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x402075
call eax
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x402075
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
call eax
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x402510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4044b8
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x407020]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x40257a
push str.ReleaseFactory
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402569
mov ecx, dword [esi + 0x28]
test ecx, ecx
je 0x402569
push ecx
call eax
add esp, 4
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x30], 0
call fcn.00401180
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], 0xffffffff
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 ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret 4

Function at 0x98e4c4
Capabilities:
Encode data using xor

Disassembly:
jmp 0x98e4ce
pushal
call 0x98e4d4
pop ebp
sub ebp, 0x10
sub ebp, 0x58e4c4
jmp 0x98e4ea
mov eax, 0x58e4c4
add eax, ebp
add eax, 0x4c
mov ecx, 0x600
mov edx, 0xae3b20d6
xor byte [eax], dl
inc eax
dec ecx
jne 0x98e501
jmp 0x98e514
pop ebp
sbb ebx, dword [ebp + 0x5f]
ljmp 0x2e17
Function at 0x401260
Capabilities:
Set registry value

Disassembly:
sub esp, 8
push ebp
xor ebp, ebp
cmp edi, ebp
je 0x4012d7
cmp byte [edi], 0
je 0x4012d7
cmp esi, ebp
je 0x4012d7
push ebx
push esi
mov dword [esp + 0xc], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [esp + 0x14]
mov ebx, eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0xc]
push ecx
push ebp
push 2
push ebp
push ebp
push ebp
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4012c0
add ebx, 1
push ebx
push esi
push 1
push eax
mov eax, dword [esp + 0x18]
push 0x45e208
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4012c0
lea ebp, [eax + 1]
mov eax, dword [esp + 8]
test eax, eax
pop ebx
je 0x4012d0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop ebp
add esp, 8
ret
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebp
add esp, 8
ret
Function at 0x4035f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ebx + 0x24]
push esi
push eax
call fcn.0043bda2
mov esi, eax
add esp, 4
test esi, esi
jne 0x403609
xor al, al
pop esi
ret 4
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x20]
push edi
mov edi, dword [ebx + 0x28]
push ecx
push esi
call fcn.004089d0
test al, al
je 0x403652
mov edx, dword [esp + 0xc]
push 0x45e4d4
push edx
call fcn.0043bf29
mov edi, eax
mov eax, dword [ebx + 0x24]
push edi
push 1
push eax
push esi
call fcn.0043c09b
push edi
call fcn.0043c18f
push esi
call fcn.0043c46d
add esp, 0x20
pop edi
mov al, 1
pop esi
ret 4
push esi
call fcn.0043c46d
add esp, 4
pop edi
xor al, al
pop esi
ret 4
Function at 0x4082e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4082f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408334
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x408330
lea ebx, [ebx]
cmp esi, eax
jae 0x408334
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408320
cmp esi, eax
jb 0x40833a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x40886c
Capabilities:
Read file on windows

Disassembly:
push 0x100000
mov dword [0x46f8d4], 0x100000
call fcn.0043bda2
mov dword [0x46f8d0], eax
mov eax, dword [esp + 8]
push 0x45e998
push eax
call fcn.0043bf29
add esp, 0xc
test eax, eax
mov dword [0x46f8d8], eax
je 0x40884f
push 2
push 0
push eax
call fcn.0043c582
mov ecx, dword [0x46f8d8]
push ecx
call fcn.0043c79f
add esp, 0x10
test eax, eax
mov dword [0x46f8dc], eax
jne 0x408854
mov edx, dword [0x46f8d8]
push edx
call fcn.0043c18f
add esp, 4
mov dword [0x46f8d8], 0
xor al, al
ret 4
mov eax, dword [0x46f8d8]
push 0
push 0
push eax
call fcn.0043c582
mov ecx, dword [0x46f8d8]
push ecx
push 1
push 0x10
push 0x46f8e0
call fcn.0043caa9
add esp, 0x1c
cmp eax, 1
jne 0x408836
mov al, al
ret 4

Function at 0x408890
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x46b8c4]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [0x46f8f0]
add eax, 1
cmp eax, dword [0x46f8e4]
push esi
mov esi, ecx
mov dword [0x46f8f0], eax
jne 0x4088d4
xor al, al
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0043b64b
add esp, 0x408
ret
mov eax, dword [0x46f8f4]
mov ecx, dword [0x46f8d8]
push 0
push eax
push ecx
call fcn.0043c582
mov edx, dword [0x46f8d8]
push edx
push 1
lea eax, [esp + 0x18]
push 2
push eax
call fcn.0043caa9
mov ecx, dword [0x46f8d8]
movsx edx, word [esp + 0x20]
push ecx
push 1
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0043caa9
movsx ecx, word [esp + 0x30]
lea eax, [esp + 0x34]
add esp, 0x2c
mov byte [esp + ecx + 8], 0
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408930
sub eax, edx
push eax
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.00405920
mov eax, dword [0x46f8d8]
push eax
push 1
lea ecx, [esi + 0x1c]
push 4
push ecx
call fcn.0043caa9
mov edx, dword [0x46f8d8]
push edx
push 1
lea eax, [esi + 0x20]
push 4
push eax
call fcn.0043caa9
mov ecx, dword [0x46f8d8]
push ecx
push 1
lea edx, [esi + 0x24]
push 4
push edx
call fcn.0043caa9
mov eax, dword [0x46f8d8]
push eax
push 1
push 4
add esi, 0x28
push esi
call fcn.0043caa9
mov ecx, dword [0x46f8d8]
add esp, 0x40
push ecx
call fcn.0043c79f
mov ecx, dword [esp + 0x40c]
add esp, 4
pop esi
mov dword [0x46f8f4], eax
xor ecx, esp
mov al, 1
call fcn.0043b64b
add esp, 0x408
ret
Function at 0x4089d0
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [0x46f8d8]
push ebp
mov ebp, dword [esp + 8]
push esi
push 0
push eax
push ecx
call fcn.0043c582
add esp, 0xc
cmp edi, dword [0x46f8d4]
jbe 0x408a06
push edi
call fcn.0043bda2
mov esi, eax
add esp, 4
test esi, esi
jne 0x408a0c
pop esi
xor al, al
pop ebp
ret 8
mov esi, dword [0x46f8d0]
mov edx, dword [0x46f8d8]
push ebx
push edx
push 1
push edi
push esi
xor bl, bl
call fcn.0043caa9
add esp, 0x10
cmp eax, 1
jne 0x408a77
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [0x46f8e0]
cmp eax, 0x64
jne 0x408a4b
push edi
push esi
lea ecx, [esp + 0x18]
push ecx
push ebp
call sub.zlib1.dll_uncompress
add esp, 0x10
jmp 0x408a72
cmp eax, 0x65
jne 0x408a77
lea eax, [edi - 5]
test eax, eax
mov dword [esp + 0x14], eax
jbe 0x408a77
push 5
push esi
lea edx, [esp + 0x1c]
push edx
lea eax, [esi + 5]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
call sub.LZMA.dll_LzmaUncompress
test eax, eax
sete bl
cmp esi, dword [0x46f8d0]
je 0x408a88
push esi
call fcn.0043c46d
add esp, 4
mov al, bl
pop ebx
pop esi
pop ebp
ret 8

Function at 0x40ca85
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40cabe
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040ca20
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040b634
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40e886
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40e8c9
call fcn.0041b489
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40e8c9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40e8e4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040e43d
test ebx, ebx
mov esi, eax
je 0x40e8e2
test edi, edi
je 0x40e8e2
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40f283
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.0041b489
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40f2ba
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0040ee95
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x40f312
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x40f332
cmp dword [edi + 0x54], 0
jne 0x40f332
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041b489
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0040f2d9
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x410352
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x46b8c4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0x11c]
jne 0x410392
push 0x456808
push 4
push eax
call fcn.0043e128
push eax
call fcn.00408a90
add esp, 0x10
jmp 0x4103a4
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x410412
push edi
call fcn.0043dd0a
mov edi, dword [eax]
call fcn.0043dd0a
and dword [eax], 0
lea eax, [ebp - 0x11c]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x118]
push esi
push eax
call fcn.0043bd34
add esp, 0x18
mov ebx, eax
call fcn.0043dd0a
cmp dword [eax], 0
je 0x4103f2
call fcn.0043dd0a
push dword [eax]
call fcn.00408c73
pop ecx
jmp 0x4103f9
call fcn.0043dd0a
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x410412
cmp ebx, esi
jae 0x410412
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
jmp 0x410414
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043b64b
leave
ret
Function at 0x4114ea
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x45186f
call fcn.0043d8c4
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41150f
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41155b
call fcn.00411f77
push eax
lea ecx, [ebp - 0x10]
call fcn.004016e0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f4da
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401610
mov eax, esi
call fcn.0043d99c
ret 8

Function at 0x4134a1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4134e7
call fcn.0041b489
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4134e7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x41352a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x413513
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x413513
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x413527
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x42030e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0041b489
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
jne 0x420339
xor eax, eax
jmp 0x4203dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 8], eax
je 0x420332
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x420332
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00408c43
mov edi, eax
xor eax, eax
cmp word [esi + 6], ax
pop ecx
jbe 0x42038e
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x42037d
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.0041f15e
push edi
mov ebx, eax
call fcn.00408c6e
test ebx, ebx
pop ecx
je 0x4203d0
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.0041f7f7
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.0041f8a9
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4

Function at 0x422661
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42268f
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4226ad
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004225cb
jmp 0x4226ad
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4226ad
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004225cb
test edi, edi
mov eax, edi
jne 0x422697
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x46eaa8]
test ecx, ecx
je 0x422770
jmp 0x422660
ret 8

Function at 0x43b64b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46b8c4]
jne 0x43b655
repz ret
jmp fcn.004410d8
Function at 0x43c80d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x43c84a
cmp dword [ebp + 0x14], edi
je 0x43c84a
cmp ecx, edi
jne 0x43c851
call fcn.0043dd0a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0043bbee
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x43c865
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x43c886
cmp ebx, 0xffffffff
je 0x43c875
push ebx
push edi
push ecx
call fcn.0043d3d0
add esp, 0xc
cmp esi, edi
je 0x43c832
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x43c832
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x43c8a2
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x43c8a9
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x43c99a
test word [esi + 0xc], 0x10c
je 0x43c8fd
mov eax, dword [esi + 4]
test eax, eax
je 0x43c8fd
jl 0x43c9fb
cmp ebx, eax
mov edi, ebx
jb 0x43c8ce
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x43c9a2
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0043ba6d
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x43c992
cmp ebx, dword [ebp - 0xc]
jb 0x43c96a
cmp dword [ebp - 0xc], 0
je 0x43c927
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x43c91c
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x43c923
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x43c932
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x43c932
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x43c9ce
push eax
push dword [ebp - 8]
push esi
call fcn.00444e35
pop ecx
push eax
call fcn.0044694c
add esp, 0xc
test eax, eax
je 0x43ca0d
cmp eax, 0xffffffff
je 0x43c9fb
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x43c992
push esi
call fcn.0044626b
cmp eax, 0xffffffff
pop ecx
je 0x43c9ff
cmp dword [ebp - 4], 0
je 0x43c9ce
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x43c8b1
mov eax, dword [ebp + 0x14]
jmp 0x43c84c
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x43c9b9
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0043d3d0
add esp, 0xc
call fcn.0043dd0a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x43c842
cmp dword [ebp + 0xc], 0xffffffff
je 0x43c9e4
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0043d3d0
add esp, 0xc
call fcn.0043dd0a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x43c842
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x43c84c
or dword [esi + 0xc], 0x10
jmp 0x43c9ff
Function at 0x443ec8
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x46bba8]
je 0x443ee3
inc edi
cmp edi, 0x17
jb 0x443ed4
cmp edi, 0x17
jae 0x444063
push ebp
push 3
call fcn.0044b89b
cmp eax, 1
pop ecx
je 0x44402f
push 3
call fcn.0044b89b
test eax, eax
pop ecx
jne 0x443f17
cmp dword [0x46b8c0], 1
je 0x44402f
cmp ebx, 0xfc
je 0x444062
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x46f288
push ebp
call fcn.0043e128
add esp, 0xc
test eax, eax
je 0x443f4d
push esi
push esi
push esi
push esi
push esi
call fcn.0043baf2
add esp, 0x14
push 0x104
mov esi, 0x46f2a1
push esi
push 0
mov byte [0x46f3a5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x443f91
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0043e128
add esp, 0xc
test eax, eax
je 0x443f91
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0043baf2
add esp, 0x14
push esi
call fcn.0043dbd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x443fd6
push esi
call fcn.0043dbd0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x46f59c
push 0x45c364
sub ecx, eax
push ecx
push eax
call fcn.0043d44a
add esp, 0x14
test eax, eax
je 0x443fd6
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0043baf2
add esp, 0x14
jmp 0x443fd8
xor esi, esi
push 0x45c360
push ebx
push ebp
call fcn.0043e214
add esp, 0xc
test eax, eax
je 0x443ff8
push esi
push esi
push esi
push esi
push esi
call fcn.0043baf2
add esp, 0x14
push dword [edi*8 + 0x46bbac]
push ebx
push ebp
call fcn.0043e214
add esp, 0xc
test eax, eax
je 0x44401a
push esi
push esi
push esi
push esi
push esi
call fcn.0043baf2
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0044b6de
add esp, 0xc
jmp 0x444062
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x444062
cmp ebp, 0xffffffff
je 0x444062
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x46bbac]
push dword [esi]
call fcn.0043dbd0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret