joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100578b
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
sub eax, 0x11
push esi
je 0x10057b2
dec eax
je 0x10057a4
xor eax, eax
jmp 0x10058df
call fcn.010056eb
mov dword [ebp - 4], 0x1002374
jmp 0x10057be
call fcn.010056eb
mov dword [ebp - 4], 0x1002364
mov esi, eax
neg esi
sbb esi, esi
push ebx
and esi, 6
push edi
inc esi
call fcn.010056eb
test eax, eax
je 0x1005825
cmp dword [ebp + 0x18], 2
jle 0x1005800
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
test eax, eax
jne 0x10058da
push dword [ebp - 4]
push 0x1002344
jmp 0x1005870
xor ebx, ebx
push ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiSetDeviceRegistryPropertyA]
test eax, eax
jne 0x10058da
push dword [ebp - 4]
push 0x1002324
jmp 0x1005870
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
jmp 0x1005845
cmp byte [ecx], 0x2c
jne 0x1005833
mov byte [ecx], bl
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1005838
sub eax, edi
lea ecx, [ecx + eax + 1]
cmp byte [ecx], bl
jne 0x100582c
push 0xf003f
push 1
push ebx
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100587f
push 0x1002304
push 0x10015b8
push 0x10022e8
call fcn.01007e69
add esp, 0xc
jmp 0x10058cf
cmp dword [ebp + 0x18], 3
jle 0x10058a5
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10058d3
push dword [ebp - 4]
push 0x1002344
jmp 0x10058bb
push dword [ebp - 4]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x10058d3
push dword [ebp - 4]
push 0x1002324
push 0x10022e8
call fcn.01007e69
add esp, 0xc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x10058dd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop ebx
pop esi
leave
ret

