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

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x5a2f48]
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 + 0x5a3840]
je 0x46f2ff
inc eax
cmp eax, 0x13
jb 0x46f2f0
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x5a3840]
jne 0x46f425
mov eax, dword [0x5a72c8]
cmp eax, 1
je 0x46f3fd
cmp eax, edx
jne 0x46f32f
cmp dword [0x5a2fa4], 1
je 0x46f3fd
cmp ecx, 0xfc
je 0x46f425
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 0x46f365
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0046bbc0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00468bd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x46f399
mov eax, edi
push eax
call fcn.00468bd0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x55d628
push edi
call fcn.00467d30
add esp, 0x10
push edi
call fcn.00468bd0
push dword [esi + 0x5a3844]
mov ebx, eax
call fcn.00468bd0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00466b00
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0046bbc0
push edi
push ebx
call fcn.0046bbd0
push 0x56b598
push ebx
call fcn.0046bbd0
push dword [esi + 0x5a3844]
push ebx
call fcn.0046bbd0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00473fa5
add esp, 0x2c
jmp 0x46f425
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x5a3844]
push dword [esi]
call fcn.00468bd0
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.00464eaf
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x46fa32
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.004661ba
test eax, eax
pop ecx
jne 0x46fa4e
or eax, 0xffffffff
jmp 0x46fc2b
mov dword [0x5a8f80], eax
mov dword [0x5a8f7c], 0x20
lea ecx, [eax + 0x480]
jmp 0x46fa83
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 4], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x5a8f80]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x46fa65
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 0x46fb8a
mov eax, dword [esp + 0x48]
test eax, eax
je 0x46fb8a
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x46fac4
mov edi, eax
cmp dword [0x5a8f7c], edi
jge 0x46fb1a
mov esi, 0x5a8f84
push ebx
call fcn.004661ba
test eax, eax
pop ecx
je 0x46fb14
add dword [0x5a8f7c], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x46fb03
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 0x46faed
add esi, 4
cmp dword [0x5a8f7c], edi
jl 0x46fad1
jmp 0x46fb1a
mov edi, dword [0x5a8f7c]
xor ebx, ebx
test edi, edi
jle 0x46fb8a
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x46fb7f
mov cl, byte [ebp]
test cl, 1
je 0x46fb7f
test cl, 8
jne 0x46fb43
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x46fb7f
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x5a8f80]
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.004741f3
test eax, eax
pop ecx
pop ecx
je 0x46fbaa
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x46fb20
xor ebx, ebx
mov ecx, dword [0x5a8f80]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x46fc0c
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x46fbaf
push 0xfffffffffffffff6
pop eax
jmp 0x46fbb9
or eax, 0xffffffff
jmp 0x46fc28
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 0x46fc06
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x46fc06
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x46fbe4
or byte [esi + 4], 0x40
jmp 0x46fbed
cmp eax, 3
jne 0x46fbed
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.004741f3
test eax, eax
pop ecx
pop ecx
je 0x46fbaa
inc dword [esi + 8]
jmp 0x46fc10
or byte [esi + 4], 0x40
jmp 0x46fc10
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x46fb8c
push dword [0x5a8f7c]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x46fee2
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 0x4700b6
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5a8f80]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4700b6
test cl, 0x48
je 0x46ff4d
cmp byte [eax + 5], 0xa
je 0x46ff4d
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 0x46ff9f
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x46ff87
call fcn.0046a1cb
mov dword [eax], 9
call fcn.0046a1d4
mov dword [eax], esi
jmp 0x46ff97
cmp eax, 0x6d
je 0x4700b6
push eax
call fcn.0046a1dd
pop ecx
or eax, 0xffffffff
jmp 0x4700b8
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4700b1
test eax, eax
je 0x46ffc6
cmp byte [ebx], 0xa
jne 0x46ffc6
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x46ffcf
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 0x4700ab
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x47009b
cmp al, 0xd
je 0x470001
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x47008d
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x47001b
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x470016
add dword [ebp + 0x10], 2
jmp 0x47006f
mov dword [ebp + 0x10], eax
jmp 0x470089
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 0x470043
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x470089
cmp dword [ebp - 0xc], 0
je 0x470089
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x470064
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x47006f
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x47008c
cmp ebx, dword [ebp + 0xc]
jne 0x470074
cmp byte [ebp - 1], 0xa
jne 0x470074
mov byte [ebx], 0xa
jmp 0x47008c
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004703e1
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x47008d
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x46ffe5
jmp 0x4700ab
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4700ab
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4700b8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x470168
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x5a2f48]
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 0x470199
xor eax, eax
jmp 0x470322
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 + 0x5a8f80]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4701d5
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.004770b8
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4702b0
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x4702ee
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 0x470239
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x47022a
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 0x47020a
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 0x470279
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x470282
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x4701fb
jmp 0x470284
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x47031d
cmp dword [ebp - 0x6c], edi
je 0x4702ee
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x4702e3
call fcn.0046a1cb
mov dword [eax], 9
call fcn.0046a1d4
mov dword [eax], esi
jmp 0x470318
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 0x4702d8
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x470284
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x470284
push dword [ebp - 0x6c]
call fcn.0046a1dd
pop ecx
jmp 0x470318
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x470306
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x470306
xor eax, eax
jmp 0x470320
call fcn.0046a1cb
mov dword [eax], 0x1c
call fcn.0046a1d4
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x470320
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00464eaf
add ebp, 0x3a0
leave
ret
Function at 0x473da2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x473dd0
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 0x473dd5
cmp eax, 1
je 0x473dd5
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x473dd9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x5a2f48]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x473e51
push ebx
call fcn.00473da2
test eax, eax
pop ecx
jne 0x473e20
call fcn.0046a1d4
mov dword [eax], 0xf
call fcn.0046a1cb
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.00464eaf
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
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 0x473e63
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x473e13
inc eax
cmp eax, 0x104
ja 0x473e13
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x473e9b
cmp eax, dword [ebp + 0x10]
jg 0x473e7e
mov eax, dword [ebp + 0x10]
push eax
call fcn.004661ba
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x473eb0
call fcn.0046a1cb
mov dword [eax], 0xc
jmp 0x473e13
cmp eax, dword [ebp + 0x10]
jle 0x473eb0
call fcn.0046a1cb
mov dword [eax], 0x22
jmp 0x473e13
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0046bbc0
pop ecx
pop ecx
jmp 0x473e15
Function at 0x473fa5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x5a7748], ebx
push esi
push edi
jne 0x474025
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x474060
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x5a7748], eax
je 0x474060
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x5a774c], eax
call esi
cmp dword [0x5a72fc], 2
mov dword [0x5a7750], eax
jne 0x474025
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x5a7758], eax
je 0x474025
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x5a7754], eax
mov eax, dword [0x5a7754]
test eax, eax
je 0x47406a
call eax
test eax, eax
je 0x474051
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x5a7758]
test eax, eax
je 0x474051
test byte [ebp - 8], 1
jne 0x47406a
cmp dword [0x5a7308], 4
jb 0x474064
or byte [ebp + 0x12], 0x20
jmp 0x474089
xor eax, eax
jmp 0x474099
or byte [ebp + 0x12], 4
jmp 0x474089
mov eax, dword [0x5a774c]
test eax, eax
je 0x474089
call eax
mov ebx, eax
test ebx, ebx
je 0x474089
mov eax, dword [0x5a7750]
test eax, eax
je 0x474089
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x5a7748]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x47873a
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 0x478753
or eax, 0xffffffff
jmp 0x4787b4
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4787b0
push 0x3d
push esi
call fcn.00466cbf
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4787b0
cmp esi, eax
je 0x4787b0
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x5a731c]
sete cl
cmp eax, dword [0x5a7320]
mov dword [ebp - 8], ecx
jne 0x478796
mov edi, eax
call fcn.004786d9
mov dword [0x5a731c], eax
cmp eax, ebx
jne 0x4787ef
cmp dword [ebp + 0xc], ebx
je 0x4787b8
cmp dword [0x5a7324], ebx
je 0x4787b8
call fcn.004733bb
test eax, eax
je 0x4787ef
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4787c1
xor eax, eax
jmp 0x4787b3
push 4
call fcn.004661ba
cmp eax, ebx
pop ecx
mov dword [0x5a731c], eax
je 0x4787b0
mov dword [eax], ebx
cmp dword [0x5a7324], ebx
jne 0x4787ef
push 4
call fcn.004661ba
cmp eax, ebx
pop ecx
mov dword [0x5a7324], eax
je 0x4787b0
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x5a731c]
call fcn.0047868c
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x478850
cmp dword [esi], ebx
je 0x478850
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004660a2
cmp dword [ebp - 8], ebx
pop ecx
jne 0x478833
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x478891
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x47882a
mov eax, edi
shl eax, 2
push eax
push dword [0x5a731c]
call fcn.00467ecf
cmp eax, ebx
pop ecx
pop ecx
je 0x478891
jmp 0x47888c
cmp dword [ebp - 8], ebx
jne 0x4788fc
cmp edi, ebx
jge 0x47885f
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x5a731c]
call fcn.00467ecf
cmp eax, ebx
pop ecx
pop ecx
je 0x4787b0
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 [0x5a731c], eax
cmp dword [ebp + 0xc], ebx
je 0x4788e6
push dword [ebp - 4]
call fcn.00468bd0
inc eax
inc eax
push eax
call fcn.004661ba
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4788e6
push dword [ebp - 4]
push esi
call fcn.0046bbc0
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 0x4788df
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004660a2
pop ecx
cmp dword [ebp - 8], ebx
je 0x4788f4
push dword [ebp - 4]
call fcn.004660a2
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4787b3
push dword [ebp - 4]
call fcn.004660a2
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4787bd
Function at 0x478efb
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00466b00
mov eax, dword [0x5a2f48]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004703e1
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x47902e
push 2
push esi
push dword [ebp + 8]
call fcn.004703e1
add esp, 0xc
cmp eax, ebx
je 0x47902e
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x478fce
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00468ca0
push 0x8000
push dword [ebp + 8]
call fcn.004795d1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x478f84
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00470168
add esp, 0xc
cmp eax, 0xffffffff
je 0x478fa4
sub edi, eax
test edi, edi
jg 0x478f7c
jmp 0x478fbc
call fcn.0046a1d4
cmp dword [eax], 5
jne 0x478fb9
call fcn.0046a1cb
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004795d1
pop ecx
pop ecx
jmp 0x479016
jge 0x479016
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004703e1
push dword [ebp + 8]
call fcn.00476e39
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 0x479016
call fcn.0046a1cb
mov dword [eax], 0xd
call fcn.0046a1d4
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.004703e1
add esp, 0xc
mov eax, esi
pop edi
jmp 0x479030
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00464eaf
leave
ret
Function at 0x4792f4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5710b8
call fcn.0046995c
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x5a77c8], edi
jne 0x479338
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x479323
mov dword [0x5a77c8], ebx
jmp 0x479338
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x479338
mov dword [0x5a77c8], 2
mov eax, dword [0x5a77c8]
cmp eax, ebx
jne 0x479358
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x47941b
cmp eax, 2
je 0x479361
cmp eax, edi
jne 0x479389
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x479374
mov eax, dword [0x5a7740]
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 0x479390
xor eax, eax
jmp 0x47941b
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00466b00
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4793c3
cmp esi, edi
jne 0x4793d9
push dword [ebp - 0x20]
call fcn.004661ba
pop ecx
mov esi, eax
cmp esi, edi
je 0x479389
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 0x47940c
cmp dword [ebp + 0x14], edi
jne 0x4793f6
push edi
push edi
jmp 0x4793fc
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 0x479418
push esi
call fcn.004660a2
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00469997
ret
Function at 0x479424
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x5710c8
call fcn.0046995c
xor esi, esi
cmp dword [0x5a77cc], esi
jne 0x479468
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x479453
mov dword [0x5a77cc], edi
jmp 0x479468
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x479468
mov dword [0x5a77cc], 2
mov eax, dword [0x5a77cc]
cmp eax, 2
je 0x479549
cmp eax, esi
je 0x479549
cmp eax, 1
jne 0x4794ad
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x479496
mov eax, dword [0x5a7740]
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 0x4794b4
xor eax, eax
jmp 0x47955b
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00466b00
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4794ea
cmp edi, esi
jne 0x479505
lea eax, [ebx + ebx]
push eax
call fcn.004661ba
pop ecx
mov edi, eax
cmp edi, esi
je 0x4794ad
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 0x479538
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x479522
push esi
push esi
jmp 0x479528
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 0x479544
push edi
call fcn.004660a2
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x47955b
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.00469997
ret