joyce8/EMBER2024-capa huggingface dataset:
Function at 0x451ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x4bc1c0]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
push esi
mov esi, dword [0x4bdaf4]
push edi
push 0xf0
push eax
push esi
mov dword [ebp - 0x210], ecx
mov edi, 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x451c52
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x451c52
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x451c52
mov edx, 0x1234
push ebx
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x451c28
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x214], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x451ba0
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.00451c80
push dword [ebp - 0x108]
mov eax, dword [ebp - 0x210]
push 0
push 0x143
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmovne ecx, edi
mov edi, ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x451c15
push eax
call fcn.0046b751
add esp, 4
jmp 0x451c15
cmp dx, ax
jne 0x451c1a
push 3
lea eax, [ebp - 0x208]
mov dword [ebp - 0x238], 1
push esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x234], 0xffffffff
mov dword [ebp - 0x20c], eax
call fcn.00451c80
mov eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x230], eax
cmp eax, ecx
je 0x451bf2
push eax
call fcn.0046b751
add esp, 4
lea eax, [ebp - 0x238]
push eax
mov eax, dword [ebp - 0x210]
push 0
push 0x40b
push ebx
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x451c3d
mov edx, 0x1234
add esi, dword [ebp - 0x214]
test edi, edi
jne 0x451b16
pop ebx
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f070
mov esp, ebp
pop ebp
ret 4
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f070
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0045f070
mov esp, ebp
pop ebp
ret 4
Function at 0x452170
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9485
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4bc1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x18], eax
lea edi, [eax + 4]
push 0
mov ecx, edi
call fcn.00451700
mov esi, dword [0x4bdaf4]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
push 0xc
call ebx
push eax
push 0xb
call ebx
mov ebx, dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 1
push 0x80
push esi
call ebx
push eax
push 1
push 0x80
push dword [edi]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
call edi
mov esi, dword [0x4bdaf4]
push 0
push 0x32
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push eax
push 1
push 0x80
push esi
call ebx
mov esi, dword [ebp - 0x18]
push eax
push 0
push 0x80
push dword [esi + 4]
call edi
push 0x3e8
lea ecx, [esi + 0x20]
call fcn.0044f8c0
mov esi, eax
test esi, esi
je 0x4522c6
mov ecx, dword [esi + 0x84]
mov byte [esi + 0x1a], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
je 0x45225c
mov eax, dword [ecx]
lea edx, [ebp - 0x14]
push edx
push 0x4ab704
push ecx
call dword [eax]
test eax, eax
jns 0x45225c
mov dword [ebp - 0x14], 0
mov ecx, dword [esi + 0x84]
xor eax, eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x45228e
mov eax, dword [ecx]
lea edx, [ebp - 0x10]
push edx
push str.bIl
push ecx
call dword [eax]
test eax, eax
jns 0x45228b
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x45228e
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
test eax, eax
je 0x4522a4
mov ecx, dword [eax]
push 0xffffffffffffffff
push eax
call dword [ecx + 0xa8]
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test eax, eax
je 0x4522b2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x4522c6
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0x4ab724
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.dgdsfsdfsdf
push str.sdfdsfds
call dword [sym.imp.ADVAPI32.dll_OpenBackupEventLogA]
test eax, eax
jne 0x452373
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, 0x1a6e
push str.dffghdfhdfgfdnhdfgnfgghdfnjdfghdgfnjhdrhtrfjhtjmnfhgfngfd
call edi
sub esi, 1
jne 0x4522f4
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, 0x1cf2
mov esi, dword [ebp - 0x18]
nop
push 0
push 0
push str.gnjgfjmgfnjfgj.fll
call ebx
push 0
push 0
push 0
push 0xffffffffffffffc2
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
test eax, eax
mov ecx, 0x424422
cmovne ecx, esi
mov esi, ecx
sub edi, 1
jne 0x452310
push edi
push 1
push edi
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0xc
or esi, 0xffffffff
nop
push 0x993
call edi
sub esi, 1
jne 0x452350
lea eax, [esi + 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 0x10
push 0xb
call fcn.0046bcc9
int3
Function at 0x458ca0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x4bc1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x218], ebx
push 0x81
mov eax, dword [edi + 4]
mov dword [edi + 0x30], eax
mov eax, dword [edi]
call dword [eax + 0x10]
mov esi, eax
test esi, esi
jns 0x458cff
push dword [edi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
movzx eax, si
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045f070
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [0x4bdaf4]
push 0xf0
push 0x81
push esi
mov dword [ebp - 0x210], 1
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x458e65
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x458e65
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x458e65
mov edx, 0x1234
nop
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x458e5f
mov ecx, dword [esi + 4]
mov ebx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 0x214], ecx
mov ecx, 0x403
cmp cx, ax
jne 0x458dd8
push 3
lea eax, [ebp - 0x104]
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 0x108], eax
call fcn.00451c80
push dword [ebp - 0x108]
push 0
push 0x143
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x108]
cmovne ecx, dword [ebp - 0x210]
mov dword [ebp - 0x210], ecx
lea ecx, [ebp - 0x104]
cmp eax, ecx
je 0x458e47
push eax
call fcn.0046b751
add esp, 4
jmp 0x458e47
cmp dx, ax
jne 0x458e4c
push 3
lea eax, [ebp - 0x208]
mov dword [ebp - 0x23c], 1
push esi
lea ecx, [ebp - 0x20c]
mov dword [ebp - 0x238], 0xffffffff
mov dword [ebp - 0x20c], eax
call fcn.00451c80
mov eax, dword [ebp - 0x20c]
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x234], eax
cmp eax, ecx
je 0x458e2a
push eax
call fcn.0046b751
add esp, 4
lea eax, [ebp - 0x23c]
push eax
push 0
push 0x40b
push ebx
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageW]
cmp eax, 0xffffffff
je 0x458e5f
mov edx, 0x1234
add esi, dword [ebp - 0x214]
cmp dword [ebp - 0x210], 0
jne 0x458d50
mov ebx, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
mov dword [ebx], 0
xor ecx, ebp
pop ebx
call fcn.0045f070
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45a660
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4bc1c0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x210], 0
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x218]
push edi
push edx
mov edi, dword [eax + 4]
or edi, 0x2001f
mov dword [ebp - 0x220], eax
push edi
push 0
push ecx
push dword [eax]
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x20c], 0
mov dword [ebp - 0x208], 0
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [ebp - 0x210]
test esi, esi
jne 0x45a7c1
xor esi, esi
test eax, eax
je 0x45a6ec
push eax
call ebx
mov esi, eax
mov eax, dword [ebp - 0x218]
and edi, 0x300
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x20c], edi
test esi, esi
jne 0x45a7c1
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [ebp - 0x228]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x214], pe_nt_image_headers32
push ecx
lea ecx, [ebp - 0x204]
push ecx
push esi
push eax
call edi
test eax, eax
jne 0x45a787
nop dword [eax]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x210]
call fcn.0045a660
mov esi, eax
test esi, esi
jne 0x45a7bb
lea eax, [ebp - 0x228]
mov dword [ebp - 0x214], pe_nt_image_headers32
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x210]
call edi
test eax, eax
je 0x45a740
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x45a79e
push eax
call ebx
mov dword [ebp - 0x210], 0
push dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x220]
mov dword [ebp - 0x20c], 0
call fcn.00456e90
mov esi, eax
mov eax, dword [ebp - 0x210]
test eax, eax
je 0x45a7c8
push eax
call ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f070
mov esp, ebp
pop ebp
ret 4
Function at 0x45acf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9e6b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x4bc1c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x45ad9c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x45ad9c
call fcn.00455120
mov edi, eax
jmp 0x45aebb
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45adbf
call fcn.00455120
jmp 0x45aeae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x45addd
call fcn.00455120
jmp 0x45aeae
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x45adfe
mov edi, 0x8007000e
jmp 0x45aeb0
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x45aef4
jb 0x45ae1c
cmp eax, 0xffffffff
ja 0x45aef4
cmp eax, 0x400
jbe 0x45ae31
push eax
lea ecx, [ebp - 0x418]
call fcn.00454990
jmp 0x45ae57
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x45ae57
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x45ae6e
mov edi, 0x8007000e
jmp 0x45aeb0
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x45ae8e
call fcn.00455120
jmp 0x45aeae
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0045ab50
mov edi, eax
test esi, esi
je 0x45aebb
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x45aed4
lea ecx, [ebp - 0x418]
call fcn.00457540
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045f070
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.0044ee70
int3
Function at 0x46029b
Capabilities:
Parse pe header

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

