joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4930f0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49e66f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf8
mov eax, dword [0x4bc410]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
xor eax, ebp
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0xfc], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
movzx edx, byte [esi + 0xd]
xor eax, eax
mov ecx, 0x32
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
movzx eax, byte [esi + 0xf]
movzx ecx, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xc]
push ecx
movzx ecx, byte [esi + 0xb]
push edx
movzx edx, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 9]
push ecx
movzx ecx, byte [esi + 8]
push edx
movzx edx, byte [esi + 7]
push eax
movzx eax, byte [esi + 6]
push ecx
movzx ecx, byte [esi + 5]
push edx
movzx edx, byte [esi + 4]
push eax
movzx eax, byte [esi + 3]
push ecx
movzx ecx, byte [esi + 2]
push edx
movzx edx, byte [esi + 1]
push eax
movzx eax, byte [esi]
push ecx
push edx
push eax
lea ecx, [esp + 0x70]
push str._02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x_02x
push ecx
mov dword [esp + 0x154], 1
call dword [sym.imp.MSVCR71.dll_sprintf]
mov al, byte [ebp + 0x10]
add esp, 0x48
test al, al
je 0x4931cf
lea edx, [esp + 0x30]
push edx
call dword [sym.imp.MSVCR71.dll__strupr]
add esp, 4
jmp 0x4931d3
lea eax, [esp + 0x30]
lea ecx, [esp + 0x14]
push eax
call dword [sym.imp.MSVCP71.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__]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x14]
mov dword [esp + 0xc], 1
mov byte [esp + 0x10c], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00496ace
mov esp, ebp
pop ebp
ret

