joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b73b
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x52c
mov eax, dword [reloc.KERNEL32.dll_LocalAlloc]
and dword [ebp - reloc.KERNEL32.dll_LocalAlloc], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
cmp dword [esi + reloc.KERNEL32.dll_LocalAlloc], edi
mov dword [ebp - 4], eax
mov dword [ebp - reloc.KERNEL32.dll_LocalAlloc], ebx
mov dword [ebp - reloc.KERNEL32.dll_LocalAlloc], 1
jne 0x100b6ea
mov eax, dword [esi + reloc.KERNEL32.dll_LocalAlloc]
cmp eax, dword [ebp + 0xc]
jne 0x100b6ea
and dword [ebp - reloc.KERNEL32.dll_LocalAlloc], 0
test ebx, ebx
je 0x100b723
push ebx
call fcn.01011c9c
dec eax
js 0x100b723
mov cx, word [ebx + eax*2]
cmp cx, 0x20
je 0x100b70d
cmp cx, 0xa
je 0x100b70d
cmp cx, 9
jne 0x100b715
and word [ebx + eax*2], 0
dec eax
jns 0x100b6f7
test eax, eax
jl 0x100b723
mov dword [ebp - reloc.KERNEL32.dll_LocalAlloc], 1
cmp edi, 2
jne 0x100b735
cmp dword [ebp - reloc.KERNEL32.dll_LocalAlloc], 0
je 0x100b893
cmp dword [ebp - reloc.KERNEL32.dll_LocalAlloc], 0
mov eax, dword [ebp + 0xc]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esi + reloc.KERNEL32.dll_LocalAlloc], edi
mov dword [esi + reloc.KERNEL32.dll_LocalAlloc], eax
je 0x100b864
mov ecx, dword [esi + reloc.KERNEL32.dll_LocalAlloc]
test ecx, ecx
je 0x100b864
and word [ebp - 0x314], 0
push 0x80
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
push 0
push dword [ebp + 0xc]
call fcn.01014288
cmp edi, 7
ja case.default.0x100b78c
jmp dword [edi*4 + 0x100b8a2]
push 0x104
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
push RestoreDC
jmp 0x100b811
push 0x104
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
push reloc.GDI32.dll_RestoreDC
jmp 0x100b811
push 0x104
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
push 0x3e
jmp 0x100b811
push 0x104
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
push 0x3f
jmp 0x100b811
push 0x104
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
push MsgWaitForMultipleObjects
jmp 0x100b811
push 0x104
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
push reloc.USER32.dll_MsgWaitForMultipleObjects
jmp 0x100b811
push 0x104
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
push 0x42
jmp 0x100b811
push 0x104
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
push 0x43
push dword [0x10171dc]
call fcn.01011dd1
jmp 0x100b82f
push 0x1001850
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
call fcn.01011c39
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
push 0x3fb
push dword [esi + 4]
call ebx
push eax
call fcn.01013386
cmp dword [ebp - reloc.KERNEL32.dll_LocalAlloc], 0
je 0x100b875
push dword [ebp - 0x52c]
jmp 0x100b883
cmp dword [ebp - reloc.KERNEL32.dll_LocalAlloc], 0
je 0x100b893
push 0x1001634
push 0x41f
push dword [esi + 4]
call ebx
push eax
call fcn.01013386
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01010e5d
leave
ret 0xc
Function at 0x100c221
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push 4
mov esi, ecx
cmp dword [esi + reloc.KERNEL32.dll_LocalAlloc], ebx
pop edi
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
je 0x100c206
xor eax, eax
inc eax
jmp 0x100c272
lea eax, [ebp - 4]
push eax
push 0x20019
push ebx
push 0x1001c58
push 0x80000002
call fcn.010122d6
test eax, eax
jne 0x100c246
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push 0x1001858
push dword [ebp - 4]
call fcn.010122fa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esi + reloc.KERNEL32.dll_LocalAlloc], ebx
mov eax, edi
jne 0x100c253
mov eax, dword [ebp - 0x14]
cmp dword [esi + reloc.KERNEL32.dll_LocalAlloc], ebx
je 0x100c25e
or eax, 2
cmp dword [esi + reloc.KERNEL32.dll_LocalAlloc], ebx
je 0x100c269
or eax, 1
and eax, dword [ebp - 8]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100c42a
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp word [ebp + 0xc], 3
push esi
mov esi, ecx
jne 0x100c415
call fcn.0100b053
jmp 0x100c4b4
cmp word [ebp + 0xc], 4
jne 0x100c426
call fcn.01014d13
jmp 0x100c4b4
cmp word [ebp + 0xc], 5
jne 0x100c4b4
push edi
xor edi, edi
cmp dword [esi + 0x18], edi
je 0x100c4b3
mov eax, dword [esi + reloc.KERNEL32.dll_LocalAlloc]
test al, 0x20
jne 0x100c4b3
test eax, 0x200800
jne 0x100c4b3
push 5
push dword [esi + 4]
or eax, 0x200000
mov dword [esi + reloc.KERNEL32.dll_LocalAlloc], eax
call dword [sym.imp.USER32.dll_KillTimer]
push 3
push esi
lea eax, reloc.KERNEL32.dll_LocalAlloc
push eax
call fcn.0100ea54
push esi
call fcn.0100ab11
lea eax, [ebp + 0xc]
push eax
push dword [esi + 0x238]
call fcn.010079a9
cmp dword [esi + 0x18], edi
je 0x100c4a5
cmp dword [ebp + 0xc], edi
je 0x100c4a2
push edi
push dword [esi + 0x2a0]
push 5
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetTimer]
jmp 0x100c4a5
mov dword [esi + 0x18], edi
and byte [esi + 0x24a], 0xdf
push edi
push esi
call fcn.0100ab34
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100f26c
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
xor esi, esi
mov edi, 0x1017230
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebx], esi
mov dword [eax], esi
cmp dword [reloc.KERNEL32.dll_LocalAlloc], esi
jbe 0x100f1e3
mov eax, dword [ebp + 0xc]
mov dword [ebx], esi
mov dword [eax], 0x11
mov dword [ebp - 4], 1
jmp 0x100f259
mov dword [ebp + 8], esi
mov esi, dword [reloc.KERNEL32.dll_LocalAlloc]
test esi, esi
je 0x100f257
cmp dword [esi + 0x20], 0
je 0x100f245
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx]
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x14]
push edx
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x18]
cmp eax, 1
jne 0x100f245
cmp dword [ebp + 8], 0
mov eax, dword [ebp - 0xc]
je 0x100f21c
test eax, eax
jne 0x100f23a
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ebx], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edx], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor ecx, ecx
cmp dword [esi + 4], 2
sete cl
mov dword [ebp - 8], ecx
test eax, eax
mov dword [ebp + 8], 1
je 0x100f250
mov esi, dword [esi]
test esi, esi
jne 0x100f1f0
cmp dword [ebp + 8], esi
je 0x100f257
mov dword [ebp - 4], 1
xor esi, esi
push edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 8], esi
je 0x100f27d
mov ebx, dword [ebx]
cmp ebx, esi
je 0x100f27d
push esi
push 1
push 0x403
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x20]
call fcn.01003afc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1010454
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov edi, ecx
push edi
lea ecx, [ebp - 0x10]
call fcn.0100248b
push dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
inc dword [ebp - 0x10]
lea ebx, [ebp - 0x2c]
call fcn.01010f9d
mov esi, dword [edi + 0x1c]
mov ecx, 0x1017248
mov dword [ebp - 0x2c], esi
call fcn.0100f471
test esi, esi
mov ecx, eax
mov dword [ebp - 4], ecx
je 0x10104c5
mov esi, dword [ebx]
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1010489
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x18], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10104a4
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10104a4
mov edx, dword [ecx]
push 0
push eax
push ecx
call dword [edx + MsgWaitForMultipleObjects]
and dword [esi + 0x14], 0
cmp dword [esi + 4], 0
jne 0x10104b8
mov eax, dword [esi]
push esi
mov ecx, edi
mov dword [ebx], eax
call fcn.010100fa
jmp 0x10104ba
mov ebx, dword [ebx]
cmp dword [ebx], 0
jne 0x101046c
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
cmp dword [edi + 0x20], 0
mov dword [edi + 0x1c], esi
je 0x10104f5
test ecx, ecx
je 0x10104ea
mov eax, dword [edi + 0x24]
test eax, eax
push 0
je 0x10104e4
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + MsgWaitForMultipleObjects]
jmp 0x10104ea
mov eax, dword [ecx]
push ecx
call dword [eax + 0x48]
and dword [edi + 0x24], 0
and dword [edi + 0x20], 0
mov ecx, dword [ebp - 4]
push ecx
mov ecx, edi
call fcn.010101bf
mov eax, dword [ebp - 4]
test eax, eax
pop edi
pop esi
pop ebx
je 0x101050d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp dword [ebp - 0x10], 0
jbe 0x101051e
mov ecx, dword [ebp - 0xc]
dec dword [ebp - 0x10]
call fcn.01010fbc
lea ecx, [ebp - 0x10]
call fcn.010024b1
xor eax, eax
leave
ret

