joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a458
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00414900
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a4f3
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x434e98]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x41a4f3
cmp eax, 1
je 0x41a514
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41a4f3
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x41a4c0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x41a4ef
xor eax, eax
inc eax
jmp 0x41a533
cmp edi, eax
jae 0x41a4f7
xor eax, eax
jmp 0x41a533
cmp eax, esi
jae 0x41a4fe
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x434e98]
jmp 0x41a517
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41b445
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x42acd0
call fcn.00413c04
mov eax, dword [0x431d24]
xor eax, ebp
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x41b4eb
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00414900
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x41b4d8
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x41b4eb
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x41b506
cmp byte [edi + 1], 0x3a
jne 0x41b506
movzx eax, byte [edi]
push eax
call fcn.004205da
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x41b516
push edi
call fcn.00414068
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00413d8f
call fcn.00413c3f
ret
Function at 0x41b632
Capabilities:
Terminate process

Disassembly:
push 8
push 0x42acf8
call fcn.00413c04
push 8
call fcn.00417dd7
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x434ed8], esi
jne 0x41b666
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x434ed4], esi
mov al, byte [ebp + 0x10]
mov byte [0x434ed0], al
cmp dword [ebp + 0xc], edi
jne 0x41b6b0
cmp dword [0x4354c8], edi
je 0x41b6a0
mov eax, dword [0x4354c4]
sub eax, 4
mov dword [0x4354c4], eax
cmp eax, dword [0x4354c8]
jb 0x41b6a0
mov eax, dword [eax]
cmp eax, edi
je 0x41b681
call eax
jmp 0x41b681
push 0x43009c
mov eax, 0x430094
call fcn.0041b5b0
pop ecx
push 0x4300a8
mov eax, 0x4300a0
call fcn.0041b5b0
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x41b6e1
cmp dword [ebp + 0x10], edi
jne 0x41b6ef
mov dword [0x434ed8], esi
push dword [ebp + 8]
call fcn.0041b56e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x41b6ee
push 8
call fcn.00417d22
pop ecx
ret
call fcn.00413c3f
ret

Function at 0x41b818
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x431d24]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x432490]
je 0x41b84f
inc eax
cmp eax, 0x13
jb 0x41b840
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x432490]
jne 0x41b972
mov eax, dword [0x434cb8]
cmp eax, 1
je 0x41b94d
cmp eax, edx
jne 0x41b87f
cmp dword [0x431d64], 1
je 0x41b94d
cmp ecx, 0xfc
je 0x41b972
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41b8b5
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.0041a360
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.00413a00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41b8e9
mov eax, edi
push eax
call fcn.00413a00
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x42aa00
push edi
call fcn.00414bf0
add esp, 0x10
push edi
call fcn.00413a00
push dword [esi + 0x432494]
mov ebx, eax
call fcn.00413a00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00414900
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041a360
push edi
push ebx
call fcn.0041a370
push 0x42a9fc
push ebx
call fcn.0041a370
push dword [esi + 0x432494]
push ebx
call fcn.0041a370
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0041f457
add esp, 0x2c
jmp 0x41b972
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x432494]
push dword [esi]
call fcn.00413a00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00413d8f
add ebp, 0x90
leave
ret
Function at 0x41c282
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x431d24]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x41c2be
xor eax, eax
jmp 0x41c428
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4353c0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41c2fc
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00420640
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41c396
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x41c3f9
jmp 0x41c320
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x41c35b
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41c34c
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x41c32c
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c3ba
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x41c3c3
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x41c31e
jmp 0x41c3c3
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41c3ba
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x41c3c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x41c423
cmp dword [ebp - 0x68], eax
je 0x41c3f6
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x41c3eb
call fcn.0041b204
mov dword [eax], 9
call fcn.0041b20d
mov dword [eax], esi
jmp 0x41c41e
push dword [ebp - 0x68]
call fcn.0041b216
pop ecx
jmp 0x41c41e
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41c40b
cmp byte [edi], 0x1a
jne 0x41c40b
xor eax, eax
jmp 0x41c426
call fcn.0041b204
mov dword [eax], 0x1c
call fcn.0041b20d
and dword [eax], 0
or eax, 0xffffffff
jmp 0x41c426
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00413d8f
add ebp, 0x3a4
leave
ret
Function at 0x41f457
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x435084], ebx
push esi
push edi
jne 0x41f4d7
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41f512
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x435084], eax
je 0x41f512
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x435088], eax
call esi
cmp dword [0x434e98], 2
mov dword [0x43508c], eax
jne 0x41f4d7
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x435094], eax
je 0x41f4d7
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x435090], eax
mov eax, dword [0x435090]
test eax, eax
je 0x41f51c
call eax
test eax, eax
je 0x41f503
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x435094]
test eax, eax
je 0x41f503
test byte [ebp - 8], 1
jne 0x41f51c
cmp dword [0x434ea4], 4
jb 0x41f516
or byte [ebp + 0x12], 0x20
jmp 0x41f53b
xor eax, eax
jmp 0x41f54b
or byte [ebp + 0x12], 4
jmp 0x41f53b
mov eax, dword [0x435088]
test eax, eax
je 0x41f53b
call eax
mov ebx, eax
test ebx, ebx
je 0x41f53b
mov eax, dword [0x43508c]
test eax, eax
je 0x41f53b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x435084]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4203d1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x431d24]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x420459
push esi
call fcn.004219e5
test eax, eax
pop ecx
jne 0x420421
call fcn.0041b20d
mov dword [eax], 0xf
call fcn.0041b204
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00413d8f
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x42046c
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x420411
inc eax
cmp eax, esi
ja 0x420411
test edi, edi
mov ecx, edi
jne 0x4204a2
cmp eax, dword [ebp + 0x10]
jg 0x420483
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.004142b9
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4204b7
call fcn.0041b204
mov dword [eax], 0xc
jmp 0x420411
cmp eax, dword [ebp + 0x10]
jle 0x4204b7
call fcn.0041b204
mov dword [eax], 0x22
jmp 0x420411
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.00414a86
pop ecx
pop ecx
jmp 0x420413
Function at 0x420903
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x420ad9
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4353c0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x420ad9
test cl, 0x48
je 0x42096e
cmp byte [eax + 5], 0xa
je 0x42096e
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4209c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4209a8
call fcn.0041b204
mov dword [eax], 9
call fcn.0041b20d
mov dword [eax], esi
jmp 0x4209b8
cmp eax, 0x6d
je 0x420ad9
push eax
call fcn.0041b216
pop ecx
or eax, 0xffffffff
jmp 0x420adb
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x420ad4
test eax, eax
je 0x4209e7
cmp byte [ebx], 0xa
jne 0x4209e7
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4209f0
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x420ace
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x420abe
cmp al, 0xd
je 0x420a22
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x420ab0
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x420a3c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x420a37
add dword [ebp + 0x10], 2
jmp 0x420a90
mov dword [ebp + 0x10], eax
jmp 0x420aac
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420a64
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x420aac
cmp dword [ebp - 0xc], 0
je 0x420aac
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x420a85
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x420a90
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x420aaf
cmp ebx, dword [ebp + 0xc]
jne 0x420a95
cmp byte [ebp - 1], 0xa
jne 0x420a95
mov byte [ebx], 0xa
jmp 0x420aaf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420640
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x420ab0
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x420a06
jmp 0x420ace
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x420ace
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x420adb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x420d2e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x42c278
call fcn.00413c04
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x435158], edi
jne 0x420d72
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420d5d
mov dword [0x435158], ebx
jmp 0x420d72
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x420d72
mov dword [0x435158], 2
mov eax, dword [0x435158]
cmp eax, ebx
jne 0x420d92
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x420e55
cmp eax, 2
je 0x420d9b
cmp eax, edi
jne 0x420dc3
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x420dae
mov eax, dword [0x435034]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x420dca
xor eax, eax
jmp 0x420e55
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00414900
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x420dfd
cmp esi, edi
jne 0x420e13
push dword [ebp - 0x20]
call fcn.004142b9
pop ecx
mov esi, eax
cmp esi, edi
je 0x420dc3
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x420e46
cmp dword [ebp + 0x14], edi
jne 0x420e30
push edi
push edi
jmp 0x420e36
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x420e52
push esi
call fcn.00414068
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00413c3f
ret
Function at 0x420e5e
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x42c288
call fcn.00413c04
xor esi, esi
cmp dword [0x43515c], esi
jne 0x420ea2
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420e8d
mov dword [0x43515c], edi
jmp 0x420ea2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x420ea2
mov dword [0x43515c], 2
mov eax, dword [0x43515c]
cmp eax, 2
je 0x420f83
cmp eax, esi
je 0x420f83
cmp eax, 1
jne 0x420ee7
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x420ed0
mov eax, dword [0x435034]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x420eee
xor eax, eax
jmp 0x420f95
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00414900
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x420f24
cmp edi, esi
jne 0x420f3f
lea eax, [ebx + ebx]
push eax
call fcn.004142b9
pop ecx
mov edi, eax
cmp edi, esi
je 0x420ee7
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x420f72
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x420f5c
push esi
push esi
jmp 0x420f62
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x420f7e
push edi
call fcn.00414068
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x420f95
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00413c3f
ret

