joyce8/EMBER2024-capa huggingface dataset:
Function at 0x664245
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x18
push 0x69e8f8
call fcn.00669184
mov edi, 0x94
mov eax, edi
call fcn.00666410
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x70f2cc], ecx
mov eax, dword [esi + 4]
mov dword [0x70f2d8], eax
mov edx, dword [esi + 8]
mov dword [0x70f2dc], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x70f2d0], esi
cmp ecx, 2
je 0x6642a5
or esi, 0x8000
mov dword [0x70f2d0], esi
shl eax, 8
add eax, edx
mov dword [0x70f2d4], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x6642de
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6642de
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x6642f6
cmp eax, 0x20b
je 0x6642e3
mov dword [ebp - 0x1c], edi
jmp 0x66430a
cmp dword [ecx + 0x84], 0xe
jbe 0x6642de
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x664304
cmp dword [ecx + 0x74], 0xe
jbe 0x6642de
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00669130
pop ecx
test eax, eax
jne 0x66431e
push 0x1c
call fcn.00664221
pop ecx
call fcn.006690a7
test eax, eax
jne 0x66432f
push 0x10
call fcn.00664221
pop ecx
call fcn.00668e12
mov dword [ebp - 4], edi
call fcn.00668c14
test eax, eax
jge 0x664348
push 0x1b
call fcn.006641fc
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x785d94], eax
call fcn.00668af2
mov dword [0x70f2b4], eax
call fcn.00668a50
test eax, eax
jge 0x66436e
push 8
call fcn.006641fc
pop ecx
call fcn.0066881d
test eax, eax
jge 0x66437f
push 9
call fcn.006641fc
pop ecx
call fcn.00664641
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x664392
push eax
call fcn.006641fc
pop ecx
mov eax, dword [0x70f2ec]
mov dword [0x70f2f0], eax
push eax
push dword [0x70f2e4]
push dword [0x70f2e0]
call fcn.004448b0
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x24], esi
cmp dword [ebp - 0x1c], edi
jne 0x6643c1
push esi
call fcn.00664779
call fcn.0066479b
jmp 0x6643f3
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.006691bf
ret
Function at 0x6646a6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.00669a2a
xor esi, esi
inc esi
cmp dword [0x70f30c], esi
pop ecx
jne 0x6646ce
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 [0x70f308], esi
mov byte [0x70f304], al
jne 0x664734
mov ecx, dword [0x785d8c]
test ecx, ecx
je 0x664715
mov eax, dword [0x785d88]
sub eax, 4
cmp eax, ecx
jmp 0x66470e
mov eax, dword [eax]
test eax, eax
je 0x664700
call eax
mov eax, dword [0x785d88]
sub eax, 4
cmp eax, dword [0x785d8c]
mov dword [0x785d88], eax
jae 0x6646f8
mov eax, 0x6c6adc
mov esi, 0x6c6aec
cmp eax, esi
mov edi, eax
jae 0x664734
mov eax, dword [edi]
test eax, eax
je 0x66472d
call eax
add edi, 4
cmp edi, esi
jb 0x664725
mov eax, 0x6c6af0
mov esi, 0x6c6af8
cmp eax, esi
mov edi, eax
jae 0x664753
mov eax, dword [edi]
test eax, eax
je 0x66474c
call eax
add edi, 4
cmp edi, esi
jb 0x664744
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x664764
push 8
call fcn.00669996
jmp 0x664776
push dword [ebp + 8]
mov dword [0x70f30c], 1
call fcn.006645ff
pop ecx
pop ebp
ret

Function at 0x668067
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x668084
call fcn.0066a449
mov dword [eax], 0x16
xor eax, eax
jmp 0x6680ee
push esi
push 0x88
push 1
call fcn.0066d701
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x6680d9
push esi
call fcn.00668eb8
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x6680b7
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x667fc3
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x6680ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00665256
test ebx, ebx
pop ecx
je 0x6680eb
push ebx
call fcn.0066a45b
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x668509
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6ddfa0]
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 + 0x6ddfa8]
je 0x668536
inc eax
cmp eax, 0x12
jb 0x668527
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x6ddfa8]
jne 0x66866a
mov eax, dword [0x70f2bc]
cmp eax, 1
je 0x668645
cmp eax, edx
jne 0x668566
cmp dword [0x6dda38], 1
je 0x668645
cmp ecx, 0xfc
je 0x66866a
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 0x66859f
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00671230
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00668230
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x6685e1
lea eax, [ebp - 0x10c]
push eax
call fcn.00668230
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x69ecb4
push edi
call fcn.00665df0
add esp, 0x10
push edi
call fcn.00668230
push dword [esi + 0x6ddfac]
mov ebx, eax
call fcn.00668230
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00666410
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00671230
push edi
push ebx
call fcn.00671240
push 0x6aab78
push ebx
call fcn.00671240
push dword [esi + 0x6ddfac]
push ebx
call fcn.00671240
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00672cb8
add esp, 0x2c
jmp 0x66866a
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x6ddfac]
push dword [esi]
call fcn.00668230
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.006684c2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x66b91b
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 0x66bae1
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x784c60]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x66bae1
test cl, 0x48
je 0x66b981
mov al, byte [eax + 5]
cmp al, 0xa
je 0x66b981
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 0x66b9d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x66b9bb
call fcn.0066a449
mov dword [eax], 9
call fcn.0066a452
mov dword [eax], esi
jmp 0x66b9cb
cmp eax, 0x6d
je 0x66bae1
push eax
call fcn.0066a45b
pop ecx
or eax, 0xffffffff
jmp 0x66bae3
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 0x66badc
test edx, edx
je 0x66b9f6
cmp byte [ebx], 0xa
jne 0x66b9f6
or al, 4
jmp 0x66b9f8
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 0x66bad6
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x66bac6
cmp al, 0xd
je 0x66ba2c
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x66bab8
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x66ba46
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x66ba41
add dword [ebp + 0x10], 2
jmp 0x66ba9a
mov dword [ebp + 0x10], eax
jmp 0x66bab4
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 0x66ba6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x66bab4
cmp dword [ebp - 0xc], 0
je 0x66bab4
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x66ba8f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x66ba9a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x66bab7
cmp ebx, dword [ebp + 0xc]
jne 0x66ba9f
cmp byte [ebp - 1], 0xa
jne 0x66ba9f
mov byte [ebx], 0xa
jmp 0x66bab7
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0066b5d2
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x66bab8
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x66ba10
jmp 0x66bad6
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x66bad6
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x66bae3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x66bedd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x6ddfa0]
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 0x66bf06
xor eax, eax
jmp 0x66c074
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 + 0x784c60]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x66bf39
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00674873
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x66c00b
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x66c046
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 0x66bf94
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x66bf85
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 0x66bf68
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 0x66bfd4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x66bfdd
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x66bf59
jmp 0x66bfdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x66c06f
cmp dword [ebp - 8], edi
je 0x66c046
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x66c038
call fcn.0066a449
mov dword [eax], 9
call fcn.0066a452
mov dword [eax], esi
jmp 0x66c041
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 0x66c02d
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x66bfdf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x66bfdf
push dword [ebp - 8]
call fcn.0066a45b
pop ecx
or eax, 0xffffffff
jmp 0x66c072
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x66c05b
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x66c05b
xor eax, eax
jmp 0x66c072
call fcn.0066a449
mov dword [eax], 0x1c
call fcn.0066a452
mov dword [eax], edi
jmp 0x66c041
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.006684c2
leave
ret
Function at 0x672cb8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x70f708], ebx
push esi
push edi
jne 0x672d38
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x672d73
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x70f708], eax
je 0x672d73
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x70f70c], eax
call esi
cmp dword [0x70f2cc], 2
mov dword [0x70f710], eax
jne 0x672d38
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x70f718], eax
je 0x672d38
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x70f714], eax
mov eax, dword [0x70f714]
test eax, eax
je 0x672d7d
call eax
test eax, eax
je 0x672d64
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x70f718]
test eax, eax
je 0x672d64
test byte [ebp - 8], 1
jne 0x672d7d
cmp dword [0x70f2d8], 4
jb 0x672d77
or byte [ebp + 0x12], 0x20
jmp 0x672d9c
xor eax, eax
jmp 0x672dac
or byte [ebp + 0x12], 4
jmp 0x672d9c
mov eax, dword [0x70f70c]
test eax, eax
je 0x672d9c
call eax
mov ebx, eax
test ebx, ebx
je 0x672d9c
mov eax, dword [0x70f710]
test eax, eax
je 0x672d9c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x70f708]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x673ff1
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.00666410
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x674086
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 [0x70f2cc]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x674086
cmp eax, 1
je 0x67409e
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 0x674086
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x67405b
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x674082
xor eax, eax
inc eax
jmp 0x6740ba
cmp esi, ebx
jae 0x67408a
xor eax, eax
jmp 0x6740ba
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x70f2cc]
jmp 0x6740a0
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 0x674e00
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 0x674e6b
push 0x3d
push dword [ebp + 8]
call fcn.00675c3d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x674e6b
cmp dword [ebp + 8], esi
je 0x674e6b
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x70f2ec]
cmp eax, dword [0x70f2f0]
jne 0x674e51
mov edi, eax
call fcn.00674d9f
mov dword [0x70f2ec], eax
cmp eax, ebx
jne 0x674eaa
cmp dword [ebp + 0xc], ebx
je 0x674e73
cmp dword [0x70f2f4], ebx
je 0x674e73
call fcn.0066d5da
test eax, eax
je 0x674eaa
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x674fae
push 4
call fcn.0066536e
cmp eax, ebx
pop ecx
mov dword [0x70f2ec], eax
je 0x674e6b
mov dword [eax], ebx
cmp dword [0x70f2f4], ebx
jne 0x674eaa
push 4
call fcn.0066536e
cmp eax, ebx
pop ecx
mov dword [0x70f2f4], eax
je 0x674e6b
mov dword [eax], ebx
mov ebx, dword [0x70f2ec]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.00674d52
mov edi, eax
test edi, edi
pop ecx
jl 0x674f03
cmp dword [ebx], 0
je 0x674f03
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00665256
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x674eeb
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x674f39
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x674ee2
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.00669247
test eax, eax
pop ecx
pop ecx
je 0x674f39
jmp 0x674f34
cmp dword [ebp - 4], 0
invalid
Function at 0x675b02
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00666410
mov eax, dword [0x6ddfa0]
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.0066b5d2
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x675c2c
push 2
push esi
push dword [ebp + 8]
call fcn.0066b5d2
add esp, 0xc
cmp eax, ebx
je 0x675c2c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x675bcf
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00671fe0
push 0x8000
push dword [ebp + 8]
call fcn.00676251
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x675b88
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0066bedd
add esp, 0xc
cmp eax, 0xffffffff
je 0x675ba8
sub edi, eax
test edi, edi
jg 0x675b80
jmp 0x675bc0
call fcn.0066a452
cmp dword [eax], 5
jne 0x675bbd
call fcn.0066a449
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00676251
pop ecx
pop ecx
jmp 0x675c17
jge 0x675c17
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0066b5d2
push dword [ebp + 8]
call fcn.00674650
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 0x675c17
call fcn.0066a449
mov dword [eax], 0xd
call fcn.0066a452
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.0066b5d2
add esp, 0xc
mov eax, esi
pop edi
jmp 0x675c2e
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.006684c2
leave
ret
Function at 0x675f7c
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6a4820
call fcn.00669184
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x70f740], edi
jne 0x675fc0
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x675fab
mov dword [0x70f740], ebx
jmp 0x675fc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x675fc0
mov dword [0x70f740], 2
mov eax, dword [0x70f740]
cmp eax, ebx
jne 0x675fe0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x6760a3
cmp eax, 2
je 0x675fe9
cmp eax, edi
jne 0x676011
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x675ffc
mov eax, dword [0x70f6d8]
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 0x676018
xor eax, eax
jmp 0x6760a3
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00666410
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x67604b
cmp esi, edi
jne 0x676061
push dword [ebp - 0x24]
call fcn.0066536e
pop ecx
mov esi, eax
cmp esi, edi
je 0x676011
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 0x676094
cmp dword [ebp + 0x14], edi
jne 0x67607e
push edi
push edi
jmp 0x676084
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 0x6760a0
push esi
call fcn.00665256
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.006691bf
ret
Function at 0x6760ac
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x6a4830
call fcn.00669184
xor esi, esi
cmp dword [0x70f744], esi
jne 0x6760f0
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x6760db
mov dword [0x70f744], edi
jmp 0x6760f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x6760f0
mov dword [0x70f744], 2
mov eax, dword [0x70f744]
cmp eax, 2
je 0x6761d1
cmp eax, esi
je 0x6761d1
cmp eax, 1
jne 0x676135
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x67611e
mov eax, dword [0x70f6d8]
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 0x67613c
xor eax, eax
jmp 0x6761e3
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00666410
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x676172
cmp edi, esi
jne 0x67618d
lea eax, [ebx + ebx]
push eax
call fcn.0066536e
pop ecx
mov edi, eax
cmp edi, esi
je 0x676135
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 0x6761c0
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x6761aa
push esi
push esi
jmp 0x6761b0
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 0x6761cc
push edi
call fcn.00665256
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x6761e3
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.006691bf
ret
Function at 0x6762d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x14], eax
jae 0x6763f9
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jae 0x6763dd
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 8], edi
shr edi, 2
and edi, esi
mov dword [ebp + 0x10], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 8]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp + 0x10]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 8]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 4]
add dword [ebp - 4], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0xc]
add ecx, 8
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov esi, 0xffc03fc0
jne 0x67632f
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x14]
mov dword [ebp + 0xc], edx
jb 0x67630d
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret 0x18