joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014780
Capabilities:
Contain obfuscated stackstrings

Disassembly:
insb byte es:[edi], dx
mov byte [ebp - 0x59], 0x6c
insb byte es:[edi], dx
mov byte [ebp - 0x58], 0
mov byte [ebp - 0x3c], 0x70
mov byte [ebp - 0x3b], 0x73
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x70
mov byte [ebp - 0x38], 0x69
mov byte [ebp - 0x37], 0x2e
mov byte [ebp - 0x36], 0x64
mov byte [ebp - 0x35], 0x6c
mov byte [ebp - 0x34], 0x6c
mov byte [ebp - 0x33], 0
mov byte [ebp - 0x54], 0x6d
mov byte [ebp - 0x53], 0x73
inc ebp
lodsd eax, dword [esi]
jae 0x101474a
inc ebp
scasb al, byte es:[edi]
jbe 0x101474e
inc ebp
scasd eax, dword es:[edi]
arpl si, ax
inc ebp
mov al, 0x72
inc ebp
lodsd eax, dword [esi]
jae 0x101474a
inc ebp
scasb al, byte es:[edi]
jbe 0x101474e
inc ebp
scasd eax, dword es:[edi]
arpl si, ax
inc ebp
mov al, 0x72
mov byte [ebp - 0x4f], 0x74
mov byte [ebp - 0x4e], 0x2e
mov byte [ebp - 0x4d], 0x64
mov byte [ebp - 0x4c], 0x6c
mov byte [ebp - 0x4b], 0x6c
mov byte [ebp - 0x4a], 0
mov byte [ebp - 0x30], 0x77
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2e], 0x6e
mov byte [ebp - 0x2d], 0x68
mov byte [ebp - 0x2c], 0x74
mov byte [ebp - 0x2b], 0x74
mov byte [ebp - 0x2a], 0x70
mov byte [ebp - 0x29], 0
mov byte [ebp - 0x48], 0x75
mov byte [ebp - 0x47], 0x73
mov byte [ebp - 0x46], 0x65
mov byte [ebp - 0x45], 0x72
mov byte [ebp - 0x44], 0x33
mov byte [ebp - 0x43], 0x32
mov byte [ebp - 0x42], 0x2e
mov byte [ebp - 0x41], 0x64
mov byte [ebp - 0x40], 0x6c
mov byte [ebp - 0x3f], 0x6c
mov byte [ebp - 0x3e], 0
call fcn.010146b2
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 0x513eb0
mov dword [ebp - 4], eax
push 0x8fecd63f
call fcn.01014602
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
push 0xcef6e822
call fcn.01014602
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], ecx
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x64]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.010144b2
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0x64], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x64]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xcc]
push eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.010144b2
add esp, 0xc
mov edx, dword [ebp - 4]
push ebp
cld

Function at 0x101a790
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jg 0x101a7b9
xor eax, eax
jmp 0x101a7f7
mov edx, dword [ebp - 4]
shl edx, 1
push edx
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x101a7d6
xor eax, eax
jmp 0x101a7f7
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x101a7f2
xor eax, eax
jmp 0x101a7f7
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x101a8b0
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6fc
mov eax, dword [0x1025324]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x101a9f4
mov dword [ebp - 0x43c], 0x104
lea ecx, [ebp - 0x43c]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x101a9ea
mov word [ebp - 0x438], 0
mov dword [ebp - 0x224], 0x105
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x438]
push edx
push 0
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_Ordinal_348]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x101a978
movzx ecx, word [ebp - 0x438]
test ecx, ecx
je 0x101a978
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x438]
push eax
call fcn.01020750
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 8], ecx
jmp 0x101a9ea
push 0x200
push 0x2b4
lea edx, [ebp - 0x6f8]
push edx
push 0
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x101a9bd
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x6ec]
push edx
call fcn.01020750
xor ecx, ecx
test eax, eax
setge cl
mov dword [ebp - 8], ecx
jmp 0x101a9ea
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x6fc], eax
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x6fc]
push ecx
call fcn.01020750
xor edx, edx
test eax, eax
setge dl
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0101b5a5
mov esp, ebp
pop ebp
ret 8

Function at 0x101aa10
Capabilities:
Get file system object information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4e0
mov eax, dword [0x1025324]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x101aaac
mov dword [ebp - 0x224], 0x104
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x220]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x101aaa2
push 0x100
push 0x2b4
lea ecx, [ebp - 0x4e0]
push ecx
push 0
lea edx, [ebp - 0x220]
push edx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x101aaa2
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x4e0]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0101b5a5
mov esp, ebp
pop ebp
ret 8
Function at 0x101ae6f
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1025324]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.0101ae04
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x101aee2
cmp dword [ebp - 0x94], 5
jb 0x101af03
jmp 0x101aeff
cmp dword [ebp - 0x88], 1
jne 0x101af03
cmp dword [ebp - 0x94], 4
ja 0x101aeff
jne 0x101af03
cmp dword [ebp - 0x90], 0
jbe 0x101af03
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1002054
call fcn.0100d0d0
test eax, eax
jge 0x101af24
mov byte [0x1025398], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101b5a5
leave
ret

Function at 0x101b128
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10256cc], 0
push esi
jne 0x101b096
call fcn.0101af8d
test eax, eax
je 0x101b0d9
mov eax, dword [0x10256cc]
cmp eax, 1
jne 0x101b0b7
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x101b0d9
pop esi
ret
push eax
call dword [0x10256d4]
test eax, eax
jne 0x101b121
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x101b0dd
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10256cc]
call dword [0x10256d4]
mov edi, eax
test edi, edi
je 0x101b102
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x101b11e
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10256cc]
call dword [0x10256d0]
add edi, 0x10
cmp edi, esi
jb 0x101b10a
mov eax, edi
pop edi
pop esi
ret
jmp 0x101b083

Function at 0x101b900
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x101b913
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101b90f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x101b940
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x101b97f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x101b975
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x101b981
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x101b965
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10209d0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x10209f0
mov dword [ebp - 8], 0x80004003
jmp 0x1020a40
cmp dword [ebp + 0x10], 0
jne 0x1020a01
mov dword [ebp - 8], 0x80004003
jmp 0x1020a40
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1020a2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01009310
mov dword [ebp - 8], eax
jmp 0x1020a40
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x1020a40
mov dword [ebp - 8], 0x8007007a
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40dd62
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
push ebx
mov edx, 0xa
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40dd69
call fcn.004619a0
mov edx, dword [esp + 0x34]
lea ecx, [esp]
call fcn.0041b060
mov edx, dword [esp + 0x38]
lea ecx, [esp + 4]
call fcn.0041b060
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 8]
call fcn.0041b060
mov edx, dword [esp + 0x40]
lea ecx, [esp + 0xc]
call fcn.0041b060
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x10]
call fcn.0041b060
mov edx, dword [esp + 0x48]
lea ecx, [esp + 0x14]
call fcn.0041b060
push 0
call sub.ole32.dll_CoInitialize
lea eax, [esp + 0x24]
push eax
mov ebp, 0x872447
push ebp
push 1
push 0
mov ebp, 0x872437
push ebp
call sub.ole32.dll_CoCreateInstance
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x40dec7
sub esp, 4
push dword [esp + 4]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
push eax
pop eax
add esp, 4
sub esp, 4
push dword [esp + 0x50]
push dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
push eax
pop eax
add esp, 4
lea eax, [esp + 0x20]
push eax
mov ebp, 0x872457
push ebp
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax]
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
and ebx, ebx
jne 0x40debd
sub esp, 4
push 1
push dword [esp + 0xc]
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
push eax
pop eax
add esp, 4
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [eax]
call dword [eax + 8]
call sub.ole32.dll_CoUninitialize
mov eax, dword [esp + 0x18]
jmp 0x40ded4
push dword [esp]
call fcn.00461a10
push dword [esp + 4]
call fcn.00461a10
push dword [esp + 0x14]
call fcn.00461a10
push dword [esp + 0xc]
call fcn.00461a10
push dword [esp + 0x1c]
call fcn.00461a10
push dword [esp + 8]
call fcn.00461a10
push dword [esp + 0x10]
call fcn.00461a10
add esp, 0x28
pop ebx
pop ebp
ret 0x1c
Function at 0x417b05
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004619a0
push 0xa0
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp], eax
push 0x24
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 4], eax
push 0x23
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 8], eax
push 0x21
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 0xc], eax
push 0x22
call sub.USER32.dll_GetAsyncKeyState
mov dword [esp + 0x10], eax
mov ebx, dword [esp]
and ebx, ebx
je 0x417b6d
mov ebx, dword [esp + 4]
and ebx, ebx
je 0x417b6d
mov eax, 1
jmp 0x417b6f
xor eax, eax
and eax, eax
je 0x417b82
call fcn.0040e42c
mov dword [0x876780], 0
mov ebx, dword [esp]
and ebx, ebx
je 0x417b98
mov ebx, dword [esp + 8]
and ebx, ebx
je 0x417b98
mov eax, 1
jmp 0x417b9a
xor eax, eax
and eax, eax
je 0x417bad
call fcn.0040da88
mov dword [0x876780], 0
mov ebx, dword [esp]
and ebx, ebx
je 0x417bc3
mov ebx, dword [esp + 0xc]
and ebx, ebx
je 0x417bc3
mov eax, 1
jmp 0x417bc5
xor eax, eax
and eax, eax
je 0x417bce
call fcn.00410b93
mov ebx, dword [esp]
and ebx, ebx
je 0x417be4
mov ebx, dword [esp + 0x10]
and ebx, ebx
je 0x417be4
mov eax, 1
jmp 0x417be6
xor eax, eax
and eax, eax
je 0x417bef
call fcn.00414937
xor eax, eax
add esp, 0x14
pop ebx
ret

Function at 0x41f257
Capabilities:
Parse pe header

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

Function at 0x421d1d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x5baca0
push str.FlsAlloc
push 0x1f
call fcn.004219ef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421d51
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x421d57
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x421d9b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x5bacc4
push str.FlsGetValue
push 0x21
call fcn.004219ef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421dd2
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 0x421dda
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x5bacd8
push str.FlsSetValue
push 0x22
call fcn.004219ef
mov esi, eax
add esp, 0x10
test esi, esi
je 0x421e14
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 0x4225d3
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042254a
Function at 0x4242a8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x872470]
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 0x4242f3
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00424504
test al, al
jne 0x4242ed
sub edx, 2
cmp edx, edi
jne 0x4242d3
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x424315
lea eax, [edi + 2]
cmp edx, eax
je 0x424315
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00423f6f
add esp, 0x10
jmp 0x42440f
push esi
lea ecx, [ebp - 0x255]
call fcn.00424504
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 0x424358
push dword [ebp - 0x25c]
jmp 0x424305
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 0x424395
cmp word [ebp - 0x226], 0
je 0x4243b6
cmp word [ebp - 0x226], ax
jne 0x424395
cmp word [ebp - 0x224], 0
je 0x4243b6
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00423f6f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x424402
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x42436f
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4243ea
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42440f
push 0x4239bf
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042b9f0
add esp, 0x10
jmp 0x4243df
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.0041bcef
leave
ret

Function at 0x427137
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004205cb
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 0x4271a6
cmp esi, dword [ebp - 4]
je 0x4271a1
cmp dword [ebp + 0xc], 0
je 0x4271a1
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x42717e
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00426c89
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4271a8
xor eax, eax
inc eax
jmp 0x4271a8
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x42720d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x872470]
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.004205cb
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.004205cb
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 0x427284
cmp word [ecx], dx
je 0x427284
mov eax, dword [0x5bbfac]
push edi
dec eax
push eax
push 0x5bbe98
call fcn.004271ac
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4272f7
cmp word [eax], dx
je 0x4272f7
mov eax, dword [edi]
test eax, eax
je 0x4272a8
cmp word [eax], dx
je 0x4272a8
lea eax, [ebp - 0x10]
push eax
call fcn.00426b8f
jmp 0x4272b1
lea eax, [ebp - 0x10]
push eax
call fcn.00426c2a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x427321
mov eax, dword [0x5bbe94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x5bbb88
call fcn.004271ac
add esp, 0xc
test al, al
je 0x427321
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4272ec
cmp word [eax], di
je 0x4272ec
lea eax, [ebp - 0x10]
push eax
call fcn.00426b8f
pop ecx
jmp 0x427323
lea eax, [ebp - 0x10]
push eax
call fcn.00426c2a
jmp 0x4272e9
mov eax, dword [edi]
test eax, eax
je 0x42730e
cmp word [eax], dx
je 0x42730e
lea eax, [ebp - 0x10]
push eax
call fcn.00426b26
pop ecx
jmp 0x427321
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 0x4273ec
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00427031
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4273ec
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4273ec
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4273ec
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x427379
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00421f1a
test ebx, ebx
je 0x4273e7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00421f1a
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4273ec
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 0x4273ec
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0042dd7c
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4273ee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041bcef
leave
ret
Function at 0x428079
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 0x428116
push ebx
push esi
call fcn.00428035
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.004282ab
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4280c3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x428115
push edi
push eax
call fcn.00420ddb
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4280e3
call fcn.0041fe10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x428114
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004282ab
add esp, 0x20
test eax, eax
jne 0x428102
push edi
call fcn.0041fe10
jmp 0x42810a
push ebx
call fcn.0041fe10
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 0x428119
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x42812a
pop esi
ret
push ebx
push edi
push esi
call fcn.00428035
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00420ddb
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x428152
push ebx
push esi
push edi
call fcn.00434c20
add esp, 0xc
push 0
call fcn.0041fe10
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x428a80
Capabilities:
Set environment variable

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