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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x1004ed39
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, edi
je 0x1004ed38
cmp dword [ebp + 8], edi
jne 0x1004ed38
push ebx
call fcn.100621c1
pop ecx
push edi
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004ed38
lea eax, [ebp - 4]
push eax
push 1
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1004ed2f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edi
push eax
push ecx
mov dword [ebp - 0x10], edi
call dword [edx + 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push dword [ebp + 8]
push dword [ebp - 8]
push eax
call dword [ecx + 0x10]
test eax, eax
jne 0x1004ed1d
push 0x10
call sub.gdiplus.dll_GdipAlloc
cmp eax, edi
je 0x1004ed18
push edi
push dword [ebp - 4]
mov ecx, eax
call fcn.10034edb
jmp 0x1004ed1a
xor eax, eax
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push dword [ebp - 8]
call fcn.100621bc
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [esi + 0xc]
cmp eax, edi
jne 0x1004ed44
xor eax, eax
jmp 0x1004ed75
mov ecx, dword [eax + 8]
mov dword [eax + 8], edi
cmp ecx, edi
mov ecx, dword [esi + 0xc]
je 0x1004ed60
cmp ecx, edi
je 0x1004ed5b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0xc], edi
jmp 0x1004ed40
call fcn.10034e93
mov ecx, dword [esi + 0xc]
mov dword [esi], eax
call fcn.10034eb7
mov dword [esi + 4], eax
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 4
Function at 0x1005348c
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
sub esp, 0x680
lea ebp, [esp - 4]
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x680], eax
push 0x18
mov eax, 0x10180607
call fcn.1008546d
mov eax, dword [ebp + 0x68c]
push eax
lea eax, [ebp + 0x270]
mov edi, ecx
push 0x1018a8f0
push eax
mov dword [ebp - 0x10], edi
call fcn.10004df5
add esp, 0xc
lea eax, [ebp]
push eax
lea eax, [ebp + 0x270]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x10053693
mov esi, 0x10187268
lea eax, [ebp]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x10053693
cmp word [ebp + 0x2c], 0x2e
je 0x100534f2
cmp word [ebp + 0x2e], 0
je 0x100534f2
cmp word [ebp + 0x2e], 0x2e
jne 0x10053523
cmp word [ebp + 0x30], 0
je 0x100534f2
test byte [ebp], 0x10
jne 0x100534f2
lea ecx, [ebp + 0x250]
xor bl, bl
call fcn.100283a1
and dword [ebp - 4], 0
lea eax, [ebp + 0x2c]
push str..znpf
push eax
call fcn.100885cc
test eax, eax
pop ecx
pop ecx
je 0x10053590
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x478]
push esi
mov byte [ebp + 0x26c], bl
push eax
inc bl
call fcn.10004df5
push str..znpf
call fcn.10085b54
mov edi, eax
lea eax, [ebp + 0x478]
push eax
call fcn.10085b54
sub eax, edi
mov edi, dword [ebp - 0x10]
add esp, 0x14
and word [ebp + eax*2 + 0x478], 0
lea eax, [ebp + 0x2c]
push str..sznpf
push eax
call fcn.100885cc
test eax, eax
pop ecx
pop ecx
je 0x100535e6
lea eax, [ebp + 0x2c]
push eax
lea eax, [ebp + 0x478]
push esi
mov bl, 1
push eax
mov byte [ebp + 0x26c], bl
call fcn.10004df5
push str..sznpf
call fcn.10085b54
mov edi, eax
lea eax, [ebp + 0x478]
push eax
call fcn.10085b54
sub eax, edi
mov edi, dword [ebp - 0x10]
add esp, 0x14
and word [ebp + eax*2 + 0x478], 0
test bl, bl
je 0x1005367b
lea eax, [ebp + 0x478]
push eax
lea ecx, [ebp + 0x250]
call fcn.10003610
lea eax, [ebp + 0x478]
push eax
call fcn.10027f63
test eax, eax
setne al
pop ecx
mov byte [ebp + 0x26d], al
mov eax, dword [edi + 8]
mov ecx, dword [eax + 4]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10051a72
jmp 0x1005364c
lea ecx, [ebp - 0x1c]
call fcn.10005225
lea ecx, [ebp + 0x478]
push ecx
mov ecx, eax
call fcn.100059c8
test eax, eax
je 0x1005367b
lea ecx, [ebp - 0x1c]
call fcn.10027a7f
mov eax, dword [edi + 8]
mov ecx, dword [eax + 8]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.10051a72
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10054d99
test al, al
je 0x1005362a
mov ecx, dword [edi + 8]
lea eax, [ebp + 0x250]
push eax
call fcn.10028fbb
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp + 0x250]
call fcn.100017c0
jmp 0x100534f2
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x680]
xor ecx, ebp
call fcn.1008545e
add ebp, 0x684
leave
ret 4
Function at 0x100542d9
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0xb40]
sub esp, 0xbc0
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0xb3c], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xb48]
mov esi, 0x3e6
xor ebx, ebx
push esi
lea eax, [ebp + 0x36e]
push ebx
push eax
mov word [ebp + 0x36c], bx
call fcn.10085bc0
push esi
lea eax, [ebp - 0x7a]
push ebx
push eax
mov word [ebp - 0x7c], bx
call fcn.10085bc0
push esi
lea eax, [ebp + 0x756]
push ebx
push eax
mov word [ebp + 0x754], bx
call fcn.10085bc0
add esp, 0x24
call fcn.100052f9
mov ecx, eax
call fcn.10019925
mov dword [ebp - 0x80], eax
call fcn.100052f9
mov ecx, eax
call fcn.10019955
push eax
lea eax, [ebp + 0x36c]
push 0x10187268
push eax
call fcn.10004df5
lea eax, [ebp + 0x36c]
push eax
call fcn.1001ceb2
mov esi, str..znpf
push esi
push edi
push dword [ebp - 0x80]
lea eax, [ebp + 0x754]
push str._sSkin_s_s
push eax
call fcn.10004df5
add esp, 0x24
lea eax, [ebp + 0x754]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100543cb
push esi
push edi
call fcn.100052f9
mov ecx, eax
call fcn.10019939
push eax
lea eax, [ebp + 0x754]
push str._sAllSkin_s_s
push eax
call fcn.10004df5
add esp, 0x14
lea eax, [ebp + 0x754]
push eax
push str.SCWBSkinInst.exe
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push str._s_s__untie__s
push eax
call fcn.10004df5
lea eax, [ebp - 0x7c]
push eax
call fcn.1001c7f7
push 0x101960e4
push edi
call fcn.100862d7
add esp, 0x20
test eax, eax
jne 0x1005440b
call fcn.1000ea44
push ebx
jmp 0x10054412
call fcn.1000ea44
push 1
mov edx, dword [eax]
push 0x5a
mov ecx, eax
call dword [edx + 0xc]
call fcn.1000ea44
mov edx, dword [eax]
push edi
push 0xa2
mov ecx, eax
call dword [edx + 8]
call fcn.1000ea44
mov edx, dword [eax]
mov esi, 0x9d
push esi
mov ecx, eax
call dword [edx]
mov edi, eax
inc edi
call fcn.1000ea44
mov edx, dword [eax]
push edi
push esi
mov ecx, eax
call dword [edx + 0xc]
call fcn.1000ea44
mov edx, dword [eax]
push edi
push esi
mov ecx, eax
call dword [edx + 0x48]
call fcn.100052f9
mov ecx, eax
call fcn.10019971
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push eax
mov ebx, 0x1018636c
push ebx
push str.IsModifyUIStyle64
mov edi, str.SetModify
push edi
mov dword [ebp - 0x80], eax
call esi
push dword [ebp - 0x80]
push ebx
push str.IsModifyUIStyle
push edi
call esi
push dword [ebp - 0x80]
push ebx
push str.IsTempModifyUIStyle64
push edi
call esi
push dword [ebp - 0x80]
push ebx
push str.IsTempModifyUIStyle
push edi
call esi
mov ecx, dword [ebp + 0xb3c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008545e
add ebp, 0xb40
leave
ret
Function at 0x10054538
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x3bc]
sub esp, 0x43c
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x3b8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0x3c4]
xor esi, esi
push 0x206
lea eax, [ebp + 0x1b2]
push esi
push eax
mov dword [ebp - 0x80], esi
mov word [ebp + 0x1b0], si
call fcn.10085bc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x228
mov ebx, eax
lea eax, [ebp - 0x78]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.10085bc0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x100545b0
push 0x101ebf0c
jmp 0x100545f8
lea eax, [ebp - 0x7c]
push eax
push esi
mov dword [ebp - 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x100545d2
cmp dword [ebp - 0x74], ebx
je 0x100545d8
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100545c3
jmp 0x100545ea
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp + 0x1b0]
push eax
call fcn.100860cd
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp + 0x1b0]
push eax
mov ecx, edi
call fcn.100015f0
mov ecx, dword [ebp + 0x3b8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008545e
add ebp, 0x3bc
leave
ret

Function at 0x100547a3
Capabilities:
Check if file exists

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x1c
mov eax, 0x1017c2df
call fcn.1008546d
call fcn.100052f9
mov ecx, eax
call fcn.10019925
push eax
lea ecx, [ebp - 0x28]
call fcn.100015f0
xor esi, esi
push str.SCWBHandInput.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], esi
call fcn.10003640
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x100547fa
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 0x206
test eax, eax
push esi
lea eax, [ebp + 2]
mov word [ebp], si
push eax
je 0x10054844
call fcn.10085bc0
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 8
jae 0x10054827
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp]
push 0x10196ca0
push eax
call fcn.10004df5
lea eax, [ebp]
push eax
call fcn.1001fcfd
add esp, 0x10
jmp 0x10054878
call fcn.10085bc0
add esp, 0xc
push str.SCWBTool.exe
call fcn.100052f9
mov ecx, eax
call fcn.10019925
push eax
lea eax, [ebp]
push str.__s_s__DownLoadHandInputByHand
push eax
call fcn.10004df5
lea eax, [ebp]
push eax
call fcn.1001fcfd
add esp, 0x14
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.100017c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.1008545e
add ebp, 0x20c
leave
ret
Function at 0x1005832f
Capabilities:
Check if file exists

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10207390]
xor eax, ebp
mov dword [ebp + 0x18c], eax
mov eax, dword [ebp + 0x198]
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
inc edi
push 0x101ebf0c
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x80], eax
mov dword [esi + 0x98], edi
call fcn.10003610
cmp dword [esi + 0x7c], 0
je 0x10058385
push 0x101960e4
lea ecx, [esi + 0x68]
call fcn.100059c8
test eax, eax
jne 0x1005838b
mov ebx, edi
mov dword [esi], edi
jmp 0x1005838f
xor ebx, ebx
mov dword [esi], ebx
and word [ebp - 0x7c], 0
push 0x206
lea eax, [ebp - 0x7a]
push 0
push eax
call fcn.10085bc0
xor eax, eax
add esp, 0xc
cmp dword [esi + 0xc], eax
je 0x100583de
mov dword [esi], eax
cmp dword [esi + 0x2c], 8
jb 0x100583bb
mov eax, dword [esi + 0x18]
jmp 0x100583be
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x7c]
push str._sTempSkinSkin.xml
push eax
call fcn.10004df5
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100583fe
cmp dword [esi + 0x2c], 8
jb 0x100583e9
mov eax, dword [esi + 0x18]
jmp 0x100583ec
lea eax, [esi + 0x18]
push eax
lea eax, [ebp - 0x7c]
push str._sSkinSkin.xml
push eax
call fcn.10004df5
add esp, 0xc
cmp dword [esi], 0
jne 0x10058455
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10058455
mov dword [esi], edi
call fcn.1000ea44
mov edx, dword [eax]
push 0
push 0x5a
mov ecx, eax
call dword [edx + 0xc]
call fcn.1000ea44
mov edx, dword [eax]
push 0x101960e4
mov edi, 0xa2
push edi
mov ecx, eax
call dword [edx + 8]
call fcn.1000ea44
mov edx, dword [eax]
push 0x5a
mov ecx, eax
call dword [edx + 0x14]
call fcn.1000ea44
mov edx, dword [eax]
push edi
mov ecx, eax
call dword [edx + 0x14]
mov ecx, esi
call fcn.1005819f
mov ecx, esi
call fcn.10057e0f
push dword [ebp - 0x80]
mov ecx, esi
call fcn.100572b8
mov ecx, dword [ebp + 0x18c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1008545e
add ebp, 0x190
leave
ret 4

Function at 0x1005c83b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x1005c8b4
push ebx
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.10088150
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0x10]
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push 0
push dword [ebp + 0x10]
call fcn.10034f15
pop ecx
pop ecx
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x1005e8b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x101813d3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x10207390]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x102178f8
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esp + 0x18], ebx
mov dword [ecx], 0x102178f8
mov dword [esi + 0x40], eax
mov dword [esi + 0x3c], eax
push ebx
push 0x101ebee8
mov byte [esp + 0x20], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], bl
mov byte [esi + 0x2c], bl
mov dword [esi + 0x30], ebx
call fcn.1005db50
mov dword [esi + 0x40], ebx
mov dword [esi + 0x3c], ebx
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x1005ea40
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x10181428
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10207390]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, ecx
mov ebp, dword [esp + 0x28]
xor edi, edi
cmp ebp, edi
jne 0x1005ea82
push edi
push edi
push edi
push 2
call fcn.10060340
xor al, al
jmp 0x1005ec1f
mov esi, dword [ebx + 0x18]
cmp esi, edi
je 0x1005eaa1
lea esp, [esp]
mov ecx, esi
mov eax, dword [ecx]
mov edx, dword [eax]
mov esi, dword [esi + 0x28]
push 1
call edx
cmp esi, edi
jne 0x1005ea90
push 2
or eax, 0xffffffff
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x1c], edi
push edi
push ebp
mov dword [ebx + 8], eax
mov dword [ebx + 4], eax
call fcn.1008cd74
push ebp
call fcn.1008cc7f
push 0
push 0
push ebp
mov edi, eax
call fcn.1008cd74
add esp, 0x1c
test edi, edi
jne 0x1005eae5
push edi
push edi
push edi
push 0xd
mov ecx, ebx
call fcn.10060340
xor al, al
jmp 0x1005ec1f
mov dword [esp + 0x14], 0x102178f8
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.1005dab0
lea eax, [edi + 1]
push eax
call fcn.10062191
push ebp
mov esi, eax
push 1
push edi
push esi
mov dword [esp + 0x3c], esi
mov byte [esi], 0
call fcn.1008cacc
add esp, 0x14
cmp eax, 1
je 0x1005eb55
push 0
push 0
push 0
push 2
mov ecx, ebx
call fcn.10060340
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
cmp eax, 0x102178f8
je 0x1005eb4e
push eax
call fcn.100621bc
add esp, 4
xor al, al
jmp 0x1005ec1f
mov ebp, dword [esp + 0x28]
mov byte [edi + ebp], 0
cmp byte [ebp], 0
mov eax, esi
je 0x1005ebc7
mov cl, byte [esi]
cmp cl, 0xa
jne 0x1005eb85
mov ecx, esi
sub ecx, eax
add ecx, 1
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.1005dc40
add esi, 1
mov eax, esi
jmp 0x1005ebc2
cmp cl, 0xd
jne 0x1005ebbf
mov ecx, esi
sub ecx, eax
test ecx, ecx
jle 0x1005eb9d
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.1005dc40
push 1
lea edx, [esp + 0x2c]
push edx
lea ecx, [esp + 0x1c]
mov byte [esp + 0x30], 0xa
call fcn.1005dc40
cmp byte [esi + 1], 0xa
jne 0x1005eb7e
add esi, 2
mov eax, esi
jmp 0x1005ebc2
add esi, 1
cmp byte [esi], 0
jne 0x1005eb65
sub esi, eax
je 0x1005ebd6
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.1005dc40
push ebp
call fcn.100621bc
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x18]
mov eax, dword [ebx]
mov eax, dword [eax + 8]
add esp, 4
push ecx
push 0
add edx, 8
push edx
mov ecx, ebx
call eax
cmp byte [ebx + 0x2c], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
jne 0x1005eb3e
cmp eax, 0x102178f8
je 0x1005ec1d
push eax
call fcn.100621bc
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8
Function at 0x1005efb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x101814a9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10207390]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
or eax, 0xffffffff
mov dword [esi + 8], eax
mov dword [esi + 4], eax
xor ebx, ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x102178f8
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
lea edi, [esi + 0x2c]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esp + 0x20], ebx
mov dword [edi], 0x102178f8
lea ebp, [esi + 0x30]
mov dword [ebp], 0x102178f8
mov dword [esi + 0x34], 0x102178f8
mov ecx, dword [esp + 0x28]
mov eax, ecx
lea edx, [eax + 1]
mov byte [esp + 0x20], 3
mov dword [esp + 0x28], edx
lea esp, [esp]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005f040
sub eax, dword [esp + 0x28]
push eax
push ecx
mov ecx, edi
call fcn.1005db50
mov edi, dword [esp + 0x2c]
mov eax, edi
lea ecx, [eax + 1]
nop
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x1005f060
sub eax, ecx
push eax
push edi
mov ecx, ebp
call fcn.1005db50
mov edx, dword [esp + 0x30]
mov eax, edx
lea edi, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x1005f080
sub eax, edi
push eax
push edx
lea ecx, [esi + 0x34]
call fcn.1005db50
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x1006db1e
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1006db57
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.1006dae1
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.1006c73b
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x1006f85b
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 0x1006f89e
call fcn.10062a91
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1006f89e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1006f8b9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1006f415
test ebx, ebx
mov esi, eax
je 0x1006f8b7
test edi, edi
je 0x1006f8b7
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x100754eb
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x101817d2
call fcn.1008546d
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x10075510
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1007555c
call fcn.10062ed7
push eax
lea ecx, [ebp - 0x10]
call fcn.1000ea01
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.10070275
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.1000e9e7
mov eax, esi
call fcn.10085545
ret 8
Function at 0x10078203
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x10078249
call fcn.10062a91
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x10078249
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x1007828c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x10078275
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x10078275
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x10078289
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1007917a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10207390]
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 0x100791b7
push 0x1019b590
push 4
push eax
call fcn.1008f415
push eax
call fcn.1000f47a
add esp, 0x10
jmp 0x100791c9
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10079234
push edi
call fcn.1008c6b7
mov edi, dword [eax]
call fcn.1008c6b7
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.1008ce3b
add esp, 0x18
mov ebx, eax
call fcn.1008c6b7
cmp dword [eax], 0
je 0x10079214
call fcn.1008c6b7
push dword [eax]
call fcn.10062c17
pop ecx
jmp 0x1007921b
call fcn.1008c6b7
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x10079234
cmp ebx, esi
jae 0x10079234
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x10079236
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1008545e
leave
ret