joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478a5c
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4bb050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov al, byte [ebp + 8]
lea edx, [esi + 0x20]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], fcn.0045dc48
mov dword [esi + 0x18], fcn.00462345
mov dword [esi + 0x1c], fcn.0045dc2d
mov dword [edx + 4], fcn.0045dc48
mov dword [edx + 8], fcn.00462345
mov dword [edx + 0xc], fcn.0045dc2d
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0x1fff8
mov dword [edx], vtable.common::t_heap.0
mov dword [esi + 0x3c], fcn.0045dc48
mov dword [esi + 0x40], fcn.00462345
mov dword [esi + 0x44], fcn.0045dc2d
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0x8000
mov dword [esi + 0x38], vtable.common::t_heap.0
mov dword [esi + 0x50], 0
mov byte [esi + 0x54], al
mov dword [ebp - 4], 0
lea eax, [esi + 0x58]
mov dword [esi], vtable.t_hookConfigFile.0
mov dword [ebp + 8], eax
mov byte [eax + 4], 0
mov dword [eax + 8], 0x49de80
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], fcn.0045dc48
mov dword [eax + 0x20], fcn.00462345
mov dword [eax + 0x24], fcn.0045dc2d
mov dword [eax + 0x28], edx
mov dword [eax], vtable.t_hookConfigFile::t_setting.0
mov byte [eax + 0x30], 0
mov dword [eax + 0x34], str.cfwcnt
mov dword [eax + 0x38], 0
mov dword [eax + 0x3c], 0
mov dword [eax + 0x2c], vtable.n_config::t_int.0
mov byte [eax + 0x44], 0
mov dword [eax + 0x48], str.gmfnwcnt
mov dword [eax + 0x4c], 0
mov dword [eax + 0x50], 0
mov dword [eax + 0x40], vtable.n_config::t_int.0
mov byte [eax + 0x58], 0
mov dword [eax + 0x5c], str.version
mov dword [eax + 0x60], 0x49e110
mov dword [eax + 0x64], 0x49e110
mov dword [eax + 0x54], vtable.n_config::t_str.0
mov dword [eax + 0x68], 0
lea ecx, [esi + 0xc4]
mov dword [ebp + 8], ecx
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0x49e73c
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], 0
lea eax, [esi + 0x84]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], fcn.0045dc48
mov dword [ecx + 0x24], fcn.00462345
mov dword [ecx + 0x28], fcn.0045dc2d
mov dword [ecx], vtable.n_config::t_arraySection_class_t_hookConfigFile::t_item_.0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], eax
lea ecx, [esi + 0xf8]
mov dword [ebp + 8], ecx
mov byte [ecx + 4], 0
mov dword [ecx + 8], str.gmfn
mov dword [ecx + 0xc], edx
mov dword [ecx + 0x10], 0
lea eax, [esi + 0x98]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], fcn.0045dc48
mov dword [ecx + 0x24], fcn.00462345
mov dword [ecx + 0x28], fcn.0045dc2d
mov dword [ecx], vtable.n_config::t_arraySection_class_t_hookConfigFile::t_item_.0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00449960
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x44d730
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478cbf
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4bb050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov byte [ebp - 0x14], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov esi, dword [0x4cc828]
test esi, esi
jne 0x44d790
push 8
call fcn.00459e2c
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [0x4cc828], esi
mov dword [esi + 4], 0xffffffff
mov dword [esi], vtable.t_tlsIme.0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x44d89a
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0044db70
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test ebx, ebx
jne 0x44d897
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x18]
test eax, eax
je 0x44d7e1
lea edi, [eax + 0x124]
mov eax, dword [edi]
test eax, eax
jne 0x44d7d5
push 0x128
call fcn.00459e2c
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.00434790
mov dword [esi + 0x124], 0
mov dword [edi], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, esi
call fcn.0042c700
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x18]
lea edi, [ebp - 0x18]
test eax, eax
je 0x44d832
lea edi, [eax + 0x124]
mov eax, dword [edi]
test eax, eax
jne 0x44d826
push 0x128
call fcn.00459e2c
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp - 0x10], esi
call fcn.00434790
push 0x49edb0
push 0x49c2fc
mov dword [esi + 0x124], 0
push esi
mov dword [edi], esi
call fcn.00434d80
mov ebx, dword [0x4cc82c]
add esp, 0xc
test ebx, ebx
jne 0x44d897
push 0x8204
call fcn.00459e2c
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0044c750
mov ebx, eax
mov dword [0x4cc82c], ebx
mov edi, dword [ebp - 0x18]
test edi, edi
je 0x44d8e0
nop
mov esi, edi
mov edi, dword [esi + 0x124]
test esi, esi
je 0x44d8dc
mov dword [esi], vtable.t_str.0
cmp byte [esi + 0x11c], 0
jne 0x44d8ce
mov ecx, dword [esi + 8]
lea eax, [esi + 0xc]
cmp ecx, eax
je 0x44d8ce
push ecx
call fcn.0045dc2d
add esp, 4
push 0x128
push esi
call fcn.00459e5c
add esp, 8
test edi, edi
jne 0x44d8a0
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44db70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478d37
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4bb050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x14], esi
push 0x8204
mov dword [ebp - 4], 0
call fcn.00459e2c
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0044c750
mov edi, eax
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x44dc2a
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x44dc04
push eax
push edi
call fcn.00459e5c
mov ecx, dword [ebp + 8]
add esp, 8
call fcn.0042c660
push 0x49edd8
push 0x49c2fc
push eax
call fcn.00434d80
add esp, 0xc
jmp 0x44dc5b
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp + 8]
push 0x49edc8
call fcn.0042c400
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x44dc5b
mov ecx, edi
call fcn.0044d060
push 0x8204
push edi
call fcn.00459e5c
add esp, 8
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4531e0
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4bbad4], 0
push esi
mov esi, edx
je 0x453235
push dword [0x4bbadc]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x453235
cmp dword [eax], 1
jbe 0x453235
mov eax, dword [eax + 8]
mov eax, dword [eax + 4]
test eax, eax
je 0x453235
push 0
push 0x4c2554
push 0x4c2458
push 0
push eax
call fcn.00476c82
mov ecx, eax
add esp, 0x14
test ecx, ecx
je 0x453235
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov byte [esi], al
mov al, 1
pop esi
ret
xor al, al
pop esi
ret

