joyce8/EMBER2024-capa huggingface dataset:
Function at 0x63a5cd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x6ee2dc]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x63a5fe
xor eax, eax
jmp 0x63a787
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0xa40680]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x63a63a
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00643737
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x63a715
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x63a753
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x63a69e
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x63a68f
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x63a66f
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x63a6de
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x63a6e7
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x63a660
jmp 0x63a6e9
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x63a782
cmp dword [ebp - 0x6c], edi
je 0x63a753
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x63a748
call fcn.00630979
mov dword [eax], 9
call fcn.00630982
mov dword [eax], esi
jmp 0x63a77d
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x63a73d
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x63a6e9
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x63a6e9
push dword [ebp - 0x6c]
call fcn.0063098b
pop ecx
jmp 0x63a77d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x63a76b
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x63a76b
xor eax, eax
jmp 0x63a785
call fcn.00630979
mov dword [eax], 0x1c
call fcn.00630982
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x63a785
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.0062fcdf
add ebp, 0x3a0
leave
ret
Function at 0x63a846
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.0063292d
test eax, eax
pop ecx
jne 0x63a862
or eax, 0xffffffff
jmp 0x63aa3f
mov dword [0xa40680], eax
mov dword [0xa40678], 0x20
lea ecx, [eax + 0x480]
jmp 0x63a897
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0xa40680]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x63a879
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
cmp word [esp + 0x46], 0
je 0x63a99e
mov eax, dword [esp + 0x48]
test eax, eax
je 0x63a99e
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x63a8d8
mov edi, eax
cmp dword [0xa40678], edi
jge 0x63a92e
mov esi, 0xa40684
push ebx
call fcn.0063292d
test eax, eax
pop ecx
je 0x63a928
add dword [0xa40678], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x63a917
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x63a901
add esi, 4
cmp dword [0xa40678], edi
jl 0x63a8e5
jmp 0x63a92e
mov edi, dword [0xa40678]
xor ebx, ebx
test edi, edi
jle 0x63a99e
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x63a993
mov cl, byte [ebp]
test cl, 1
je 0x63a993
test cl, 8
jne 0x63a957
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x63a993
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0xa40680]
lea esi, [ecx + eax*4]
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
mov dword [esi], eax
mov al, byte [ebp]
mov byte [esi + 4], al
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.006427ae
test eax, eax
pop ecx
pop ecx
je 0x63a9be
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x63a934
xor ebx, ebx
mov ecx, dword [0xa40680]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x63aa20
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x63a9c3
push 0xfffffffffffffff6
pop eax
jmp 0x63a9cd
or eax, 0xffffffff
jmp 0x63aa3c
mov eax, ebx
dec eax
neg eax
sbb eax, eax
add eax, 0xfffffff5
push eax
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov edi, eax
cmp edi, 0xffffffff
je 0x63aa1a
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x63aa1a
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x63a9f8
or byte [esi + 4], 0x40
jmp 0x63aa01
cmp eax, 3
jne 0x63aa01
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.006427ae
test eax, eax
pop ecx
pop ecx
je 0x63a9be
inc dword [esi + 8]
jmp 0x63aa24
or byte [esi + 4], 0x40
jmp 0x63aa24
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x63a9a0
push dword [0xa40678]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x63ad68
Capabilities:
Parse pe header