Function at 0x10059b4
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xf003f
push 1
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SETUPAPI.dll_SetupDiOpenDevRegKey]
mov esi, eax
test esi, esi
je 0x1005a0d
push dword [ebp + 0x10]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1005a06
push dword [ebp + 0x10]
push 0x10023f0
push 0x10023cc
call fcn.01007ea5
add esp, 0xc
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x1005a0f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x1005d5b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
push eax
xor ebx, ebx
push ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 0x14], eax
xor edi, edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005dce
lea eax, [ebp + 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1005dce
inc edi
cmp dword [ebp - 8], edi
jne 0x1005dce
cmp byte [esi], bl
mov eax, esi
je 0x1005dce
cmp byte [eax], 0x2c
jne 0x1005dc9
mov byte [eax], bl
inc eax
cmp byte [eax], bl
jne 0x1005dc2
cmp dword [ebp - 4], ebx
je 0x1005ddc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1005de8
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
xor edi, edi
call fcn.010056eb
test eax, eax
mov esi, dword [ebp + 0x10]
jne 0x1005e1e
cmp byte [esi], bl
mov eax, esi
je 0x1005e1e
lea ecx, [eax + 1]
cmp byte [ecx], bl
je 0x1005e1e
cmp byte [eax], bl
jne 0x1005e18
mov byte [eax], 0x2c
mov eax, ecx
cmp byte [eax], bl
jne 0x1005e0a
lea eax, [ebp - 4]
push eax
push 0xf003f
push ebx
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1005e75
cmp dword [ebp + 0x14], 2
jle 0x1005e62
call fcn.010056eb
test eax, eax
push dword [ebp + 0x14]
push esi
je 0x1005e5e
push 7
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
jmp 0x1005e6e
push 1
jmp 0x1005e4f
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x1005e75
xor edi, edi
inc edi
cmp dword [ebp - 4], ebx
je 0x1005e83
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100665d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov edi, eax
lea ecx, [ebp - 4]
push ecx
lea eax, [edi + 0x310]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x1002364
push dword [ebp + 8]
mov dword [ebp - 4], 0x103
call esi
test eax, eax
je 0x10066aa
push 0x104
lea eax, [edi + 0x310]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
add edi, 0x414
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0x1002374
push dword [ebp + 8]
mov dword [ebp - 4], 0x103
call esi
test eax, eax
je 0x10066e0
push 0x104
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
xor eax, eax
pop edi
inc eax
pop esi
leave
ret
Function at 0x1007434
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [0x100a11c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [ebp - 0x32c], eax
mov dword [ebp - 0x328], ebx
call fcn.010056eb
test eax, eax
mov dword [ebp - 0x318], 0x10027b4
jne 0x1007478
mov dword [ebp - 0x318], 0x1002804
lea eax, [ebp - 0x31c]
push eax
push 0xf003f
push ebx
push dword [ebp - 0x318]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1007642
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x314], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1007635
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.msvcrt.dll__strlwr]
mov eax, dword [ebp - 0x318]
pop ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1007506
sub eax, edi
mov edi, eax
lea eax, [ebp - 0x108]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x100751a
sub eax, ecx
add eax, edi
cmp eax, esi
jae 0x10075e5
push esi
lea eax, [ebp - 0x310]
push ebx
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x318]
lea eax, [ebp - 0x20c]
push 0x10027ac
push eax
call dword [sym.imp.msvcrt.dll_sprintf]
add esp, 0x1c
lea eax, [ebp - 0x324]
push eax
push 0xf003f
push ebx
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10075e5
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x330]
push eax
push ebx
push 0x10027fc
push dword [ebp - 0x324]
mov dword [ebp - 0x314], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x32c]
call fcn.010064ea
add esp, 0x18
push esi
lea eax, [ebp - 0x108]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
inc dword [ebp - 0x320]
lea eax, [ebp - 0x338]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x314]
push eax
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x320]
mov dword [ebp - 0x314], esi
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10074ef
pop edi
push dword [ebp - 0x31c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
inc eax
pop ebx
call fcn.0100816f
leave
ret
Function at 0x10085b0
Capabilities:
Parse pe header

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

Function at 0x10085f0
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 0x100862f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1008625
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1008631
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1008615
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x4a24459c
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x27ad425e
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
pop eax
nop
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x40ee21
Capabilities:
Delete registry value

Disassembly:
push ebx
mov edx, 8
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x40ee27
call fcn.00470d10
mov edx, dword [esp + 0x28]
lea ecx, [esp]
call fcn.00411000
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 4]
call fcn.00411000
mov edx, dword [esp + 0x30]
lea ecx, [esp + 8]
call fcn.00411000
push dword [esp]
call fcn.0040d5db
push dword [esp + 8]
mov edx, 0x550364
pop ecx
call fcn.00411b60
je 0x40eecb
cmp dword [0x1714aa4], 0
je 0x40eeaf
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x1714abc]
or ebx, 0xf003f
push ebx
push 0
push dword [0x1714a84]
push dword [0x1714aa0]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x40eec9
lea eax, [esp + 0x10]
push eax
push dword [0x1714a84]
push dword [0x1714aa0]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
jmp 0x40ef30
lea eax, [esp + 0x18]
push eax
push dword [0x1714aa0]
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegConnectRegistryW
mov dword [esp + 0x14], eax
cmp dword [0x1714aa4], 0
je 0x40ef18
lea eax, [esp + 0x10]
push eax
mov ebx, dword [0x1714abc]
or ebx, 0xf003f
push ebx
push 0
push dword [0x1714a84]
push dword [esp + 0x28]
call sub.ADVAPI32.dll_RegOpenKeyExW
mov dword [esp + 0xc], eax
jmp 0x40ef30
lea eax, [esp + 0x10]
push eax
push dword [0x1714a84]
push dword [esp + 0x20]
call sub.ADVAPI32.dll_RegOpenKeyW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x40ef64
mov eax, dword [esp + 4]
push eax
push dword [esp + 0x14]
call sub.ADVAPI32.dll_RegDeleteValueW
mov dword [esp + 0xc], eax
mov ebx, dword [esp + 0xc]
and ebx, ebx
jne 0x40ef5c
mov dword [esp + 0x1c], 1
jmp 0x40ef64
mov dword [esp + 0x1c], 0
push dword [esp + 0x10]
call sub.ADVAPI32.dll_RegCloseKey
mov eax, dword [esp + 0x1c]
jmp 0x40ef75
push dword [esp + 8]
call fcn.00470d80
push dword [esp]
call fcn.00470d80
push dword [esp + 4]
call fcn.00470d80
add esp, 0x20
pop ebx
ret 0xc

