joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009500
Capabilities:
Get system information on windows
Query or enumerate registry value

Disassembly:
push 0x150
push 0x10016d68
call fcn.10015600
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x124], ebx
mov dword [ebp - 0x128], ebx
mov dword [ebp - 0x12c], ebx
push 0x1001a478
call dword [sym.imp.kernel32.dll_QueryPerformanceFrequency]
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x160]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x160]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x14c]
mov dword [0x1001a470], eax
cmp dword [0x1001a490], ebx
jne 0x100096ec
mov dword [ebp - 0x134], ebx
mov dword [ebp - 4], ebx
mov eax, 0x1001abac
xchg dword [eax], esi
test esi, esi
je 0x1000958b
push 0xffffffffffffffff
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [ebp - 0x124]
push eax
push 0x20019
push ebx
push 0x10001270
push 0x80000002
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
mov esi, eax
mov dword [ebp - 0x120], esi
test esi, esi
jne 0x100096e5
push 4
pop edi
mov dword [ebp - 0x128], edi
lea eax, [ebp - 0x128]
push eax
push 0x1001a48c
lea eax, [ebp - 0x12c]
push eax
push ebx
push 0x1000130c
push dword [ebp - 0x124]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, eax
mov dword [ebp - 0x120], esi
test esi, esi
jne 0x100096e5
mov dword [ebp - 0x128], edi
lea eax, [ebp - 0x128]
push eax
push 0x1001a488
lea eax, [ebp - 0x12c]
push eax
push ebx
push 0x10001328
push dword [ebp - 0x124]
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
mov esi, eax
mov dword [ebp - 0x120], esi
test esi, esi
jne 0x100096e5
call fcn.10009465
mov dword [ebp - 0x130], ebx
cmp ebx, 8
jae 0x10009656
mov ecx, dword [ebx*4 + 0x10001698]
mov dword [ebp - 0x13c], ecx
call fcn.10009cec
inc ebx
jmp 0x10009636
push ecx
push ecx
call fcn.10012e2c
test eax, eax
jns 0x1000966c
push 5
pop esi
mov dword [ebp - 0x120], esi
jmp 0x100096e5
mov edi, 0x1001a494
push edi
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
call fcn.1000aa41
push edi
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [0x1001a480], eax
jmp 0x100096e5
mov dword [ebp - 4], 0xfffffffe
test esi, esi
jne 0x100096f6
inc dword [0x1001a490]
cmp dword [ebp - 0x124], 0
je 0x1000970b
push dword [ebp - 0x124]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
call fcn.10015649
ret 4
Function at 0x10010509
Capabilities:
Get common file path

Disassembly:
push 0x234
mov eax, 0x100164c1
call fcn.10015554
push 6
pop ecx
mov esi, 0x10007734
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push 0x20a
lea eax, [ebp - 0x238]
xor ebx, ebx
inc ebx
movsw word es:[edi], word [esi]
xor edi, edi
push edi
push eax
call sub.VCRUNTIME140_CLR0400.dll_memset
add esp, 0xc
lea eax, [ebp - 0x238]
push 0x104
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x100105df
mov edx, 0x105
mov ecx, edx
sub ecx, eax
cmp ecx, 0xd
jb 0x100105df
lea eax, [ebp - 0x2c]
push eax
push edx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.ucrtbase_clr0400.dll_wcscat_s]
add esp, 0xc
test eax, eax
jne 0x100105df
push edi
push edi
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x23c], edi
mov dword [ebp - 0x240], esi
test esi, esi
je 0x100105ab
mov edi, ebx
mov dword [ebp - 0x23c], edi
mov dword [ebp - 4], 2
test esi, esi
je 0x100105c9
push 0x10007750
push esi
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x100105c9
push 2
pop ebx
or dword [ebp - 4], 0xffffffff
test edi, edi
je 0x100105df
push esi
call dword [sym.imp.kernel32.dll_FreeLibrary]
and dword [ebp - 0x23c], 0
mov dword [0x1001a514], ebx
call fcn.100154fe
ret
Function at 0x10012e2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x10012e3b
pop dword [ebp - 0x24]
mov eax, 0xcc865148
add eax, 0x437adcf3
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x394e7
push 0
mov eax, 0xce2b74d5
sub eax, 0xbe29c409
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0xc7fb42c0
add ecx, 0x38050972
xor edx, edx
add edx, eax
mov edi, 0xff3cd7b0
add edi, 0x10c52250
add edi, dword [ebp - 0x24]
mov esi, 0x161b730f
mov dword [ebp - 0x14], 0x1d353d42
mov ebx, dword [edi]
add dword [ebp - 8], eax
add ebx, esi
sub dword [ebp - 0xc], ecx
mov dword [edx], ebx
xor dword [ebp - 0x20], edi
add edx, 4
add edi, 0xd1c85e0c
add edi, 0x2e37a1f8
loop 0x10012e96
add eax, 0x29b81a08
sub eax, 0x29b6f66d
xor ebx, ebx
add ebx, eax
add eax, 0x424324ea
sub eax, 0x424324e5
mov ecx, 0xeac5724d
sub ecx, 0xdac5724d
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x10013511
Capabilities:
Read file via mapping

