joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f677
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
xor ebx, ebx
test edi, edi
jne 0x47f693
call fcn.00480d95
mov dword [eax], 0x16
or eax, 0xffffffff
jmp 0x47f705
push esi
push 0x88
push 1
call fcn.00485768
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x47f6eb
push esi
call fcn.00482a49
mov eax, dword [esp + 0x1c]
pop ecx
push esi
push 4
push esi
push 0x47f5d7
push dword [esp + 0x24]
mov dword [esi + 0x4c], edi
push 0
mov dword [esi + 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
mov dword [esi + 4], edi
je 0x47f6e3
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x47f702
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.0047ead5
test ebx, ebx
pop ecx
je 0x47f6fd
push ebx
call fcn.00480da7
pop ecx
or eax, 0xffffffff
jmp 0x47f704
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4807b3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 8
call fcn.004838fd
xor esi, esi
inc esi
cmp dword [0x508a04], esi
pop ecx
jne 0x4807db
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 [0x508a00], esi
mov byte [0x5089fc], al
jne 0x480841
mov ecx, dword [0x50a8cc]
test ecx, ecx
je 0x480822
mov eax, dword [0x50a8c8]
sub eax, 4
cmp eax, ecx
jmp 0x48081b
mov eax, dword [eax]
test eax, eax
je 0x48080d
call eax
mov eax, dword [0x50a8c8]
sub eax, 4
cmp eax, dword [0x50a8cc]
mov dword [0x50a8c8], eax
jae 0x480805
mov eax, 0x4cb054
mov esi, 0x4cb05c
cmp eax, esi
mov edi, eax
jae 0x480841
mov eax, dword [edi]
test eax, eax
je 0x48083a
call eax
add edi, 4
cmp edi, esi
jb 0x480832
mov eax, 0x4cb060
mov esi, 0x4cb068
cmp eax, esi
mov edi, eax
jae 0x480860
mov eax, dword [edi]
test eax, eax
je 0x480859
call eax
add edi, 4
cmp edi, esi
jb 0x480851
cmp dword [ebp + 0x10], 0
pop edi
pop esi
je 0x480871
push 8
call fcn.00483869
jmp 0x480883
push dword [ebp + 8]
mov dword [0x508a04], 1
call fcn.0048070c
pop ecx
pop ebp
ret
Function at 0x480a1e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4cd5e0]
xor eax, dword [ebp + 4]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x480a99
push ebx
call fcn.004809e7
test eax, eax
pop ecx
jne 0x480a6b
call fcn.00480d9e
mov dword [eax], 0xf
call fcn.00480d95
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop ebx
call fcn.0048796d
leave
ret
and byte [ebp + 0xb], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
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
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x480aab
lea eax, [ebp - 0x10c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x480a5b
inc eax
cmp eax, 0x104
ja 0x480a5b
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x480ae3
cmp eax, dword [ebp + 0x10]
jg 0x480ac6
mov eax, dword [ebp + 0x10]
push eax
call fcn.0047ebed
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x480af8
call fcn.00480d95
mov dword [eax], 0xc
jmp 0x480a5b
cmp eax, dword [ebp + 0x10]
jle 0x480af8
call fcn.00480d95
mov dword [eax], 0x22
jmp 0x480a5b
lea eax, [ebp - 0x10c]
push eax
push ecx
call fcn.00485830
pop ecx
pop ecx
jmp 0x480a5d
Function at 0x4847ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4cd5e0]
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 + 0x4cd200]
je 0x4847da
inc eax
cmp eax, 0x12
jb 0x4847cb
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4cd200]
jne 0x48490e
mov eax, dword [0x5089b8]
cmp eax, 1
je 0x4848e9
cmp eax, edx
jne 0x48480a
cmp dword [0x4ccc04], 1
je 0x4848e9
cmp ecx, 0xfc
je 0x48490e
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 0x484843
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00485830
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00485930
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x484885
lea eax, [ebp - 0x10c]
push eax
call fcn.00485930
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4b8050
push edi
call fcn.0048aa30
add esp, 0x10
push edi
call fcn.00485930
push dword [esi + 0x4cd204]
mov ebx, eax
call fcn.00485930
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.0047ea40
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00485830
push edi
push ebx
call fcn.00485840
push 0x4b8030
push ebx
call fcn.00485840
push dword [esi + 0x4cd204]
push ebx
call fcn.00485840
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0048a934
add esp, 0x2c
jmp 0x48490e
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4cd204]
push dword [esi]
call fcn.00485930
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.0048796d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4859e6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4cd5e0]
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 0x485a0f
xor eax, eax
jmp 0x485b7d
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 + 0x509780]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x485a42
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.0048b44b
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x485b14
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x485b4f
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 0x485a9d
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x485a8e
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 0x485a71
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 0x485add
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x485ae6
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x485a62
jmp 0x485ae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x485b78
cmp dword [ebp - 8], edi
je 0x485b4f
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x485b41
call fcn.00480d95
mov dword [eax], 9
call fcn.00480d9e
mov dword [eax], esi
jmp 0x485b4a
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 0x485b36
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x485ae8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x485ae8
push dword [ebp - 8]
call fcn.00480da7
pop ecx
or eax, 0xffffffff
jmp 0x485b7b
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x485b64
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x485b64
xor eax, eax
jmp 0x485b7b
call fcn.00480d95
mov dword [eax], 0x1c
call fcn.00480d9e
mov dword [eax], edi
jmp 0x485b4a
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0048796d
leave
ret
Function at 0x48719b
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 0x487361
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x509780]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x487361
test cl, 0x48
je 0x487201
mov al, byte [eax + 5]
cmp al, 0xa
je 0x487201
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 0x487253
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x48723b
call fcn.00480d95
mov dword [eax], 9
call fcn.00480d9e
mov dword [eax], esi
jmp 0x48724b
cmp eax, 0x6d
je 0x487361
push eax
call fcn.00480da7
pop ecx
or eax, 0xffffffff
jmp 0x487363
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 0x48735c
test edx, edx
je 0x487276
cmp byte [ebx], 0xa
jne 0x487276
or al, 4
jmp 0x487278
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 0x487356
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x487346
cmp al, 0xd
je 0x4872ac
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x487338
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4872c6
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4872c1
add dword [ebp + 0x10], 2
jmp 0x48731a
mov dword [ebp + 0x10], eax
jmp 0x487334
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 0x4872ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x487334
cmp dword [ebp - 0xc], 0
je 0x487334
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x48730f
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x48731a
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x487337
cmp ebx, dword [ebp + 0xc]
jne 0x48731f
cmp byte [ebp - 1], 0xa
jne 0x48731f
mov byte [ebx], 0xa
jmp 0x487337
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00485ff3
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x487338
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x487290
jmp 0x487356
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x487356
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x487363
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48a934
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x508d98], ebx
push esi
push edi
jne 0x48a9b4
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48a9ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4bc2cc
push edi
call esi
test eax, eax
mov dword [0x508d98], eax
je 0x48a9ef
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x508d9c], eax
call esi
cmp dword [0x5089c4], 2
mov dword [0x508da0], eax
jne 0x48a9b4
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x508da8], eax
je 0x48a9b4
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x508da4], eax
mov eax, dword [0x508da4]
test eax, eax
je 0x48a9f9
call eax
test eax, eax
je 0x48a9e0
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x508da8]
test eax, eax
je 0x48a9e0
test byte [ebp - 8], 1
jne 0x48a9f9
cmp dword [0x5089d0], 4
jb 0x48a9f3
or byte [ebp + 0x12], 0x20
jmp 0x48aa18
xor eax, eax
jmp 0x48aa28
or byte [ebp + 0x12], 4
jmp 0x48aa18
mov eax, dword [0x508d9c]
test eax, eax
je 0x48aa18
call eax
mov ebx, eax
test ebx, ebx
je 0x48aa18
mov eax, dword [0x508da0]
test eax, eax
je 0x48aa18
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x508d98]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x48bac2
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.0047ea40
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48bb57
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 [0x5089c4]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x48bb57
cmp eax, 1
je 0x48bb6f
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 0x48bb57
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x48bb2c
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x48bb53
xor eax, eax
inc eax
jmp 0x48bb8b
cmp esi, ebx
jae 0x48bb5b
xor eax, eax
jmp 0x48bb8b
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x5089c4]
jmp 0x48bb71
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 0x48f8c2
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 0x48f92d
push 0x3d
push dword [ebp + 8]
call fcn.004908e5
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x48f92d
cmp dword [ebp + 8], esi
je 0x48f92d
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x5089e4]
cmp eax, dword [0x5089e8]
jne 0x48f913
mov edi, eax
call fcn.0048f861
mov dword [0x5089e4], eax
cmp eax, ebx
jne 0x48f96c
cmp dword [ebp + 0xc], ebx
je 0x48f935
cmp dword [0x5089ec], ebx
je 0x48f935
call fcn.004899b1
test eax, eax
je 0x48f96c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x48fa70
push 4
call fcn.0047ebed
cmp eax, ebx
pop ecx
mov dword [0x5089e4], eax
je 0x48f92d
mov dword [eax], ebx
cmp dword [0x5089ec], ebx
jne 0x48f96c
push 4
call fcn.0047ebed
cmp eax, ebx
pop ecx
mov dword [0x5089ec], eax
je 0x48f92d
mov dword [eax], ebx
mov ebx, dword [0x5089e4]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.0048f814
mov edi, eax
test edi, edi
pop ecx
jl 0x48f9c5
cmp dword [ebx], 0
je 0x48f9c5
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.0047ead5
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x48f9ad
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x48f9fb
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x48f9a4
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.0047ebff
test eax, eax
pop ecx
pop ecx
je 0x48f9fb
jmp 0x48f9f6
cmp dword [ebp - 4], 0
jne 0x48fa69
test edi, edi
jge 0x48f9d5
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.0047ebff
test eax, eax
pop ecx
pop ecx
je 0x48f92d
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x5089e4], eax
cmp dword [ebp + 0xc], 0
je 0x48fa52
push dword [ebp + 8]
call fcn.00485930
inc eax
inc eax
push eax
call fcn.0047ebed
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x48fa52
push dword [ebp + 8]
push esi
call fcn.00485830
mov eax, esi
sub eax, dword [ebp + 8]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
and byte [eax], 0
mov ecx, dword [ebp - 4]
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 0x48fa4b
or dword [ebp - 8], 0xffffffff
push esi
call fcn.0047ead5
pop ecx
cmp dword [ebp - 4], 0
je 0x48fa61
push dword [ebp + 8]
call fcn.0047ead5
pop ecx
mov eax, dword [ebp - 8]
jmp 0x48f930
push esi
call fcn.0047ead5
pop ecx
xor eax, eax
jmp 0x48f930
Function at 0x49077f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0047ea40
mov eax, dword [0x4cd5e0]
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.00485ff3
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4908a9
push 2
push esi
push dword [ebp + 8]
call fcn.00485ff3
add esp, 0xc
cmp eax, ebx
je 0x4908a9
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x49084c
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00489f70
push 0x8000
push dword [ebp + 8]
call fcn.00490f01
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x490805
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004859e6
add esp, 0xc
cmp eax, 0xffffffff
je 0x490825
sub edi, eax
test edi, edi
jg 0x4907fd
jmp 0x49083d
call fcn.00480d9e
cmp dword [eax], 5
jne 0x49083a
call fcn.00480d95
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00490f01
pop ecx
pop ecx
jmp 0x490894
jge 0x490894
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00485ff3
push dword [ebp + 8]
call fcn.0048b687
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 0x490894
call fcn.00480d95
mov dword [eax], 0xd
call fcn.00480d9e
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.00485ff3
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4908ab
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0048796d
leave
ret
Function at 0x490c24
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4bd520
call fcn.00482dd8
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x508e4c], edi
jne 0x490c68
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x490c53
mov dword [0x508e4c], ebx
jmp 0x490c68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x490c68
mov dword [0x508e4c], 2
mov eax, dword [0x508e4c]
cmp eax, ebx
jne 0x490c88
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x490d4b
cmp eax, 2
je 0x490c91
cmp eax, edi
jne 0x490cb9
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x490ca4
mov eax, dword [0x508dc4]
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 0x490cc0
xor eax, eax
jmp 0x490d4b
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0047ea40
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x490cf3
cmp esi, edi
jne 0x490d09
push dword [ebp - 0x24]
call fcn.0047ebed
pop ecx
mov esi, eax
cmp esi, edi
je 0x490cb9
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 0x490d3c
cmp dword [ebp + 0x14], edi
jne 0x490d26
push edi
push edi
jmp 0x490d2c
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 0x490d48
push esi
call fcn.0047ead5
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00482e13
ret
Function at 0x490d54
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4bd530
call fcn.00482dd8
xor esi, esi
cmp dword [0x508e50], esi
jne 0x490d98
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x490d83
mov dword [0x508e50], edi
jmp 0x490d98
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x490d98
mov dword [0x508e50], 2
mov eax, dword [0x508e50]
cmp eax, 2
je 0x490e79
cmp eax, esi
je 0x490e79
cmp eax, 1
jne 0x490ddd
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x490dc6
mov eax, dword [0x508dc4]
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 0x490de4
xor eax, eax
jmp 0x490e8b
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0047ea40
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x490e1a
cmp edi, esi
jne 0x490e35
lea eax, [ebx + ebx]
push eax
call fcn.0047ebed
pop ecx
mov edi, eax
cmp edi, esi
je 0x490ddd
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 0x490e68
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x490e52
push esi
push esi
jmp 0x490e58
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 0x490e74
push edi
call fcn.0047ead5
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x490e8b
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.00482e13
ret

Function at 0x49fa54
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and byte [ebp - 4], 0
push edi
xor eax, eax
lea edi, [ebp - 3]
stosb byte es:[edi], al
push 2
lea eax, [ebp - 4]
push eax
push 0x22
call fcn.0048d4ea
push dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov al, byte [ebp - 4]
cmp al, 0x30
pop edi
jne 0x49fa86
push 2
pop eax
leave
ret
cmp al, 0x31
jne 0x49fa8f
xor eax, eax
inc eax
leave
ret
sub al, 0x32
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
leave
ret