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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
cmp ecx, dword [eax*8 + 0x10ab8d8]
je 0x10505cc
inc eax
cmp eax, 0x13
jb 0x10505bd
push esi
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x10ab8d8]
mov dword [ebp + 8], esi
jne 0x1050712
mov eax, dword [0x10bbbc4]
cmp eax, 1
push ebx
je 0x10506e2
test eax, eax
jne 0x1050601
cmp dword [0x10ab210], 1
je 0x10506e2
cmp ecx, 0xfc
je 0x1050711
push edi
push 6
pop ecx
mov esi, 0x1007bc0
mov edi, 0x10bbdc8
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x10bbde2
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x10bbee6], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x105064f
push 5
pop ecx
mov esi, 0x1007ba8
mov edi, 0x10bbde2
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 0x1050654
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1050687
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1050668
sub eax, edx
push 3
lea eax, [eax + 0x10bbda7]
push 0x1007ba4
push eax
call fcn.0104c100
add esp, 0xc
mov edx, 0x10bbdc8
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x105068f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10ab8dc]
mov esi, 0x1007ba0
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 0x10506aa
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10506b6
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1007b78
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01057287
add esp, 0xc
pop edi
jmp 0x1050711
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1050711
mov esi, dword [esi + 0x10ab8dc]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10506f9
push 0
sub ecx, edx
lea edx, [ebp - 4]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x105242d
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 0x105245b
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 0x1052462
cmp ebx, dword [eax + 4]
jae 0x1052462
xor eax, eax
jmp 0x1052652
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1052473
xor eax, eax
inc eax
jmp 0x1052651
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1052489
cmp ecx, edx
jae 0x10525ce
cmp dword [eax + 4], 0
je 0x1052492
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x105247a
cmp dword [ebp + 8], 0
je 0x10524b4
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x10525ce
cmp eax, esi
jae 0x10525ce
mov eax, dword [0x10bc200]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x10524d9
cmp dword [esi*4 + 0x10bc208], edi
je 0x10525d2
inc esi
cmp esi, eax
jl 0x10524c7
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x105264e
cmp dword [ebp - 8], 0x1000000
jne 0x105264e
test byte [ebp - 0xc], 0xcc
je 0x1052557
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x105264e
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x105264e
cmp word [eax + 0x18], 0x10b
jne 0x105264e
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x105264e
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1052557
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1052557
test byte [ecx + 0x27], 0x80
jne 0x10525ce
push 1
push 0x10bc248
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x105246b
mov ecx, dword [0x10bc200]
test ecx, ecx
mov edx, ecx
jle 0x105258b
lea eax, [ecx*4 + 0x10bc204]
cmp dword [eax], edi
je 0x105258b
dec edx
sub eax, 4
test edx, edx
jg 0x105257f
test edx, edx
jne 0x10525bc
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1052598
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x10525b0
lea eax, [edx*4 + 0x10bc208]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x105259e
cmp ecx, 0x10
jge 0x10525bc
inc ecx
mov dword [0x10bc200], ecx
push 0
push 0x10bc248
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x105246b
xor eax, eax
jmp 0x1052651
test esi, esi
jle 0x105246b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x10bc248
call ebx
test eax, eax
jne 0x105246b
cmp dword [esi*4 + 0x10bc208], edi
je 0x1052628
mov eax, dword [0x10bc200]
lea esi, [eax - 1]
test esi, esi
jl 0x1052616
cmp dword [esi*4 + 0x10bc208], edi
je 0x1052612
dec esi
jns 0x1052606
test esi, esi
jge 0x1052626
cmp eax, 0x10
jge 0x1052621
inc eax
mov dword [0x10bc200], eax
lea esi, [eax - 1]
jmp 0x1052628
je 0x1052640
xor ecx, ecx
test esi, esi
jl 0x1052640
lea eax, [ecx*4 + 0x10bc208]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x105262e
push 0
push 0x10bc248
call ebx
jmp 0x105246b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1053807
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
jne 0x1053825
xor eax, eax
jmp 0x1053993
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 + 0x10be0a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1053858
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.01058383
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x105392a
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], edi
jbe 0x1053962
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
mov dword [ebp - 8], edi
cmp ecx, dword [ebp + 0x10]
jae 0x10538b3
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10538a4
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 8]
mov byte [eax], dl
inc eax
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x400
jl 0x1053887
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x18]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10538f3
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
cmp eax, edi
jl 0x10538fc
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x1053878
jmp 0x10538fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
xor edi, edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
jne 0x105398e
cmp dword [ebp - 4], edi
je 0x1053962
push 5
pop esi
cmp dword [ebp - 4], esi
jne 0x1053957
call fcn.0104bfa2
mov dword [eax], 9
call fcn.0104bfb5
mov dword [eax], esi
jmp 0x1053989
push edi
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x105394c
mov eax, dword [ebp - 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], eax
jmp 0x10538fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x10538fe
push dword [ebp - 4]
call fcn.0104bfc8
pop ecx
jmp 0x1053989
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1053977
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x1053977
xor eax, eax
jmp 0x1053991
call fcn.0104bfa2
mov dword [eax], 0x1c
call fcn.0104bfb5
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x1053991
sub eax, dword [ebp - 0x14]
pop esi
pop ebx
pop edi
leave
ret