Function at 0x493230
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax], 0x4ac6ec
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x67452301
mov dword [eax + 0x10], 0xefcdab89
mov dword [eax + 0x14], 0x98badcfe
mov dword [eax + 0x18], 0x10325476
ret
Function at 0x496e31
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x4af3f8
call fcn.00497038
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x496e71
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x496e71
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x496e89
cmp eax, 0x20b
je 0x496e76
mov dword [ebp - 0x1c], ebx
jmp 0x496e9d
cmp dword [ecx + 0x84], 0xe
jbe 0x496e71
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x496e97
cmp dword [ecx + 0x74], 0xe
jbe 0x496e71
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4bdb9c], 0xffffffff
or dword [0x4bdba0], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4bdb54]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4bdb50]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4bdb98], eax
call fcn.00497136
call fcn.004971d6
cmp dword [0x4bc430], ebx
jne 0x496efd
push fcn.004971d6
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004971c4
push 0x4bb100
push 0x4bb0fc
call sub.MSVCR71.dll__initterm
push 0x49717a
call fcn.00496b5a
mov eax, dword [0x4bdb4c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4bdb48]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___getmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x496f51
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x4bb0f8
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x496fcf
cmp al, bl
je 0x496f7b
cmp dword [ebp - 0x20], ebx
jne 0x496fcf
mov al, byte [esi]
cmp al, bl
je 0x496f8b
cmp al, 0x20
ja 0x496f8b
inc esi
mov dword [ebp - 0x24], esi
jmp 0x496f7b
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x58], 1
je 0x496fa7
movzx eax, word [ebp - 0x54]
jmp 0x496faa
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.0049756a
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x496fc7
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x497024
cmp al, 0x22
jne 0x496fde
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR71.dll__ismbblead]
pop ecx
test eax, eax
je 0x496ff1
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x496f69
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00497073
ret
Function at 0x10002952
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x42c
mov eax, 0x10054256
call fcn.10032ebe
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
xor ebx, ebx
mov dword [ebp - 0x430], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], ebx
mov dword [ebp - 0x418], ebx
mov byte [ebp - 4], 1
push 0x60
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x100029cf
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x100029cf
call fcn.10001f84
mov edi, eax
jmp 0x10002ae6
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x100029f2
call fcn.10001f84
jmp 0x10002ad9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x100029e8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x420], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x10002a25
mov edi, 0x8007000e
jmp 0x10002adb
push 2
pop ecx
mov byte [ebp - 4], cl
mul ecx
mov dword [ebp - 0x438], eax
mov dword [ebp - 0x434], edx
cmp edx, ebx
ja 0x10002b10
cmp eax, 0xffffffff
ja 0x10002b10
cmp eax, 0x400
jbe 0x10002a5f
push eax
lea ecx, [ebp - 0x418]
call fcn.1000509c
jmp 0x10002a6b
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x10002a8f
cmp dword [ebp - 0x418], 0
je 0x10002a1b
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x41c]
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x100029e8
xor edx, edx
mov eax, dword [ebp - 0x418]
mov word [eax + ecx*2], dx
push dword [ebp + 0x14]
push dword [ebp - 0x418]
lea ecx, [ebp - 0x42c]
call fcn.100035ba
mov edi, eax
test esi, esi
je 0x10002ae6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov byte [ebp - 4], bl
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x10002b02
lea ecx, [ebp - 0x418]
call fcn.10005093
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.10032e0b
ret 0x10
push 0x80070216
call fcn.10001f2d
int3
Function at 0x100059c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10054788
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x10075098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10005a03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.100187c0
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10005a2c
lea eax, [esi + 8]
jmp 0x10005a2e
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x10005a3e
cmp dword [ebx + 0x14], 8
jb 0x10005a40
mov ebx, dword [ebx]
jmp 0x10005a40
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x10005a61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10005a61
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10005a8a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10005a9f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100321e9
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100321d8
mov esp, ebp
pop ebp
ret 4
Function at 0x10005ae0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100547b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x10075098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x10005b23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.10018a20
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x10005b4d
lea ecx, [esi + 8]
jmp 0x10005b4f
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x10005b64
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x10005b66
mov eax, dword [ebx]
jmp 0x10005b66
xor eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x10005bb1
call ecx
cmp eax, 5
jne 0x10005bab
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x10005b9b
cmp dword [ebx + 0x14], 8
jb 0x10005b9d
mov ebx, dword [ebx]
jmp 0x10005b9d
xor ebx, ebx
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x10005bcf
call ecx
cmp eax, 0xb7
jne 0x10005bc4
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.10014c60
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x10005bf5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x10005c0a
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.100321e9
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100321d8
mov esp, ebp
pop ebp
ret 4
Function at 0x10010b60
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
jmp 0x10019da0
sub esp, 0x214
mov eax, dword [0x10075098]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x20c
lea eax, [esp + 0xc]
mov edi, ecx
push 0
push eax
call fcn.10034380
add esp, 0xc
lea eax, [esp + 8]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10019f42
push ebx
xor eax, eax
push ebp
mov word [esp + 0x21a], ax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.1003d089
mov ecx, dword [edi + 0x14]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ecx
cmp ebp, ecx
ja 0x10019e3b
mov ebx, edi
cmp ecx, 8
jb 0x10019e17
mov ebx, dword [edi]
lea esi, [ebp*2]
mov dword [edi + 0x10], ebp
push esi
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.10033dd0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x10019f27
cmp ebp, 0x7ffffffe
ja 0x10019f5a
mov esi, ebp
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10019e5b
mov esi, SysReAllocString
jmp 0x10019e79
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10019e71
mov esi, SysReAllocString
jmp 0x10019e79
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10019e8b
or ecx, 0xffffffff
jmp 0x10019e93
cmp ecx, 0x1000
jb 0x10019eba
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.100321f7
add esp, 4
test eax, eax
je 0x10019f5f
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x10019ecd
test ecx, ecx
je 0x10019ecb
push ecx
call fcn.100321f7
add esp, 4
mov ebx, eax
jmp 0x10019ecd
xor ebx, ebx
mov dword [edi + 0x14], esi
lea eax, [esp + 0x14]
lea esi, [ebp*2]
mov dword [edi + 0x10], ebp
push esi
push eax
push ebx
call fcn.10033850
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [esp + 0x10]
cmp eax, 8
jb 0x10019f25
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x10019f1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019f5f
mov eax, edx
push ecx
push eax
call fcn.100321e9
add esp, 8
mov dword [edi], ebx
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.100321d8
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
xor al, al
pop edi
xor ecx, esp
call fcn.100321d8
add esp, 0x214
ret
call fcn.10001aa0
call fcn.1003d039
int3

Function at 0x10010b80
Capabilities:
Delete file

Disassembly:
mov ecx, dword [esp + 4]
jmp fcn.1001a1a0
Function at 0x10012900
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x10012938
mov edx, dword [esp + 4]
test edx, edx
je 0x10012938
cmp dword [eax], 0xffffffff
je 0x10012938
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10012938
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x10012940
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x1001297a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x1001297a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x1001297a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1001297a
cmp edi, dword [esi]
jne 0x1001297a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x10012a20
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x10012ace
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.10012990
test al, al
je 0x10012ace
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.10012990
test al, al
je 0x10012ace
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x10012aa4
cmp dword [esp + 0x14], edi
jne 0x10012aa4
mov eax, dword [esi]
test eax, eax
jne 0x10012a91
xor bl, bl
jmp 0x10012aa4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x10012a8d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.10012990
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10012c80
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x10075098]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.10034380
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10012dc7
cmp dword [esi + 4], 6
push edi
ja 0x10012cdb
jne 0x10012d63
cmp dword [esi + 8], 2
jb 0x10012d63
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x10012d63
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10012d63
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10012d63
movups xmm0, xmmword [0x1006b760]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x1006b770]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10012d63
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10012d63
cmp word [edi + 2], ax
jbe 0x10012d63
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x10012dae
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.10034380
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x10012dae
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.100321d8
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.100321d8
add esp, 0x140
ret
Function at 0x10013640
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x10075098]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.100321f7
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.10034380
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x1001369c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.100321d8
add esp, 0x120
ret
Function at 0x10019da0
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [esp + 4]
jmp 0x10019da0
sub esp, 0x214
mov eax, dword [0x10075098]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x20c
lea eax, [esp + 0xc]
mov edi, ecx
push 0
push eax
call fcn.10034380
add esp, 0xc
lea eax, [esp + 8]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec eax
cmp eax, 0x103
ja 0x10019f42
push ebx
xor eax, eax
push ebp
mov word [esp + 0x21a], ax
lea eax, [esp + 0x10]
push esi
push eax
call fcn.1003d089
mov ecx, dword [edi + 0x14]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ecx
cmp ebp, ecx
ja 0x10019e3b
mov ebx, edi
cmp ecx, 8
jb 0x10019e17
mov ebx, dword [edi]
lea esi, [ebp*2]
mov dword [edi + 0x10], ebp
push esi
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.10033dd0
add esp, 0xc
xor eax, eax
mov word [esi + ebx], ax
jmp 0x10019f27
cmp ebp, 0x7ffffffe
ja 0x10019f5a
mov esi, ebp
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x10019e5b
mov esi, SysReAllocString
jmp 0x10019e79
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x10019e71
mov esi, SysReAllocString
jmp 0x10019e79
lea eax, [edx + ecx]
cmp esi, eax
cmovb esi, eax
lea eax, [esi + 1]
lea ecx, [eax + eax]
cmp eax, 0x7fffffff
jbe 0x10019e8b
or ecx, 0xffffffff
jmp 0x10019e93
cmp ecx, 0x1000
jb 0x10019eba
lea eax, [ecx + 0x23]
or edx, 0xffffffff
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.100321f7
add esp, 4
test eax, eax
je 0x10019f5f
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x10019ecd
test ecx, ecx
je 0x10019ecb
push ecx
call fcn.100321f7
add esp, 4
mov ebx, eax
jmp 0x10019ecd
xor ebx, ebx
mov dword [edi + 0x14], esi
lea eax, [esp + 0x14]
lea esi, [ebp*2]
mov dword [edi + 0x10], ebp
push esi
push eax
push ebx
call fcn.10033850
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [esp + 0x10]
cmp eax, 8
jb 0x10019f25
lea ecx, [eax*2 + 2]
mov eax, dword [edi]
cmp ecx, 0x1000
jb 0x10019f1b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10019f5f
mov eax, edx
push ecx
push eax
call fcn.100321e9
add esp, 8
mov dword [edi], ebx
pop esi
pop ebp
pop ebx
mov al, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.100321d8
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
xor al, al
pop edi
xor ecx, esp
call fcn.100321d8
add esp, 0x214
ret
call fcn.10001aa0
call fcn.1003d039
int3