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

Disassembly:
push 0x18
mov eax, 0x4398e0
call fcn.00421920
mov ebx, ecx
mov dword [ebp - 0x20], ebx
call fcn.0040bac9
push eax
lea ecx, [ebp - 0x10]
call fcn.004012cf
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0
push 0x25
mov edi, 0x104
push edi
call fcn.004017e6
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.00401872
push 0x43e5ac
lea ecx, [ebp - 0x10]
call fcn.00403dfd
push edi
lea ecx, [ebx + 4]
call fcn.004017e6
mov edi, dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
push 0
push 0
push ecx
push eax
push edi
call sub.msi.dll_MsiMessageBoxW
push 0xffffffffffffffff
lea ecx, [ebx + 4]
call fcn.00401872
push str.Path
lea ecx, [ebp - 0x18]
call fcn.0040194d
push str.MSI_Updater
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040194d
push 0x453998
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x14]
mov ecx, 0x4538c8
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00408ff6
add ebx, 8
mov byte [ebp - 4], 3
push eax
mov ecx, ebx
call fcn.0040132a
mov ecx, dword [ebp - 0x1c]
lea ecx, [ecx - 0x10]
call fcn.00401856
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401856
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0
lea ecx, [ecx - 0x10]
call fcn.00401856
mov esi, dword [ebp - 0x20]
mov ecx, esi
call fcn.00405c41
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x405e66
cmp dword [esi + 0xc], 0
jne 0x405e2e
push ebx
mov ecx, 0x4538c8
call fcn.004087cd
test eax, eax
jne 0x405e2e
mov ecx, ebx
call fcn.00401451
jmp 0x405e66
call fcn.0040bac9
push eax
lea ecx, [ebp - 0x18]
call fcn.004012cf
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push str.__quiet__norestart__overwriteoem
push eax
call fcn.004014f0
mov esi, dword [ebp - 0x18]
pop ecx
pop ecx
mov ecx, ebx
push dword [esi - 0xc]
push esi
call fcn.00403e26
lea ecx, [esi - 0x10]
call fcn.00401856
lea ecx, [edi - 0x10]
call fcn.00401856
call fcn.004218ee
ret

Function at 0x4075c6
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ecx, 0x3ff
and ax, cx
movzx eax, ax
cmp eax, 1
je 0x4075e9
cmp eax, 0xd
je 0x4075e9
mov eax, dword [ebp + 0xc]
jmp 0x4075f1
mov eax, dword [ebp + 0xc]
or eax, 0x100000
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
push 0x4538c8
call fcn.00417bd4
add esp, 0x10
pop ebp
ret
Function at 0x40a4d1
Capabilities:
Delete file
Shutdown system

Disassembly:
push 0x24
mov eax, 0x43a1de
call fcn.00421953
mov esi, ecx
xor eax, eax
mov ebx, eax
mov dword [ebp - 0x2c], ebx
cmp dword [esi + 0xec], eax
jne 0x40a5f3
cmp dword [esi + 0xe4], eax
jne 0x40a5f3
cmp dword [esi + 0x160], eax
jne 0x40a540
cmp dword [esi + 0x15c], eax
je 0x40a53b
push 0x90
lea eax, [ebp - 0x30]
push eax
call fcn.0040906b
and dword [ebp - 4], ebx
inc ebx
push 0
push 0x10024
push dword [eax]
mov dword [ebp - 0x2c], ebx
call fcn.004075c6
add esp, 0xc
cmp eax, 6
jne 0x40a540
xor eax, eax
mov byte [ebp - 0x21], al
jmp 0x40a544
mov byte [ebp - 0x21], 1
test bl, 1
je 0x40a554
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00401856
cmp byte [ebp - 0x21], 0
jne 0x40a5f3
lea edi, [esi + 0x12c]
xor ebx, ebx
mov eax, dword [edi]
cmp dword [eax - 0xc], ebx
je 0x40a57b
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, edi
call fcn.00401451
lea eax, [ebp - 0x28]
mov dword [esi + 0xe0], ebx
push eax
push 0x28
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40a5d3
lea eax, [ebp - 0x1c]
push eax
push str.SeShutdownPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov esi, eax
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 2
test esi, esi
je 0x40a5d3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
push ebx
push dword [ebp - 0x28]
call edi
mov esi, eax
push 1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownW]
test esi, esi
je 0x40a5f3
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x14], ebx
push eax
push ebx
push dword [ebp - 0x28]
call edi
call fcn.00421902
ret

Function at 0x40ac28
Capabilities:
Set registry value