Disassembly:
push 0x44
mov eax, 0x10016ae1
call fcn.1001558b
mov esi, ecx
mov dword [ebp - 0x20], esi
xor edi, edi
cmp dword [esi + 0x24], edi
je 0x10013533
mov eax, 0x800700b7
jmp 0x100136c1
mov ebx, edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.1000a0b0
mov byte [ebp - 4], 2
push dword [ebp + 8]
push 0x10008bac
lea eax, [ebp - 0x50]
push eax
call fcn.10012e2c
add esp, 0xc
lea ecx, [ebp - 0x50]
call fcn.1000c91a
push dword [ebp - 0x44]
push edi
push 4
call dword [sym.imp.kernel32.dll_OpenFileMappingW]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x10013587
call fcn.1000bccb
mov ebx, eax
mov dword [ebp - 0x18], ebx
cmp dword [esi + 0x20], edi
jne 0x1001359a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.10012e2c
jmp 0x100135d9
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.10012e2c
push edi
push edi
push edi
push 4
push dword [esi + 0x20]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [esi + 0x24], eax
test eax, eax
jne 0x100135c4
call fcn.1000bccb
mov ebx, eax
jmp 0x100135d6
push 1
mov ecx, esi
call fcn.10012e2c
test eax, eax
jne 0x100135d9
mov ebx, 0x80131c30
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
jmp 0x10013692
test byte [ebp - 0x2c], 2
je 0x1001369d
call fcn.1000fc34
test ebx, ebx
jns 0x100136bf
lea ecx, [esi + 0x18]
cmp dword [ecx], edi
je 0x100136b0
lea edx, [esi + 0x1c]
call fcn.1001398e
lea ecx, [esi + 0x20]
cmp dword [ecx], edi
je 0x100136bf
lea edx, [esi + 0x24]
call fcn.1001398e
mov eax, ebx
call fcn.100154e9
ret 8
Function at 0x100136c9
Capabilities:
Read file via mapping

Disassembly:
push 0x44
mov eax, 0x10016b44
call fcn.1001558b
mov esi, ecx
mov dword [ebp - 0x20], esi
xor edi, edi
cmp dword [esi + 0x10], edi
je 0x100136eb
mov eax, 0x800700b7
jmp 0x100138ac
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.1000a0b0
mov byte [ebp - 4], 2
push ecx
lea eax, [esi + 0xc]
push eax
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
lea edx, [ebp - 0x50]
mov ecx, dword [ebp + 8]
call fcn.100139b7
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
jns 0x10013736
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.10012e2c
jmp 0x100137bf
lea ecx, [ebp - 0x50]
call fcn.1000c91a
push dword [ebp - 0x44]
push edi
push 4
call dword [sym.imp.kernel32.dll_OpenFileMappingW]
mov dword [esi], eax
test eax, eax
jne 0x1001375a
call fcn.1000bccb
mov ebx, eax
mov dword [ebp - 0x14], ebx
cmp dword [esi], edi
je 0x10013725
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.10012e2c
push edi
push edi
push edi
push 4
push dword [esi]
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [esi + 0x10], eax
test eax, eax
jne 0x10013787
call fcn.1000bccb
mov ebx, eax
jmp 0x100137bc
mov edx, edi
mov dword [ebp - 0x1c], edx
cmp edx, 0x20
jae 0x100137b3
mov ecx, edx
shl ecx, 0xb
mov eax, dword [esi + 0x10]
mov ax, word [ecx + eax + 0x12]
test al, 2
jne 0x100137a5
inc edx
jmp 0x10013789
movzx eax, ax
shr eax, 2
and eax, 1
mov dword [esi + 0x14], eax
jmp 0x100137b5
test edi, edi
jne 0x100137bf
mov ebx, 0x80004005
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], edi
or dword [ebp - 4], 0xffffffff
jmp 0x10013875
test byte [ebp - 0x2c], 2
je 0x10013880
call fcn.1000fc34
test ebx, ebx
jns 0x10013892
cmp dword [esi], edi
je 0x10013892
lea edx, [esi + 0x10]
mov ecx, esi
call fcn.1001398e
lea eax, [esi + 8]
push eax
lea edx, [esi + 0xc]
lea ecx, [esi + 4]
call fcn.10012e2c
test eax, eax
jns 0x100138aa
mov ebx, 0x80004005
mov eax, ebx
call fcn.100154e9
ret 8
Function at 0x100145e0
Capabilities:
Compare security identifiers