Function at 0x46bb66
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4bc1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x48fd1b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00490172
test al, al
jne 0x48fd15
sub edx, 2
cmp edx, edi
jne 0x48fcfb
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x48fd3d
lea eax, [edi + 2]
cmp edx, eax
je 0x48fd3d
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0048f997
add esp, 0x10
jmp 0x48fe37
push esi
lea ecx, [ebp - 0x255]
call fcn.00490172
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48fd80
push dword [ebp - 0x25c]
jmp 0x48fd2d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x48fdbd
cmp word [ebp - 0x226], 0
je 0x48fdde
cmp word [ebp - 0x226], ax
jne 0x48fdbd
cmp word [ebp - 0x224], 0
je 0x48fdde
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0048f997
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x48fe2a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x48fd97
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x48fe12
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x48fe37
push 0x48f3e7
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0049d150
add esp, 0x10
jmp 0x48fe07
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f070
leave
ret
Function at 0x49180a
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 0x4918a7
push ebx
push esi
call fcn.004917c6
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.00491703
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x491854
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4918a6
push edi
push eax
call fcn.0048cbe2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x491874
call fcn.0048c792
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4918a5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00491703
add esp, 0x20
test eax, eax
jne 0x491893
push edi
call fcn.0048c792
jmp 0x49189b
push ebx
call fcn.0048c792
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 0x4918aa
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4918bb
pop esi
ret
push ebx
push edi
push esi
call fcn.004917c6
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0048cbe2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4918e3
push ebx
push esi
push edi
call fcn.004617b0
add esp, 0xc
push 0
call fcn.0048c792
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4921d2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00491b58