Function at 0x454ca0
Capabilities:
Create thread

Disassembly:
cmp byte [0x4c46b0], 0
jne 0x454ce2
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0x455a90
mov dword [0x4c449c], eax
mov byte [0x4c46b0], 1
call fcn.0045de29
add esp, 0xc
push 0xffffffffffffffff
push dword [0x4c449c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
ret 4

Function at 0x454e30
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x24], 0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 4], 0
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14
Function at 0x456d80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4bb050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x210], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [ebp - 0x220], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x210]
test esi, esi
jne 0x456ee1
xor esi, esi
test eax, eax
je 0x456e0c
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], edi
test esi, esi
jne 0x456ee1
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], 0x100
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x456ea7
nop dword [eax]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x210]
call fcn.00456d80
mov esi, eax
test esi, esi
jne 0x456edb
lea eax, [ebp - 0x228]
mov dword [ebp - 0x214], 0x100
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x456e60
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x456ebe
push eax
call ebx
mov dword [ebp - 0x210], 0
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x20c], 0
call fcn.00456050
mov esi, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x456ee8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045a329
mov esp, ebp
pop ebp
ret 4
Function at 0x4570a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484a8b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4bb050]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x45714c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x45714c
call fcn.00455980
mov esi, eax
jmp 0x45723c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x45716f
call fcn.00455980
jmp 0x45722f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x45718d
call fcn.00455980
jmp 0x45722f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4571ae
mov esi, 0x8007000e
jmp 0x457231
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00455850
jmp 0x4571d8
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x4571ef
mov esi, 0x8007000e
jmp 0x457231
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x45720f
call fcn.00455980
jmp 0x45722f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00456f00
mov esi, eax
test edi, edi
je 0x45723c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x457255
lea ecx, [ebp - 0x418]
call fcn.00441fd0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045a329
mov esp, ebp
pop ebp
ret 0x10
Function at 0x459060
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [0x4c228c]
push ebx
mov ebx, dword [0x4c2288]
push esi
mov esi, 1
push edi
mov edi, ecx
mov dword [ebp - 8], edi
cmp ebx, edx
jae 0x4590e8
test esi, esi
js 0x4590e5
mov edi, dword [ebx]
test edi, edi
je 0x4590de
mov eax, dword [edi + 8]
mov dword [ebp - 4], 0
test eax, eax
jne 0x45909f
xor esi, esi
jmp 0x4590de
lea ecx, [ebp - 4]
push ecx
push 0x48b76c
push dword [edi + 0xc]
call eax
mov esi, eax
test esi, esi
js 0x4590cb
mov eax, dword [edi + 0x10]
add eax, 4
push eax
push 5
push 4
push dword [ebp - 4]
push dword [edi]
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
mov esi, eax
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4590d8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [0x4c228c]
add ebx, 4
cmp ebx, edx
jb 0x459083
mov edi, dword [ebp - 8]
test esi, esi
js 0x4591a5
jne 0x4591a1
cmp byte [edi + 0x3c], 0
je 0x459183
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x45916c
lea eax, [ebp - 8]
push eax
push 0
push edi
push 0x458ac0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x459141
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x30], ebx
test ebx, ebx
je 0x45916c
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x459163
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x34]
add ecx, ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x45918b
mov ecx, edi
mov esi, 0x80004005
call fcn.004592d0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x4591a5
mov ecx, edi
call fcn.004592d0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [edi + 0x3c], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x459410
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push 0xffffffffffffffff
call sub.IMM32.dll_ImmDisableIME
lea ecx, [ebp - 0xc]
call fcn.0042c460
lea eax, [ebp - 0xc]
push eax
call fcn.00430d30
mov ecx, eax
call fcn.0042f860
cmp byte [0x4cc7d9], 0
je 0x459453
lea ecx, [ebp - 0xc]
or esi, 0xffffffff
call fcn.0042c470
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jns 0x459490
cmp esi, 0x80010106
jne 0x45953b
push str.Mscoree.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x459497
lea ecx, [ebp - 0xc]
call fcn.0042c470
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov byte [0x4c46f6], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, 0x4c46b8
call fcn.00458b00
cmp al, 1
jne 0x459529
push dword [ebp + 0x14]
mov ecx, 0x4c46b8
call fcn.00459060
mov esi, eax
test esi, esi
jne 0x459504
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push eax
push eax
push eax
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jle 0x459506
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call edi
lea eax, [ebp - 0x28]
push eax
call ebx
push 0
push 0
push 0
lea eax, [ebp - 0x28]
push eax
call esi
test eax, eax
jg 0x4594e4
pop edi
pop ebx
jmp 0x459506
js 0x45952c
mov ecx, 0x4c46b8
call fcn.004592d0
cmp byte [0x4c46f4], 0
mov esi, eax
je 0x45952c
push dword [0x4c46f0]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45952c
mov esi, dword [ebp - 4]
cmp byte [0x4c46f6], 0
je 0x45953b
call dword [sym.imp.ole32.dll_CoUninitialize]
lea ecx, [ebp - 0xc]
call fcn.0042c470
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x459560
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xc
call fcn.0045dc48
mov esi, eax
add esp, 4
test esi, esi
jne 0x459582
push eax
call fcn.00459650
add esp, 4
xor eax, eax
pop esi
pop ebp
ret
push str.INPUT_METHOD_DATA_SERVER_SHARE_MEMONRY_NAME_0A20D8DB_E784_4A4A_953D_34933761FF50
xorps xmm0, xmm0
push 0
movq qword [esi], xmm0
push 6
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x4595c2
push str.INPUT_METHOD_DATA_SERVER_SHARE_MEMONRY_NAME_0A20D8DB_E784_4A4A_953D_34933761FF50
push 0x1664
push eax
push 4
call fcn.00459820
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x45961c
test eax, eax
je 0x45961c
push 0x1664
push 0
push 0
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 8], eax
test eax, eax
jne 0x45960b
mov eax, dword [esi]
test eax, eax
je 0x4595f3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0045dc2d
push 0x30000
call fcn.00459650
add esp, 8
xor eax, eax
pop esi
pop ebp
ret
cmp dword [ebp + 8], 0
je 0x459617
mov dword [eax], 0x1aaee
mov eax, esi
pop esi
pop ebp
ret
mov eax, dword [esi + 8]
test eax, eax
je 0x45962a
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esi]
test eax, eax
je 0x459637
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0045dc2d
push 0x20000
call fcn.00459650
add esp, 8
xor eax, eax
pop esi
pop ebp
ret

