joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100406a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, 4
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesSystem
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10040708
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x18]
push eax
push esi
push str.EnableLUA
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100406fd
cmp dword [esp + 4], esi
je 0x100406fd
lea esi, [eax + 1]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x100407d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x104
mov eax, dword [0x100bbef4]
xor eax, esp
mov dword [esp + 0x100], eax
mov al, 0x65
mov byte [esp + 3], al
mov byte [esp + 7], al
mov byte [esp + 0xd], al
lea eax, [esp]
mov cl, 0x6f
push eax
push 0x100a1e3c
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x69
mov byte [esp + 0xa], 0x7a
mov byte [esp + 0xc], cl
mov byte [esp + 0xd], 0x66
mov byte [esp + 0xe], 0x52
mov byte [esp + 0x10], 0x73
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], 0x75
mov byte [esp + 0x13], 0x72
mov byte [esp + 0x14], 0x63
mov byte [esp + 0x16], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10040861
push edi
push esi
call eax
mov ecx, dword [esp + 0x100]
xor ecx, esp
call fcn.1007368d
add esp, 0x104
ret
mov ecx, dword [esp + 0x100]
xor ecx, esp
xor eax, eax
call fcn.1007368d
add esp, 0x104
ret

Function at 0x10040920
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp dword [0x100c0908], 0
jne 0x1004099f
push esi
push 0x100a1f34
push 0x100bf8f0
call fcn.1007568e
mov esi, eax
add esp, 8
test esi, esi
je 0x10040994
push 2
push 0xfffffffffffffff8
push esi
call fcn.10075543
push esi
push 4
lea eax, [esp + 0x18]
push 1
push eax
call fcn.100754a1
push esi
push 4
lea ecx, [esp + 0x2c]
push 1
push ecx
call fcn.100754a1
add esp, 0x2c
cmp dword [esp + 4], 0
jne 0x1004098b
cmp dword [esp + 8], 0x3848564f
jne 0x1004098b
mov dword [0x100c0904], 1
push esi
call fcn.10075189
add esp, 4
mov dword [0x100c0908], 1
pop esi
mov eax, dword [0x100c0904]
add esp, 8
ret
Function at 0x10040bf0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x234
mov eax, dword [0x100bbef4]
xor eax, esp
mov dword [esp + 0x230], eax
mov eax, dword [esp + 0x23c]
push ebp
xor ebp, ebp
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
call fcn.1006ee3f
test eax, eax
je 0x10040c52
lea eax, [ebp + 1]
pop ebp
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.1007368d
add esp, 0x234
ret
push esi
push edi
call fcn.10068be3
movzx edx, word [esp + 0x244]
mov esi, dword [eax + 8]
push 0x100a1f44
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
cmp edi, ebp
jne 0x10040c91
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.1007368d
add esp, 0x234
ret
push ebx
call fcn.100407d0
mov ebx, eax
cmp ebx, ebp
je 0x10040cce
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
je 0x10040cce
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
je 0x10040cce
mov eax, dword [esp + 0x10]
push 0x100a1f3c
push eax
call fcn.1007568e
mov esi, eax
add esp, 8
cmp esi, ebp
jne 0x10040cd2
xor eax, eax
jmp 0x10040cea
push esi
push ebx
push 1
push edi
call fcn.10075ee5
push esi
call fcn.10075189
add esp, 0x14
mov eax, 1
mov ecx, dword [esp + 0x240]
pop ebx
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1007368d
add esp, 0x234
ret

Function at 0x10041190
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x100411b0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x100411c6
push 0x80004005
call fcn.10001020
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
lea eax, [eax + eax + 2]
push eax
mov eax, dword [edi]
push esi
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
ret 0xc

