joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004cecc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x1004cee2
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x1004cef3
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.1004cf34
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx

Function at 0x1004f2a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x1004f1e9
add ebx, 0
push ecx
call 0x1004f1fe
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x72d46077
sub ebx, dword [0x72d658b6]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x72d658a6
call fcn.1004acc8
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.1004a1d6
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x1004f35c
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x1004f35c
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x1004f313
mov eax, 1
lock xchg dword [0x72d658b2], eax
push 0x3dd1fc71
call 0x1004f2a0
push esi
add esp, 8
cmp eax, 0
jne 0x1004f289
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x1004f2af
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x1004f2c4
cmp ecx, edx
cmp eax, 0
je 0x1004f2e9
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x1004f2d3
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.1004f302
dec eax
loope 0x1004f305
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x72d658b2], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x1004f339
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x1004f34e
jmp 0x1004f359
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x1004f247
Function at 0x100563c1
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x10056697
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x72d5252a
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x72d494f0
push 0xffffffffffffffff
call fcn.1004d5c1
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x1005642b
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.10056443
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x1005668b
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x1005665f
Function at 0x10065e91
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10065eb3
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10065eb3
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10065eb3
ret
cmp word [ebx + 4], 0x14c
jne 0x10065eb3
test word [ebx + 0x16], 2
je 0x10065eb3
test word [ebx + 0x16], 0x100
je 0x10065eb3
cmp word [ebx + 0x18], 0x10b
jne 0x10065eb3
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10065eb3
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10065f3f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10065ed3
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1004ce1e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10065eb3
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x10065f3f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x10065eb3
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x10065eb3
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x10065eb3
ret
cmp word [ebx + 4], 0x14c
jne 0x10065eb3
test word [ebx + 0x16], 2
je 0x10065eb3
test word [ebx + 0x16], 0x100
je 0x10065eb3
cmp word [ebx + 0x18], 0x10b
jne 0x10065eb3
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x10065eb3
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x10065f3f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x10065ed3
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.1004ce1e
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x10065eb3
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x10065ff6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006604f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10065ff6
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10066005
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1046bca8
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10066056
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1004cecc
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100660f5
add edi, 4
add eax, 2
dec ecx
jne 0x1006603b
call 0x100660a2
loope 0x10066098
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100660f2
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10066103
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100660b6
cmp eax, ecx
ja 0x100660b6
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10066140
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10066136
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1004d3ab
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x10066005
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x1006604f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x10065ff6
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x10066005
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x1046bca8
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x10066056
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.1004cecc
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100660f5
add edi, 4
add eax, 2
dec ecx
jne 0x1006603b
call 0x100660a2
loope 0x10066098
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100660f2
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x10066103
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100660b6
cmp eax, ecx
ja 0x100660b6
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x10066140
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x10066136
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.1004d3ab
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x401012
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor esi, esi
push esi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40103d
xor eax, eax
jmp 0x40109a
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x401091
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea eax, [ebp - 0x20c]
push 0x402110
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
pop ecx
pop ecx
test eax, eax
jne 0x40108b
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40105f
jmp 0x401091
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00401182
leave
ret

Function at 0x4010a8
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.00401012
xor esi, esi
mov ebx, eax
push esi
push 2
mov dword [ebp - 0x234], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4010e4
xor eax, eax
jmp 0x401173
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40116a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x228], eax
je 0x40114f
cmp dword [ebp - 0x218], ebx
je 0x401124
cmp dword [ebp - 0x228], ebx
jne 0x40114f
push dword [ebp - 0x228]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x401149
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
mov eax, dword [ebp - 0x238]
jne 0x40110c
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401182
leave
ret

Function at 0x4019b3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4019f2
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4019f2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4019f2
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4019f2
cmp dword [ecx + 0x74], 0xe
jbe 0x4019f2
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402b80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42071b
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x42a6a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x44
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040d800
xor eax, eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
mov dword [ebp - 0xc0], eax
mov dword [ebp - 0xbc], eax
mov dword [ebp - 0xb8], eax
mov dword [ebp - 0xb4], eax
mov dword [ebp - 0x104], 0x44
call fcn.004029f0
add esp, 0x14
mov eax, 0x10
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], eax
jb 0x402c0a
mov ecx, dword [edi]
jmp 0x402c0c
mov ecx, edi
mov edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], eax
jae 0x402c17
lea edx, [ebp - 0x2c]
cmp dword [esi + 0x14], eax
jb 0x402c20
mov eax, dword [esi]
jmp 0x402c22
mov eax, esi
lea ebx, [ebp - 0xc0]
push ebx
lea ebx, [ebp - 0x104]
push ebx
push edx
push 0
push 0
push 0
push 0
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edx, dword [ebp - 0xc0]
test eax, eax
push edx
setne bl
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xbc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
jne 0x402cdb
mov eax, 0x10
cmp dword [edi + 0x14], eax
jb 0x402c72
mov edi, dword [edi]
cmp dword [esi + 0x14], eax
jb 0x402c79
mov esi, dword [esi]
push edi
push esi
lea ecx, [ebp - 0x48]
push str.Failed_to_launch_process:__s_args:__s
push ecx
call fcn.004063b0
add esp, 0x10
push str.LaunchProcess
push 0x35
push str.main.cpp
lea edx, [ebp - 0x48]
mov bl, 1
push edx
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], bl
call fcn.004046a1
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.004049d4
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], bl
call fcn.0040406d
cmp dword [ebp - 0x34], 0x10
jb 0x402cdb
mov eax, dword [ebp - 0x48]
push eax
call fcn.0040ca90
add esp, 4
cmp dword [ebp - 0x18], 0x10
jb 0x402ced
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0040ca90
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d7e8
mov esp, ebp
pop ebp
ret
Function at 0x406545
Capabilities:
Read .ini file