Disassembly:
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 0x63ad96
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x63ad9d
cmp ebx, dword [eax + 4]
jae 0x63ad9d
xor eax, eax
jmp 0x63af8d
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x63adae
xor eax, eax
inc eax
jmp 0x63af8c
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x63adc4
cmp ecx, edx
jae 0x63af09
cmp dword [eax + 4], 0
je 0x63adcd
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x63adb5
cmp dword [ebp + 8], 0
je 0x63adef
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x63af09
cmp eax, esi
jae 0x63af09
mov eax, dword [0xa3ffb0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x63ae14
cmp dword [esi*4 + 0xa3ffb8], edi
je 0x63af0d
inc esi
cmp esi, eax
jl 0x63ae02
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x63af89
cmp dword [ebp - 8], 0x1000000
jne 0x63af89
test byte [ebp - 0xc], 0xcc
je 0x63ae92
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x63af89
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x63af89
cmp word [eax + 0x18], 0x10b
jne 0x63af89
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x63af89
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x63ae92
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x63ae92
test byte [ecx + 0x27], 0x80
jne 0x63af09
push 1
push 0xa3fff8
call dword [sym.imp.kernel32.dll_InterlockedExchange]
test eax, eax
jne 0x63ada6
mov ecx, dword [0xa3ffb0]
test ecx, ecx
mov edx, ecx
jle 0x63aec6
lea eax, [ecx*4 + 0xa3ffb4]
cmp dword [eax], edi
je 0x63aec6
dec edx
sub eax, 4
test edx, edx
jg 0x63aeba
test edx, edx
jne 0x63aef7
push 0xf
pop ebx
cmp ecx, ebx
jg 0x63aed3
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x63aeeb
lea eax, [edx*4 + 0xa3ffb8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x63aed9
cmp ecx, 0x10
jge 0x63aef7
inc ecx
mov dword [0xa3ffb0], ecx
push 0
push 0xa3fff8
call dword [sym.imp.kernel32.dll_InterlockedExchange]
jmp 0x63ada6
xor eax, eax
jmp 0x63af8c
test esi, esi
jle 0x63ada6
mov ebx, dword [sym.imp.kernel32.dll_InterlockedExchange]
push 1
push 0xa3fff8
call ebx
test eax, eax
jne 0x63ada6
cmp dword [esi*4 + 0xa3ffb8], edi
je 0x63af63
mov eax, dword [0xa3ffb0]
lea esi, [eax - 1]
test esi, esi
jl 0x63af51
cmp dword [esi*4 + 0xa3ffb8], edi
je 0x63af4d
dec esi
jns 0x63af41
test esi, esi
jge 0x63af61
cmp eax, 0x10
jge 0x63af5c
inc eax
mov dword [0xa3ffb0], eax
lea esi, [eax - 1]
jmp 0x63af63
je 0x63af7b
xor ecx, ecx
test esi, esi
jl 0x63af7b
lea eax, [ecx*4 + 0xa3ffb8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x63af69
push 0
push 0xa3fff8
call ebx
jmp 0x63ada6
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x63e488
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.006312b0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x63e523
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 [0xa3fde4]
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 0x63e523
cmp eax, 1
je 0x63e544
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 0x63e523
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x63e4f0
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x63e51f
xor eax, eax
inc eax
jmp 0x63e563
cmp edi, eax
jae 0x63e527
xor eax, eax
jmp 0x63e563
cmp eax, esi
jae 0x63e52e
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 [0xa3fde4]
jmp 0x63e547
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 0x63e6c3
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x6ee2dc]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x6eed40]
je 0x63e6f8
inc eax
cmp eax, 0x13
jb 0x63e6e9
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x6eed40]
jne 0x63e81e
mov eax, dword [0xa3fe34]
cmp eax, 1
je 0x63e7f6
cmp eax, edx
jne 0x63e728
cmp dword [0x6ee4fc], 1
je 0x63e7f6
cmp ecx, 0xfc
je 0x63e81e
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x63e75e
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0063abe0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00638930
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x63e792
mov eax, edi
push eax
call fcn.00638930
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x689420
push edi
call fcn.00630a00
add esp, 0x10
push edi
call fcn.00638930
push dword [esi + 0x6eed44]
mov ebx, eax
call fcn.00638930
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.006312b0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0063abe0
push edi
push ebx
call fcn.0063abf0
push 0x675cf0
push ebx
call fcn.0063abf0
push dword [esi + 0x6eed44]
push ebx
call fcn.0063abf0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.006426a5
add esp, 0x2c
jmp 0x63e81e
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x6eed44]
push dword [esi]
call fcn.00638930
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]
mov ecx, dword [ebp + 0x88]
call fcn.0062fcdf
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x641be0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x641c00
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.0063098b
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x641c23
test byte [esp + 8], 2
je 0x641c23
call fcn.00630979
mov dword [eax], 0xd
call fcn.00630982
mov dword [eax], 5
jmp 0x641bfc
xor eax, eax
ret

