joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022900
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d3dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov ebx, ecx
call fcn.10015a20
push 0x1009d480
lea ecx, [ebp - 0x28]
mov esi, eax
call fcn.1000fe40
mov dword [ebp - 4], 0
call fcn.1001bac0
lea edi, [esi + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.100164b0
mov eax, dword [ebp - 0x10]
push edi
cmp eax, dword [esi + 4]
je 0x1002296d
mov esi, dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10022975
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0xffffffff
call fcn.1000f9d0
mov ecx, dword [ebx + 4]
push 0
test esi, esi
je 0x100229cb
mov edi, dword [ebp + 8]
push 0x100000
push 0x1000
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ecx
push 0
push dword [ebp + 0x20]
push edi
call esi
test eax, eax
jns 0x10022a10
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword [ebp + 0x1c]
and eax, 1
shl eax, 2
push eax
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push 0
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
test eax, eax
je 0x10022a04
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0xbf4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x1002add0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x100afe44], 0
jne 0x1002ae28
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov dword [0x100afe3c], eax
mov eax, dword [ebp - 8]
mov dword [0x100afe40], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [0x100afe44], eax
mov eax, 0x100afe3c
mov esp, ebp
pop ebp
ret
Function at 0x1002ba90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006defd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
cmp dword [ebp + 0xc], 1
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
jne 0x1002bbdb
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
add ebx, 0x1f
mov dword [ebp - 0x14], esi
push esi
and ebx, 0xffffffe0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov edi, dword [edi + 0x40]
test edi, edi
je 0x1002baf5
mov eax, dword [edi + 8]
sub eax, dword [edi + 0xc]
cmp ebx, eax
jbe 0x1002bba8
mov edi, dword [edi]
test edi, edi
jne 0x1002bae1
mov eax, 0x8000
cmp ebx, eax
push 0x10
cmova eax, ebx
mov dword [ebp + 0xc], eax
call fcn.1004f273
mov edi, eax
add esp, 4
test edi, edi
je 0x1002bb69
cmp dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp + 8], eax
je 0x1002bb59
call fcn.1002add0
mov edx, dword [ebp + 8]
mov ecx, eax
test edx, edx
jne 0x1002bb33
mov eax, dword [ecx + 8]
mov edx, eax
mov eax, dword [ecx]
mov ecx, dword [ebp + 0xc]
dec ecx
push 0x40
add ecx, eax
neg eax
push 0x3000
and ecx, eax
push ecx
push 0
push edx
mov dword [ebp + 8], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edx, eax
test edx, edx
jne 0x1002bb85
push edi
mov dword [edi + 4], 0
call fcn.1004f1d0
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [edi + 8]
test eax, eax
je 0x1002bb91
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x10]
mov dword [edi + 0xc], 0
mov eax, dword [edx + 0x40]
mov dword [edi], eax
mov dword [edx + 0x40], edi
jmp 0x1002bbab
mov edx, dword [ebp - 0x10]
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 4]
add eax, ecx
add ecx, ebx
mov dword [edi + 0xc], ecx
add dword [edx + 0x2c], ebx
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [ebp + 8]
call fcn.1002b5c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1002bfa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006df7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x42c
push esi
mov esi, ecx
lea ecx, [ebp - 0x13c]
call fcn.10020000
lea ecx, [ebp - 0x22c]
mov dword [ebp - 4], 0
call fcn.10020000
push 0x208
lea eax, [ebp - 0x434]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.1004c020
add esp, 0xc
lea eax, [ebp - 0x434]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x434]
push eax
lea ecx, [ebp - 0x30]
call fcn.10011130
mov byte [ebp - 4], 2
cmp byte [esi], 0
je 0x1002c07a
mov ecx, dword [ebp - 0x20]
mov eax, 0x7ffffffe
sub eax, ecx
cmp eax, 0x13
jb 0x1002c1a3
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 0x13
cmova eax, dword [ebp - 0x30]
push 0x1009deb0
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.1001da20
push ecx
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x13c]
call fcn.10020290
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.10010ed0
jmp 0x1002c14b
mov al, byte [esi + 1]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x14], al
test al, al
je 0x1002c095
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
mov esi, 0x7ffffffe
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x20]
mov eax, esi
sub eax, ecx
cmp eax, 0x13
jb 0x1002c1a8
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 0x13
cmova eax, dword [ebp - 0x30]
push str.System32_ntdll.dll
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.1001da20
push ecx
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 5
push eax
lea ecx, [ebp - 0x22c]
call fcn.10020290
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.10010ed0
mov ecx, dword [ebp - 0x20]
sub esi, ecx
cmp esi, 0x13
jb 0x1002c1ad
cmp dword [ebp - 0x1c], 7
lea eax, [ebp - 0x30]
push 0x13
cmova eax, dword [ebp - 0x30]
push str.SysWOW64_ntdll.dll
push ecx
push eax
push ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x48]
call fcn.1001da20
push ecx
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x13c]
call fcn.10020290
lea ecx, [ebp - 0x48]
call fcn.10010ed0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x14], 0
je 0x1002c14b
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_Wow64RevertWow64FsRedirection]
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x13c]
push eax
mov ecx, esi
call fcn.1002c1c0
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0xf0]
call fcn.1002c1c0
lea ecx, [ebp - 0x30]
call fcn.10010ed0
lea ecx, [ebp - 0x22c]
call fcn.100201a0
lea ecx, [ebp - 0x13c]
call fcn.100201a0
mov ecx, dword [ebp - 0xc]
mov eax, esi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.1000fa60
call fcn.1000fa60
call fcn.1000fa60
int3
Function at 0x1002e0f0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e115
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
push edi
mov edi, dword [eax]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
push 0x44
mov dword [ebp - 0x1c], 0
call fcn.1004a319
add esp, 4
mov dword [ebp - 0x1c], eax
mov esi, dword [ebp + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 4], 1
mov ecx, ebx
mov dword [ebp - 0x10], ebx
push dword [esi]
call fcn.10011130
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 2
push dword [esi + 4]
mov ecx, eax
mov dword [ebp - 0x14], eax
call fcn.10011130
mov eax, dword [ebp + 0x10]
mov edx, ebx
mov eax, dword [eax]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 0x1c]
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov word [eax + 0xc], 0
mov ecx, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], 3
mov ebx, 0xff
mov ecx, dword [ecx]
mov dword [ebp + 0xc], ecx
mov eax, dword [ecx + 4]
mov dword [ebp + 0x10], eax
cmp byte [eax + 0xd], 0
jne 0x1002e1f5
mov esi, eax
nop
push edx
lea ecx, [esi + 0x10]
mov dword [ebp + 0x10], esi
call fcn.1002e080
mov ecx, eax
test ecx, ecx
jne 0x1002e1c7
push dword [ebp - 0x14]
lea ecx, [esi + 0x28]
call fcn.1002e080
mov ecx, eax
test ecx, ecx
jne 0x1002e1c7
xor al, al
jmp 0x1002e1d1
mov eax, ebx
mov ecx, 1
cmovns eax, ecx
test al, al
jns 0x1002e1dd
mov esi, dword [esi + 8]
mov ecx, dword [ebp + 0xc]
jmp 0x1002e1e4
mov ecx, esi
mov esi, dword [esi]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 0x10]
not al
movzx edi, al
shr edi, 7
cmp byte [esi + 0xd], 0
je 0x1002e1a0
cmp byte [ecx + 0xd], 0
jne 0x1002e269
lea esi, [ecx + 0x10]
mov ecx, edx
push esi
call fcn.1002e080
test eax, eax
jne 0x1002e21e
mov ecx, dword [ebp - 0x14]
lea eax, [esi + 0x18]
push eax
call fcn.1002e080
test eax, eax
jne 0x1002e21e
xor bl, bl
jmp 0x1002e226
mov eax, 1
cmovns ebx, eax
test bl, bl
js 0x1002e269
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov dword [esi], eax
mov byte [esi + 4], 0
call fcn.10010ed0
mov ecx, dword [ebp - 0x10]
call fcn.10010ed0
mov eax, dword [ebp - 0x1c]
push 0x44
push eax
call fcn.1004a349
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0x3c3c3c3
je 0x1002e2a0
mov eax, dword [ebp - 0x1c]
push eax
push edi
push dword [ebp + 0x10]
call fcn.10001f00
mov ecx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
call fcn.1000f710
int3
Function at 0x100300d0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
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 0x1003022a
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.10012d70
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 0x100301fd
movzx edx, byte [eax + 8]
xor edx, 0x811c9dc5
mov ecx, dword [ecx]
imul edi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor edi, edx
movzx edx, byte [eax + 0xa]
imul edi, edi, 0x1000193
xor edi, edx
movzx edx, byte [eax + 0xb]
imul edi, edi, 0x1000193
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 0x10030183
mov dword [edx], eax
mov dword [edx + 4], eax
jmp 0x100301f3
mov edx, dword [edx + 4]
mov ebx, dword [eax + 8]
cmp ebx, dword [edx + 8]
jne 0x100301bd
mov edx, dword [edx]
mov dword [ebp - 0xc], edx
cmp edx, eax
je 0x100301b5
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 0x100301f0
cmp edi, edx
je 0x100301cd
mov edx, dword [edx + 4]
cmp ebx, dword [edx + 8]
je 0x10030206
cmp edi, edx
jne 0x100301c1
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 0x10030132
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 0x100301f0
push str.invalid_hash_bucket_count
call fcn.10031b69
int3
Function at 0x10030300
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea edx, [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
test esi, esi
jle 0x10030328
mov eax, dword [ebp + 0x14]
lea edx, [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
dec esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
jmp 0x10030330
xorps xmm0, xmm0
movlpd qword [ebp - 0x10], xmm0
mov ecx, edx
test esi, esi
jle 0x1003034a
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jmp 0x10030352
xorps xmm0, xmm0
movlpd qword [ebp - 0x18], xmm0
mov ecx, edx
test esi, esi
jle 0x1003036c
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
jmp 0x10030374
xorps xmm0, xmm0
movlpd qword [ebp - 0x20], xmm0
mov ecx, edx
test esi, esi
jle 0x1003038e
dec esi
add edx, 8
mov dword [ebp + 0x10], esi
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
jmp 0x10030396
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, edx
mov dword [ebp - 4], 0
cdq
xorps xmm0, xmm0
mov dword [ebp - 0x40], eax
mov eax, esi
mov dword [ebp - 0x3c], edx
cdq
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x100303d7
add dword [esp], 5
retf

Function at 0x10030460
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006d370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5cc
push ebx
push esi
xorps xmm0, xmm0
push edi
movlpd qword [ebp - 0x18], xmm0
push 0x33
call 0x10030490
add dword [esp], 5
retf

Function at 0x100307a0
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006e335
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b0
mov edx, dword [0x100affc4]
push ebx
push esi
mov esi, dword [0x100affc0]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edx
push edi
test esi, esi
jne 0x10030800
test edx, edx
jne 0x100307f4
call fcn.10030460
mov esi, eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], esi
mov dword [0x100affc0], esi
mov dword [0x100affc4], edx
test esi, esi
jne 0x10030800
test edx, edx
je 0x10030c49
lea eax, [ebp - 0xb0]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], edx
push 0x33
call 0x10030816
add dword [esp], 5
retf
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
xor edx, edx
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10049b2f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.10054432
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x10049b6e
sub eax, 1
je 0x10049b69
sub eax, 1
je 0x10049b65
xor eax, eax
leave
ret
push 3
jmp 0x10049b70
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x1005ace5
Capabilities:
Parse pe header

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