Function at 0x4219e5
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x421a13
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x421a18
cmp eax, 1
je 0x421a18
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x422277
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x422290
or eax, 0xffffffff
jmp 0x4222f1
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4222ed
push 0x3d
push esi
call fcn.00422478
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4222ed
cmp esi, eax
je 0x4222ed
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x434eb8]
sete cl
cmp eax, dword [0x434ebc]
mov dword [ebp - 4], ecx
jne 0x4222d3
mov edi, eax
call fcn.00422216
mov dword [0x434eb8], eax
cmp eax, ebx
jne 0x42232c
cmp dword [ebp + 0xc], ebx
je 0x4222f5
cmp dword [0x434ec0], ebx
je 0x4222f5
call fcn.00421d93
test eax, eax
je 0x42232c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4222fe
xor eax, eax
jmp 0x4222f0
push 4
call fcn.004142b9
cmp eax, ebx
pop ecx
mov dword [0x434eb8], eax
je 0x4222ed
mov dword [eax], ebx
cmp dword [0x434ec0], ebx
jne 0x42232c
push 4
call fcn.004142b9
cmp eax, ebx
pop ecx
mov dword [0x434ec0], eax
je 0x4222ed
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x434eb8]
sub edi, esi
push esi
call fcn.004221c9
mov edi, eax
test edi, edi
pop ecx
jl 0x422393
cmp dword [ebx], 0
je 0x422393
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00414068
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x422373
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4223d4
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x42236a
mov eax, edi
shl eax, 2
push eax
push dword [0x434eb8]
call fcn.00417e20
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4223d4
jmp 0x4223cf
cmp dword [ebp - 4], 0
jne 0x42243b
test edi, edi
jge 0x4223a3
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x434eb8]
call fcn.00417e20
test eax, eax
pop ecx
pop ecx
je 0x4222ed
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x434eb8], eax
cmp dword [ebp + 0xc], 0
je 0x422426
push esi
call fcn.00413a00
inc eax
inc eax
push eax
call fcn.004142b9
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x422426
push esi
push edi
call fcn.0041a360
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x42241f
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00414068
pop ecx
cmp dword [ebp - 4], 0
je 0x422433
push esi
call fcn.00414068
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4222f0
push esi
call fcn.00414068
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4222fa