Disassembly:
push 0xc
mov eax, 0x43a294
call fcn.00421920
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
xor esi, esi
call fcn.0040194d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], esi
mov ebx, dword [eax - 0xc]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40aca4
mov ecx, dword [ebp + 0x18]
cmp ecx, 1
je 0x40ac7b
cmp ecx, 2
je 0x40ac7b
push ebx
jmp 0x40ac7f
lea eax, [ebx + ebx]
push eax
push dword [ebp + 0x14]
push ecx
push esi
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x10]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40acc9
mov ebx, 0x453994
push 0x43ecfc
mov ecx, ebx
call fcn.00401ecb
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.00403dfd
mov ecx, 0x4538c8
call fcn.0040a75f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401856
mov eax, esi
call fcn.004218ee
ret
Function at 0x40acdc
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
lea eax, [ebp - 4]
xor edi, edi
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40ad3e
push 4
lea eax, [ebp + 0x14]
push eax
push 4
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x40ad3e
inc edi
jmp 0x40ad63
mov esi, 0x453994
push str.Failed_to_register_DWORD_value:
mov ecx, esi
call fcn.00401ecb
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00403dfd
mov ecx, 0x4538c8
call fcn.0040a75f
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ed42
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x40ed87
call fcn.0041879e
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40ed87
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x40eda3
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040b08d
mov ebx, eax
test edi, edi
je 0x40eda1
test esi, esi
je 0x40eda1
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403e6a
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x40fd90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x6ec410], eax
mov ecx, 1
sub ecx, 1
lea esi, [esi]
add ecx, 1
mov edx, dword [ecx*4 + 0x6ec40c]
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
lea eax, [eax + ecx]
mov dword [ecx*4 + 0x6ec410], eax
cmp ecx, 0x26f
jl 0x40fda0
mov dword [0x5f0230], 0x270
ret

