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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x102164c]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1021a78]
je 0x10177b9
inc eax
cmp eax, 0x12
jb 0x10177aa
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1021a78]
mov dword [ebp - 0x110], esi
jne 0x1017964
mov eax, dword [0x102294c]
cmp eax, 1
je 0x1017932
test eax, eax
jne 0x10177ef
cmp dword [0x1021654], 1
je 0x1017932
cmp ecx, 0xfc
je 0x1017964
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x101782a
push 5
pop ecx
mov esi, 0x10026ac
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1017835
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x101786d
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x101784d
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10026a8
push ebx
call fcn.0101ae90
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1017872
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1021a7c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x101788c
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.010162d0
mov edx, esp
push 6
pop ecx
mov esi, 0x100268c
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10178b8
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10178c4
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10178dd
mov eax, dword [ebp - 0x110]
mov esi, 0x1002688
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1021a7c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10178fb
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1017907
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002660
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0101cd9d
add esp, 0xc
jmp 0x1017964
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1017964
mov esi, dword [esi + 0x1021a7c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1017949
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.0101522e
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1017e10
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1022bcc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
cmp eax, ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
pop edi
jne 0x1017e63
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1017e4a
mov dword [0x1022bcc], 1
jmp 0x1017e68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1017e5e
mov eax, edi
mov dword [0x1022bcc], eax
jmp 0x1017e63
mov eax, dword [0x1022bcc]
cmp eax, 1
jne 0x1017ecf
cmp dword [ebp - 4], ebx
jne 0x1017e7d
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x1017e7d
xor eax, eax
jmp 0x1017f8e
mov ecx, dword [ebp - 4]
cmp word [ecx], bx
mov eax, ecx
je 0x1017e95
add eax, edi
cmp word [eax], bx
jne 0x1017e87
add eax, edi
cmp word [eax], bx
jne 0x1017e87
sub eax, ecx
add eax, edi
mov esi, eax
push esi
call fcn.01017480
cmp eax, ebx
pop ecx
jne 0x1017eb6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x1017f8e
mov ecx, esi
mov esi, dword [ebp - 4]
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 ebx, eax
jmp 0x1017ea6
cmp eax, edi
je 0x1017ed7
cmp eax, ebx
jne 0x1017e76
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1017e76
cmp byte [esi], bl
je 0x1017f1c
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x1017e76
add dword [ebp - 8], eax
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1017f08
sub eax, edi
lea esi, [esi + eax + 1]
cmp byte [esi], bl
jne 0x1017eea
mov esi, dword [ebp - 4]
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
add eax, eax
push eax
call fcn.01017480
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
jne 0x1017f35
push esi
jmp 0x1017f9f
mov edi, esi
mov esi, eax
mov eax, dword [ebp - 4]
cmp byte [eax], bl
je 0x1017f7f
mov ecx, dword [ebp - 8]
mov eax, esi
sub eax, dword [ebp - 0xc]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1017f93
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1017f63
sub eax, edx
push esi
lea edi, [edi + eax + 1]
call fcn.0101633d
cmp byte [edi], bl
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x1017f40
push dword [ebp - 4]
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp - 0xc]
call fcn.0101749c
pop ecx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x1017e76
Function at 0x1017faf
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x1022bd0]
test eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x1017ff3
call esi
test eax, eax
je 0x1017fd8
mov dword [0x1022bd0], 1
jmp 0x1017ff8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1017fef
mov dword [0x1022bd0], 2
jmp 0x1018001
xor eax, eax
jmp 0x1018057
cmp eax, 1
jne 0x1017ffc
call esi
jmp 0x1018057
cmp eax, 2
jne 0x1017fef
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
push 0xffffffffffffffff
push eax
push 1
push 0
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
je 0x1018054
lea eax, [edi + edi]
push eax
call fcn.01017480
test eax, eax
pop ecx
mov dword [ebp - 4], eax
je 0x1018054
push edi
push eax
push 0xffffffffffffffff
push dword [ebp - 8]
push 1
push 0
call esi
test eax, eax
je 0x101804b
mov eax, dword [ebp - 4]
jmp 0x1018056
push dword [ebp - 4]
call fcn.0101749c
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x101cd19
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.010162d0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x101cd7f
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1022970]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x101cd83
xor eax, eax
jmp 0x101cd90
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101cd9d
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 [0x1022c68], ebx
push esi
push edi
jne 0x101ce1f
push 0x10039f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x101ce5a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10039e8
push edi
call esi
test eax, eax
mov dword [0x1022c68], eax
je 0x101ce5a
push 0x10039d8
push edi
call esi
push 0x10039c4
push edi
mov dword [0x1022c6c], eax
call esi
cmp dword [0x1022970], 2
mov dword [0x1022c70], eax
jne 0x101ce1f
push 0x10039a8
push edi
call esi
test eax, eax
mov dword [0x1022c78], eax
je 0x101ce1f
push 0x1003990
push edi
call esi
mov dword [0x1022c74], eax
mov eax, dword [0x1022c74]
test eax, eax
je 0x101ce64
call eax
test eax, eax
je 0x101ce4b
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1022c78]
test eax, eax
je 0x101ce4b
test byte [ebp - 8], 1
jne 0x101ce64
cmp dword [0x102297c], 4
jb 0x101ce5e
or byte [ebp + 0x12], 0x20
jmp 0x101ce83
xor eax, eax
jmp 0x101ce93
or byte [ebp + 0x12], 4
jmp 0x101ce83
mov eax, dword [0x1022c6c]
test eax, eax
je 0x101ce83
call eax
mov ebx, eax
test ebx, ebx
je 0x101ce83
mov eax, dword [0x1022c70]
test eax, eax
je 0x101ce83
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1022c68]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101ce9d
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 0x101cece
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 0x101ced5
cmp ebx, dword [ebp + 8]
jae 0x101ced5
xor eax, eax
jmp 0x101d0c5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x101cee6
xor eax, eax
inc eax
jmp 0x101d0c4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x101cefc
cmp ecx, edx
jae 0x101d041
cmp dword [eax + 4], 0
je 0x101cf05
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x101ceed
cmp dword [ebp + 8], 0
je 0x101cf27
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x101d041
cmp eax, esi
jae 0x101d041
mov eax, dword [0x1022c80]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x101cf4c
cmp dword [esi*4 + 0x1022c88], edi
je 0x101d045
inc esi
cmp esi, eax
jl 0x101cf3a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x101d0c1
cmp dword [ebp - 8], 0x1000000
jne 0x101d0c1
test byte [ebp - 0xc], 0xcc
je 0x101cfca
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x101d0c1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101d0c1
cmp word [eax + 0x18], 0x10b
jne 0x101d0c1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x101d0c1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x101cfca
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x101cfca
test byte [ecx + 0x27], 0x80
jne 0x101d041
push 1
push 0x1022cc8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x101cede
mov ecx, dword [0x1022c80]
test ecx, ecx
mov edx, ecx
jle 0x101cffe
lea eax, [ecx*4 + 0x1022c84]
cmp dword [eax], edi
je 0x101cffe
dec edx
sub eax, 4
test edx, edx
jg 0x101cff2
test edx, edx
jne 0x101d02f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x101d00b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x101d023
lea eax, [edx*4 + 0x1022c88]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x101d011
cmp ecx, 0x10
jge 0x101d02f
inc ecx
mov dword [0x1022c80], ecx
push 0
push 0x1022cc8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x101cede
xor eax, eax
jmp 0x101d0c4
test esi, esi
jle 0x101cede
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1022cc8
call ebx
test eax, eax
jne 0x101cede
cmp dword [esi*4 + 0x1022c88], edi
je 0x101d09b
mov eax, dword [0x1022c80]
lea esi, [eax - 1]
test esi, esi
jl 0x101d089
cmp dword [esi*4 + 0x1022c88], edi
je 0x101d085
dec esi
jns 0x101d079
test esi, esi
jge 0x101d099
cmp eax, 0x10
jge 0x101d094
inc eax
mov dword [0x1022c80], eax
lea esi, [eax - 1]
jmp 0x101d09b
je 0x101d0b3
xor ecx, ecx
test esi, esi
jl 0x101d0b3
lea eax, [ecx*4 + 0x1022c88]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x101d0a1
push 0
push 0x1022cc8
call ebx
jmp 0x101cede
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101d162
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x1023028]
mov eax, dword [0x102164c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x101d348
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x1023040]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x101d348
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x101d1d3
xor eax, eax
jmp 0x101d35c
test al, 0x20
je 0x101d1e6
push 2
push 0
push 0
push ecx
call fcn.0101e4d0
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x101d2a6
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x101d322
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x101d255
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x101d243
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x101d21f
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
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 0x101d2d4
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x101d2e0
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x101d20b
jmp 0x101d2e0
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101d2d4
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x101d2e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x101d340
cmp dword [ebp - 0x40c], eax
je 0x101d31c
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x101d30e
mov dword [0x1022964], 9
mov dword [0x1022968], eax
jmp 0x101d359
push dword [ebp - 0x40c]
call fcn.0101db35
pop ecx
jmp 0x101d359
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x101d334
cmp byte [edi], 0x1a
je 0x101d1cc
mov dword [0x1022964], 0x1c
jmp 0x101d352
sub eax, dword [ebp - 0x420]
jmp 0x101d35c
mov dword [0x1022964], 9
and dword [0x1022968], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0101522e
leave
ret
Function at 0x101e2d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x1023028]
push edi
jae 0x101e4b2
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x1023040]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x101e4b2
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x101e386
test dl, 2
jne 0x101e386
test dl, 0x48
je 0x101e350
cmp byte [eax + 5], 0xa
je 0x101e350
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101e399
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x101e381
mov dword [0x1022968], ecx
jmp 0x101e4b9
cmp eax, 0x6d
jne 0x101e38d
xor eax, eax
jmp 0x101e4c6
push eax
call fcn.0101db35
pop ecx
jmp 0x101e4c3
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x101e4ad
test eax, eax
je 0x101e3c0
cmp byte [ebx], 0xa
jne 0x101e3c0
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x101e3c9
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x101e4a7
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x101e497
cmp al, 0xd
je 0x101e3fb
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x101e489
dec ecx
cmp dword [ebp - 8], ecx
jae 0x101e415
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x101e410
add dword [ebp - 8], 2
jmp 0x101e469
mov dword [ebp - 8], eax
jmp 0x101e485
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
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 0x101e43d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x101e485
cmp dword [ebp - 0x10], 0
je 0x101e485
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x101e45e
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x101e469
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x101e488
cmp ebx, dword [ebp + 0xc]
jne 0x101e46e
cmp byte [ebp - 1], 0xa
jne 0x101e46e
mov byte [ebx], 0xa
jmp 0x101e488
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0101e4d0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x101e489
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x101e3df
jmp 0x101e4a7
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x101e4a7
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x101e4c6
and dword [0x1022968], 0
mov dword [0x1022964], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101e88b
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x1023028]
jae 0x101e9e6
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x1023040]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x101e9e6
push 1
push esi
push ebx
call fcn.0101d0ce
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x101e9f0
push 2
push esi
push ebx
call fcn.0101d0ce
add esp, 0xc
cmp eax, 0xffffffff
je 0x101e9f0
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x101e993
push 0x1000
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp + 8], eax
jne 0x101e929
mov dword [0x1022964], 0xc
or esi, 0xffffffff
jmp 0x101e9d3
push 0x8000
push ebx
call fcn.0101ee90
pop ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, 0x1000
cmp edi, eax
jge 0x101e944
mov eax, edi
push eax
push dword [ebp + 8]
push ebx
call fcn.0101d162
add esp, 0xc
cmp eax, 0xffffffff
je 0x101e95e
sub edi, eax
test edi, edi
jg 0x101e939
jmp 0x101e974
cmp dword [0x1022968], 5
jne 0x101e971
mov dword [0x1022964], 0xd
or esi, 0xffffffff
push dword [ebp - 4]
push ebx
call fcn.0101ee90
pop ecx
pop ecx
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x101e9d3
jge 0x101e9d3
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0101d0ce
push ebx
call fcn.0101dd4f
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, 0xffffffff
jne 0x101e9d3
mov dword [0x1022964], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1022968], eax
push 0
push dword [ebp - 8]
push ebx
call fcn.0101d0ce
add esp, 0xc
mov eax, esi
pop edi
jmp 0x101e9f3
mov dword [0x1022964], 9
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x101ea81
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1003bd0
call fcn.0101828c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x1022cfc], edi
jne 0x101eac5
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101eab0
mov dword [0x1022cfc], ebx
jmp 0x101eac5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x101eac5
mov dword [0x1022cfc], 2
mov eax, dword [0x1022cfc]
cmp eax, ebx
jne 0x101eae5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x101eba8
cmp eax, 2
je 0x101eaee
cmp eax, edi
jne 0x101eb16
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x101eb01
mov eax, dword [0x1022c00]
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 0x101eb1d
xor eax, eax
jmp 0x101eba8
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.010162d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x101eb50
cmp esi, edi
jne 0x101eb66
push dword [ebp - 0x20]
call fcn.01017480
pop ecx
mov esi, eax
cmp esi, edi
je 0x101eb16
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 0x101eb99
cmp dword [ebp + 0x14], edi
jne 0x101eb83
push edi
push edi
jmp 0x101eb89
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 0x101eba5
push esi
call fcn.0101749c
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.010182c7
ret
Function at 0x101ebb6
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x1003be0
call fcn.0101828c
xor esi, esi
cmp dword [0x1022d00], esi
jne 0x101ebfa
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x101ebe5
mov dword [0x1022d00], edi
jmp 0x101ebfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x101ebfa
mov dword [0x1022d00], 2
mov eax, dword [0x1022d00]
cmp eax, 2
je 0x101ecdb
cmp eax, esi
je 0x101ecdb
cmp eax, 1
jne 0x101ec3f
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x101ec28
mov eax, dword [0x1022c00]
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 0x101ec46
xor eax, eax
jmp 0x101eced
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.010162d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x101ec7c
cmp edi, esi
jne 0x101ec97
lea eax, [ebx + ebx]
push eax
call fcn.01017480
pop ecx
mov edi, eax
cmp edi, esi
je 0x101ec3f
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 0x101ecca
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x101ecb4
push esi
push esi
jmp 0x101ecba
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 0x101ecd6
push edi
call fcn.0101749c
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x101eced
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.010182c7
ret