Function at 0x105544e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x105547c
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x1055481
cmp eax, 1
je 0x1055481
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1055485
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
push edi
je 0x10554ef
push ebx
call fcn.0105544e
test eax, eax
pop ecx
jne 0x10554c0
call fcn.0104bfb5
mov dword [eax], 0xf
call fcn.0104bfa2
mov dword [eax], 0xd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x1055502
lea eax, [ebp - 0x108]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x10554b9
inc eax
cmp eax, esi
ja 0x10554b9
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x1055534
cmp eax, dword [ebp + 0x10]
jg 0x105551a
mov eax, dword [ebp + 0x10]
push eax
call fcn.0104c270
mov edi, eax
test edi, edi
pop ecx
jne 0x1055549
call fcn.0104bfa2
mov dword [eax], 0xc
jmp 0x10554b9
cmp eax, dword [ebp + 0x10]
jle 0x1055549
call fcn.0104bfa2
mov dword [eax], 0x22
jmp 0x10554b9
lea ecx, [ebp - 0x108]
mov esi, edi
mov eax, ecx
sub esi, eax
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x1055555
mov eax, edi
jmp 0x10554bb

Function at 0x105566e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.0104c300
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 0x1055768
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 [0x10bbbf8], 2
jne 0x10556ed
push 0x1007c34
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x10556ed
push 0x1007e0c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10556ed
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x10556ed
cmp dword [ebp - 4], esi
jbe 0x10556ed
mov esi, dword [ebp - 4]
mov edx, dword [0x10bbbf8]
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 0x1055716
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x1055722
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 0x1055734
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x1055768
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1055768
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 0x1055768
xor eax, eax
inc eax
jmp 0x105576a
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1057287
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10bc370], ebx
push esi
push edi
jne 0x1057307
push 0x10046d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1057342
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1008ff4
push edi
call esi
test eax, eax
mov dword [0x10bc370], eax
je 0x1057342
push 0x1008fe4
push edi
call esi
push 0x1008fd0
push edi
mov dword [0x10bc374], eax
call esi
cmp dword [0x10bbbf8], 2
mov dword [0x10bc378], eax
jne 0x1057307
push 0x1008fb4
push edi
call esi
test eax, eax
mov dword [0x10bc380], eax
je 0x1057307
push 0x1008f9c
push edi
call esi
mov dword [0x10bc37c], eax
mov eax, dword [0x10bc37c]
test eax, eax
je 0x105734c
call eax
test eax, eax
je 0x1057333
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10bc380]
test eax, eax
je 0x1057333
test byte [ebp - 8], 1
jne 0x105734c
cmp dword [0x10bbc04], 4
jb 0x1057346
or byte [ebp + 0x12], 0x20
jmp 0x105736b
xor eax, eax
jmp 0x105737b
or byte [ebp + 0x12], 4
jmp 0x105736b
mov eax, dword [0x10bc374]
test eax, eax
je 0x105736b
call eax
mov ebx, eax
test ebx, ebx
je 0x105736b
mov eax, dword [0x10bc378]
test eax, eax
je 0x105736b
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10bc370]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10584c4
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 0x10586a4
mov esi, dword [ebp + 8]
mov eax, esi
sar eax, 5
and esi, 0x1f
lea edi, [eax*4 + 0x10be0a0]
mov eax, dword [edi]
lea esi, [esi + esi*8]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x10586a4
test cl, 0x48
je 0x105852f
cmp byte [eax + 5], 0xa
je 0x105852f
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 0x1058581
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x1058569
call fcn.0104bfa2
mov dword [eax], 9
call fcn.0104bfb5
mov dword [eax], esi
jmp 0x1058579
cmp eax, 0x6d
je 0x10586a4
push eax
call fcn.0104bfc8
pop ecx
or eax, 0xffffffff
jmp 0x10586a6
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x105869f
test eax, eax
je 0x10585a8
cmp byte [ebx], 0xa
jne 0x10585a8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x10585b1
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 0x1058699
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x105867f
cmp al, 0xd
je 0x10585e3
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x1058671
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x10585fd
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x10585f8
add dword [ebp + 0x10], 2
jmp 0x1058651
mov dword [ebp + 0x10], eax
jmp 0x105866d
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 0x1058625
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x105866d
cmp dword [ebp - 0xc], 0
je 0x105866d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x1058646
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x1058651
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x1058670
cmp ebx, dword [ebp + 0xc]
jne 0x1058656
cmp byte [ebp - 1], 0xa
jne 0x1058656
mov byte [ebx], 0xa
jmp 0x1058670
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.01058383
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1058671
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x10585c7
jmp 0x1058699
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x1058691
lea esi, [eax + esi + 4]
or byte [esi], 2
jmp 0x1058699
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 0x10586a6
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x105994b
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10090c0
call fcn.010512ec
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x10bc3a4], edi
jne 0x105998f
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x105997a
mov dword [0x10bc3a4], ebx
jmp 0x105998f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x105998f
mov dword [0x10bc3a4], 2
mov eax, dword [0x10bc3a4]
cmp eax, ebx
jne 0x10599af
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x1059a71
cmp eax, 2
je 0x10599b8
cmp eax, edi
jne 0x10599e0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x10599cb
mov eax, dword [0x10bbc68]
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 0x10599e7
xor eax, eax
jmp 0x1059a71
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0104c300
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x1059a1a
cmp esi, edi
jne 0x1059a2f
mov ecx, dword [ebp - 0x20]
call fcn.01051338
mov esi, eax
cmp esi, edi
je 0x10599e0
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 0x1059a62
cmp dword [ebp + 0x14], edi
jne 0x1059a4c
push edi
push edi
jmp 0x1059a52
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 0x1059a6e
push esi
call fcn.0104ab95
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.01051327
ret
Function at 0x1059a7a
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x10090d0
call fcn.010512ec
xor esi, esi
cmp dword [0x10bc3a8], esi
jne 0x1059abe
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1059aa9
mov dword [0x10bc3a8], edi
jmp 0x1059abe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1059abe
mov dword [0x10bc3a8], 2
mov eax, dword [0x10bc3a8]
cmp eax, 2
je 0x1059b9d
cmp eax, esi
je 0x1059b9d
cmp eax, 1
jne 0x1059b03
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x1059aec
mov eax, dword [0x10bbc68]
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 0x1059b0a
xor eax, eax
jmp 0x1059baf
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0104c300
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x1059b40
cmp edi, esi
jne 0x1059b59
lea ecx, [ebx + ebx]
call fcn.01051338
mov edi, eax
cmp edi, esi
je 0x1059b03
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 0x1059b8c
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x1059b76
push esi
push esi
jmp 0x1059b7c
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 0x1059b98
push edi
call fcn.0104ab95
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x1059baf
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.01051327
ret
Function at 0x1059c21
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
call fcn.01053d56
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
je 0x1059d66
push 2
push esi
push dword [ebp + 8]
call fcn.01053d56
add esp, 0xc
cmp eax, ebx
je 0x1059d66
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x1059d09
mov ebx, 0x1000
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
mov dword [ebp - 4], eax
jne 0x1059c9a
call fcn.0104bfa2
mov dword [eax], 0xc
or esi, 0xffffffff
jmp 0x1059d51
push 0x8000
push dword [ebp + 8]
call fcn.0105a080
pop ecx
pop ecx
mov dword [ebp - 8], eax
cmp edi, ebx
mov eax, ebx
jge 0x1059cb4
mov eax, edi
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.01053807
add esp, 0xc
cmp eax, 0xffffffff
je 0x1059cd0
sub edi, eax
test edi, edi
jg 0x1059cac
jmp 0x1059ce8
call fcn.0104bfb5
cmp dword [eax], 5
jne 0x1059ce5
call fcn.0104bfa2
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0105a080
pop ecx
pop ecx
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1059d51
jge 0x1059d51
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.01053d56
push dword [ebp + 8]
call fcn.0105803f
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 0x1059d51
call fcn.0104bfa2
mov dword [eax], 0xd
call fcn.0104bfb5
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.01053d56
add esp, 0xc
mov eax, esi
pop edi
jmp 0x1059d68
mov eax, ebx
pop esi
pop ebx
leave
ret