Function at 0x40fde0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov eax, dword [0x6eb010]
cmp eax, dword [0x5ef980]
je 0x40fdf8
mov dword [0x5f0230], 0x271
cmp dword [0x5f0230], 0x270
jl 0x40ff17
cmp dword [0x5f0230], 0x271
jne 0x40fe2f
mov eax, dword [0x6eb010]
call fcn.0040fd90
mov eax, dword [0x6eb010]
not eax
mov dword [0x6eb010], eax
mov dword [0x5ef980], eax
mov ebx, 0
sub ebx, 1
nop
add ebx, 1
mov eax, dword [ebx*4 + 0x6ec414]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x6ec410]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x6eca44]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x5f0240]
xor edx, eax
mov dword [ebx*4 + 0x6ec410], edx
cmp ebx, 0xe2
jl 0x40fe38
mov ebx, 0xe3
sub ebx, 1
mov esi, esi
add ebx, 1
mov eax, dword [ebx*4 + 0x6ec414]
and eax, 0x7fffffff
mov edx, dword [ebx*4 + 0x6ec410]
and edx, 0x80000000
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [ebx*4 + 0x6ec084]
xor eax, edx
mov edx, ecx
and edx, 1
mov edx, dword [edx*4 + 0x5f0240]
xor edx, eax
mov dword [ebx*4 + 0x6ec410], edx
cmp ebx, 0x26e
jl 0x40fe8c
mov eax, dword [0x6ecdcc]
and eax, 0x80000000
mov edx, dword [0x6ec410]
and edx, 0x7fffffff
or edx, eax
mov ecx, edx
mov eax, ecx
shr eax, 1
mov edx, dword [0x6eca40]
xor edx, eax
and ecx, 1
mov eax, dword [ecx*4 + 0x5f0240]
xor eax, edx
mov dword [0x6ecdcc], eax
mov dword [0x5f0230], 0
mov eax, dword [0x5f0230]
mov eax, dword [eax*4 + 0x6ec410]
add dword [0x5f0230], 1
mov edx, eax
shr edx, 0xb
xor eax, edx
mov edx, eax
shl edx, 7
and edx, 0x9d2c5680
xor eax, edx
mov edx, eax
shl edx, 0xf
and edx, 0xefc60000
xor eax, edx
mov edx, eax
shr edx, 0x12
xor eax, edx
pop ebx
ret
Function at 0x4119b0
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
push esi
push edi
mov ax, word [0x5ef690]
cmp ax, 0xcb
je 0x411aac
cmp ax, 0xcc
je 0x411aac
mov edx, dword [0x6ed020]
test edx, edx
je 0x4119e2
mov eax, dword [0x6ecec0]
call edx
mov ebx, eax
jmp 0x4119e7
mov ebx, 0x6ecec4
cmp word [0x6eceb0], 0
jle 0x411a0a
mov eax, 0x6ece90
call fcn.00411c60
mov eax, ebx
call fcn.00411590
mov eax, ebx
call fcn.00411600
mov edi, dword [ebx]
jmp 0x411a2a
mov esi, dword [edi + 4]
mov eax, dword [edi]
and eax, 1
jne 0x411a25
mov edx, edi
mov eax, ebx
call fcn.00410a60
jmp 0x411a28
and dword [edi], 0xfffffffe
mov edi, esi
test edi, edi
jne 0x411a10
mov dword [ebx], 0
mov dword [ebx + 0x88], 0
cmp word [0x6eceb0], 0
jle 0x411aac
mov edx, 0x6ecdd0
mov eax, ebx
call fcn.00410b90
mov edi, eax
test edi, edi
je 0x411a7f
mov eax, dword [0x6ece64]
mov dword [edi + 0xc], eax
cmp dword [0x6ece64], 0
je 0x411a74
mov eax, dword [0x6ece64]
mov dword [eax + 8], edi
mov eax, dword [ebx + 0x94]
mov dword [0x6ece64], eax
sub word [0x6eceb0], 1
cmp word [0x6eceb0], 0
sete bl
mov eax, 0x6ece90
call fcn.00411c70
test bl, bl
je 0x411aac
mov eax, 0x6ece90
call fcn.00411c50
pop edi
pop esi
pop ebx
ret
Function at 0x4137a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x44]
push ebx
push esi
push edi
mov bl, al
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040ec10
call fcn.00410830
push eax
test eax, eax
jne 0x413927
test bl, bl
je 0x4138db
movzx eax, bl
sub eax, 0xffffffc0
mov word [ebp - 8], ax
mov word [ebp - 6], 0x3a
mov word [ebp - 4], 0
mov word [ebp - 2], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov edi, eax
lea edx, [edi - 1]
mov eax, dword [ebp - 0x44]
call fcn.0040c850
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x44]
mov edx, dword [eax]
test edx, edx
jne 0x413836
mov edx, 0x6ec2e0
push edx
push edi
lea eax, [ebp - 8]
push eax
call sub.kernel32.dll_GetFullPathNameW
mov esi, eax
test esi, esi
jne 0x413892
call sub.kernel32.dll_GetLastError
call fcn.00403540
lea eax, [ebp - 0x3c]
call fcn.0040b0d0
movzx eax, bl
sub eax, 0xffffffc0
lea edx, [ebp - 0x40]
call fcn.0040b680
mov edx, dword [ebp - 0x40]
mov ecx, 0x64e414
lea eax, [ebp - 0x3c]
call fcn.0040b3d0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0040c120
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
call fcn.0040c1b0
jmp 0x413927
mov ecx, edi
mov ebx, 0
sub ecx, 1
sbb ebx, 0
mov eax, esi
mov edx, 0
cmp ebx, edx
jne 0x4138ae
cmp ecx, eax
je 0x4138b8
mov eax, dword [ebp - 0x44]
mov edx, esi
call fcn.0040c850
cmp byte [0x5ef920], 0
jne 0x413927
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
lea edx, [ebp - 0x38]
call fcn.0040cb60
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
call fcn.0040c1b0
jmp 0x413927
push 0
push 0
call sub.kernel32.dll_GetCurrentDirectoryW
mov edi, eax
lea edx, [edi - 1]
mov eax, dword [ebp - 0x44]
call fcn.0040c850
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
test eax, eax
jne 0x4138ff
mov eax, 0x6ec2e0
push eax
push edi
call sub.kernel32.dll_GetCurrentDirectoryW
cmp byte [0x5ef920], 0
jne 0x413927
mov edx, dword [ebp - 0x44]
mov eax, dword [edx]
lea edx, [ebp - 0x38]
call fcn.0040cb60
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x44]
call fcn.0040c1b0
call fcn.0040ee90
lea eax, [ebp - 0x40]
call fcn.0040b0d0
lea eax, [ebp - 0x3c]
call fcn.0040b0d0
lea eax, [ebp - 0x38]
call fcn.0040bf00
pop eax
test eax, eax
je 0x41394e
call fcn.0040efc0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413be0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x114]
push ebx
push esi
push edi
mov dword [ebp - 0x114], 0
mov dword [0x6ec250], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp + eax - 0x108], 0
mov dword [ebp - 0x110], eax
mov ecx, dword [ebp - 0x110]
mov eax, ebp
mov edx, 0
call fcn.00413dc0
mov eax, dword [ebp - 0x110]
lea ecx, [eax + 1]
mov eax, dword [0x6ec250]
mov edx, dword [eax]
lea eax, [ebp - 0x108]
call fcn.00403e30
call sub.kernel32.dll_GetCommandLineA
mov dword [0x5ef710], eax
mov esi, dword [0x5ef710]
jmp 0x413d80
add esi, 1
movzx eax, byte [esi]
sub eax, 1
cmp eax, 0x20
jb 0x413c70
cmp byte [esi], 0
je 0x413d89
mov byte [ebp - 0x10c], 0
mov edi, esi
mov dword [ebp - 0x110], 0
jmp 0x413ce5
mov al, byte [esi]
cmp al, 1
jb 0x413cdb
sub al, 0x20
jbe 0x413cac
sub al, 2
je 0x413cbf
jmp 0x413cdb
mov al, byte [ebp - 0x10c]
test al, al
je 0x413cea
add dword [ebp - 0x110], 1
jmp 0x413ce2
cmp byte [esi + 1], 0x22
je 0x413cd6
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x413ce2
add esi, 1
jmp 0x413ce2
add dword [ebp - 0x110], 1
add esi, 1
cmp byte [esi], 0
jne 0x413c9c
test dword [ebp - 0x114], 0xffffffff
je 0x413d79
mov ecx, dword [ebp - 0x110]
mov edx, dword [ebp - 0x114]
mov eax, ebp
call fcn.00413dc0
mov byte [ebp - 0x10c], 0
mov esi, edi
mov eax, dword [0x6ec250]
mov edx, dword [ebp - 0x114]
mov ebx, dword [eax + edx*4]
jmp 0x413d71
mov al, byte [esi]
cmp al, 1
jb 0x413d67
sub al, 0x20
jbe 0x413d38
sub al, 2
je 0x413d4b
jmp 0x413d67
mov al, byte [ebp - 0x10c]
test al, al
je 0x413d76
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
jmp 0x413d6e
cmp byte [esi + 1], 0x22
je 0x413d62
mov al, byte [ebp - 0x10c]
test al, al
sete byte [ebp - 0x10c]
jmp 0x413d6e
add esi, 1
jmp 0x413d6e
mov al, byte [esi]
mov byte [ebx], al
add ebx, 1
add esi, 1
cmp byte [esi], 0
jne 0x413d28
mov byte [ebx], 0
add dword [ebp - 0x114], 1
cmp byte [esi], 0
jne 0x413c73
mov ebx, dword [ebp - 0x114]
mov dword [0x6ec240], ebx
lea edx, [ebx + 1]
shl edx, 2
mov eax, 0x6ec250
call fcn.00411810
mov eax, dword [0x6ec250]
mov dword [eax + ebx*4], 0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4366b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x4366bc
mov eax, 0x6ec2e0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4366cf
and eax, 0x10
sete al
jmp 0x4366d1
mov al, 0
leave
ret