Disassembly:
push 0x88
mov eax, 0x421027
call fcn.0040dd6e
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
xor ebx, ebx
mov dword [ebp - 0x94], ebx
xor eax, eax
push str.WildTangentWildTangent_GamesAppSettingsSettings.ini
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x40], 7
mov dword [ebp - 0x44], ebx
mov word [ebp - 0x54], ax
call fcn.00402870
xor esi, esi
inc esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x8c]
call fcn.004086a7
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x54]
push ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00407dc0
mov byte [ebp - 4], 4
push ebx
push esi
lea ecx, [ebp - 0x8c]
call fcn.004014d0
mov byte [ebp - 4], 5
push ebx
push esi
lea ecx, [ebp - 0x54]
call fcn.004014d0
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x4065d3
lea eax, [ebp - 0x70]
push eax
push 0x14
lea eax, [ebp - 0x38]
push eax
push 0x4226cc
push str.language_setting
push str.UISettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, ebx
jbe 0x40660c
mov ecx, dword [ebp - 0x90]
lea eax, [ebp - 0x38]
push eax
mov dword [edi], esi
call fcn.004029a0
mov dword [ebp - 0x94], esi
jmp 0x40663a
lea ecx, [ebp - 0x54]
mov dword [edi], ebx
call fcn.00408400
mov byte [ebp - 4], 6
push dword [ebp - 0x90]
lea ecx, [ebp - 0x54]
call fcn.004084e1
mov dword [ebp - 0x94], esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x54]
call fcn.004083de
mov byte [ebp - 4], bl
push ebx
push esi
lea ecx, [ebp - 0x70]
call fcn.004014d0
mov eax, dword [ebp - 0x90]
call fcn.0040ddf1
ret 8
Function at 0x406af7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x42114e
call fcn.0040dd6e
mov eax, dword [ebp + 8]
and dword [ebp - 0x34], 0
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
xor eax, eax
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
xor edi, edi
inc edi
mov dword [ebp - 4], edi
mov ebx, dword [ebp + 0xc]
movzx ecx, word [ecx + 8]
mov eax, ebx
shr eax, 4
inc eax
push ecx
movzx eax, ax
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
jne 0x406b54
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.004034f0
jmp 0x406bac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x406ba0
and ebx, 0xf
mov ecx, ebx
xor eax, eax
movzx ebx, word [esi]
cmp eax, ecx
je 0x406b7c
inc eax
lea esi, [esi + ebx*2 + 2]
cmp eax, 0x10
jb 0x406b69
jmp 0x406ba0
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00405c8d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x406b93
lea eax, [ebp - 0x2c]
push eax
lea edx, [esi + ebx*2 + 2]
lea ecx, [esi + 2]
call fcn.00406492
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
push eax
call fcn.004034f0
mov dword [ebp - 0x34], edi
mov byte [ebp - 4], 0
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.004014d0
mov eax, dword [ebp - 0x30]
call fcn.0040ddf1
ret 0xc

Function at 0x406cbd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x406d26
cmp dword [ebp + 0x10], 1
je 0x406cfe
cmp dword [ebp + 0x10], 2
je 0x406cfe
push 0xd
pop eax
jmp 0x406d26
mov eax, dword [ebp - 4]
test edi, edi
je 0x406d20
test eax, eax
je 0x406d1b
test al, 1
jne 0x406cf9
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x406d20
jmp 0x406cf9
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x408400
Capabilities:
Identify system language via api

Disassembly:
push 0x214
mov eax, 0x421624
call fcn.0040dd6e
push str.en_us
mov dword [ebp - 0x21c], ecx
call fcn.004029a0
and dword [ebp - 4], 0
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
mov dword [ebp - 0x220], edi
mov byte [ebp - 4], 1
test edi, edi
je 0x4084c2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetGeoInfoW
push edi
call esi
push str.GetUserGeoID
push edi
mov ebx, eax
call esi
mov esi, eax
test ebx, ebx
je 0x4084c2
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0040d800
add esp, 0xc
push 0x10
call esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
push eax
push 0x103
lea eax, [ebp - 0x218]
push eax
push 6
push esi
call ebx
test eax, eax
je 0x4084c2
lea eax, [ebp - 0x218]
push eax
call fcn.0040ef0e
pop ecx
mov ecx, dword [ebp - 0x21c]
lea eax, [ebp - 0x218]
push eax
call fcn.00402870
mov byte [ebp - 4], 0
test edi, edi
je 0x4084d1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
call fcn.0040ddf1
ret

Function at 0x4086a7
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x298
mov eax, 0x42174e
call fcn.0040dd6e
xor ebx, ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov dword [ebp - 0x2a0], ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov dword [ebp - 0x2a4], esi
mov word [esi], ax
mov dword [ebp - 4], ebx
xor edi, edi
inc edi
push edi
push 0x1a
lea eax, [ebp - 0x218]
push eax
push ebx
mov dword [ebp - 0x2a0], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x408709
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402870
jmp 0x40877f
push 0x31
push str.SHGetSpecialFolderPath___failed_for_CSIDL_APPDATA
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
call fcn.0040440d
mov dword [ebp - 4], edi
push str.WT::System::Util::GetPerUserAppDataPath
push 0x134
push str.SourceWtSystemUtilWinUtil.cpp
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x29c]
call fcn.004046a1
mov byte [ebp - 4], 3
push ebx
push edi
lea ecx, [ebp - 0x234]
call fcn.00401480
lea ecx, [ebp - 0x29c]
call fcn.004049d4
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x29c]
call fcn.0040406d
mov eax, esi
call fcn.0040ddf1
ret