Function at 0x1005f999
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10091e54
push 0x10091e4c
push str.FlsAlloc
push 0x1f
call fcn.1005f804
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005f9cd
push dword [ebp + 8]
mov ecx, esi
call dword [0x10070238]
call esi
jmp 0x1005f9d3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1005fa17
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10091e64
push 0x10091e5c
push str.FlsGetValue
push 0x21
call fcn.1005f804
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005fa4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x10070238]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1005fa56
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10091e6c
push 0x10091e64
push str.FlsSetValue
push 0x22
call fcn.1005f804
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005fa90
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10070238]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10062961
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 0x100629fe
push ebx
push esi
call fcn.1006292a
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.100611e8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100629ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100629fd
push edi
push eax
call fcn.1005db3c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100629cb
call fcn.1005d92c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100629fc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100611e8
add esp, 0x20
test eax, eax
jne 0x100629ea
push edi
call fcn.1005d92c
jmp 0x100629f2
push ebx
call fcn.1005d92c
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 0x10062a01
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10062a12
pop esi
ret
push ebx
push edi
push esi
call fcn.1006292a
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1005db3c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10062a3a
push ebx
push esi
push edi
call fcn.1004baa0
add esp, 0xc
push 0
call fcn.1005d92c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10062e0a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10062a4f

Function at 0x100652d2
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1005bf7c
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 0x10065341
cmp esi, dword [ebp - 4]
je 0x1006533c
cmp dword [ebp + 0xc], 0
je 0x1006533c
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10065319
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10064e24
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10065343
xor eax, eax
inc eax
jmp 0x10065343
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100653a8
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x100ad040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.1005bf7c
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.1005bf7c
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1006541f
cmp word [ecx], dx
je 0x1006541f
mov eax, dword [0x100924bc]
push edi
dec eax
push eax
push 0x100923a8
call fcn.10065347
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x10065492
cmp word [eax], dx
je 0x10065492
mov eax, dword [edi]
test eax, eax
je 0x10065443
cmp word [eax], dx
je 0x10065443
lea eax, [ebp - 0x10]
push eax
call fcn.10064d2a
jmp 0x1006544c
lea eax, [ebp - 0x10]
push eax
call fcn.10064dc5
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100654bc
mov eax, dword [0x100923a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10092098
call fcn.10065347
add esp, 0xc
test al, al
je 0x100654bc
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x10065487
cmp word [eax], di
je 0x10065487
lea eax, [ebp - 0x10]
push eax
call fcn.10064d2a
pop ecx
jmp 0x100654be
lea eax, [ebp - 0x10]
push eax
call fcn.10064dc5
jmp 0x10065484
mov eax, dword [edi]
test eax, eax
je 0x100654a9
cmp word [eax], dx
je 0x100654a9
lea eax, [ebp - 0x10]
push eax
call fcn.10064cdf
pop ecx
jmp 0x100654bc
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x10065587
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100651cc
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x10065587
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x10065587
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x10065587
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10065514
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1005fc32
test ebx, ebx
je 0x10065582
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1005fc32
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10065587
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10065587
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1006918c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x10065589
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004a2e8
leave
ret
Function at 0x1006b410
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1006b43d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1006b43d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret