joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46746e
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x46749f
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x4674a6
cmp ebx, dword [ebp + 8]
jae 0x4674a6
xor eax, eax
jmp 0x467696
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4674b7
xor eax, eax
inc eax
jmp 0x467695
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4674cd
cmp ecx, edx
jae 0x467612
cmp dword [eax + 4], 0
je 0x4674d6
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4674be
cmp dword [ebp + 8], 0
je 0x4674f8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x467612
cmp eax, esi
jae 0x467612
mov eax, dword [0x4ab9c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x46751d
cmp dword [esi*4 + 0x4ab9d0], edi
je 0x467616
inc esi
cmp esi, eax
jl 0x46750b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x467692
cmp dword [ebp - 8], 0x1000000
jne 0x467692
test byte [ebp - 0xc], 0xcc
je 0x46759b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x467692
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x467692
cmp word [eax + 0x18], 0x10b
jne 0x467692
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x467692
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x46759b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x46759b
test byte [ecx + 0x27], 0x80
jne 0x467612
push 1
push 0x4aba10
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x4674af
mov ecx, dword [0x4ab9c8]
test ecx, ecx
mov edx, ecx
jle 0x4675cf
lea eax, [ecx*4 + 0x4ab9cc]
cmp dword [eax], edi
je 0x4675cf
dec edx
sub eax, 4
test edx, edx
jg 0x4675c3
test edx, edx
jne 0x467600
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4675dc
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4675f4
lea eax, [edx*4 + 0x4ab9d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4675e2
cmp ecx, 0x10
jge 0x467600
inc ecx
mov dword [0x4ab9c8], ecx
push 0
push 0x4aba10
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x4674af
xor eax, eax
jmp 0x467695
test esi, esi
jle 0x4674af
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4aba10
call ebx
test eax, eax
jne 0x4674af
cmp dword [esi*4 + 0x4ab9d0], edi
je 0x46766c
mov eax, dword [0x4ab9c8]
lea esi, [eax - 1]
test esi, esi
jl 0x46765a
cmp dword [esi*4 + 0x4ab9d0], edi
je 0x467656
dec esi
jns 0x46764a
test esi, esi
jge 0x46766a
cmp eax, 0x10
jge 0x467665
inc eax
mov dword [0x4ab9c8], eax
lea esi, [eax - 1]
jmp 0x46766c
je 0x467684
xor ecx, ecx
test esi, esi
jl 0x467684
lea eax, [ecx*4 + 0x4ab9d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x467672
push 0
push 0x4aba10
call ebx
jmp 0x4674af
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x468aec
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x49aec8]
je 0x468b0e
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x468afc
cmp esi, 0x13
je 0x468c4a
mov eax, dword [0x4ab808]
cmp eax, 1
push ebx
je 0x468c19
test eax, eax
jne 0x468b37
cmp dword [0x49a9e0], 1
je 0x468c19
cmp ecx, 0xfc
je 0x468c49
push edi
push 6
pop ecx
mov esi, str.Runtime_Error__n_nProgram:
mov edi, 0x4aba18
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x4aba32
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x4abb36], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x468b85
push 5
pop ecx
mov esi, str._program_name_unknown_
mov edi, 0x4aba32
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x468b8a
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x468bbd
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x468b9e
sub eax, edx
push 3
lea eax, [eax + 0x4ab9f7]
push 0x477b80
push eax
call fcn.00460860
add esp, 0xc
mov edx, 0x4aba18
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x468bc5
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x49aecc]
mov esi, 0x491390
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x468be1
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x468bed
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0046d5cf
add esp, 0xc
pop edi
jmp 0x468c49
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x468c49
mov edx, dword [esi*8 + 0x49aecc]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x468c31
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x4691ca
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4abe38]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x469216
call esi
mov edi, eax
cmp edi, ebx
je 0x4691fc
mov dword [0x4abe38], 1
jmp 0x46921b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x469211
push 2
pop eax
mov dword [0x4abe38], eax
jmp 0x469216
mov eax, dword [0x4abe38]
cmp eax, 1
jne 0x469293
cmp edi, ebx
jne 0x469227
call esi
mov edi, eax
cmp edi, ebx
je 0x46929c
cmp word [edi], bx
mov eax, edi
je 0x46923c
inc eax
inc eax
cmp word [eax], bx
jne 0x46922e
inc eax
inc eax
cmp word [eax], bx
jne 0x46922e
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x46928a
call fcn.00467005
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x46928a
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x469287
push dword [ebp - 4]
call fcn.0046226a
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x4692eb
cmp eax, 2
je 0x4692a0
cmp eax, ebx
je 0x4692a0
xor eax, eax
jmp 0x4692ed
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x46929c
cmp byte [esi], bl
je 0x4692bd
inc eax
cmp byte [eax], bl
jne 0x4692b3
inc eax
cmp byte [eax], bl
jne 0x4692b3
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.00467005
cmp eax, ebx
je 0x4692e4
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46a25f
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x49ab34]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x46a296
xor eax, eax
jmp 0x46a449
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 + 0x4ad560]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x46a2cb
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.0046e39d
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x46a399
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x46a417
jmp 0x46a2f2
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x46a348
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x46a333
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x46a30a
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46a3c6
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x46a3d2
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x46a2f0
jmp 0x46a3d2
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46a3c6
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x46a3d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x46a441
cmp dword [ebp - 0x40c], eax
je 0x46a411
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x46a403
call fcn.0046769a
mov dword [eax], 9
call fcn.004676ad
mov dword [eax], esi
jmp 0x46a43c
push dword [ebp - 0x40c]
call fcn.004676c0
pop ecx
jmp 0x46a43c
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x46a429
cmp byte [edi], 0x1a
jne 0x46a429
xor eax, eax
jmp 0x46a447
call fcn.0046769a
mov dword [eax], 0x1c
call fcn.004676ad
and dword [eax], 0
or eax, 0xffffffff
jmp 0x46a447
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.0047006a
leave
ret
Function at 0x46d5cf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4abec8], ebx
push esi
push edi
jne 0x46d651
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x46d68c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4958ac
push edi
call esi
test eax, eax
mov dword [0x4abec8], eax
je 0x46d68c
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4abecc], eax
call esi
cmp dword [0x4ab984], 2
mov dword [0x4abed0], eax
jne 0x46d651
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4abed8], eax
je 0x46d651
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4abed4], eax
mov eax, dword [0x4abed4]
test eax, eax
je 0x46d696
call eax
test eax, eax
je 0x46d67d
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4abed8]
test eax, eax
je 0x46d67d
test byte [ebp - 8], 1
jne 0x46d696
cmp dword [0x4ab990], 4
jb 0x46d690
or byte [ebp + 0x12], 0x20
jmp 0x46d6b5
xor eax, eax
jmp 0x46d6c5
or byte [ebp + 0x12], 4
jmp 0x46d6b5
mov eax, dword [0x4abecc]
test eax, eax
je 0x46d6b5
call eax
mov ebx, eax
test ebx, ebx
je 0x46d6b5
mov eax, dword [0x4abed0]
test eax, eax
je 0x46d6b5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4abec8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46da42
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.00461300
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x46db3e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x4ab984], 2
jne 0x46dac3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x46dac3
push str.SetThreadStackGuarantee
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x46dac3
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x46dac3
cmp dword [ebp - 4], esi
jbe 0x46dac3
mov esi, dword [ebp - 4]
mov edx, dword [0x4ab984]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x46daec
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x46daf8
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x46db0a
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x46db3e
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x46db3e
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x46db3e
xor eax, eax
inc eax
jmp 0x46db40
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46eee2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
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 0x46f0c4
mov esi, dword [ebp + 8]
mov eax, esi
sar eax, 5
and esi, 0x1f
lea edi, [eax*4 + 0x4ad560]
mov eax, dword [edi]
lea esi, [esi + esi*8]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x46f0c4
test cl, 0x48
je 0x46ef4f
cmp byte [eax + 5], 0xa
je 0x46ef4f
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 0x46efa1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x46ef89
call fcn.0046769a
mov dword [eax], 9
call fcn.004676ad
mov dword [eax], esi
jmp 0x46ef99
cmp eax, 0x6d
je 0x46f0c4
push eax
call fcn.004676c0
pop ecx
or eax, 0xffffffff
jmp 0x46f0c6
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x46f0bf
test eax, eax
je 0x46efc8
cmp byte [ebx], 0xa
jne 0x46efc8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x46efd1
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 0x46f0b9
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x46f09f
cmp al, 0xd
je 0x46f003
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x46f091
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x46f01d
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x46f018
add dword [ebp + 0x10], 2
jmp 0x46f071
mov dword [ebp + 0x10], eax
jmp 0x46f08d
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 0x46f045
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x46f08d
cmp dword [ebp - 0xc], 0
je 0x46f08d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x46f066
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x46f071
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x46f090
cmp ebx, dword [ebp + 0xc]
jne 0x46f076
cmp byte [ebp - 1], 0xa
jne 0x46f076
mov byte [ebx], 0xa
jmp 0x46f090
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046e39d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46f091
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x46efe7
jmp 0x46f0b9
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x46f0b1
lea esi, [eax + esi + 4]
or byte [esi], 2
jmp 0x46f0b9
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
mov byte [ebx], al
inc ebx
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x46f0c6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46f3a5
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x495a20
call fcn.004635e0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4abfb0], edi
jne 0x46f3e9
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46f3d4
mov dword [0x4abfb0], ebx
jmp 0x46f3e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x46f3e9
mov dword [0x4abfb0], 2
mov eax, dword [0x4abfb0]
cmp eax, ebx
jne 0x46f409
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x46f4cb
cmp eax, 2
je 0x46f412
cmp eax, edi
jne 0x46f43a
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x46f425
mov eax, dword [0x4abe9c]
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 0x46f441
xor eax, eax
jmp 0x46f4cb
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00461300
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x46f474
cmp esi, edi
jne 0x46f489
mov ecx, dword [ebp - 0x20]
call fcn.00467005
mov esi, eax
cmp esi, edi
je 0x46f43a
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 0x46f4bc
cmp dword [ebp + 0x14], edi
jne 0x46f4a6
push edi
push edi
jmp 0x46f4ac
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 0x46f4c8
push esi
call fcn.0046226a
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0046361b
ret
Function at 0x46f4d4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x495a30
call fcn.004635e0
xor esi, esi
cmp dword [0x4abfb4], esi
jne 0x46f518
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x46f503
mov dword [0x4abfb4], edi
jmp 0x46f518
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x46f518
mov dword [0x4abfb4], 2
mov eax, dword [0x4abfb4]
cmp eax, 2
je 0x46f5f7
cmp eax, esi
je 0x46f5f7
cmp eax, 1
jne 0x46f55d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x46f546
mov eax, dword [0x4abe9c]
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 0x46f564
xor eax, eax
jmp 0x46f609
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00461300
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x46f59a
cmp edi, esi
jne 0x46f5b3
lea ecx, [ebx + ebx]
call fcn.00467005
mov edi, eax
cmp edi, esi
je 0x46f55d
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 0x46f5e6
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x46f5d0
push esi
push esi
jmp 0x46f5d6
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 0x46f5f2
push edi
call fcn.0046226a
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x46f609
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.0046361b
ret
Function at 0x46fc73
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 8], ebx
je 0x46fcdd
push 0x3d
push esi
call fcn.0046fe64
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
je 0x46fcdd
cmp esi, edi
je 0x46fcdd
xor eax, eax
cmp byte [edi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4ab9a4]
cmp eax, dword [0x4ab9a8]
jne 0x46fcc3
call fcn.0046fc19
mov dword [0x4ab9a4], eax
cmp eax, ebx
jne 0x46fd1c
cmp dword [ebp + 0xc], ebx
je 0x46fce5
cmp dword [0x4ab9ac], ebx
je 0x46fce5
call fcn.0046f7b5
test eax, eax
je 0x46fd1c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x46fe1d
push 4
pop ecx
call fcn.00467005
cmp eax, ebx
mov dword [0x4ab9a4], eax
je 0x46fcdd
mov dword [eax], ebx
cmp dword [0x4ab9ac], ebx
jne 0x46fd1c
push 4
pop ecx
call fcn.00467005
cmp eax, ebx
mov dword [0x4ab9ac], eax
je 0x46fcdd
mov dword [eax], ebx
mov ebx, dword [0x4ab9a4]
sub edi, esi
push esi
call fcn.0046fbc7
mov edi, eax
test edi, edi
pop ecx
jl 0x46fd73
cmp dword [ebx], 0
je 0x46fd73
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0046226a
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x46fd5a
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x46fda7
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x46fd51
mov edx, edi
shl edx, 2
mov ecx, ebx
call fcn.00467085
test eax, eax
mov esi, dword [ebp + 8]
je 0x46fda7
jmp 0x46fda2
cmp dword [ebp - 4], 0
jne 0x46fe16
test edi, edi
jge 0x46fd83
neg edi
lea edx, [edi*4 + 8]
mov ecx, ebx
call fcn.00467085
test eax, eax
je 0x46fcdd
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4ab9a4], eax
cmp dword [ebp + 0xc], 0
je 0x46fe01
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46fdb2
sub eax, edx
lea ecx, [eax + 2]
call fcn.00467005
mov edi, eax
test edi, edi
je 0x46fe01
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x46fdcd
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
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 0x46fdfa
or dword [ebp - 8], 0xffffffff
push edi
call fcn.0046226a
pop ecx
cmp dword [ebp - 4], 0
je 0x46fe0e
push esi
call fcn.0046226a
pop ecx
mov eax, dword [ebp - 8]
jmp 0x46fce0
push esi
call fcn.0046226a
pop ecx
xor eax, eax
jmp 0x46fce0

Function at 0x47006a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49ab34]
jne 0x47007b
test ecx, 0xffff0000
jne 0x47007b
ret
jmp fcn.00470080