Function at 0x6426a5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0xa401b4], ebx
push esi
push edi
jne 0x642725
push 0x68fa64
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x642760
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x68fa58
push edi
call esi
test eax, eax
mov dword [0xa401b4], eax
je 0x642760
push str.GetActiveWindow
push edi
call esi
push 0x68fa34
push edi
mov dword [0xa401b8], eax
call esi
cmp dword [0xa3fde4], 2
mov dword [0xa401bc], eax
jne 0x642725
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0xa401c4], eax
je 0x642725
push str.GetProcessWindowStation
push edi
call esi
mov dword [0xa401c0], eax
mov eax, dword [0xa401c0]
test eax, eax
je 0x64276a
call eax
test eax, eax
je 0x642751
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0xa401c4]
test eax, eax
je 0x642751
test byte [ebp - 8], 1
jne 0x64276a
cmp dword [0xa3fdf0], 4
jb 0x642764
or byte [ebp + 0x12], 0x20
jmp 0x642789
xor eax, eax
jmp 0x642799
or byte [ebp + 0x12], 4
jmp 0x642789
mov eax, dword [0xa401b8]
test eax, eax
je 0x642789
call eax
mov ebx, eax
test ebx, ebx
je 0x642789
mov eax, dword [0xa401bc]
test eax, eax
je 0x642789
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0xa401b4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x643ee9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x6ee2dc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x643f68
push esi
call fcn.00633014
test eax, eax
pop ecx
jne 0x643f30
call fcn.00630982
mov dword [eax], 0xf
call fcn.00630979
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.0062fcdf
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 0x643f7b
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x643f23
inc eax
cmp eax, esi
ja 0x643f23
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x643fb2
cmp eax, dword [ebp + 0x10]
jg 0x643f93
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0063292d
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x643fc7
call fcn.00630979
mov dword [eax], 0xc
jmp 0x643f23
cmp eax, dword [ebp + 0x10]
jle 0x643fc7
call fcn.00630979
mov dword [eax], 0x22
jmp 0x643f23
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.00645435
pop ecx
pop ecx
jmp 0x643f25