Function at 0x1011644
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [reloc.KERNEL32.dll_LocalAlloc], 2
push ebx
push esi
push edi
mov dword [ebp - 4], 0x110
jne 0x10116a3
call fcn.010115b1
mov eax, dword [reloc.KERNEL32.dll_LocalAlloc]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
cmp eax, edi
je 0x1011697
lea ecx, [ebp - 4]
push ecx
push esi
push 2
call eax
movzx ecx, al
cmp ecx, edi
je 0x101168b
cmp word [esi], di
mov eax, esi
je 0x1011680
cmp word [eax], 0x5c
je 0x1011680
inc eax
inc eax
cmp word [eax], di
jne 0x1011673
cmp word [eax], di
je 0x101168b
mov dx, word [ebx]
mov word [eax], dx
cmp dword [reloc.KERNEL32.dll_LocalAlloc], edi
je 0x1011697
cmp ecx, edi
jne 0x10116e2
push dword [ebp + 0x10]
push ebx
push esi
call fcn.01011137
jmp 0x10116e2
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], esi
call fcn.0101105b
test eax, eax
jne 0x10116e2
lea eax, [ebp - 4]
push eax
push edi
mov dword [ebp - 4], esi
call fcn.010120d0
test eax, eax
je 0x10116d1
cmp word [edi], 0
jne 0x10116dc
push 0x10020a4
push edi
call fcn.01011c39
push edi
call fcn.010110d3
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1011840
Capabilities:
Get session user name

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x10117d0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
cmp ecx, ebx
mov dword [eax], ebx
mov dword [eax + 4], ebx
je 0x10117c8
push ecx
call fcn.01011027
pop ecx
xor eax, eax
inc eax
jmp 0x101185e
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi], ebx
jne 0x10117f0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, 7
push eax
mov ecx, esi
call fcn.0101155b
test eax, eax
je 0x101185d
cmp dword [ebp + 0x10], ebx
mov dword [ebp + 0xc], ebx
je 0x1011809
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
test eax, eax
jne 0x1011809
mov dword [ebp + 0xc], 1
push edi
mov edi, dword [esi + 4]
mov eax, dword [esi]
lea ecx, [edi - 1]
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 1
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x1011853
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x101184f
mov eax, dword [esi]
push eax
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.01011027
pop ecx
add edi, edi
push edi
mov ecx, esi
call fcn.0101155b
test eax, eax
jne 0x101180d
xor eax, eax
jmp 0x101185c
mov ecx, dword [esi]
mov word [ecx + eax*2], bx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x1011a6a
Capabilities:
Query or enumerate registry value