Function at 0x100411f0
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x10041208
push 0x80004005
call fcn.10001020
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x10041215
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8
Function at 0x10041880
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x21c
mov eax, dword [0x100bbef4]
xor eax, esp
mov dword [esp + 0x218], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x22c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x100418ee
test ecx, ecx
je 0x100418e0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x100418fc
test ecx, ecx
je 0x100419a1
push ecx
jmp 0x1004199b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x1004196e
jmp 0x10041930
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.10041880
mov edi, eax
test edi, edi
jne 0x100419bd
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x10041930
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x10041985
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100419a1
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x224]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.1007368d
add esp, 0x21c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x100419cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x100419a3
Function at 0x100433b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x10093200
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100bbef4]
xor eax, ebp
mov dword [ebp + 0x404], 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 + 0x410]
mov edi, dword [ebp + 0x414]
mov ebx, dword [ebp + 0x418]
xor edx, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp], edx
push 2
push edx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
mov dword [ebp - 0x20], esi
jne 0x10043432
call fcn.10041010
mov edi, eax
jmp 0x1004351c
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1004344b
call fcn.10041010
jmp 0x10043513
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x1c], ebx
jne 0x10043466
call fcn.10041010
jmp 0x10043513
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [edi + 1]
cmp eax, edi
mov dword [ebp - 0x14], edi
jae 0x1004349c
lea eax, [ebp + 4]
cmp dword [ebp], eax
je 0x1004348a
lea ecx, [ebp]
call fcn.10041800
lea ecx, [ebp - 0x18]
call fcn.10041790
mov eax, 0x8007000e
jmp 0x10043532
push eax
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.10041f20
mov dword [ebp - 4], 1
jmp 0x100434d0
mov eax, dword [ebp]
test eax, eax
jne 0x100434de
mov edi, 0x8007000e
jmp 0x10043515
push edi
push eax
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x100434f7
call fcn.10041010
jmp 0x10043513
mov ecx, dword [ebp]
mov edx, dword [ebp + 0x41c]
mov word [ecx + eax*2], 0
mov eax, dword [ebp]
push edx
push eax
lea ecx, [ebp - 0x28]
call fcn.10042ef0
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x10043530
lea ecx, [ebp]
call fcn.10041800
lea esp, [esp]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.1007368d
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10046ab0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x100934a8
mov eax, dword fs:[0]
push eax
sub esp, 0x808
mov eax, dword [0x100bbef4]
xor eax, esp
mov dword [esp + 0x804], eax
push ebp
push esi
push edi
mov eax, dword [0x100bbef4]
xor eax, esp
push eax
lea eax, [esp + 0x818]
mov dword fs:[0], eax
mov edi, dword [esp + 0x828]
mov dword [esp + 0x10], 0
push 0x7fe
lea eax, [esp + 0x1a]
push 0
push eax
mov dword [esp + 0x82c], 2
mov word [esp + 0x20], 0
call fcn.100736a0
mov ecx, dword [esp + 0x840]
mov ebp, dword [esp + 0x83c]
mov esi, dword [esp + 0x838]
add esp, 0xc
push ecx
push 0x400
lea edx, [esp + 0x1c]
push edx
push 0x100990d0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.10003640
lea eax, [esi - 0x10]
mov byte [esp + 0x820], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10046b7c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x820], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10046ba0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x834]
add eax, 0xfffffff0
mov dword [esp + 0x820], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10046bce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x818]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.1007368d
add esp, 0x814
ret
Function at 0x1005f790
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
sub esp, 0x208
mov eax, dword [0x100bbef4]
xor eax, esp
mov dword [esp + 0x204], eax
call fcn.1003e070
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1005f7ba
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 2
jne 0x1005f7d1
xor eax, eax
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.1007368d
add esp, 0x208
ret
push esi
push 0x20
call fcn.10074908
mov esi, eax
add esp, 4
xor eax, eax
test esi, esi
je 0x1005f8a4
mov ecx, dword [esp + 0x210]
mov dword [esi], eax
lea edx, [esi + 0x14]
push edx
mov dword [esi + 4], eax
push 4
mov dword [esi + 0xc], eax
push esi
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
push 0x1005efe0
mov dword [esi + 0x18], eax
push eax
mov dword [esi + 0x1c], eax
push eax
mov dword [esi + 8], ecx
call fcn.100765c4
mov dword [esi + 4], eax
push 0x1ff
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.100736a0
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x30]
push str.Globalxscript__d
push edx
call fcn.10075b93
add esp, 0x30
lea eax, [esp + 8]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esi + 0xc], eax
jne 0x1005f88c
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call fcn.1007482b
add esp, 4
xor eax, eax
pop esi
mov ecx, dword [esp + 0x204]
xor ecx, esp
call fcn.1007368d
add esp, 0x208
ret
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, esi
mov ecx, dword [esp + 0x208]
pop esi
xor ecx, esp
call fcn.1007368d
add esp, 0x208
ret

Function at 0x1005f8c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b48b0
push 0x100749d0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100bbef4]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x1005f95f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1005f95f
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x1005f95f
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1005f95f
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005fa90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
push esi
mov esi, dword [0x100c2214]
test esi, esi
je 0x1005fab9
lea esp, [esp]
lea eax, [esp + 4]
push eax
push 0x40
push 0x10000
push esi
call sub.KERNEL32.dll_VirtualProtect
mov esi, dword [esi + 4]
test esi, esi
jne 0x1005faa0
pop esi
pop ecx
ret
Function at 0x1005fe60
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100c2220], eax
je 0x1005fe76
mov eax, 0x10dd
pop ecx
ret
push ebp
push esi
mov esi, dword [0x100c2230]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x1005fec4
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0xc]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call sub.KERNEL32.dll_VirtualProtect
cmp dword [esi + 4], ebp
jne 0x1005feb3
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x1005feb3
call fcn.1005fd10
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.10060bb8
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1005fe85
mov dword [0x100c2230], ebp
call fcn.1005fac0
mov esi, dword [0x100c222c]
cmp esi, ebp
je 0x1005fef8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.10060bb8
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x1005fee0
pop ebx
pop edi
pop esi
mov dword [0x100c222c], ebp
mov dword [0x100c2220], ebp
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x100601d0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x100c2224]
test eax, eax
jne 0x1006024c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x100601ee
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.10060b8d
mov esi, eax
add esp, 4
test esi, esi
jne 0x10060204
lea edi, [eax + 8]
jmp 0x10060221
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10060238
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.10060bb8
add esp, 4
pop esi
mov dword [0x100c2224], edi
mov eax, edi
mov dword [0x100c2228], 0
pop edi
ret 4
mov eax, dword [0x100c222c]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x100c222c], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x10060530
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x100c2220], eax
je 0x10060548
mov eax, 0x10dd
pop ecx
ret 0xc
mov eax, dword [0x100c2224]
test eax, eax
jne 0x10060642
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x10060566
lea eax, [ebp + 6]
pop ebp
pop ecx
ret 0xc
cmp dword [ebp], 0
jne 0x10060581
mov eax, 6
mov dword [0x100c2228], ebp
mov dword [0x100c2224], eax
pop ebp
pop ecx
ret 0xc
push ebx
push esi
push edi
push 0x18
call fcn.10060b8d
mov esi, eax
add esp, 4
test esi, esi
jne 0x1006059c
lea edi, [eax + 8]
jmp 0x10060623
mov eax, dword [esp + 0x1c]
mov ebx, dword [ebp]
push 0
push eax
call fcn.1005fdf0
movzx ecx, byte [ebx + 0x17]
mov edi, dword [ebx + 0x18]
sub edi, ecx
test ecx, ecx
je 0x10060615
cmp ecx, 0x17
ja 0x10060615
cmp dword [ebx + 0x1c], eax
jne 0x10060615
lea edx, [esp + 0x10]
push edx
push 0x40
push ecx
push edi
mov dword [esp + 0x20], 0
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x100605e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x10060623
mov ecx, dword [0x100c2230]
mov dword [esi + 8], ebp
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], edi
mov dword [esi + 4], 1
mov eax, dword [esp + 0x10]
pop edi
mov dword [esi + 0x14], eax
mov dword [esi], ecx
mov dword [0x100c2230], esi
pop esi
pop ebx
xor eax, eax
pop ebp
pop ecx
ret 0xc
cmp dword [0x100c221c], 0
mov edi, 9
jne 0x10060629
mov dword [0x100c2224], edi
test esi, esi
je 0x10060636
push esi
call fcn.10060bb8
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov dword [0x100c2228], ebp
pop ebp
pop ecx
ret 0xc

Function at 0x100645dc
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x10064615
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.1006459f
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.10063417
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x10066100
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 0x10066143
call fcn.10068be3
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10066143
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1006615e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.10065cba
test ebx, ebx
mov esi, eax
je 0x1006615c
test edi, edi
je 0x1006615c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x10066db5
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10095f36
call fcn.10076e30
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x10066dda
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x10066e26
call fcn.10066e2e
push eax
lea ecx, [ebp - 0x10]
call fcn.100011e0
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.10040fe0
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001040
mov eax, esi
call fcn.10076f08
ret 8
Function at 0x100678cf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x1009603a
call fcn.10076e63
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.10068be3
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x1006791a
call fcn.10068be3
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x1006792b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x10067938
or eax, 0xffffffff
jmp 0x10067a94
mov ecx, esi
call fcn.10067421
mov dword [ebp - 0x14], eax
call fcn.100635c6
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x100679b6
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x100679b6
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x100679b6
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.10062163
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x100679b6
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x100679b6
mov ecx, ebx
call fcn.10066cb6
test eax, eax
je 0x100679b6
push 0
mov ecx, ebx
call fcn.10066cd1
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.10064fe6
push dword [ebp - 0x14]
call fcn.1006351e
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.100676d7
xor edi, edi
cmp eax, edi
je 0x10067a13
test byte [esi + 0x3c], 0x10
je 0x100679fd
push 4
pop edi
mov ecx, esi
call fcn.10066b73
test ax, 0x100
je 0x100679f3
push 5
pop edi
push edi
mov ecx, esi
call fcn.100630c1
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x10067a13
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.10066d38
or dword [ebp - 4], 0xffffffff
jmp 0x10067a3e
cmp dword [ebp - 0x28], edi
je 0x10067a4c
push 1
mov ecx, ebx
call fcn.10066cd1
cmp dword [ebp - 0x2c], edi
je 0x10067a5c
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x10067a75
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x10067a75
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.1006745b
cmp dword [esi + 0x58], edi
je 0x10067a91
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.10076f08
ret
Function at 0x1006d71e
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x100bbef4]
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 - 0xc]
jne 0x1006d75b
push 0x100a6630
push 4
push eax
call fcn.10076dc4
push eax
call fcn.10001b00
add esp, 0x10
jmp 0x1006d76d
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006d7d8
push edi
call fcn.10076fb0
mov edi, dword [eax]
call fcn.10076fb0
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.10076f56
add esp, 0x18
mov ebx, eax
call fcn.10076fb0
cmp dword [eax], 0
je 0x1006d7b8
call fcn.10076fb0
push dword [eax]
call fcn.10060c7c
pop ecx
jmp 0x1006d7bf
call fcn.10076fb0
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x1006d7d8
cmp ebx, esi
jae 0x1006d7d8
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x1006d7da
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1007368d
leave
ret