joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4aa23f
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x4aa25b
call fcn.004a9c2a
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x4aa2cd
push esi
push 0x88
push 1
call fcn.004ab32a
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4aa2b3
push esi
call fcn.004af04c
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x4aa19f
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x4aa2ab
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x4aa2ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004a8aa4
test ebx, ebx
pop ecx
je 0x4aa2c5
push ebx
call fcn.004a9c3c
pop ecx
or eax, 0xffffffff
jmp 0x4aa2cc
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4aa51a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004ac123
xor esi, esi
inc esi
cmp dword [0x52a7f8], esi
pop ecx
jne 0x4aa542
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x52a7f4], esi
mov byte [0x52a7f0], al
jne 0x4aa5a8
mov ecx, dword [0x52c02c]
test ecx, ecx
je 0x4aa589
mov eax, dword [0x52c028]
sub eax, 4
cmp eax, ecx
jmp 0x4aa582
mov eax, dword [eax]
test eax, eax
je 0x4aa574
call eax
mov eax, dword [0x52c028]
sub eax, 4
cmp eax, dword [0x52c02c]
mov dword [0x52c028], eax
jae 0x4aa56c
mov eax, 0x4ee08c
mov esi, 0x4ee094
cmp eax, esi
mov edi, eax
jae 0x4aa5a8
mov eax, dword [edi]
test eax, eax
je 0x4aa5a1
call eax
add edi, 4
cmp edi, esi
jb 0x4aa599
mov eax, 0x4ee098
mov esi, 0x4ee0a0
cmp eax, esi
mov edi, eax
jae 0x4aa5c7
mov eax, dword [edi]
test eax, eax
je 0x4aa5c0
call eax
add edi, 4
cmp edi, esi
jb 0x4aa5b8
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x4aa5d8
push 8
call fcn.004ac08f
jmp 0x4aa5ea
push dword [ebp + 8]
mov dword [0x52a7f8], 1
call fcn.004aa473
pop ecx
pop ebp
ret
Function at 0x4aad9b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4f2214]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x4aae16
push ebx
call fcn.004aad64
test eax, eax
pop ecx
jne 0x4aade8
call fcn.004a9c33
mov dword [eax], 0xf
call fcn.004a9c2a
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.004a8117
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4aae28
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4aadd8
inc eax
cmp eax, 0x104
ja 0x4aadd8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4aae60
cmp eax, dword [ebp + 0x10]
jg 0x4aae43
mov eax, dword [ebp + 0x10]
push eax
call fcn.004ab318
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4aae75
call fcn.004a9c2a
mov dword [eax], 0xc
jmp 0x4aadd8
cmp eax, dword [ebp + 0x10]
jle 0x4aae75
call fcn.004a9c2a
mov dword [eax], 0x22
jmp 0x4aadd8
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.004afaf0
pop ecx
pop ecx
jmp 0x4aadda
Function at 0x4b1022
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 0x4b11e8
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x52af00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4b11e8
test cl, 0x48
je 0x4b1088
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4b1088
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 0x4b10da
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4b10c2
call fcn.004a9c2a
mov dword [eax], 9
call fcn.004a9c33
mov dword [eax], esi
jmp 0x4b10d2
cmp eax, 0x6d
je 0x4b11e8
push eax
call fcn.004a9c3c
pop ecx
or eax, 0xffffffff
jmp 0x4b11ea
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x4b11e3
test edx, edx
je 0x4b10fd
cmp byte [ebx], 0xa
jne 0x4b10fd
or al, 4
jmp 0x4b10ff
and al, 0xfb
mov byte [ecx], al
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 0x4b11dd
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4b11cd
cmp al, 0xd
je 0x4b1133
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4b11bf
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4b114d
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4b1148
add dword [ebp + 0x10], 2
jmp 0x4b11a1
mov dword [ebp + 0x10], eax
jmp 0x4b11bb
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 0x4b1175
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4b11bb
cmp dword [ebp - 0xc], 0
je 0x4b11bb
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4b1196
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4b11a1
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4b11be
cmp ebx, dword [ebp + 0xc]
jne 0x4b11a6
cmp byte [ebp - 1], 0xa
jne 0x4b11a6
mov byte [ebx], 0xa
jmp 0x4b11be
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b349a
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4b11bf
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4b1117
jmp 0x4b11dd
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4b11dd
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4b11ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b1524
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4f2214]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x4b154d
xor eax, eax
jmp 0x4b16bb
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x52af00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4b1580
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004b872e
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4b1652
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4b168d
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x4b15db
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4b15cc
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x4b15af
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b161b
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4b1624
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4b15a0
jmp 0x4b1626
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4b16b6
cmp dword [ebp - 8], edi
je 0x4b168d
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4b167f
call fcn.004a9c2a
mov dword [eax], 9
call fcn.004a9c33
mov dword [eax], esi
jmp 0x4b1688
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4b1674
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4b1626
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4b1626
push dword [ebp - 8]
call fcn.004a9c3c
pop ecx
or eax, 0xffffffff
jmp 0x4b16b9
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4b16a2
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4b16a2
xor eax, eax
jmp 0x4b16b9
call fcn.004a9c2a
mov dword [eax], 0x1c
call fcn.004a9c33
mov dword [eax], edi
jmp 0x4b1688
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004a8117
leave
ret
Function at 0x4b1774
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4f2214]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4f2b80]
je 0x4b17a1
inc eax
cmp eax, 0x12
jb 0x4b1792
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4f2b80]
jne 0x4b18d5
mov eax, dword [0x52a7ac]
cmp eax, 1
je 0x4b18b0
cmp eax, edx
jne 0x4b17d1
cmp dword [0x4f221c], 1
je 0x4b18b0
cmp ecx, 0xfc
je 0x4b18d5
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b180a
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004afaf0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004a6f60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b184c
lea eax, [ebp - 0x10c]
push eax
call fcn.004a6f60
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4daaa8
push edi
call fcn.004aa7f0
add esp, 0x10
push edi
call fcn.004a6f60
push dword [esi + 0x4f2b84]
mov ebx, eax
call fcn.004a6f60
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004a9500
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004afaf0
push edi
push ebx
call fcn.004afb00
push 0x4c4c04
push ebx
call fcn.004afb00
push dword [esi + 0x4f2b84]
push ebx
call fcn.004afb00
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004b7ef8
add esp, 0x2c
jmp 0x4b18d5
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4f2b84]
push dword [esi]
call fcn.004a6f60
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 - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004a8117
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b55f1
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.004a9500
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b5686
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x52a7b8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4b5686
cmp eax, 1
je 0x4b569e
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4b5686
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4b565b
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4b5682
xor eax, eax
inc eax
jmp 0x4b56ba
cmp esi, ebx
jae 0x4b568a
xor eax, eax
jmp 0x4b56ba
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x52a7b8]
jmp 0x4b56a0
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b7ef8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x52ac30], ebx
push esi
push edi
jne 0x4b7f78
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b7fb3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4df9a4
push edi
call esi
test eax, eax
mov dword [0x52ac30], eax
je 0x4b7fb3
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x52ac34], eax
call esi
cmp dword [0x52a7b8], 2
mov dword [0x52ac38], eax
jne 0x4b7f78
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x52ac40], eax
je 0x4b7f78
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x52ac3c], eax
mov eax, dword [0x52ac3c]
test eax, eax
je 0x4b7fbd
call eax
test eax, eax
je 0x4b7fa4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x52ac40]
test eax, eax
je 0x4b7fa4
test byte [ebp - 8], 1
jne 0x4b7fbd
cmp dword [0x52a7c4], 4
jb 0x4b7fb7
or byte [ebp + 0x12], 0x20
jmp 0x4b7fdc
xor eax, eax
jmp 0x4b7fec
or byte [ebp + 0x12], 4
jmp 0x4b7fdc
mov eax, dword [0x52ac34]
test eax, eax
je 0x4b7fdc
call eax
mov ebx, eax
test ebx, ebx
je 0x4b7fdc
mov eax, dword [0x52ac38]
test eax, eax
je 0x4b7fdc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x52ac30]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4ba133
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
push edi
mov dword [ebp - 8], ebx
je 0x4ba19e
push 0x3d
push dword [ebp + 8]
call fcn.004bb09a
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4ba19e
cmp dword [ebp + 8], esi
je 0x4ba19e
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x52a7d8]
cmp eax, dword [0x52a7dc]
jne 0x4ba184
mov edi, eax
call fcn.004ba0d2
mov dword [0x52a7d8], eax
cmp eax, ebx
jne 0x4ba1dd
cmp dword [ebp + 0xc], ebx
je 0x4ba1a6
cmp dword [0x52a7e0], ebx
je 0x4ba1a6
call fcn.004b536e
test eax, eax
je 0x4ba1dd
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4ba2e1
push 4
call fcn.004ab318
cmp eax, ebx
pop ecx
mov dword [0x52a7d8], eax
je 0x4ba19e
mov dword [eax], ebx
cmp dword [0x52a7e0], ebx
jne 0x4ba1dd
push 4
call fcn.004ab318
cmp eax, ebx
pop ecx
mov dword [0x52a7e0], eax
je 0x4ba19e
mov dword [eax], ebx
mov ebx, dword [0x52a7d8]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004ba085
mov edi, eax
test edi, edi
pop ecx
jl 0x4ba236
cmp dword [ebx], 0
je 0x4ba236
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004a8aa4
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4ba21e
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4ba26c
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4ba215
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004aaecf
test eax, eax
pop ecx
pop ecx
je 0x4ba26c
jmp 0x4ba267
cmp dword [ebp - 4], 0
jne 0x4ba2da
test edi, edi
jge 0x4ba246
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004aaecf
test eax, eax
pop ecx
pop ecx
je 0x4ba19e
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x52a7d8], eax
cmp dword [ebp + 0xc], 0
je 0x4ba2c3
push dword [ebp + 8]
call fcn.004a6f60
inc eax
inc eax
push eax
call fcn.004ab318
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4ba2c3
push dword [ebp + 8]
push esi
call fcn.004afaf0
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4ba2bc
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004a8aa4
pop ecx
cmp dword [ebp - 4], 0
je 0x4ba2d2
push dword [ebp + 8]
call fcn.004a8aa4
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4ba1a1
push esi
call fcn.004a8aa4
pop ecx
xor eax, eax
jmp 0x4ba1a1
Function at 0x4ba2e8
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4dfa60
call fcn.004b06c4
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x52ac48], edi
jne 0x4ba32c
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ba317
mov dword [0x52ac48], ebx
jmp 0x4ba32c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4ba32c
mov dword [0x52ac48], 2
mov eax, dword [0x52ac48]
cmp eax, ebx
jne 0x4ba34c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4ba40f
cmp eax, 2
je 0x4ba355
cmp eax, edi
jne 0x4ba37d
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x4ba368
mov eax, dword [0x52abb0]
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 - 0x24], eax
cmp eax, edi
jne 0x4ba384
xor eax, eax
jmp 0x4ba40f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004a9500
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4ba3b7
cmp esi, edi
jne 0x4ba3cd
push dword [ebp - 0x24]
call fcn.004ab318
pop ecx
mov esi, eax
cmp esi, edi
je 0x4ba37d
mov dword [ebp - 0x20], ebx
push dword [ebp - 0x24]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4ba400
cmp dword [ebp + 0x14], edi
jne 0x4ba3ea
push edi
push edi
jmp 0x4ba3f0
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 - 0x20], edi
je 0x4ba40c
push esi
call fcn.004a8aa4
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004b06ff
ret
Function at 0x4ba418
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4dfa70
call fcn.004b06c4
xor esi, esi
cmp dword [0x52ac4c], esi
jne 0x4ba45c
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ba447
mov dword [0x52ac4c], edi
jmp 0x4ba45c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4ba45c
mov dword [0x52ac4c], 2
mov eax, dword [0x52ac4c]
cmp eax, 2
je 0x4ba53d
cmp eax, esi
je 0x4ba53d
cmp eax, 1
jne 0x4ba4a1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4ba48a
mov eax, dword [0x52abb0]
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 0x4ba4a8
xor eax, eax
jmp 0x4ba54f
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004a9500
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4ba4de
cmp edi, esi
jne 0x4ba4f9
lea eax, [ebx + ebx]
push eax
call fcn.004ab318
pop ecx
mov edi, eax
cmp edi, esi
je 0x4ba4a1
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 0x4ba52c
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4ba516
push esi
push esi
jmp 0x4ba51c
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 0x4ba538
push edi
call fcn.004a8aa4
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4ba54f
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.004b06ff
ret
Function at 0x4baf34
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004a9500
mov eax, dword [0x4f2214]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004b349a
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4bb05e
push 2
push esi
push dword [ebp + 8]
call fcn.004b349a
add esp, 0xc
cmp eax, ebx
je 0x4bb05e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4bb001
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004a7c70
push 0x8000
push dword [ebp + 8]
call fcn.004bb445
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4bafba
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004b1524
add esp, 0xc
cmp eax, 0xffffffff
je 0x4bafda
sub edi, eax
test edi, edi
jg 0x4bafb2
jmp 0x4baff2
call fcn.004a9c33
cmp dword [eax], 5
jne 0x4bafef
call fcn.004a9c2a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004bb445
pop ecx
pop ecx
jmp 0x4bb049
jge 0x4bb049
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b349a
push dword [ebp + 8]
call fcn.004b81cf
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4bb049
call fcn.004a9c2a
mov dword [eax], 0xd
call fcn.004a9c33
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004b349a
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4bb060
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004a8117
leave
ret