joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102fd85
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x102fdbd
test byte [eax + 0x1c], 1
je 0x102fdbd
cmp byte [eax + 0x19], 5
jb 0x102fdbd
push 0x1002bc4
push 0x237
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
mov eax, dword [esi + 0x20c]
xor ebx, ebx
mov dword [ebp - 4], 0x80004005
cmp eax, ebx
je 0x102fdee
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x102fdee
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20c], ebx
cmp dword [esi + 0x20c], ebx
jne 0x102fe74
push edi
lea edi, [esi + 0x200]
mov dword [edi], ebx
mov dword [esi + 0x204], ebx
mov ebx, dword [esi + 0x108]
jmp 0x102fe38
lea eax, [ebp - 8]
push eax
mov ecx, ebx
call fcn.01018d59
test eax, eax
je 0x102fe29
mov ecx, dword [eax]
add dword [edi], ecx
mov eax, dword [eax + 4]
add dword [esi + 0x204], eax
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x102fe35
call fcn.01013792
mov ebx, dword [ebx + 0x28]
test ebx, ebx
jne 0x102fe0d
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0xa0]
push eax
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esi + 0x210]
push eax
xor edi, edi
push edi
push esi
push 0x102e792
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20c], eax
cmp eax, edi
je 0x102fe73
mov dword [ebp - 4], edi
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret

Function at 0x1032f56
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1032f71
push 0x80004005
call fcn.01015fdb
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1032f73
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10338a5
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], esi
mov dword [ebp - 0x210], esi
mov dword [ebp - 0x20c], esi
call fcn.01016b31
mov edi, eax
cmp edi, esi
je 0x1033917
lea ecx, [ebp - 0x214]
call fcn.01016abe
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01039921
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1033935
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x214]
call fcn.010338a5
cmp eax, esi
jne 0x1033980
lea eax, [ebp - 0x224]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - 0x208], 0x100
call edi
test eax, eax
je 0x103391f
lea ecx, [ebp - 0x214]
call fcn.01016abe
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x218]
call fcn.01033820
lea ecx, [ebp - 0x214]
mov esi, eax
call fcn.01016abe
mov eax, esi
jmp 0x1033907
Function at 0x1034a24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x109f03a
call fcn.010399e4
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x424], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call fcn.0103378d
mov dword [ebp - 0x41c], eax
cmp eax, esi
jne 0x1034a7c
call fcn.0105cc2a
mov esi, eax
jmp 0x1034b85
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, esi
jne 0x1034a95
call fcn.0105cc2a
jmp 0x1034b77
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x428], eax
cmp eax, esi
je 0x1034a8b
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
mov dword [ebp - 0x420], edi
cmp eax, edi
jae 0x1034afb
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1034ae1
lea ecx, [ebp - 0x418]
call fcn.01033564
mov esi, 0x8007000e
lea ecx, [ebp - 0x424]
call fcn.01033473
mov eax, esi
call fcn.01039a4f
ret 0x10
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.01033c82
mov dword [ebp - 4], 1
jmp 0x1034b29
cmp dword [ebp - 0x418], esi
jne 0x1034b38
mov esi, 0x8007000e
jmp 0x1034b79
push edi
push dword [ebp - 0x418]
push edi
push dword [ebp - 0x428]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x1034a8b
mov edx, dword [ebp - 0x418]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x418]
lea ecx, [ebp - 0x430]
call fcn.010348c2
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1034ae6
lea ecx, [ebp - 0x418]
call fcn.01033564
jmp 0x1034ae6
Function at 0x1037749
Capabilities:
Create thread

Disassembly:
push 0x10
mov eax, 0x109f198
call fcn.0103996e
mov esi, ecx
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x1037784
test byte [eax + 0x1c], 1
je 0x1037784
cmp byte [eax + 0x19], 7
jb 0x1037784
push dword [ebp + 8]
push 0x1004d88
push 0x11
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
push 1
push esi
lea ecx, [ebp - 0x1c]
call fcn.0103708b
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ebx
cmp dword [esi + 0x4c], ebx
je 0x1037866
lea edi, [esi + 0x1c]
mov ecx, edi
call fcn.01037c79
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0x10377cb
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0103705b
mov eax, dword [eax]
mov dword [eax], ebx
cmp dword [ebp - 0x14], ebx
jne 0x10377b7
mov eax, dword [esi + 0x4c]
mov byte [ebp - 4], 1
cmp eax, ebx
jne 0x10377db
mov eax, 0x1005140
push eax
lea ecx, [ebp - 0x14]
call fcn.01036ef1
push 1
push 0x10000
push dword [ebp - 0x14]
call fcn.0107e869
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x1037831
push eax
call fcn.0107f0da
test eax, eax
je 0x1037831
push dword [ebp + 8]
mov ecx, esi
call fcn.010369e2
mov esi, eax
cmp esi, ebx
jl 0x1037847
push ebx
push ebx
push ebx
push 0x10375b4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x1037847
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1037847
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1037845
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x14]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x103786b
mov esi, 0x80004005
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x1037896
test byte [eax + 0x1c], 1
je 0x1037896
cmp byte [eax + 0x19], 7
jb 0x1037896
push esi
push 0x1004d88
push 0x12
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
cmp byte [ebp - 0x18], bl
je 0x10378a4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, esi
call fcn.01039a22
ret 4
Function at 0x10378b3
Capabilities:
Get common file path

Disassembly:
push 0x218
mov eax, 0x109f1c3
call fcn.010399e4
mov esi, ecx
mov dword [ebp - 0x224], esi
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10378f4
test byte [eax + 0x1c], 1
je 0x10378f4
cmp byte [eax + 0x19], 7
jb 0x10378f4
push 0x1004d88
push 0x13
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b76
push 0x10a6c68
lea ecx, [ebp - 0x220]
call fcn.0101d8c4
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ebx
cmp dword [esi + 0x18], ebx
je 0x10379f0
lea eax, [ebp - 0x21c]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, ebx
je 0x103792f
cmp eax, esi
jb 0x103794d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x1037943
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jne 0x10379f0
push 0x1004e68
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push 0x1004e58
push eax
mov byte [ebp - 4], 1
call fcn.01024dad
add esp, 0x10
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x10379a1
test byte [eax + 0x1c], 1
je 0x10379a1
cmp byte [eax + 0x19], 5
jb 0x10379a1
push dword [ebp - 0x220]
push 0x1004d88
push 0x14
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01015b9c
mov esi, dword [ebp - 0x224]
push 2
push 0xa
push dword [ebp - 0x220]
push dword [esi + 0x18]
call fcn.0107ecf7
test eax, eax
jne 0x10379d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x10379d1
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x10379f0
mov dword [esi + 0x18], ebx
jmp 0x10379f0
mov eax, dword [0x10a60d8]
cmp eax, 0x10a60d8
je 0x1037a1b
test byte [eax + 0x1c], 1
je 0x1037a1b
cmp byte [eax + 0x19], 7
jb 0x1037a1b
push edi
push 0x1004d88
push 0x15
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010160ad
mov ecx, dword [ebp - 0x220]
add ecx, 0xfffffff0
call fcn.010178c2
mov eax, edi
call fcn.01039a4f
ret
Function at 0x1037a82
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push 4
pop esi
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0x20019
push eax
mov ebx, 0x1004ea0
push ebx
push 0x80000001
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], eax
call edi
test eax, eax
jne 0x1037b07
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1037af1
cmp dword [ebp - 8], eax
je 0x1037af8
mov dword [ebp - 0x14], 1
jmp 0x1037af8
mov dword [ebp - 0xc], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
jmp 0x1037b0e
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 1
jne 0x1037b61
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push ebx
push 0x80000002
call edi
test eax, eax
jne 0x1037b61
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1037b58
cmp dword [ebp - 8], eax
je 0x1037b58
mov dword [ebp - 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x103912b
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0103906c
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x103919e
cmp dword [ebp - 0x94], 5
jb 0x10391bf
jmp 0x10391bb
cmp dword [ebp - 0x88], 1
jne 0x10391bf
cmp dword [ebp - 0x94], 4
ja 0x10391bb
jne 0x10391bf
cmp dword [ebp - 0x90], 0
jbe 0x10391bf
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x100504c
call fcn.01032a0a
test eax, eax
jge 0x10391e0
mov byte [0x10a6964], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01039921
leave
ret
Function at 0x1039817
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x10a17f8
call fcn.01039b78
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10a8eb8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10395d2
cmp eax, esi
jne 0x10395c5
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10395d5
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10395ac
xor esi, esi
inc esi
mov eax, dword [0x10a8eb4]
cmp eax, esi
jne 0x10395e8
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1039617
mov eax, dword [0x10a8eb4]
test eax, eax
jne 0x1039611
mov dword [0x10a8eb4], esi
push 0x1001974
push 0x1001968
call fcn.0103950e
pop ecx
pop ecx
test eax, eax
je 0x1039617
jmp 0x103973b
mov dword [0x10a6d00], esi
mov eax, dword [0x10a8eb4]
cmp eax, esi
jne 0x103963b
push 0x1001964
push 0x1001928
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10a8eb4], 2
cmp dword [ebp - 0x20], ebx
jne 0x1039648
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10a8ec4], ebx
je 0x1039669
push 0x10a8ec4
call fcn.01039f39
pop ecx
test eax, eax
je 0x1039669
push ebx
push 2
push ebx
call dword [0x10a8ec4]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x103973b
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x10396d3
cmp cx, bx
je 0x103968e
cmp dword [ebp - 0x1c], ebx
jne 0x10396d3
movzx ecx, word [eax]
cmp cx, bx
je 0x10396a3
cmp cx, 0x20
ja 0x10396a3
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x103968e
test byte [ebp - 0x40], 1
je 0x10396af
movzx ecx, word [ebp - 0x3c]
jmp 0x10396b2
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10a6cfc], eax
cmp dword [0x10a6cf0], ebx
jne 0x1039718
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x10396e4
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x1039678
cmp dword [0x10a6d00], ebx
jne 0x1039726
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10a6cfc]
jmp 0x1039747
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01039bbd
ret
call fcn.0103a07e
jmp 0x103956f
Function at 0x103a8a2
Capabilities:
Query service status

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
cmp edi, esi
je 0x103a8c7
cmp dword [ebp + 8], esi
je 0x103a8c7
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x103a8d1
mov esi, 0x80004003
jmp 0x103a982
push 0x20001
push esi
push esi
mov dword [edi], esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x103a96c
push ebx
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
je 0x103a94a
push 6
pop ecx
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x103a92b
cmp dword [ebp - 0x1c], 4
jne 0x103a941
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
jmp 0x103a941
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x103a93f
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x103a960
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x103a95e
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
jmp 0x103a982
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, esi
jle 0x103a980
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x10487e0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0x12
mov edi, 0x100848c
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
je 0x1048826
push 0x20
lea ecx, [ebp - 0x44]
or eax, 0x200
push ecx
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
test eax, eax
je 0x1048826
lea edi, [ebp - 0x44]
movzx eax, word [ebp + 8]
push eax
push edi
push 0x1008480
push dword [ebp + 0x10]
push esi
call fcn.0103e1ed
mov ecx, dword [ebp - 4]
add esp, 0x14
pop edi
xor ecx, ebp
pop esi
call fcn.01039921
leave
ret 0xc
Function at 0x10528a9
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10a6184]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x102
ja 0x1052928
push ebx
push 0x100ade4
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01051c16
test eax, eax
jl 0x105292d
push 8
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
test ebx, ebx
je 0x1052912
xor eax, eax
jmp 0x105292d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x105292d
and eax, 0xffff
or eax, 0x80070000
jmp 0x105292d
mov eax, 0x8007007a
mov ecx, dword [ebp - 4]
mov dword [edi], ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.01039921
leave
ret 4
Function at 0x10559f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [0x10a712c], 0
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 8], ebx
mov esi, 0x80000000
je 0x1055a87
cmp byte [0x10a70f8], 0
mov al, byte [0x10a7130]
je 0x1055a34
cmp al, 4
jae 0x1055a29
test al, al
jne 0x1055a87
test byte [0x10a7128], 1
jne 0x1055a6c
jmp 0x1055a87
cmp al, 4
jae 0x1055a3c
test al, al
jne 0x1055a87
mov eax, dword [0x10a7118]
mov ecx, dword [0x10a711c]
and eax, 1
and ecx, esi
or eax, ecx
je 0x1055a87
mov eax, dword [0x10a7120]
mov edi, dword [0x10a7124]
mov ecx, eax
mov edx, edi
and ecx, 1
and edx, esi
cmp ecx, eax
jne 0x1055a87
cmp edx, edi
jne 0x1055a87
push 0x100a8c8
push 0x100a908
push dword [0x10a7104]
push dword [0x10a7100]
call fcn.01040120
mov ecx, ebx
call fcn.0104f044
mov dword [ebp - 4], eax
test eax, eax
jl 0x1055b0e
mov edi, dword [ebp + 0xc]
push 0x100b3e8
push dword [ebp + 8]
mov dword [ebx + 0xc], edi
push edi
mov dword [ebp - 4], 0x8004005a
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x1055b06
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1055b06
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp + 0xc]
call fcn.0104fce5
mov edi, eax
test edi, edi
je 0x1055aff
mov ecx, dword [ebp - 8]
push dword [ebp + 0x10]
mov eax, dword [ecx + 0xc]
push eax
push edi
call fcn.01055891
push edi
mov dword [ebp - 4], eax
call fcn.0104a430
jmp 0x1055b06
mov dword [ebp - 4], 0x8007000e
mov ecx, dword [ebp - 8]
call fcn.0104f07b
cmp dword [0x10a712c], 0
je 0x1055b8b
cmp byte [0x10a70f8], 0
mov al, byte [0x10a7130]
je 0x1055b38
cmp al, 4
jae 0x1055b2d
test al, al
jne 0x1055b8b
test byte [0x10a7128], 1
jne 0x1055b70
jmp 0x1055b8b
cmp al, 4
jae 0x1055b40
test al, al
jne 0x1055b8b
mov eax, dword [0x10a7118]
mov ecx, dword [0x10a711c]
and eax, 1
and ecx, esi
or eax, ecx
je 0x1055b8b
mov eax, dword [0x10a7120]
mov edi, dword [0x10a7124]
mov ecx, eax
mov edx, edi
and ecx, 1
and edx, esi
cmp ecx, eax
jne 0x1055b8b
cmp edx, edi
jne 0x1055b8b
push 0x100a8c8
push 0x100a918
push dword [0x10a7104]
push dword [0x10a7100]
call fcn.01040120
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x10588ac
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push esi
push edi
push dword [0x10a623c]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x10588cb
mov eax, 0x8000ffff
jmp 0x10588e7
cmp byte [esi + 0xc], 0
jne 0x10588e5
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov edi, eax
test edi, edi
jl 0x10588e5
mov byte [esi + 0xc], 1
mov eax, edi
pop edi
pop esi
ret

Function at 0x1058c34
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10a623c]
cmp eax, 0xffffffff
jne 0x1058c44
mov eax, 0x80004005
ret
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
jne 0x1058c5c
mov eax, 0x8004000a
jmp 0x1058cca
call sub.wmpdui.dll_DUserFlushMessages
call sub.wmpdui.dll_DUserFlushDeferredMessages
dec dword [esi + 4]
cmp dword [esi + 4], ebx
jg 0x1058cc8
push dword [esi]
call sub.wmpdui.dll_DeleteHandle
push esi
call fcn.0105b168
cmp byte [esi + 0xd], bl
je 0x1058c86
call dword [sym.imp.UxTheme.dll_BufferedPaintUnInit]
cmp byte [esi + 0xc], bl
je 0x1058c91
call dword [sym.imp.ole32.dll_CoUninitialize]
call fcn.0105ea35
cmp dword [0x10a73f0], ebx
je 0x1058cad
call fcn.0105ca7c
call fcn.0105cbe3
call fcn.010738fd
push dword [esi + 8]
call fcn.01079fe1
push esi
call fcn.0104a430
push ebx
push dword [0x10a623c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor eax, eax
pop esi
pop ebx
ret