Function at 0x45ad23
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x45ad62
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x45ad62
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x45ad62
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x45ad62
cmp dword [ecx + 0x74], 0xe
jbe 0x45ad62
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x46705d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48f704
push 0x48f6fc
push str.FlsAlloc
push 0x1f
call fcn.00466edc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x467091
push dword [ebp + 8]
mov ecx, esi
call dword [0x48a2fc]
call esi
jmp 0x467097
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4670db
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48f714
push 0x48f70c
push str.FlsGetValue
push 0x21
call fcn.00466edc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x467112
push dword [ebp + 8]
mov ecx, esi
call dword [0x48a2fc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46711a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48f71c
push 0x48f714
push str.FlsSetValue
push 0x22
call fcn.00466edc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x467154
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x48a2fc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x46c08a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4c5258]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46c0ca
cmp byte [ebx], 0xa
jne 0x46c0ca
or byte [edi + eax + 0x28], 4
jmp 0x46c0cf
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x46c1ce
mov dl, byte [eax]
cmp dl, 0x1a
je 0x46c1b1
inc eax
cmp dl, 0xd
je 0x46c0fb
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x46c121
cmp eax, ecx
jae 0x46c12f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x46c0e3
jmp 0x46c1ce
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46c1ac
cmp dword [ebp - 0x10], 0
je 0x46c1ac
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4c5258]
test byte [eax + edi + 0x28], 0x48
je 0x46c186
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46c171
mov byte [esi], dl
jmp 0x46c182
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4c5258]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46c1ce
cmp byte [ebp - 1], 0xa
jne 0x46c195
cmp esi, ebx
jne 0x46c195
mov byte [esi], 0xa
jmp 0x46c1cd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046cd6a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46c1ce
mov byte [esi], 0xd
jmp 0x46c1cd
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4c5258]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46c1cb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46c1ce
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret