joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x401215
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030f0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401327
push 1
push dword [0x4030f0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030f8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401327
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x40130a
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4033c6
Capabilities:
Create process on windows

Disassembly:
push ebx
xor eax, eax
push eax
push eax
mov ebx, dword [esp + 0x10]
cmp ebx, 0x333e
jne 0x4033e7
mov eax, dword [0x48c8ec]
push eax
mov eax, dword [eax]
call dword [eax + 0x38]
jmp 0x403620
mov ebx, dword [esp + 0x10]
cmp ebx, 0x333c
jne 0x403402
mov dword [0x48c864], 1
jmp 0x403620
mov ebx, dword [esp + 0x10]
cmp ebx, 0x332c
jne 0x4035fe
call fcn.0044e808
push eax
mov ebx, 0x14
cmp ebx, dword [esp]
jne 0x403431
mov dword [0x48c864], 1
jmp 0x4035fb
mov ebx, 0x15
cmp ebx, dword [esp]
jne 0x4034e4
push dword [0x48f240]
mov eax, str..html
push eax
call fcn.0040a644
lea eax, [0x48c8bc]
push eax
call fcn.00451140
push dword [0x48c8bc]
call fcn.0041121a
and eax, eax
je 0x40349a
push 1
mov eax, 0x48202e
push eax
mov eax, 0x48202e
push eax
mov eax, dword [0x48c8bc]
push eax
mov eax, str.open
push eax
push 2
call fcn.00444da9
push eax
call sub.SHELL32.dll_ShellExecuteW
jmp 0x4034df
push dword [0x48f240]
push dword [0x48f240]
mov edx, str.Cannot_save_temporary_file:_r_n
push edx
call fcn.004511a0
mov edx, dword [0x48c8bc]
push edx
call fcn.004511a0
add dword [0x48f240], 2
mov eax, str.PureUnit_1.3
push eax
mov edx, dword [0x489fbc]
add dword [esp + 4], edx
call fcn.00436c24
pop dword [0x48f240]
jmp 0x4035fb
mov ebx, 0x16
cmp ebx, dword [esp]
jne 0x4035fb
push dword [0x48f240]
push dword [0x48f240]
push 0
mov eax, str.Html_files__.html_.htmlAll_files__._.
push eax
push dword [esp + 0x18]
mov eax, str.Choose_target_filename...
push eax
call fcn.00436d22
lea eax, [esp + 8]
push eax
call fcn.00451140
push dword [esp + 4]
mov edx, 0x48202e
pop ecx
call fcn.00414200
jne 0x4035fb
push dword [0x48f240]
push dword [0x48f240]
push dword [esp + 0xc]
call fcn.0044c6d6
add dword [0x48f240], 2
mov edx, 0x48202e
pop ecx
mov dword [0x48f240], ecx
add ecx, dword [0x489fbc]
call fcn.00414200
je 0x40357e
call fcn.00436d46
mov ebx, eax
and ebx, ebx
jne 0x40357e
mov eax, 1
jmp 0x403580
xor eax, eax
and eax, eax
je 0x4035a9
mov edx, dword [esp + 4]
push dword [0x48f240]
push edx
call fcn.004511a0
mov edx, str..html
push edx
call fcn.004511a0
lea eax, [esp + 8]
push eax
call fcn.00451140
push dword [esp + 4]
call fcn.0041121a
mov ebx, eax
and ebx, ebx
jne 0x4035fb
push dword [0x48f240]
push dword [0x48f240]
mov edx, str.Cannot_save_report_file:_r_n
push edx
call fcn.004511a0
mov edx, dword [esp + 0xc]
push edx
call fcn.004511a0
add dword [0x48f240], 2
mov eax, str.PureUnit_1.3
push eax
mov edx, dword [0x489fbc]
add dword [esp + 4], edx
call fcn.00436c24
pop dword [0x48f240]
pop eax
jmp 0x403620
mov ebx, dword [esp + 0x10]
cmp ebx, 0x332d
jne 0x403620
call fcn.0044e817
mov ebx, eax
cmp ebx, 0x14
jne 0x403620
mov dword [0x48c864], 1
mov eax, dword [esp + 0x10]
jmp 0x403628
push dword [esp]
call fcn.004511f0
push dword [esp + 4]
call fcn.004511f0
add esp, 8
pop ebx
ret 4
Function at 0x407844
Capabilities:
Read file on windows

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x1c]
mov dword [0x48f240], eax
mov dword [esp], 0
mov edx, 0x48202e
lea ecx, [esp + 4]
call fcn.00414008
push 0
lea eax, [esp + 0xc]
push eax
push 4
lea eax, [esp + 0xc]
push eax
push dword [0x48c880]
call sub.KERNEL32.dll_ReadFile
and eax, eax
je 0x40789d
mov ebx, dword [esp + 8]
cmp ebx, 4
jne 0x40789d
mov eax, 1
jmp 0x40789f
xor eax, eax
and eax, eax
je 0x407942
mov ebx, dword [esp]
and ebx, ebx
jle 0x407942
push dword [esp]
call fcn.00450780
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x407942
mov dword [esp + 0x10], 0
push 0
lea eax, [esp + 0xc]
push eax
mov ebx, dword [esp + 8]
sub ebx, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x18]
add ebx, dword [esp + 0x1c]
push ebx
push dword [0x48c880]
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
and ebx, ebx
jne 0x4078fc
jmp 0x407911
mov ebx, dword [esp + 0x10]
add ebx, dword [esp + 8]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esp]
jne 0x4078cd
push dword [0x48f240]
push dword [0x48f240]
push 2
push dword [esp + 0xc]
push dword [esp + 0x1c]
call fcn.00450820
lea eax, [esp + 8]
push eax
call fcn.00451140
push dword [esp + 0xc]
call fcn.00450940
mov edx, dword [esp + 4]
push dword [0x48f240]
push edx
call fcn.004511a0
pop eax
add eax, dword [0x489fbc]
jmp 0x40796b
push dword [esp + 4]
call fcn.004511f0
add esp, 0x14
pop ebx
ret
Function at 0x4086a2
Capabilities:
Get common file path

Disassembly:
push ebx
push edi
xor eax, eax
push eax
push eax
mov eax, dword [esp + 0x14]
mov dword [0x48f240], eax
push dword [0x48c8f4]
mov edx, 0x48202e
pop ecx
call fcn.00414200
jne 0x4086e2
mov edx, dword [0x48c8f4]
push dword [0x48f240]
push edx
call fcn.004511a0
pop eax
add eax, dword [0x489fbc]
jmp 0x408927
push dword [0x48f240]
push dword [0x48f240]
call fcn.0044c83a
lea eax, [0x48c8f4]
push eax
call fcn.00451140
lea eax, [esp]
push eax
push 0x1a
push 0
call sub.SHELL32.dll_SHGetSpecialFolderLocation
mov ebx, eax
and ebx, ebx
jne 0x40876c
push dword [0x48f240]
push dword [0x48f240]
push 0x104
call fcn.0044c350
lea eax, [0x48c8f4]
push eax
call fcn.00451140
mov eax, dword [0x48c8f4]
push eax
push dword [esp + 4]
call sub.SHELL32.dll_SHGetPathFromIDListW
mov ebx, eax
and ebx, ebx
jne 0x40876c
push dword [0x48f240]
push dword [0x48f240]
call fcn.0044c83a
lea eax, [0x48c8f4]
push eax
call fcn.00451140
push dword [0x48f240]
push dword [0x48f240]
push 1
push dword [0x48c8f4]
call fcn.0044b9b0
add dword [0x48f240], 2
mov edx, 0x482728
pop ecx
mov dword [0x48f240], ecx
add ecx, dword [0x489fbc]
call fcn.00414200
jne 0x4087d3
mov edx, dword [0x48c8f4]
push dword [0x48f240]
push edx
call fcn.004511a0
mov edx, 0x482512
push edx
call fcn.004511a0
lea eax, [0x48c8f4]
push eax
call fcn.00451140
jmp 0x4087fc
mov edx, dword [0x48c8f4]
push dword [0x48f240]
push edx
call fcn.004511a0
mov edx, str.PureBasic_
push edx
call fcn.004511a0
lea eax, [0x48c8f4]
push eax
call fcn.00451140
push dword [0x48c8f4]
call fcn.0044c86c
push edx
push eax
pop ebx
pop edi
cmp ebx, 0xfffffffe
jne 0x408819
cmp edi, 0xffffffff
jne 0x408819
xor eax, eax
jmp 0x40881e
mov eax, 1
or eax, eax
je 0x4088fc
mov dword [esp + 4], 3
mov ebx, dword [esp + 4]
inc ebx
push ebx
mov eax, 0x482728
push eax
push dword [0x48c8f4]
call fcn.0044bad0
mov ebx, eax
and ebx, ebx
jle 0x4088fc
mov ebx, dword [esp + 4]
inc ebx
push ebx
mov eax, 0x482728
push eax
push dword [0x48c8f4]
call fcn.0044bad0
mov dword [esp + 4], eax
push dword [0x48f240]
push dword [0x48f240]
push dword [0x48f240]
push dword [esp + 0x10]
push dword [0x48c8f4]
call fcn.0044b5c0
mov edx, dword [0x489fbc]
add dword [esp], edx
call fcn.0044c86c
pop dword [0x48f240]
push edx
push eax
pop ebx
pop edi
cmp ebx, 0xfffffffe
jne 0x4088b1
cmp edi, 0xffffffff
jne 0x4088b1
xor eax, eax
jmp 0x4088b6
mov eax, 1
or eax, eax
je 0x4088f7
push dword [0x48f240]
push dword [0x48f240]
push dword [0x48f240]
push dword [esp + 0x10]
push dword [0x48c8f4]
call fcn.0044b5c0
mov edx, dword [0x489fbc]
add dword [esp], edx
call fcn.0044c9c3
pop dword [0x48f240]
mov ebx, eax
and ebx, ebx
jne 0x4088f7
jmp 0x4088fc
jmp 0x40882e
mov edx, dword [0x48c8f4]
push dword [0x48f240]
push edx
call fcn.004511a0
pop eax
add eax, dword [0x489fbc]
jmp 0x408927
add esp, 8
pop edi
pop ebx
ret
Function at 0x40eac3
Capabilities:
Create pipe

Disassembly:
push ebx
xor eax, eax
push eax
push dword [0x48f240]
mov edx, str..pipePureUnit_CommunicationPipe
push edx
call fcn.004511a0
push dword [0x48f240]
push dword [0x48f240]
push 0x186a0
call fcn.00438d40
cdq
push edx
push eax
call fcn.0044bda0
pop eax
lea eax, [esp + 4]
push eax
call fcn.00451140
push 0
push 0x3e8
push 0x3e8
push 0
push 1
push 0
push 1
mov eax, dword [esp + 0x1c]
push eax
call sub.KERNEL32.dll_CreateNamedPipeW
mov dword [0x48c880], eax
mov ebx, dword [0x48c880]
cmp ebx, 0xffffffff
je 0x40eb55
push dword [esp]
mov eax, str.PUREUNIT_COMMUNICATION_PIPE
push eax
call fcn.00437e43
mov eax, 1
jmp 0x40eb5b
xor eax, eax
jmp 0x40eb5b
push dword [esp]
call fcn.004511f0
add esp, 4
pop ebx
ret

Function at 0x40eb68
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
mov eax, dword [esp + 0x28]
mov dword [0x48f240], eax
mov edx, dword [esp + 0x24]
lea ecx, [esp]
call fcn.00414000
mov edx, 0x48202e
lea ecx, [esp + 4]
call fcn.00414008
lea eax, [esp + 8]
push eax
push 1
push 0
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov ebx, eax
and ebx, ebx
jne 0x40ec95
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, 0x48202e
push eax
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
and ebx, ebx
jne 0x40ec8c
push dword [0x48f240]
push dword [0x48f240]
push dword [esp + 0x18]
call fcn.0044c350
lea eax, [esp + 0x18]
push eax
call fcn.00451140
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push eax
push 0
push 0
mov eax, 0x48202e
push eax
push dword [esp + 0x1c]
call sub.ADVAPI32.dll_RegQueryValueExW
mov ebx, eax
and ebx, ebx
jne 0x40ec8c
push dword [0x48f240]
push dword [0x48f240]
push 2
mov eax, 0x482226
push eax
push dword [esp + 0x24]
call fcn.0044bad0
mov ebx, eax
add ebx, 0xfffffffe
push ebx
push 2
push dword [esp + 0x24]
call fcn.0044b920
lea eax, [esp + 8]
push eax
call fcn.00451140
push dword [0x48f240]
push dword [0x48f240]
push dword [esp + 0xc]
call fcn.0044c750
lea eax, [esp + 8]
push eax
call fcn.00451140
push dword [esp + 8]
call sub.ADVAPI32.dll_RegCloseKey
mov edx, dword [esp + 4]
push dword [0x48f240]
push edx
call fcn.004511a0
pop eax
add eax, dword [0x489fbc]
jmp 0x40ecbe
push dword [esp + 0x14]
call fcn.004511f0
push dword [esp + 4]
call fcn.004511f0
push dword [esp]
call fcn.004511f0
add esp, 0x18
pop ebx
ret 8

Function at 0x4182ba
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4182f9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4182f9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4182f9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4182f9
cmp dword [ecx + 0x74], 0xe
jbe 0x4182f9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41ad80
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x473ca0
push str.FlsAlloc
push 0x1f
call fcn.0041aa52
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41adb4
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x41adba
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41adfe
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x473cc4
push str.FlsGetValue
push 0x21
call fcn.0041aa52
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ae35
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41ae3d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x473cd8
push str.FlsSetValue
push 0x22
call fcn.0041aa52
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ae77
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41d2e3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x489fc8]
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 0x41d32e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041d53f
test al, al
jne 0x41d328
sub edx, 2
cmp edx, edi
jne 0x41d30e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41d350
lea eax, [edi + 2]
cmp edx, eax
je 0x41d350
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041cfaa
add esp, 0x10
jmp 0x41d44a
push esi
lea ecx, [ebp - 0x255]
call fcn.0041d53f
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 0x41d393
push dword [ebp - 0x25c]
jmp 0x41d340
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 0x41d3d0
cmp word [ebp - 0x226], 0
je 0x41d3f1
cmp word [ebp - 0x226], ax
jne 0x41d3d0
cmp word [ebp - 0x224], 0
je 0x41d3f1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041cfaa
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41d43d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41d3aa
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41d425
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41d44a
push 0x41c9fa
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00424990
add esp, 0x10
jmp 0x41d41a
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.00414d7f
leave
ret

Function at 0x42014d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041962e
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 0x4201bc
cmp esi, dword [ebp - 4]
je 0x4201b7
cmp dword [ebp + 0xc], 0
je 0x4201b7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x420194
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041fc9f
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4201be
xor eax, eax
inc eax
jmp 0x4201be
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x420223
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x489fc8]
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.0041962e
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.0041962e
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 0x42029a
cmp word [ecx], dx
je 0x42029a
mov eax, dword [0x474fac]
push edi
dec eax
push eax
push 0x474e98
call fcn.004201c2
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x42030d
cmp word [eax], dx
je 0x42030d
mov eax, dword [edi]
test eax, eax
je 0x4202be
cmp word [eax], dx
je 0x4202be
lea eax, [ebp - 0x10]
push eax
call fcn.0041fba5
jmp 0x4202c7
lea eax, [ebp - 0x10]
push eax
call fcn.0041fc40
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x420337
mov eax, dword [0x474e94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x474b88
call fcn.004201c2
add esp, 0xc
test al, al
je 0x420337
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x420302
cmp word [eax], di
je 0x420302
lea eax, [ebp - 0x10]
push eax
call fcn.0041fba5
pop ecx
jmp 0x420339
lea eax, [ebp - 0x10]
push eax
call fcn.0041fc40
jmp 0x4202ff
mov eax, dword [edi]
test eax, eax
je 0x420324
cmp word [eax], dx
je 0x420324
lea eax, [ebp - 0x10]
push eax
call fcn.0041fb3c
pop ecx
jmp 0x420337
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 0x420402
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00420047
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x420402
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x420402
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x420402
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x42038f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0041af7d
test ebx, ebx
je 0x4203fd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0041af7d
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420402
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 0x420402
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00426d1e
add esp, 0x10
xor eax, eax
inc eax
jmp 0x420404
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00414d7f
leave
ret
Function at 0x42108f
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 0x42112c
push ebx
push esi
call fcn.0042104b
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.004212c1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4210d9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42112b
push edi
push eax
call fcn.00419e3e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4210f9
call fcn.00418e73
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x42112a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004212c1
add esp, 0x20
test eax, eax
jne 0x421118
push edi
call fcn.00418e73
jmp 0x421120
push ebx
call fcn.00418e73
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 0x42112f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x421140
pop esi
ret
push ebx
push edi
push esi
call fcn.0042104b
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00419e3e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x421168
push ebx
push esi
push edi
call fcn.0042dac0
add esp, 0xc
push 0
call fcn.00418e73
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x421a96
Capabilities:
Set environment variable

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