Function at 0x492b4c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b1364
push 0x4b135c
push str.FlsAlloc
push 0x1f
call fcn.0049281a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x492b80
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ab394]
call esi
jmp 0x492b86
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x492bca
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b1374
push 0x4b136c
push str.FlsGetValue
push 0x21
call fcn.0049281a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x492c01
push dword [ebp + 8]
mov ecx, esi
call dword [0x4ab394]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x492c09
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4b137c
push 0x4b1374
push str.FlsSetValue
push 0x22
call fcn.0049281a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x492c43
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4ab394]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x494379
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049424d

Function at 0x4972b3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0048c413
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 0x497322
cmp esi, dword [ebp - 4]
je 0x49731d
cmp dword [ebp + 0xc], 0
je 0x49731d
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4972fa
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00496e05
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x497324
xor eax, eax
inc eax
jmp 0x497324
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x497389
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4bc1c0]
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.0048c413
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.0048c413
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 0x497400
cmp word [ecx], dx
je 0x497400
mov eax, dword [0x4b1fac]
push edi
dec eax
push eax
push 0x4b1e98
call fcn.00497328
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x497473
cmp word [eax], dx
je 0x497473
mov eax, dword [edi]
test eax, eax
je 0x497424
cmp word [eax], dx
je 0x497424
lea eax, [ebp - 0x10]
push eax
call fcn.00496d0b
jmp 0x49742d
lea eax, [ebp - 0x10]
push eax
call fcn.00496da6
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x49749d
mov eax, dword [0x4b1e94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4b1b88
call fcn.00497328
add esp, 0xc
test al, al
je 0x49749d
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x497468
cmp word [eax], di
je 0x497468
lea eax, [ebp - 0x10]
push eax
call fcn.00496d0b
pop ecx
jmp 0x49749f
lea eax, [ebp - 0x10]
push eax
call fcn.00496da6
jmp 0x497465
mov eax, dword [edi]
test eax, eax
je 0x49748a
cmp word [eax], dx
je 0x49748a
lea eax, [ebp - 0x10]
push eax
call fcn.00496ca2
pop ecx
jmp 0x49749d
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 0x497568
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004971ad
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x497568
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x497568
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x497568
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4974f5
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00492eda
test ebx, ebx
je 0x497563
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00492eda
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x497568
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 0x497568
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0049f51e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x49756a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045f070
leave
ret