Disassembly:
push 8
push 0x10019d0
call fcn.01014f28
cmp dword [ebp + 8], 3
ja 0x1011a96
cmp dword [ebp + 0xc], 0
je 0x1011a96
or edi, reloc.KERNEL32.dll_LocalAlloc
push edi
push dword [ebp + 0xc]
call fcn.01011d29
test eax, eax
jne 0x1011a96
and dword [ebp - 4], eax
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x1011a83
cmp dword [esi], 0x2c
jne 0x1011a7e
push 0x2c
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1011a7e
mov eax, dword [esi + 4]
test eax, 0xfffffff8
jne 0x1011a7e
test al, 1
je 0x1011a83
test dword [esi + 8], reloc.KERNEL32.dll_LocalAlloc
je 0x1011a83
mov dword [ebp - 4], edi
jmp 0x1011a96
mov dword [ebp - 4], edi
xor eax, eax
inc eax
jmp 0x1011a98
xor eax, eax
call fcn.01014f63
ret 0xc
Function at 0x1012070
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0x28]
xor ebx, ebx
cmp edi, ebx
jne 0x1011ff6
lea edi, [ebp + 0xc]
cmp dword [reloc.KERNEL32.dll_LocalAlloc], ebx
je 0x1012021
push edi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
jmp 0x1012092
push ebx
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.01011928
test eax, eax
jne 0x1012043
push 0xe
pop esi
jmp 0x1012076
mov esi, dword [ebp - 0x10]
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x14]
call fcn.01011928
test eax, eax
je 0x101203e
push edi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 8]
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
cmp dword [ebp - 8], ebx
je 0x1012084
push dword [ebp - 8]
call fcn.01011027
pop ecx
cmp dword [ebp - 0x10], ebx
je 0x1012092
push dword [ebp - 0x10]
call fcn.01011027
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x28
Function at 0x100ad13
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1035834
call fcn.01034e18
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
push 0xa
lea ecx, [esi + 0x40]
mov dword [ebp - 4], edi
mov dword [esi], 0x1002138
call sub.MFC42u.DLL_CObList::CObList
or dword [esi + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100ad1e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x1035834
call fcn.01034e18
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
xor edi, edi
push 0xa
lea ecx, [esi + 0x40]
mov dword [ebp - 4], edi
mov dword [esi], 0x1002138
call sub.MFC42u.DLL_CObList::CObList
or dword [esi + 0x14], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x100d354
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
add eax, 5
xor edx, edx
mov ecx, 0x3e8
div ecx
push esi
push edi
push 0xa
pop ecx
push 2
mov dword [ebp + 0xc], 0x2e
mov edi, eax
mov eax, edx
xor edx, edx
div ecx
mov esi, eax
lea eax, [ebp + 0xc]
push eax
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [ebp + 8]
push 0x18
call sub.MFC42u.DLL_CString::GetBufferSetLength
test esi, esi
je 0x100d3b6
push esi
lea ecx, [ebp + 0xc]
push ecx
push edi
push 0x100250c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x100d3c6
push edi
push 0x1002504
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
call sub.MFC42u.DLL_CString::ReleaseBuffer
pop edi
pop esi
pop ebp
ret 8
Function at 0x100da98
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0xe
xor esi, esi
push 0x400
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0x2e
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
cmp dword [eax - 8], esi
je 0x100db37
push edi
push dword [ebp - 4]
mov ecx, ebx
call sub.MFC42u.DLL_CString::Find
push 1
mov ecx, ebx
mov edi, eax
call sub.MFC42u.DLL_CString::GetBuffer
mov ebx, dword [sym.imp.msvcrt.dll__wtoi]
push eax
mov dword [ebp + 8], eax
call ebx
imul eax, eax, 0x3e8
test edi, edi
pop ecx
mov dword [ebp - 8], eax
jl 0x100db36
mov eax, dword [ebp + 8]
lea esi, [eax + edi*2 + 2]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
mov dword [ebp + 8], esi
call edi
cmp eax, 2
jle 0x100db17
and word [esi + 4], 0
push esi
call ebx
pop ecx
push dword [ebp + 8]
lea esi, [eax + eax*4]
shl esi, 1
call edi
push 2
pop ecx
cmp eax, ecx
jge 0x100db36
sub ecx, eax
lea esi, [esi + esi*4]
shl esi, 1
dec ecx
jne 0x100db2e
pop edi
mov eax, dword [ebp - 8]
add eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x100dbc4
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x1035a49
call fcn.01034e18
sub esp, 0x64
mov eax, dword [0x103e6bc]
and dword [ebp - 0x58], 0
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push esi
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], eax
call sub.MFC42u.DLL_CString::CString_1
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
push 6
pop ecx
xor eax, eax
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push 0x10
lea eax, [ebp - 0x3c]
push eax
push 0x12
mov esi, 0x400
push esi
mov byte [ebp - 4], 2
call edi
mov ebx, dword [sym.imp.msvcrt.dll__wtol]
lea eax, [ebp - 0x3c]
push eax
call ebx
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x48]
push 6
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x1c]
push eax
push 0xe
push esi
mov dword [ebp - 0x68], 3
call edi
push 6
push dword [ebp - 0x60]
push 0xf
push esi
call edi
push 0x10
lea eax, [ebp - 0x3c]
push eax
push 0x1010
push esi
call edi
lea eax, [ebp - 0x3c]
push eax
call ebx
pop ecx
push 0xa
push 0x14
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x5c], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll__ltow]
add esp, 0xc
push 0xffffffffffffffff
lea ecx, [ebp - 0x4c]
call sub.MFC42u.DLL_CString::ReleaseBuffer
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x4c]
push ebx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
call edi
cmp eax, ebx
je 0x100dcdd
mov ebx, dword [ebp - 0x4c]
push eax
push eax
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::GetBuffer
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push 0
push esi
call edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x50]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
push eax
call sub.MFC42u.DLL_CString::CString_3
jmp 0x100dcea
mov ecx, dword [ebp - 0x54]
push 0x10020d4
call sub.MFC42u.DLL_CString::CString_2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x58], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x54]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.01032f53
leave
ret 8
Function at 0x1011829
Capabilities:
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x101183f
xor eax, eax
jmp 0x10118b0
cmp eax, 0xffffffff
je 0x1011849
or eax, 0xffffffff
jmp 0x10118b0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call ebx
test eax, eax
je 0x101185f
xor eax, eax
jmp 0x10118af
push esi
push 0x1002be8
push dword [ebp + 8]
call fcn.010117be
mov esi, eax
test esi, esi
jne 0x1011878
or eax, 0xffffffff
jmp 0x10118ae
push edi
mov di, word [esi]
push dword [ebp + 8]
and word [esi], 0
call fcn.01011829
test eax, eax
mov word [esi], di
je 0x1011894
or eax, 0xffffffff
jmp 0x10118ad
cmp word [esi + 2], 0
je 0x10118ab
push 0
push dword [ebp + 8]
call ebx
neg eax
sbb eax, eax
neg eax
dec eax
jmp 0x10118ad
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10118f5
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1035e15
call fcn.01034e18
sub esp, 0x10
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x18], ebx
call sub.MFC42u.DLL_CString::CString_1
and dword [ebp - 4], 0
lea edi, [ebx + 4]
mov ecx, edi
call sub.MFC42u.DLL_CString::CString_1
add ebx, 8
mov ecx, ebx
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString_1
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 2
call fcn.0100cf4b
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString_1
mov esi, 0x104
push esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
mov eax, dword [ebp - 0x10]
push esi
mov ecx, ebx
mov dword [ebp - 0x1c], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0
push 0x1002be0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [ebp - 0x10]
push esi
mov ecx, edi
mov dword [ebp - 0x1c], eax
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push 0
push 0x1002be0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [ebx]
call sub.MFC42u.DLL_CFile::Remove
push dword [edi]
call sub.MFC42u.DLL_CFile::Remove
push dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
call sub.MFC42u.DLL_CString::operator_1
push dword [ebx]
lea eax, [ebp - 0x1c]
push eax
call fcn.0100cedd
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_operator
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
push dword [edi]
lea eax, [ebp - 0x1c]
push eax
call fcn.0100cedd
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_operator
push eax
mov ecx, edi
mov byte [ebp - 4], 8
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 7
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4