Function at 0x4366e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
test eax, eax
jne 0x4366ec
mov eax, 0x6ec2e0
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4366ff
and eax, 0x10
seta al
jmp 0x436701
mov al, 0
leave
ret

Function at 0x436f50
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x38]
push ebx
push esi
mov dword [ebp - 0x38], 0
mov eax, 1
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x18]
call fcn.0040ec10
call fcn.00410830
push eax
test eax, eax
jne 0x437014
mov ebx, 1
sub ebx, 1
mov esi, esi
add ebx, 1
lea eax, [ebx*4 + 0x6ed79c]
mov edx, 0
call fcn.004097c0
mov dword [ebx*4 + 0x6ed7bc], 0xffffffff
cmp ebx, 7
jl 0x436f88
call sub.kernel32.dll_GetThreadLocale
mov esi, eax
push 0xb
lea eax, [ebp - 0xc]
push eax
push 0x100b
push esi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x437014
push 1
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
mov cx, 0
mov edx, 0xa
call fcn.0040a180
mov eax, dword [ebp - 0x38]
mov edx, 1
call fcn.0042d5a0
mov ebx, eax
sub eax, 3
cmp eax, 3
jae 0x437014
push 4
push ebx
push esi
mov eax, 0x436e10
push eax
call sub.kernel32.dll_EnumCalendarInfoA
push 3
push ebx
push esi
mov eax, 0x436eb0
push eax
call sub.kernel32.dll_EnumCalendarInfoA
call fcn.0040ee90
lea eax, [ebp - 0x38]
call fcn.004044b0
pop eax
test eax, eax
je 0x43702b
call fcn.0040efc0
pop esi
pop ebx
leave
ret
Function at 0x4376d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x48]
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x48], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.0040ec10
call fcn.00410830
push eax
test eax, eax
jne 0x43781c
lea edx, [ebp - 0x34]
mov eax, ebx
call fcn.0042cbb0
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 4]
call fcn.004097c0
lea eax, [ebp - 4]
mov cl, 1
mov dx, 1
call fcn.0040af70
mov eax, dword [ebp - 0x48]
mov edx, 0
call fcn.004097c0
call sub.kernel32.dll_GetEnvironmentStringsA
mov dword [ebp - 0x44], eax
mov ebx, dword [ebp - 0x44]
jmp 0x43780b
lea ecx, [ebp - 0x34]
mov eax, ebx
mov dx, 0
call fcn.0040a0e0
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 8]
call fcn.004097c0
mov eax, dword [ebp - 8]
test eax, eax
je 0x437783
mov eax, dword [eax - 4]
mov dword [ebp - 0x40], eax
lea esi, [ebp - 8]
mov al, 0
mov dx, 1
mov cl, al
mov eax, esi
call fcn.0040af70
mov edx, dword [ebp - 8]
mov al, 0x3d
call fcn.0040a890
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [edi - 1]
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, 1
call fcn.0040a760
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.0042cbb0
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 4]
call fcn.0040a430
test eax, eax
jne 0x437800
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x4377e2
mov eax, dword [eax - 4]
sub eax, edi
mov ecx, eax
lea eax, [edi + 1]
mov edx, eax
mov eax, dword [ebp - 8]
call fcn.0040a760
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x48]
call fcn.004097c0
jmp 0x437814
mov edx, dword [ebp - 0x40]
lea eax, [ebx + edx]
add eax, 1
mov ebx, eax
cmp byte [ebx], 0
jne 0x437760
push dword [ebp - 0x44]
call sub.kernel32.dll_FreeEnvironmentStringsA
call fcn.0040ee90
lea eax, [ebp - 0x3c]
call fcn.004044b0
lea eax, [ebp - 0x38]
call fcn.004044b0
lea eax, [ebp - 0x34]
call fcn.004044b0
lea eax, [ebp - 4]
call fcn.004044b0
lea eax, [ebp - 8]
call fcn.004044b0
pop eax
test eax, eax
je 0x437853
call fcn.0040efc0
pop edi
pop esi
pop ebx
leave
ret
Function at 0x437860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
lea esp, [esp - 0x3c]
push ebx
push esi
push edi
mov ebx, eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov eax, 1
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x14]
call fcn.0040ec10
call fcn.00410830
push eax
test eax, eax
jne 0x437964
mov eax, dword [ebp - 0x3c]
mov edx, 0
call fcn.0040c1b0
call sub.kernel32.dll_GetEnvironmentStringsW
mov edi, eax
mov esi, edi
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00434c60
jmp 0x437953
lea edx, [ebp - 4]
mov eax, esi
call fcn.0040c160
mov edx, dword [ebp - 4]
mov al, 0x3d
call fcn.0040cb10
mov ebx, eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebx - 1]
mov ecx, eax
mov eax, dword [ebp - 4]
mov edx, 1
call fcn.0040ca60
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00434c60
mov eax, dword [ebp - 0x34]
mov edx, dword [ebp - 8]
call fcn.0040c810
test eax, eax
jne 0x437942
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x437924
mov eax, dword [eax - 4]
sub eax, ebx
mov ecx, eax
lea eax, [ebx + 1]
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0040ca60
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
call fcn.0040c1b0
jmp 0x43795e
mov eax, esi
call fcn.004049a0
shl eax, 1
lea eax, [esi + eax]
add eax, 2
mov esi, eax
cmp word [esi], 0
jne 0x4378d0
push edi
call sub.kernel32.dll_FreeEnvironmentStringsW
call fcn.0040ee90
lea eax, [ebp - 0x38]
call fcn.0040bf00
lea eax, [ebp - 0x34]
call fcn.0040bf00
lea eax, [ebp - 4]
call fcn.0040bf00
lea eax, [ebp - 8]
call fcn.0040bf00
pop eax
test eax, eax
je 0x437993
call fcn.0040efc0
pop edi
pop esi
pop ebx
leave
ret

Function at 0x450560
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push dword [ebx + 4]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x45057a
mov dword [ebx + 0xc], 0
pop ebx
leave
ret