joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003a930
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
shl esi, 5
add esi, 0x100d1260
movzx edx, word [edi + 4]
mov eax, edx
mov dword [ebp + 8], eax
movzx eax, dl
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
mov eax, edx
shr eax, 8
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, esi
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
call fcn.10039eb0
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x1003a9a2
cmp ecx, dword [esi + 4]
je 0x1003a9a2
movzx eax, byte [ebp + 0xc]
lea eax, [eax + eax*4]
mov ecx, dword [ecx + eax*8 + 0x34]
test ecx, ecx
je 0x1003a9a2
mov eax, dword [ecx]
push edi
call dword [eax + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1003a9b0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100883a5
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x100ca4b0]
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 edi, dword [ebp + 8]
mov bl, byte [ebp + 0x10]
mov cx, word [ebp + 0xc]
movzx eax, cl
xor eax, 0x811c9dc5
shl edi, 5
imul edx, eax, 0x1000193
add edi, 0x100d1260
movzx eax, cx
mov ecx, edi
shr eax, 8
mov dword [ebp - 4], 0
xor edx, eax
imul eax, edx, 0x1000193
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10039eb0
mov ecx, dword [eax + 4]
movzx eax, bl
lea esi, [eax + eax*4]
shl esi, 3
test ecx, ecx
je 0x1003aa46
cmp ecx, dword [edi + 4]
je 0x1003aa46
lea eax, [ebp + 0x14]
add ecx, 0x10
push eax
add ecx, esi
call fcn.1003a720
jmp 0x1003aaad
push 0x100155f0
push 0x1003a2f0
push 2
push 0x28
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 1
push eax
call fcn.1005d599
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x60]
add ecx, esi
push eax
call fcn.1003a720
lea eax, [ebp - 0x60]
mov ecx, edi
mov dword [ebp - 0x64], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
push 0x1008ce4f
lea eax, [ebp - 0x74]
push eax
call fcn.10039fa0
push 0x100155f0
push 2
push 0x28
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 3
push eax
call fcn.1005cb22
mov ecx, dword [ebp + 0x38]
test ecx, ecx
je 0x1003aac5
mov edx, dword [ecx]
lea eax, [ebp + 0x14]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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.1005cf9d
mov esp, ebp
pop ebp
ret
Function at 0x1003aed0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
mov eax, 0x1fffffff
push ebx
mov ebx, ecx
bsr ecx, eax
push esi
push edi
mov edi, 1
mov dword [ebp - 4], ebx
mov eax, edi
shl eax, cl
cmp edx, eax
ja 0x1003b01a
mov esi, dword [ebx + 4]
lea eax, [edx - 1]
or eax, edi
mov dword [ebp + 8], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.10018800
lea eax, [edi - 1]
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 4]
mov eax, dword [eax]
mov ecx, eax
cmp eax, esi
je 0x1003afed
movzx edx, byte [eax + 8]
mov ecx, dword [ecx]
xor edx, 0x811c9dc5
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
imul edx, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, edx
mov edx, dword [ebx + 0xc]
lea edx, [edx + edi*8]
mov edi, dword [edx]
mov dword [ebp - 8], edx
cmp edi, esi
jne 0x1003af6e
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x1003afe3
mov edx, dword [edx + 4]
movzx ebx, word [eax + 8]
cmp bx, word [edx + 8]
jne 0x1003afaa
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x1003afa2
mov ebx, dword [eax + 4]
mov esi, dword [ebp - 0xc]
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [edx + 4], eax
jmp 0x1003afe0
cmp edi, edx
je 0x1003afbd
nop
mov edx, dword [edx + 4]
cmp bx, word [edx + 8]
je 0x1003aff6
cmp edi, edx
jne 0x1003afb0
mov ebx, dword [eax + 4]
mov dword [ebp - 0xc], ebx
mov dword [ebx], ecx
mov ebx, dword [ecx + 4]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov dword [edx + 4], ebx
mov edx, dword [ebp - 0xc]
mov dword [ecx + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 4], edi
mov dword [edx], eax
mov ebx, dword [ebp - 4]
mov eax, ecx
cmp ecx, esi
jne 0x1003af32
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [eax + 4]
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
mov esi, edx
mov dword [ebx], ecx
mov edi, dword [ecx + 4]
mov dword [edi], edx
mov edx, dword [edx + 4]
mov dword [edx], eax
mov dword [esi + 4], edi
mov esi, dword [ebp + 8]
mov dword [ecx + 4], ebx
mov dword [eax + 4], edx
jmp 0x1003afe0
push str.invalid_hash_bucket_count
call fcn.10044f28
int3
Function at 0x1003b450
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008708d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100ca4b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [ebp + 8], 0
mov ecx, dword [edi + 0x48]
je 0x1003b5ec
test ecx, ecx
jne 0x1003b5a4
push dword [edi + 0x28]
call fcn.1001b260
add esp, 4
mov dword [edi + 0x34], eax
mov ecx, edi
call fcn.1003b050
mov dword [edi + 0x48], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp + 8]
push eax
push 0x40
push dword [edi + 0x34]
mov dword [ebp - 4], 0
push dword [edi + 0x28]
call ebx
test eax, eax
je 0x1003b58e
push dword [edi + 0x34]
lea eax, [ebp + 8]
push eax
call fcn.1000ca50
lea esi, [edi + 0x2c]
add esp, 8
cmp esi, eax
je 0x1003b50e
mov ecx, dword [eax]
mov dword [eax], 0
mov eax, dword [esi]
mov dword [esi], ecx
test eax, eax
je 0x1003b50e
push eax
call fcn.1005cc7e
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x1003b51e
push eax
call fcn.1005cc7e
add esp, 4
push dword [edi + 0x34]
push dword [edi + 0x28]
push dword [esi]
call fcn.1005e7e0
mov esi, dword [edi + 0x28]
mov edx, dword [edi + 0x48]
sub edx, esi
mov dword [ebp + 8], 0xe9
sub edx, 5
mov eax, dword [esi]
cmp al, 0xe8
movzx ecx, al
cmovne ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x13], edx
mov byte [ebp - 0x14], cl
mov eax, dword [ebp - 0x14]
mov dword [esi], eax
movzx eax, byte [ebp - 0x10]
mov byte [esi + 4], al
mov eax, dword [edi + 0x34]
sub eax, 5
push eax
mov eax, dword [edi + 0x28]
add eax, 5
push 0x90
push eax
call fcn.1005ed60
add esp, 0x18
lea eax, [ebp + 8]
push eax
push 0x20
push dword [edi + 0x34]
push dword [edi + 0x28]
call ebx
test eax, eax
jne 0x1003b60e
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi + 0x38]
mov ebx, dword [edi + 0x44]
mov edx, dword [edi + 0x40]
mov ecx, edx
mov esi, dword [eax + 0x1c]
mov eax, ebx
shrd ecx, eax, 8
mov eax, ebx
mov byte [esi + 1], cl
mov ecx, edx
shrd ecx, eax, 0x10
mov eax, ebx
mov byte [esi], dl
shrd edx, eax, 0x18
mov eax, ebx
mov byte [esi + 4], bl
shr eax, 8
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
shr ebx, 0x18
mov byte [esi + 2], cl
mov byte [esi + 3], dl
mov byte [esi + 6], al
mov byte [esi + 7], bl
jmp 0x1003b60e
test ecx, ecx
je 0x1003b60e
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x40], eax
mov eax, dword [edi + 0x38]
mov dword [edi + 0x44], ecx
mov eax, dword [eax + 0x1c]
mov dword [eax], 0x90909090
mov dword [eax + 4], 0x90909090
mov eax, dword [edi + 0x38]
push dword [eax + 0x20]
push dword [edi + 0x48]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x1003dd40
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10088710
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x100ca4b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.10030f20
call fcn.10018360
call fcn.100314b0
call fcn.10032360
call fcn.1003a7a0
call fcn.1003c700
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp dword [ebp - 0x80], 3
mov edi, eax
jl 0x1003de68
mov eax, dword [edi + 4]
mov esi, eax
mov dword [ebp - 0x84], eax
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1003ddc0
sub esi, ecx
lea ecx, [ebp - 0x78]
sar esi, 1
call fcn.1003bcf0
mov ecx, dword [ebp - 0x84]
lea eax, [ecx + esi*2]
push eax
push ecx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x78]
call fcn.1003d800
lea ecx, [ebp - 0x78]
call fcn.1003c0f0
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x9c]
call fcn.10012830
mov ecx, 0x100c88d0
call fcn.10015b50
movups xmm0, xmmword [ebp - 0x9c]
movups xmmword [0x100c88d0], xmm0
movq xmm0, qword [ebp - 0x8c]
movq qword [0x100c88e0], xmm0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0x10
jb 0x1003de68
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003de5e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003df2f
push ecx
push edx
call fcn.1005cc67
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [0x100c8480]
cmp eax, dword [0x100c8484]
je 0x1003de8e
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__void___cdecl_InitializeDiscord_void_::_2::_lambda_1___void___.0
mov dword [eax + 0x24], eax
add dword [0x100c8480], 0x28
jmp 0x1003de9d
lea ecx, [ebp - 0x79]
push ecx
push eax
mov ecx, 0x100c847c
call fcn.1003b960
mov eax, dword [0x100c848c]
cmp eax, dword [0x100c8490]
je 0x1003debc
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__void___cdecl_InitializeDiscord_void_::_2::_lambda_2___void___.0
mov dword [eax + 0x24], eax
add dword [0x100c848c], 0x28
jmp 0x1003decb
lea ecx, [ebp - 0x79]
push ecx
push eax
mov ecx, 0x100c8488
call fcn.1003bbc0
call fcn.1003c960
mov eax, dword [0x100c8480]
cmp eax, dword [0x100c8484]
je 0x1003deef
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__void___cdecl_RegisterUIHandlers_void_::_2::_lambda_1___void___.0
mov dword [eax + 0x24], eax
add dword [0x100c8480], 0x28
jmp 0x1003defe
lea edx, [ebp - 0x79]
mov ecx, 0x100c847c
push edx
push eax
call fcn.1003ba90
sub esp, 0x28
mov eax, esp
mov dword [eax], vtable.std::_Func_impl_no_alloc_class__void___cdecl_RegisterUIHandlers_void_::_2::_lambda_2___void__struct_Rise::GameUI::HandlerEvent_const__.0
mov dword [eax + 0x24], eax
call fcn.100352a0
add esp, 0x28
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1005cf9d
mov esp, ebp
pop ebp
ret
call fcn.1006231f
int3
Function at 0x1003f5f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x100b1440
push 0x64
call fcn.1005d9ea
mov esi, eax
add esp, 8
test esi, esi
je 0x1003f78c
push 0x64
push 0
push esi
call fcn.1005ed60
lea eax, [esi + 4]
mov byte [esi], 1
mov dword [eax + 4], 0
xorps xmm0, xmm0
mov dword [eax + 8], 0
movups xmmword [eax + 0xc], xmm0
push 2
movq qword [eax + 0x1c], xmm0
mov dword [eax + 0x24], 0
push eax
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
call fcn.100453eb
lea eax, [esi + 0x34]
push eax
call fcn.100498f3
xorps xmm0, xmm0
mov dword [0x100f6b6c], esi
add esp, 0x18
movq qword [esi + 0x5c], xmm0
cmp dword [ebp + 0x10], 0
mov esi, dword [ebp + 8]
je 0x1003f69a
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x1003f68f
cmp byte [eax], 0
je 0x1003f68f
push eax
push esi
call fcn.1003ff30
jmp 0x1003f697
push 0
push esi
call fcn.1003feb0
add esp, 8
call sub.KERNEL32.dll_GetCurrentProcessId
push 0x100d1470
mov dword [0x100f6b68], eax
call fcn.1004540c
add esp, 4
test eax, eax
jne 0x1003f79b
cmp dword [0x100d149c], 0x7fffffff
je 0x1003f7a2
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1003f6e1
movups xmm0, xmmword [eax]
movups xmmword [0x100f2518], xmm0
movq xmm0, qword [eax + 0x10]
jmp 0x1003f6eb
xorps xmm0, xmm0
movups xmmword [0x100f2518], xmm0
movq qword [0x100f2528], xmm0
xorps xmm0, xmm0
push 0x100d1470
movups xmmword [0x100f2530], xmm0
movq qword [0x100f2540], xmm0
call fcn.10045431
add esp, 4
cmp dword [0x100f2514], 0
jne 0x1003f796
push esi
call fcn.10043f50
mov dword [0x100f2514], eax
mov dword [eax + 8], 0x1003df40
mov eax, dword [0x100f2514]
mov dword [eax + 0xc], 0x1003df50
mov al, 1
mov esi, dword [0x100f6b6c]
xchg byte [esi], al
push 4
call fcn.1005cc37
add esp, 8
test eax, eax
je 0x1003f755
mov dword [eax], esi
jmp 0x1003f757
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push 0
push eax
push 0x1003dfa0
push 0
push 0
call fcn.1006d722
mov ecx, eax
add esp, 0x18
mov dword [ebp - 8], ecx
test ecx, ecx
je 0x1003f7b8
cmp dword [esi + 0x60], 0
jne 0x1003f7b3
mov eax, dword [ebp - 4]
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x100f6b6c], 0
pop esi
mov esp, ebp
pop ebp
ret
push 5
call fcn.10045696
push 6
mov dword [0x100d149c], 0x7ffffffe
call fcn.10045696
call fcn.1006d58a
push 6
mov dword [ebp - 4], 0
call fcn.10045696
int3
Function at 0x1003ff30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x100ca4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov edi, dword [ebp + 0xc]
push 0x20
push ecx
push 0xffffffffffffffff
push eax
push 0
push 0xfde9
call esi
push 0x20
lea eax, [ebp - 0x44]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
lea eax, [ebp - 0xa90]
push eax
push 0x20019
push 0
push str.SoftwareValveSteam
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1003ffa4
push str.Error_opening_Steam_key_n
jmp 0x10040064
lea eax, [ebp - 0xa94]
mov dword [ebp - 0xa94], 0x208
push eax
lea eax, [ebp - 0x28c]
push eax
push 0
push 0
push str.SteamExe
push dword [ebp - 0xa90]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa90]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1004005f
mov ecx, dword [ebp - 0xa94]
cmp ecx, 1
jb 0x1004005f
shr ecx, 1
mov eax, esi
je 0x10040018
lea edx, [esi + 0x5c]
nop word [eax + eax]
cmp word [ebp + eax*2 - 0x28c], 0x2f
jne 0x10040013
mov word [ebp + eax*2 - 0x28c], dx
inc eax
cmp eax, ecx
jb 0x10040000
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28c]
push eax
push str.__s__steam:__rungameid__s
lea eax, [ebp - 0xa8c]
push 0x800
push eax
call fcn.1003fe40
lea eax, [ebp - 0xa8c]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.1003fb60
add esp, 0x1c
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cf9d
mov esp, ebp
pop ebp
ret
push str.Error_reading_SteamExe_key_n
push 2
call fcn.100625ae
add esp, 4
push eax
call fcn.10021b70
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
call fcn.1005cf9d
mov esp, ebp
pop ebp
ret
Function at 0x100400d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x100ca4b0]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov eax, dword [0x100af928]
push ebx
push esi
push edi
push 0
push 0
mov dword [ebp - 0xc], eax
mov esi, ecx
mov ax, word [0x100af92c]
push 3
movups xmmword [ebp - 0x34], xmm0
push 0
movups xmm0, xmmword [0x100af910]
mov word [ebp - 8], ax
mov eax, 0x30
push 0
mov word [ebp - 0xa], ax
lea eax, [ebp - 0x34]
movups xmmword [ebp - 0x24], xmm0
push 0xc0000000
movq xmm0, qword [0x100af920]
push eax
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x100401a0
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
call edi
cmp eax, 2
jne 0x10040169
mov ax, word [ebp - 0xa]
cmp ax, 0x39
jae 0x100401b6
inc ax
mov word [ebp - 0xa], ax
jmp 0x1004017f
cmp eax, 0xe7
jne 0x100401b6
push 0x2710
lea eax, [ebp - 0x34]
push eax
call ebx
test eax, eax
je 0x100401b6
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x10040150
pop edi
mov byte [esi], 1
mov al, 1
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1005cf9d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1005cf9d
mov esp, ebp
pop ebp
ret

