joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcf4b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x48
push ebx
mov ebx, 0x480
push ebx
call fcn.004b77d8
test eax, eax
pop ecx
jne 0x4bcf67
or eax, 0xffffffff
jmp 0x4bd144
mov dword [0x4f7c40], eax
mov dword [0x4f7c3c], 0x20
lea ecx, [eax + 0x480]
jmp 0x4bcf9c
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [0x4f7c40]
add eax, 0x24
add ecx, 0x480
cmp eax, ecx
jb 0x4bcf7e
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 0x4bd0a3
mov eax, dword [esp + 0x48]
test eax, eax
je 0x4bd0a3
mov edi, dword [eax]
lea ebp, [eax + 4]
lea eax, [edi + ebp]
mov dword [esp + 0x10], eax
mov eax, 0x800
cmp edi, eax
jl 0x4bcfdd
mov edi, eax
cmp dword [0x4f7c3c], edi
jge 0x4bd033
mov esi, 0x4f7c44
push ebx
call fcn.004b77d8
test eax, eax
pop ecx
je 0x4bd02d
add dword [0x4f7c3c], 0x20
mov dword [esi], eax
lea ecx, [eax + 0x480]
jmp 0x4bd01c
and byte [eax + 4], 0
or dword [eax], 0xffffffff
and dword [eax + 8], 0
mov byte [eax + 5], 0xa
mov ecx, dword [esi]
add eax, 0x24
add ecx, ebx
cmp eax, ecx
jb 0x4bd006
add esi, 4
cmp dword [0x4f7c3c], edi
jl 0x4bcfea
jmp 0x4bd033
mov edi, dword [0x4f7c3c]
xor ebx, ebx
test edi, edi
jle 0x4bd0a3
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4bd098
mov cl, byte [ebp]
test cl, 1
je 0x4bd098
test cl, 8
jne 0x4bd05c
push eax
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4bd098
mov ecx, ebx
mov eax, ebx
and eax, 0x1f
lea eax, [eax + eax*8]
sar ecx, 5
mov ecx, dword [ecx*4 + 0x4f7c40]
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.004bd41d
test eax, eax
pop ecx
pop ecx
je 0x4bd0c3
inc dword [esi + 8]
add dword [esp + 0x10], 4
inc ebx
inc ebp
cmp ebx, edi
jl 0x4bd039
xor ebx, ebx
mov ecx, dword [0x4f7c40]
lea eax, [ebx + ebx*8]
lea esi, [ecx + eax*4]
cmp dword [esi], 0xffffffff
jne 0x4bd125
test ebx, ebx
mov byte [esi + 4], 0x81
jne 0x4bd0c8
push 0xfffffffffffffff6
pop eax
jmp 0x4bd0d2
or eax, 0xffffffff
jmp 0x4bd141
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 0x4bd11f
push edi
call dword [sym.imp.kernel32.dll_GetFileType]
test eax, eax
je 0x4bd11f
and eax, 0xff
cmp eax, 2
mov dword [esi], edi
jne 0x4bd0fd
or byte [esi + 4], 0x40
jmp 0x4bd106
cmp eax, 3
jne 0x4bd106
or byte [esi + 4], 8
lea eax, [esi + 0xc]
push 0xfa0
push eax
call fcn.004bd41d
test eax, eax
pop ecx
pop ecx
je 0x4bd0c3
inc dword [esi + 8]
jmp 0x4bd129
or byte [esi + 4], 0x40
jmp 0x4bd129
or byte [esi + 4], 0x80
inc ebx
cmp ebx, 3
jl 0x4bd0a5
push dword [0x4f7c3c]
call dword [sym.imp.kernel32.dll_LockResource]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
Function at 0x4be3e5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4f1410]
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 0x4be40e
xor eax, eax
jmp 0x4be57c
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 + 0x4f7c40]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4be441
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.004c62b5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4be513
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x4be54e
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 0x4be49c
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4be48d
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 0x4be470
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 0x4be4dc
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x4be4e5
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4be461
jmp 0x4be4e7
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x4be577
cmp dword [ebp - 8], edi
je 0x4be54e
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x4be540
call fcn.004b9b57
mov dword [eax], 9
call fcn.004b9b60
mov dword [eax], esi
jmp 0x4be549
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 0x4be535
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x4be4e7
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x4be4e7
push dword [ebp - 8]
call fcn.004b9b69
pop ecx
or eax, 0xffffffff
jmp 0x4be57a
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4be563
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x4be563
xor eax, eax
jmp 0x4be57a
call fcn.004b9b57
mov dword [eax], 0x1c
call fcn.004b9b60
mov dword [eax], edi
jmp 0x4be549
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.004b3f19
leave
ret
Function at 0x4be716
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 0x4be8dc
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4f7c40]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4be8dc
test cl, 0x48
je 0x4be77c
mov al, byte [eax + 5]
cmp al, 0xa
je 0x4be77c
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 0x4be7ce
call dword [sym.imp.kernel32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4be7b6
call fcn.004b9b57
mov dword [eax], 9
call fcn.004b9b60
mov dword [eax], esi
jmp 0x4be7c6
cmp eax, 0x6d
je 0x4be8dc
push eax
call fcn.004b9b69
pop ecx
or eax, 0xffffffff
jmp 0x4be8de
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 0x4be8d7
test edx, edx
je 0x4be7f1
cmp byte [ebx], 0xa
jne 0x4be7f1
or al, 4
jmp 0x4be7f3
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 0x4be8d1
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4be8c1
cmp al, 0xd
je 0x4be827
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4be8b3
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4be841
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4be83c
add dword [ebp + 0x10], 2
jmp 0x4be895
mov dword [ebp + 0x10], eax
jmp 0x4be8af
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 0x4be869
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jne 0x4be8af
cmp dword [ebp - 0xc], 0
je 0x4be8af
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4be88a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4be895
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4be8b2
cmp ebx, dword [ebp + 0xc]
jne 0x4be89a
cmp byte [ebp - 1], 0xa
jne 0x4be89a
mov byte [ebx], 0xa
jmp 0x4be8b2
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004be98e
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x4be8b3
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4be80b
jmp 0x4be8d1
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x4be8d1
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4be8de
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c146e
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.004b57d0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.kernel32.dll_VirtualQuery]
test eax, eax
je 0x4c1503
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 [0x4f7538]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x4c1503
cmp eax, 1
je 0x4c151b
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 0x4c1503
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x4c14d8
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x4c14ff
xor eax, eax
inc eax
jmp 0x4c1537
cmp esi, ebx
jae 0x4c1507
xor eax, eax
jmp 0x4c1537
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov eax, dword [0x4f7538]
jmp 0x4c151d
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 0x4c2c50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4f1410]
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 + 0x4f1fd0]
je 0x4c2c7d
inc eax
cmp eax, 0x12
jb 0x4c2c6e
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4f1fd0]
jne 0x4c2db1
mov eax, dword [0x4f7590]
cmp eax, 1
je 0x4c2d8c
cmp eax, edx
jne 0x4c2cad
cmp dword [0x4f17c8], 1
je 0x4c2d8c
cmp ecx, 0xfc
je 0x4c2db1
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 0x4c2ce6
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.004b4120
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.004b3ac0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4c2d28
lea eax, [ebp - 0x10c]
push eax
call fcn.004b3ac0
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4db5a8
push edi
call fcn.004b5a80
add esp, 0x10
push edi
call fcn.004b3ac0
push dword [esi + 0x4f1fd4]
mov ebx, eax
call fcn.004b3ac0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004b57d0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004b4120
push edi
push ebx
call fcn.004b4130
push 0x4db5a4
push ebx
call fcn.004b4130
push dword [esi + 0x4f1fd4]
push ebx
call fcn.004b4130
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004c5fc7
add esp, 0x2c
jmp 0x4c2db1
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x4f1fd4]
push dword [esi]
call fcn.004b3ac0
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.004b3f19
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c5fc7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4f79b0], ebx
push esi
push edi
jne 0x4c6047
push str.user32.dll
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4c6082
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4f79b0], eax
je 0x4c6082
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x4f79b4], eax
call esi
cmp dword [0x4f7538], 2
mov dword [0x4f79b8], eax
jne 0x4c6047
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4f79c0], eax
je 0x4c6047
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4f79bc], eax
mov eax, dword [0x4f79bc]
test eax, eax
je 0x4c608c
call eax
test eax, eax
je 0x4c6073
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4f79c0]
test eax, eax
je 0x4c6073
test byte [ebp - 8], 1
jne 0x4c608c
cmp dword [0x4f7544], 4
jb 0x4c6086
or byte [ebp + 0x12], 0x20
jmp 0x4c60ab
xor eax, eax
jmp 0x4c60bb
or byte [ebp + 0x12], 4
jmp 0x4c60ab
mov eax, dword [0x4f79b4]
test eax, eax
je 0x4c60ab
call eax
mov ebx, eax
test ebx, ebx
je 0x4c60ab
mov eax, dword [0x4f79b8]
test eax, eax
je 0x4c60ab
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4f79b0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4c6d5b
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 0x4c6dc6
push 0x3d
push dword [ebp + 8]
call fcn.004c9037
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], esi
je 0x4c6dc6
cmp dword [ebp + 8], esi
je 0x4c6dc6
xor eax, eax
cmp byte [esi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x4f7558]
cmp eax, dword [0x4f755c]
jne 0x4c6dac
mov edi, eax
call fcn.004c6cfa
mov dword [0x4f7558], eax
cmp eax, ebx
jne 0x4c6e05
cmp dword [ebp + 0xc], ebx
je 0x4c6dce
cmp dword [0x4f7560], ebx
je 0x4c6dce
call fcn.004c1748
test eax, eax
je 0x4c6e05
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x4c6f09
push 4
call fcn.004b77d8
cmp eax, ebx
pop ecx
mov dword [0x4f7558], eax
je 0x4c6dc6
mov dword [eax], ebx
cmp dword [0x4f7560], ebx
jne 0x4c6e05
push 4
call fcn.004b77d8
cmp eax, ebx
pop ecx
mov dword [0x4f7560], eax
je 0x4c6dc6
mov dword [eax], ebx
mov ebx, dword [0x4f7558]
mov edi, esi
mov esi, dword [ebp + 8]
sub edi, esi
push esi
call fcn.004c6cad
mov edi, eax
test edi, edi
pop ecx
jl 0x4c6e5e
cmp dword [ebx], 0
je 0x4c6e5e
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004b5f98
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4c6e46
mov eax, dword [ebp + 8]
mov dword [esi], eax
jmp 0x4c6e94
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x4c6e3d
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.004b97bd
test eax, eax
pop ecx
pop ecx
je 0x4c6e94
jmp 0x4c6e8f
cmp dword [ebp - 4], 0
jne 0x4c6f02
test edi, edi
jge 0x4c6e6e
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.004b97bd
test eax, eax
pop ecx
pop ecx
je 0x4c6dc6
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x4f7558], eax
cmp dword [ebp + 0xc], 0
je 0x4c6eeb
push dword [ebp + 8]
call fcn.004b3ac0
inc eax
inc eax
push eax
call fcn.004b77d8
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4c6eeb
push dword [ebp + 8]
push esi
call fcn.004b4120
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 0x4c6ee4
or dword [ebp - 8], 0xffffffff
push esi
call fcn.004b5f98
pop ecx
cmp dword [ebp - 4], 0
je 0x4c6efa
push dword [ebp + 8]
call fcn.004b5f98
pop ecx
mov eax, dword [ebp - 8]
jmp 0x4c6dc9
push esi
call fcn.004b5f98
pop ecx
xor eax, eax
jmp 0x4c6dc9
Function at 0x4c84b4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4e2828
call fcn.004bcca0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4f79c4], edi
jne 0x4c84f8
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c84e3
mov dword [0x4f79c4], ebx
jmp 0x4c84f8
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c84f8
mov dword [0x4f79c4], 2
mov eax, dword [0x4f79c4]
cmp eax, ebx
jne 0x4c8518
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x4c85db
cmp eax, 2
je 0x4c8521
cmp eax, edi
jne 0x4c8549
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], edi
cmp dword [ebp + 0x18], edi
jne 0x4c8534
mov eax, dword [0x4f7960]
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 0x4c8550
xor eax, eax
jmp 0x4c85db
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004b57d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4c8583
cmp esi, edi
jne 0x4c8599
push dword [ebp - 0x24]
call fcn.004b77d8
pop ecx
mov esi, eax
cmp esi, edi
je 0x4c8549
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 0x4c85cc
cmp dword [ebp + 0x14], edi
jne 0x4c85b6
push edi
push edi
jmp 0x4c85bc
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 0x4c85d8
push esi
call fcn.004b5f98
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004bccdb
ret
Function at 0x4c85e4
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4e2838
call fcn.004bcca0
xor esi, esi
cmp dword [0x4f79c8], esi
jne 0x4c8628
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x4c8613
mov dword [0x4f79c8], edi
jmp 0x4c8628
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x4c8628
mov dword [0x4f79c8], 2
mov eax, dword [0x4f79c8]
cmp eax, 2
je 0x4c8709
cmp eax, esi
je 0x4c8709
cmp eax, 1
jne 0x4c866d
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4c8656
mov eax, dword [0x4f7960]
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 0x4c8674
xor eax, eax
jmp 0x4c871b
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004b57d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4c86aa
cmp edi, esi
jne 0x4c86c5
lea eax, [ebx + ebx]
push eax
call fcn.004b77d8
pop ecx
mov edi, eax
cmp edi, esi
je 0x4c866d
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 0x4c86f8
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4c86e2
push esi
push esi
jmp 0x4c86e8
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 0x4c8704
push edi
call fcn.004b5f98
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4c871b
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.004bccdb
ret
Function at 0x4c8b76
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004b57d0
mov eax, dword [0x4f1410]
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.004be98e
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4c8ca0
push 2
push esi
push dword [ebp + 8]
call fcn.004be98e
add esp, 0xc
cmp eax, ebx
je 0x4c8ca0
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4c8c43
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.004b5810
push 0x8000
push dword [ebp + 8]
call fcn.004c9301
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x4c8bfc
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.004be3e5
add esp, 0xc
cmp eax, 0xffffffff
je 0x4c8c1c
sub edi, eax
test edi, edi
jg 0x4c8bf4
jmp 0x4c8c34
call fcn.004b9b60
cmp dword [eax], 5
jne 0x4c8c31
call fcn.004b9b57
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.004c9301
pop ecx
pop ecx
jmp 0x4c8c8b
jge 0x4c8c8b
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004be98e
push dword [ebp + 8]
call fcn.004b4b36
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 0x4c8c8b
call fcn.004b9b57
mov dword [eax], 0xd
call fcn.004b9b60
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.004be98e
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4c8ca2
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.004b3f19
leave
ret
Function at 0x50f5db
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 0xf8
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x78]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + 0x1c]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0
jmp 0x50f647
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x18]
jae 0x50f690
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
add eax, dword [edx + ecx*4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.005289b0
add esp, 8
test eax, eax
jne 0x50f68e
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + eax*2]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + edx*4]
mov eax, ecx
jmp 0x50f692
jmp 0x50f63e
xor eax, eax
mov esp, ebp
pop ebp
ret