Function at 0x6452f4
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.006312b0
mov eax, dword [0x6ee2dc]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0063aa44
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x645427
push 2
push esi
push dword [ebp + 8]
call fcn.0063aa44
add esp, 0xc
cmp eax, ebx
je 0x645427
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x6453c7
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00640750
push 0x8000
push dword [ebp + 8]
call fcn.0064612c
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x64537d
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0063a5cd
add esp, 0xc
cmp eax, 0xffffffff
je 0x64539d
sub edi, eax
test edi, edi
jg 0x645375
jmp 0x6453b5
call fcn.00630982
cmp dword [eax], 5
jne 0x6453b2
call fcn.00630979
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0064612c
pop ecx
pop ecx
jmp 0x64540f
jge 0x64540f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0063aa44
push dword [ebp + 8]
call fcn.006434b8
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 0x64540f
call fcn.00630979
mov dword [eax], 0xd
call fcn.00630982
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.0063aa44
add esp, 0xc
mov eax, esi
pop edi
jmp 0x645429
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0062fcdf
leave
ret
Function at 0x645579
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x691410
call fcn.00636948
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0xa402a4], edi
jne 0x6455bd
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x6455a8
mov dword [0xa402a4], ebx
jmp 0x6455bd
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x6455bd
mov dword [0xa402a4], 2
mov eax, dword [0xa402a4]
cmp eax, ebx
jne 0x6455dd
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x6456a0
cmp eax, 2
je 0x6455e6
cmp eax, edi
jne 0x64560e
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x6455f9
mov eax, dword [0xa40180]
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 0x645615
xor eax, eax
jmp 0x6456a0
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.006312b0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x645648
cmp esi, edi
jne 0x64565e
push dword [ebp - 0x20]
call fcn.0063292d
pop ecx
mov esi, eax
cmp esi, edi
je 0x64560e
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 0x645691
cmp dword [ebp + 0x14], edi
jne 0x64567b
push edi
push edi
jmp 0x645681
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 0x64569d
push esi
call fcn.0063263b
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00636983
ret
Function at 0x6456a9
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x691420
call fcn.00636948
xor esi, esi
cmp dword [0xa402a8], esi
jne 0x6456ed
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x6456d8
mov dword [0xa402a8], edi
jmp 0x6456ed
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x6456ed
mov dword [0xa402a8], 2
mov eax, dword [0xa402a8]
cmp eax, 2
je 0x6457ce
cmp eax, esi
je 0x6457ce
cmp eax, 1
jne 0x645732
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x64571b
mov eax, dword [0xa40180]
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 0x645739
xor eax, eax
jmp 0x6457e0
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.006312b0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x64576f
cmp edi, esi
jne 0x64578a
lea eax, [ebx + ebx]
push eax
call fcn.0063292d
pop ecx
mov edi, eax
cmp edi, esi
je 0x645732
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 0x6457bd
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x6457a7
push esi
push esi
jmp 0x6457ad
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 0x6457c9
push edi
call fcn.0063263b
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x6457e0
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.00636983
ret
Function at 0x645f57
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 0x645f70
or eax, 0xffffffff
jmp 0x645fd1
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x645fcd
push 0x3d
push esi
call fcn.00646198
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x645fcd
cmp esi, eax
je 0x645fcd
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0xa3fe04]
sete cl
cmp eax, dword [0xa3fe08]
mov dword [ebp - 8], ecx
jne 0x645fb3
mov edi, eax
call fcn.00645ef6
mov dword [0xa3fe04], eax
cmp eax, ebx
jne 0x64600c
cmp dword [ebp + 0xc], ebx
je 0x645fd5
cmp dword [0xa3fe0c], ebx
je 0x645fd5
call fcn.00644e1e
test eax, eax
je 0x64600c
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x645fde
xor eax, eax
jmp 0x645fd0
push 4
call fcn.0063292d
cmp eax, ebx
pop ecx
mov dword [0xa3fe04], eax
je 0x645fcd
mov dword [eax], ebx
cmp dword [0xa3fe0c], ebx
jne 0x64600c
push 4
call fcn.0063292d
cmp eax, ebx
pop ecx
mov dword [0xa3fe0c], eax
je 0x645fcd
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0xa3fe04]
call fcn.00645ea9
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x64606d
cmp dword [esi], ebx
je 0x64606d
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0063263b
cmp dword [ebp - 8], ebx
pop ecx
jne 0x646050
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x6460ae
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x646047
mov eax, edi
shl eax, 2
push eax
push dword [0xa3fe04]
call fcn.006356c3
cmp eax, ebx
pop ecx
pop ecx
je 0x6460ae
jmp 0x6460a9
cmp dword [ebp - 8], ebx
jne 0x646119
cmp edi, ebx
jge 0x64607c
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0xa3fe04]
call fcn.006356c3
cmp eax, ebx
pop ecx
pop ecx
je 0x645fcd
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0xa3fe04], eax
cmp dword [ebp + 0xc], ebx
je 0x646103
push dword [ebp - 4]
call fcn.00638930
inc eax
inc eax
push eax
call fcn.0063292d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x646103
push dword [ebp - 4]
push esi
call fcn.0063abe0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
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 0x6460fc
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0063263b
pop ecx
cmp dword [ebp - 8], ebx
je 0x646111
push dword [ebp - 4]
call fcn.0063263b
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x645fd0
push dword [ebp - 4]
call fcn.0063263b
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x645fda