Function at 0x100711bb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100711fa
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100711fa
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100711fa
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100711fa
cmp dword [ecx + 0x74], 0xe
jbe 0x100711fa
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100754ad
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b56bc
push 0x100b56b4
push str.FlsAlloc
push 0x1f
call fcn.100752d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100754e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x1008b218]
call esi
jmp 0x100754e7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1007552b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b56cc
push 0x100b56c4
push str.FlsGetValue
push 0x21
call fcn.100752d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10075562
push dword [ebp + 8]
mov ecx, esi
call dword [0x1008b218]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1007556a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100b56d4
push 0x100b56cc
push str.FlsSetValue
push 0x22
call fcn.100752d8
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100755a4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1008b218]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1007d30e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1007d3ab
push ebx
push esi
call fcn.1007d2d7
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10078ec5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1007d358
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007d3aa
push edi
push eax
call fcn.100772bf
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1007d378
call fcn.10074fc6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1007d3a9
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10078ec5
add esp, 0x20
test eax, eax
jne 0x1007d397
push edi
call fcn.10074fc6
jmp 0x1007d39f
push ebx
call fcn.10074fc6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1007d3ae
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1007d3bf
pop esi
ret
push ebx
push edi
push esi
call fcn.1007d2d7
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100772bf
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1007d3e7
push ebx
push esi
push edi
call fcn.1005e7e0
add esp, 0xc
push 0
call fcn.10074fc6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1007d7b7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007d3fc

Function at 0x1007fa3c
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100734fc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1007faab
cmp esi, dword [ebp - 4]
je 0x1007faa6
cmp dword [ebp + 0xc], 0
je 0x1007faa6
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1007fa83
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1007f58e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1007faad
xor eax, eax
inc eax
jmp 0x1007faad
xor eax, eax
pop edi
pop esi
leave
ret