Function at 0x415ef7
Capabilities:
Parse pe header

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

Function at 0x4189bd
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x51cca0
push str.FlsAlloc
push 0x1f
call fcn.0041868f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4189f1
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4189f7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x418a3b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x51ccc4
push str.FlsGetValue
push 0x21
call fcn.0041868f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418a72
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 0x418a7a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x51ccd8
push str.FlsSetValue
push 0x22
call fcn.0041868f
mov esi, eax
add esp, 0x10
test esi, esi
je 0x418ab4
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 0x419273
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004191ea
Function at 0x41af2b
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x17100b4]
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 0x41af76
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041b187
test al, al
jne 0x41af70
sub edx, 2
cmp edx, edi
jne 0x41af56
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41af98
lea eax, [edi + 2]
cmp edx, eax
je 0x41af98
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041abf2
add esp, 0x10
jmp 0x41b092
push esi
lea ecx, [ebp - 0x255]
call fcn.0041b187
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 0x41afdb
push dword [ebp - 0x25c]
jmp 0x41af88
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 0x41b018
cmp word [ebp - 0x226], 0
je 0x41b039
cmp word [ebp - 0x226], ax
jne 0x41b018
cmp word [ebp - 0x224], 0
je 0x41b039
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041abf2
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41b085
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41aff2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41b06d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41b092
push 0x41a642
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00422650
add esp, 0x10
jmp 0x41b062
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.0041298f
leave
ret

Function at 0x41dd95
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0041726b
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 0x41de04
cmp esi, dword [ebp - 4]
je 0x41ddff
cmp dword [ebp + 0xc], 0
je 0x41ddff
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x41dddc
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0041d8e7
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x41de06
xor eax, eax
inc eax
jmp 0x41de06
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x41de6b
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x17100b4]
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.0041726b
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.0041726b
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 0x41dee2
cmp word [ecx], dx
je 0x41dee2
mov eax, dword [0x51dfac]
push edi
dec eax
push eax
push 0x51de98
call fcn.0041de0a
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41df55
cmp word [eax], dx
je 0x41df55
mov eax, dword [edi]
test eax, eax
je 0x41df06
cmp word [eax], dx
je 0x41df06
lea eax, [ebp - 0x10]
push eax
call fcn.0041d7ed
jmp 0x41df0f
lea eax, [ebp - 0x10]
push eax
call fcn.0041d888
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41df7f
mov eax, dword [0x51de94]
push dword [ebp - 0x14]
dec eax
push eax
push 0x51db88
call fcn.0041de0a
add esp, 0xc
test al, al
je 0x41df7f
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41df4a
cmp word [eax], di
je 0x41df4a
lea eax, [ebp - 0x10]
push eax
call fcn.0041d7ed
pop ecx
jmp 0x41df81
lea eax, [ebp - 0x10]
push eax
call fcn.0041d888
jmp 0x41df47
mov eax, dword [edi]
test eax, eax
je 0x41df6c
cmp word [eax], dx
je 0x41df6c
lea eax, [ebp - 0x10]
push eax
call fcn.0041d784
pop ecx
jmp 0x41df7f
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 0x41e04a
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041dc8f
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41e04a
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41e04a
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41e04a
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41dfd7
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00418bba
test ebx, ebx
je 0x41e045
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00418bba
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41e04a
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 0x41e04a
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004249d2
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41e04c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041298f
leave
ret
Function at 0x41ecd7
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 0x41ed74
push ebx
push esi
call fcn.0041ec93
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.0041ef09
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ed21
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ed73
push edi
push eax
call fcn.00417a7b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ed41
call fcn.00416ab0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ed72
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ef09
add esp, 0x20
test eax, eax
jne 0x41ed60
push edi
call fcn.00416ab0
jmp 0x41ed68
push ebx
call fcn.00416ab0
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 0x41ed77
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41ed88
pop esi
ret
push ebx
push edi
push esi
call fcn.0041ec93
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00417a7b
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41edb0
push ebx
push esi
push edi
call fcn.0042b880
add esp, 0xc
push 0
call fcn.00416ab0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x41f6de
Capabilities:
Set environment variable

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