Disassembly:
push 0x3c
mov eax, 0x10016caa
call fcn.1001558b
mov edi, edx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x30], ecx
mov byte [ebp - 0x11], 1
xor eax, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 4], eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x1c]
call fcn.10012e2c
test eax, eax
jns 0x10014622
mov ecx, eax
call fcn.1000f862
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
mov ebx, dword [ebp - 0x1c]
push ebx
call dword [sym.imp.advapi32.dll_GetSecurityDescriptorOwner]
test eax, eax
jne 0x10014651
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x1001464d
movzx ecx, cx
or ecx, 0x80070000
xor eax, eax
jmp 0x10014655
xor eax, eax
mov ecx, eax
test ecx, ecx
js 0x1001461d
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 3
mov esi, eax
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 4
push edi
lea ecx, [ebp - 0x20]
call fcn.10012e2c
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.advapi32.dll_EqualSid]
test eax, eax
je 0x10014689
mov byte [ebp - 0x11], 0
jmp 0x100146db
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
cmp eax, dword [ebp - 0x18]
je 0x100146ae
push eax
lea ecx, [ebp - 0x28]
call fcn.10012e2c
push dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
push esi
call dword [sym.imp.advapi32.dll_EqualSid]
test eax, eax
jne 0x10014683
push 6
pop edx
mov ecx, 0x200
call fcn.1000dc46
test eax, eax
je 0x100146db
push dword [ebp - 0x18]
push dword [ebp - 0x30]
push 0x10008d9c
push 2
push 0x200
push 6
call fcn.10012e2c
add esp, 0x18
mov byte [ebp - 4], 3
test esi, esi
je 0x100146ea
mov edx, esi
call fcn.1000c446
mov byte [ebp - 4], 2
test edi, edi
je 0x100146f9
mov edx, edi
call fcn.1000c446
mov byte [ebp - 4], 1
test ebx, ebx
je 0x10014708
mov edx, ebx
call fcn.1000c446
xor eax, eax
mov dword [ebp - 4], eax
or dword [ebp - 4], 0xffffffff
jmp 0x100147b7
test al, 2
je 0x100147c0
call fcn.1000fc34
mov al, byte [ebp - 0x11]
call fcn.100154e9
ret
Function at 0x29a0f15c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x29a0f16b
pop dword [ebp - 0x18]
mov eax, 0x1e7ee969
add eax, 0xb220802
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x9cf10369
sub dword [ebp - 0x28], 0x4e9ebe1e
mov dword [ebp - 0x24], 0x4d471613
sub dword [ebp - 0x24], 0x1b13c9ce
mov dword [ebp - 0x20], 0x145a6fb3
sub dword [ebp - 0x20], 0xc80e2b85
mov dword [ebp - 0x1c], 0xc3526cb8
sub dword [ebp - 0x1c], 0xc3526cb8
lea eax, [ebp - 0x28]
push eax
mov eax, 0x14514fb4
add eax, 0x154ff0d8
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x4ec24844
sub dword [ebp - 0x28], 0xda4fdeee
mov dword [ebp - 0x24], 0x4a300086
sub dword [ebp - 0x24], 0x8c39f11
mov dword [ebp - 0x20], 0xd714c53b
sub dword [ebp - 0x20], 0x73a558cf
mov dword [ebp - 0x1c], 0x6470f6a7
add dword [ebp - 0x1c], 0x9b8f0959
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xd2e9125d
add eax, 0x56b82de7
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x38af3
push 0
call eax
mov ecx, 0x41db
xor edx, edx
add edx, eax
mov edi, 0x4254b59b
add edi, 0xe74d7a65
add edi, dword [ebp - 0x18]
mov esi, 0xbbd14e51
add esi, 0xcee2d3a0
sub dword [ebp - 0x10], ecx
mov ebx, dword [edi]
add dword [ebp - 4], 0xe3edb321
xor ebx, esi
sub dword [ebp - 4], 0xd97215fc
mov dword [edx], ebx
add edx, 0x7506b30e
add edx, 0x8af94cf6
add edi, 4
loop 0x29a0f289
add eax, 0xd2ac2d76
add eax, 0x2d54ccc9
xor ebx, ebx
add ebx, eax
add eax, 0x9593eb0e
add eax, 0x6a6c14f7
mov ecx, 0x29a00000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rsrc
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xdeb096b
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0xdb84af2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40df5c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409ac3
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40e00f
push 0x4122f8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40e0b7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4122ec
push ebx
call edi
test eax, eax
je 0x40e0b7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4122dc
push ebx
mov dword [0x416cac], eax
call edi
push eax
call esi
push 0x4122c8
push ebx
mov dword [0x416cb0], eax
call edi
push eax
call esi
push 0x4122ac
push ebx
mov dword [0x416cb4], eax
call edi
push eax
call esi
mov dword [0x416cbc], eax
test eax, eax
je 0x40e00f
push 0x412294
push ebx
call edi
push eax
call esi
mov dword [0x416cb8], eax
mov eax, dword [0x416cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40e068
cmp dword [0x416cbc], ecx
je 0x40e068
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40e068
test ebx, ebx
je 0x40e068
call edi
test eax, eax
je 0x40e05f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40e05f
test byte [ebp - 8], 1
jne 0x40e068
or dword [ebp + 0x10], 0x200000
jmp 0x40e09b
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40e09b
push eax
call esi
test eax, eax
je 0x40e09b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40e09b
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40e09b
push eax
call esi
test eax, eax
je 0x40e09b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40e0b7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40e0b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004045f7
leave
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x4703787f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42f314
nop
mov ecx, 0x5cef744a
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402ab0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call esi
push 0
push 0
push 0
push 0x402550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x15f90
call esi
push 0x15f90
call esi
jmp 0x402ad3
Function at 0x40829f
Capabilities:
Parse pe header

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

Function at 0x41507a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424fd0
push 0x424fc8
push str.FlsAlloc
push 0x1f
call fcn.00414f42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4150ae
push dword [ebp + 8]
mov ecx, esi
call dword [0x421140]
call esi
jmp 0x4150b4
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4150f8
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424fe0
push 0x424fd8
push str.FlsGetValue
push 0x21
call fcn.00414f42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41512f
push dword [ebp + 8]
mov ecx, esi
call dword [0x421140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x415137
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x424fe8
push 0x424fe0
push str.FlsSetValue
push 0x22
call fcn.00414f42
mov esi, eax
add esp, 0x10
test esi, esi
je 0x415171
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x421140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x417934
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 0x4179d1
push ebx
push esi
call fcn.004178fd
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.004165d6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41797e
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4179d0
push edi
push eax
call fcn.00413102
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41799e
call fcn.004130c8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4179cf
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004165d6
add esp, 0x20
test eax, eax
jne 0x4179bd
push edi
call fcn.004130c8
jmp 0x4179c5
push ebx
call fcn.004130c8
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 0x419c74
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00412ddd
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 0x419ce3
cmp esi, dword [ebp - 4]
je 0x419cde
cmp dword [ebp + 0xc], 0
je 0x419cde
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x419cbb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004197c6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x419ce5
xor eax, eax
inc eax
jmp 0x419ce5
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x419d4a
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c040]
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.00412ddd
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.00412ddd
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 0x419dc1
cmp word [ecx], dx
je 0x419dc1
mov eax, dword [0x42544c]
push edi
dec eax
push eax
push 0x425338
call fcn.00419ce9
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x419e34
cmp word [eax], dx
je 0x419e34
mov eax, dword [edi]
test eax, eax
je 0x419de5
cmp word [eax], dx
je 0x419de5
lea eax, [ebp - 0x10]
push eax
call fcn.004196cc
jmp 0x419dee
lea eax, [ebp - 0x10]
push eax
call fcn.00419767
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x419e5e
mov eax, dword [0x425334]
push dword [ebp - 0x14]
dec eax
push eax
push 0x425028
call fcn.00419ce9
add esp, 0xc
test al, al
je 0x419e5e
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x419e29
cmp word [eax], di
je 0x419e29
lea eax, [ebp - 0x10]
push eax
call fcn.004196cc
pop ecx
jmp 0x419e60
lea eax, [ebp - 0x10]
push eax
call fcn.00419767
jmp 0x419e26
mov eax, dword [edi]
test eax, eax
je 0x419e4b
cmp word [eax], dx
je 0x419e4b
lea eax, [ebp - 0x10]
push eax
call fcn.00419681
pop ecx
jmp 0x419e5e
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 0x419f29
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00419b6e
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x419f29
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x419f29
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x419f29
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x419eb6
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00415277
test ebx, ebx
je 0x419f24
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00415277
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x419f29
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 0x419f29
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041d3b1
add esp, 0x10
xor eax, eax
inc eax
jmp 0x419f2b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004075ed
leave
ret