joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5d729d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea eax, [ebp - 0x40]
mov dword [ebp - 8], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x18], 0
mov word [ebp - 0x5c], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0
push 1
lea eax, [ebp - 0x60]
push eax
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [ebp - 4], eax
push 0
push 0
push 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp - 0x64]
push eax
push 0x40
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x5d7420
cmp dword [ebp - 0x64], 0x40
jne 0x5d7420
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
sub eax, 0x46534252
cmp eax, 1
sbb eax, eax
neg eax
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
je 0x5d741b
mov eax, dword [0x5de1d8]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx + 0x14]
cmp dword [eax + 0x30], ecx
jne 0x5d741b
mov dword [ebp - 0x14], 0
jmp 0x5d736d
inc dword [ebp - 0x14]
mov eax, dword [0x5e0588]
cmp dword [ebp - 0x14], eax
jge 0x5d73b7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax*4 + 0x5e0c48]
push eax
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x5d739d
jmp 0x5d73b7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax*4 + 0x5e0c48]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
inc eax
add dword [ebp - 0xc], eax
jmp 0x5d736a
mov eax, dword [0x5e0588]
cmp dword [ebp - 0x14], eax
jne 0x5d7414
mov ebx, 0x1770
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
sub ebx, eax
sub ebx, 4
cmp ebx, dword [ebp - 0xc]
jle 0x5d7414
mov eax, dword [ebp - 0xc]
add eax, 0x5dee18
mov ecx, dword [0x5e0588]
mov dword [ecx*4 + 0x5e0c48], eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [0x5e0588]
mov eax, dword [eax*4 + 0x5e0c48]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
inc dword [0x5e0588]
mov dword [ebp - 0x1c], 1
jmp 0x5d743e
cmp dword [ebp + 0x14], 2
je 0x5d7434
cmp dword [ebp + 0x14], 5
jne 0x5d743e
cmp dword [ebp + 8], 4
jne 0x5d743e
push 0
lea eax, [ebp - 0x60]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov eax, dword [ebp - 0x1c]
jmp 0x5d745c
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5d76d6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x5d76f2
xor eax, eax
jmp 0x5d7797
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x5d7707
inc dword [ebp - 4]
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jae 0x5d7732
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + ecx]
mov al, byte [edx + 0x5de500]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x5d7704
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov dword [ebp - 4], 0
jmp 0x5d7762
inc dword [ebp - 4]
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 4], eax
jae 0x5d778d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [eax + ecx]
mov al, byte [edx + 0x5de3f8]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov byte [ecx + edx], al
jmp 0x5d775f
mov eax, 1
jmp 0x5d7797
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5d788b
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x5d78a4
xor eax, eax
jmp 0x5d78f0
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 1
je 0x5d78be
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 2
jne 0x5d78ce
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x5d78e6
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
sub eax, 0x40
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, 1
jmp 0x5d78f0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x5d7a46
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
nop
leave
add esp, 4
popal
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
pushal
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
jmp 0x5d7a82
inc dword [ebp - 0xc]
mov eax, dword [0x5e0588]
cmp dword [ebp - 0xc], eax
jge 0x5d7ab7
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x5e0c48]
push eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
jne 0x5d7ab2
jmp 0x5d7ab7
jmp 0x5d7a7f
mov eax, dword [0x5e0588]
cmp dword [ebp - 0xc], eax
jl 0x5d7ae1
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call fcn.005d7029
add esp, 8
mov dword [ebp - 0x10], 1
jmp 0x5d7b11
cmp dword [0x5de0e4], 0
jne 0x5d7b02
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
mov dword [ebp - 0x10], eax
jmp 0x5d7b11
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
mov dword [ebp - 0x10], eax
popal
mov eax, dword [ebp - 0x10]
leave
ret 8
Function at 0x5d7ee6
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
nop
nop
leave
add esp, 4
popal
leave
add esp, 4
push ebp
mov ebp, esp
sub esp, 0x20
pushal
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
jmp 0x5d7f2e
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
shl eax, 2
cmp dword [eax + eax*4 + 0x5de648], 0xffffffff
je 0x5d7f62
mov eax, dword [ebp - 0x1c]
shl eax, 2
mov ecx, dword [ebp - 0x18]
cmp dword [eax + eax*4 + 0x5de648], ecx
jne 0x5d7f5d
jmp 0x5d7f62
jmp 0x5d7f2b
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x1c]
shl eax, 2
lea eax, [eax + eax*4]
add eax, 0x5de648
push eax
call fcn.005d7461
add esp, 0x18
test eax, eax
je 0x5d7fb6
cmp dword [ebp - 4], 0
je 0x5d7fb1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x1c]
shl ecx, 2
add dword [ecx + ecx*4 + 0x5de64c], eax
jmp 0x5d7fd3
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 4], eax
popal
mov eax, dword [ebp - 4]
leave
ret 0x14

Function at 0x5da25d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
lea eax, [ebp - 0x94]
mov dword [ebp - 0x94], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
test eax, eax
jne 0x5da285
xor eax, eax
leave
ret
mov eax, dword [ebp - 0x84]
xor ecx, ecx
sub eax, ecx
je 0x5da2b9
dec eax
je 0x5da299
dec eax
je 0x5da2ab
jmp 0x5da281
cmp dword [ebp - 0x8c], ecx
jne 0x5da2a5
push 4
jmp 0x5da2bb
jbe 0x5da2ab
push 5
jmp 0x5da2bb
cmp dword [ebp - 0x90], 5
sbb eax, eax
add eax, 7
leave
ret
push 3
pop eax
leave
ret

Function at 0x5dced1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
jle 0x5dcf03
push ebx
push edi
mov edi, dword [ebp + 8]
sub edi, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
push 4
pop ebx
lea ecx, [eax + esi]
mov eax, esi
cdq
idiv ebx
mov al, byte [edx + ebp + 0x10]
xor al, byte [ecx + edi]
inc esi
cmp esi, dword [ebp + 0x14]
mov byte [ecx], al
jl 0x5dcee4
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x119c1310
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x11a4f5e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0xb
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x1c]
mov eax, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea ecx, [esp + 0x10]
push ecx
push eax
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_GetClassInfoExW]
test eax, eax
jne 0x119c148a
push ebx
mov dword [esp + 0x14], 0x30
mov dword [esp + 0x18], 3
mov dword [esp + 0x1c], 0x119c1ae0
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
call edi
push 0x7f00
push ebx
mov dword [esp + 0x2c], eax
call dword [sym.imp.USER32.dll_LoadIconW]
push 0x7f00
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
push ebx
mov dword [esp + 0x30], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov edx, dword [esi]
mov ecx, esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
call dword [edx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
mov edx, dword [esp + 0x38]
mov esi, eax
mov ecx, esi
and ecx, 0xffff
push ecx
push edx
push str._CBaseWindow::RegisterWndClass__lpszClassName__s__regist__u_
push 0x11a62170
push 4
push 0x11a71844
call fcn.119fb230
mov eax, dword [esp + 0x50]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add esp, 0x18
push eax
call edi
cmp si, bx
jne 0x119c148a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x11a65ae0]
mov dword [esp + 0xc], ecx
mov edx, dword [esp + 0x38]
mov dword [esp + 0x48], ebx
push edx
push eax
lea eax, [esp + 0x14]
push str.RegisterClassEx_Failed_Err__08x_._Window_Class_Name:__s
push eax
call fcn.11a3dbed
mov ecx, dword [esp + 0x1c]
add esp, 0x10
push ecx
push str.CBaseWindow::RegisterWndClass_strMsg__s_
push 0x11a62170
push 4
push 0x11a71844
call fcn.119fb230
mov edx, dword [esp + 0x20]
add esp, 0x14
push edx
call edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0xffffffff
call fcn.11a40e9b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x40
ret
Function at 0x119c4fd0
Capabilities:
Print debug messages

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11a4f718
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
test esi, esi
push edi
mov ebx, ecx
je 0x119c5128
lea eax, [ebx + 0xd8]
mov ecx, 0x127
mov edi, eax
push eax
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x3c]
call fcn.119eaea0
mov ecx, dword [ebx + 0x350]
mov eax, dword [ebx + 0x34c]
mov edx, dword [ebx + 0x354]
mov dword [ebx + 0x48], ecx
lea ecx, [ebx + 0x2e0]
mov dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x348]
push ecx
lea ecx, [ebx + 0x40]
mov dword [ebx + 0x4c], edx
mov dword [ebx + 0x14], eax
call fcn.119eaea0
lea esi, [ebx + 0xd4]
lea edx, [ebx + 0x36c]
push edx
mov ecx, esi
call fcn.119eaea0
mov eax, dword [0x11a65ae0]
mov dword [esp + 0x1c], eax
mov ecx, dword [ebx + 0x358]
mov edx, dword [ebx + 0x364]
push ecx
push edx
lea eax, [esp + 0x24]
push str.ShowProcTypeIcon__d__dwTypeIcon__d_
push eax
mov dword [esp + 0x24], 0
call fcn.11a3dbed
mov ecx, dword [esp + 0x2c]
add esp, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x119c50c6
mov edx, dword [ebx + 4]
push edx
call fcn.11a42bbc
mov edi, eax
test edi, edi
je 0x119c50c6
mov eax, dword [ebx + 0x98]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x119c50c6
mov esi, dword [esi]
push 0
push edi
push esi
lea ecx, [ebx + 0x7c]
call fcn.11a3ea94
mov eax, dword [ebx + 0x35c]
mov cl, byte [ebx + 0x344]
test eax, eax
mov byte [ebx + 0x18], cl
jne 0x119c50e3
mov dword [ebx + 0x35c], 0xa
mov eax, dword [ebx + 0x360]
test eax, eax
je 0x119c50f6
mov dword [ebx + 0x74], 0x14
jmp 0x119c50fd
mov dword [ebx + 0x74], 0
mov eax, dword [ebx + 0x364]
test eax, eax
je 0x119c5110
mov dword [ebx + 0x78], 0x10
jmp 0x119c5117
mov dword [ebx + 0x78], 0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.11a40e9b
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 4
Function at 0x119cba20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11a4fe60
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x24]
push esi
xor esi, esi
test ebx, ebx
je 0x119cbb46
cmp dword [ebx], 1
jne 0x119cbb2b
push edi
lea edi, [ecx + 0x18]
mov ecx, 0xd6
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x28c]
mov eax, dword [ebx + 0x288]
lea edx, [esp + 0xc]
mov dword [esp + 0x14], ecx
push str._Y__m__d__H:_M:_S
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], 0
call fcn.119d1fd1
mov eax, dword [eax]
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x28], 0
call fcn.119ea350
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.11a40e9b
mov edx, dword [ebx + 0x280]
lea eax, [ebx + 0x290]
lea ecx, [ebx + 0x2f4]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
lea ecx, [ebx + 0x14]
push eax
mov eax, dword [ebx + 0xc]
lea edx, [ebx + 0x21c]
push ecx
mov ecx, dword [ebx + 4]
push edx
mov edx, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0x10]
push ecx
push edx
push eax
push 0x3f
push str._CPolicyMgr::SetSafeDocWMData__Line:_d__Flag__08x__Color__08x__Size__d__Transparency__d__FontName__s__Content__s__Time__s__IP__08x__UserName__s__HostName__s_
push 0x11a62170
push 4
push 0x11a71844
call fcn.119fb230
add esp, 0x3c
lea ecx, [esp + 0x2c]
mov esi, 1
mov dword [esp + 0x24], 0xffffffff
call fcn.119eabc0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
push 0x32
push str._CPolicyMgr::SetSafeDocWMData__Line__d__Data_is_not_valid...
push 0x11a62170
push 4
push 0x11a71844
call fcn.119fb230
add esp, 0x14
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x119cd4c0
Capabilities:
Print debug messages

Disassembly:
push 0xffffffffffffffff
push 0x11a50030
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x11a65ae0]
push esi
xor esi, esi
mov dword [esp + 4], eax
push str.TEC_OCULAR_SHAREMEM_FLOATTIP
lea ecx, [esp + 8]
push str.Global_s
push ecx
mov dword [esp + 0x4c], esi
call fcn.11a3dbed
add esp, 0xc
lea ecx, [esp + 8]
call fcn.119f9a80
mov edx, dword [esp + 4]
lea ecx, [esp + 0x30]
push edx
mov byte [esp + 0x44], 1
call fcn.11a41032
lea ecx, [esp + 8]
call fcn.119fa100
test eax, eax
je 0x119cd5a1
push edi
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.119fa3b0
push esi
lea ecx, [esp + 0x10]
call fcn.119fa400
mov ecx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
mov esi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
call fcn.119fa3e0
lea ecx, [esp + 0xc]
call fcn.119fa180
lea ecx, [esp + 0xc]
mov esi, 1
mov byte [esp + 0x44], 0
call fcn.119f9c20
lea ecx, [esp + 8]
mov dword [esp + 0x44], 0xffffffff
call fcn.11a40e9b
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 8
push str.Open_MapFile_Failed...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea ecx, [esp + 8]
mov byte [esp + 0x40], 0
call fcn.119f9c20
lea ecx, [esp + 4]
mov dword [esp + 0x40], 0xffffffff
call fcn.11a40e9b
mov ecx, dword [esp + 0x38]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 8
Function at 0x119e90b0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x119e9109
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x119e9109
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x119e9110
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x119e90ed
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x119e910b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x119eebe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x119eec30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x119eec30
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x119eec35
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x119eec1b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x119eec42
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x119f9820
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x119f9870
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x119f9a40
push 0
push 0
call fcn.119d4ab6
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
je 0x119f9870
mov ecx, dword [esi + 0x1c]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x119f985f
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x119f98c0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x119f98d4
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 8]
push 0x3e8
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x119f9921
mov eax, dword [esi + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push ecx
call edi
mov edx, dword [esi + 0x14]
push edx
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x119f9da0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x11a51548
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov eax, dword [esi + 0x20]
xor edi, edi
xor ebp, ebp
cmp eax, ebx
je 0x119f9dd2
call fcn.11a1c9c0
mov ebp, eax
mov eax, dword [esi + 0x18]
mov ecx, 0xc0000000
cmp eax, ebx
je 0x119f9de3
mov ecx, SysReAllocStringLen
mov eax, dword [esi + 0x24]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
cmp dword [eax - 8], ebx
je 0x119f9e38
push ebx
push 0x80
push 3
push ebp
push 3
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 4], eax
je 0x119f9e1e
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x14], eax
cmp dword [esi + 4], 0xffffffff
je 0x119f9f64
cmp dword [esp + 0x18], ebx
jne 0x119f9e38
cmp dword [esp + 0x14], ebx
je 0x119f9f64
mov eax, dword [esi + 0x18]
mov edi, 4
cmp eax, ebx
je 0x119f9e49
mov edi, 2
lea ebx, [esi + 0x28]
lea ecx, [esp + 0x10]
push ebx
call fcn.11a40c08
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x24], 0
test eax, eax
je 0x119f9e8f
mov edx, dword [ebx]
mov eax, dword [edx - 8]
test eax, eax
je 0x119f9e8f
call fcn.119fd790
test eax, eax
je 0x119f9e8f
push 0x11a69bf0
lea ecx, [esp + 0x14]
call fcn.11a41032
push ebx
lea ecx, [esp + 0x14]
call fcn.11a412c8
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
neg eax
sbb eax, eax
and eax, ecx
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0x10]
push eax
push 0
push edi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 8], eax
je 0x119f9f3e
mov edx, dword [esi + 0x18]
mov ecx, 6
test edx, edx
je 0x119f9ecb
mov ecx, 4
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0xc], eax
je 0x119f9f3e
mov eax, dword [esi + 0x10]
mov ebp, 1
test eax, eax
jne 0x119f9f19
mov eax, dword [esi + 4]
or ebx, 0xffffffff
cmp eax, ebx
je 0x119f9f1c
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x14]
mov eax, dword [esp + 0x18]
xor edi, edi
sub ecx, edx
sbb eax, edi
test eax, eax
jle 0x119f9f14
mov dword [esi + 0x10], ebx
jmp 0x119f9f1c
mov dword [esi + 0x10], ecx
jmp 0x119f9f1c
or ebx, 0xffffffff
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], ebx
call fcn.11a40e9b
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], 0xffffffff
call fcn.11a40e9b
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret