joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4834a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov esi, edx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], ecx
mov edi, eax
mov dword [ebp - 0xc], edx
sar edi, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
cmp edx, edi
jge 0x483516
add esi, esi
lea ecx, [esi + 2]
lea ecx, [ecx + ecx*2]
shl ecx, 6
add ecx, ebx
lea eax, [ecx - 0xc0]
push eax
push ecx
call fcn.00452920
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
shl eax, 6
add eax, ebx
push eax
mov eax, dword [ebp - 8]
lea ecx, [eax + eax*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
mov dword [ebp - 8], esi
cmp esi, edi
jl 0x4834d0
mov ecx, dword [ebp - 0x14]
mov edi, esi
cmp esi, dword [ebp - 0x18]
jne 0x483540
test cl, 1
jne 0x483540
lea eax, [ecx + ecx*2]
shl eax, 6
lea ecx, [esi + esi*2]
add eax, 0xffffff40
shl ecx, 6
add eax, ebx
add ecx, ebx
push eax
call fcn.00446d70
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
jge 0x483579
push dword [ebp - 0x10]
lea esi, [edi - 1]
sar esi, 1
lea eax, [esi + esi*2]
shl eax, 6
add eax, ebx
push eax
mov dword [ebp - 4], eax
call fcn.00452920
test al, al
je 0x483579
push dword [ebp - 4]
lea ecx, [edi + edi*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
mov edi, esi
cmp dword [ebp - 0xc], esi
jl 0x483545
push dword [ebp - 0x10]
lea ecx, [edi + edi*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x483590
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov esi, edx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], ecx
mov edi, eax
mov dword [ebp - 0xc], edx
sar edi, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
cmp edx, edi
jge 0x483606
add esi, esi
lea ecx, [esi + 2]
lea ecx, [ecx + ecx*2]
shl ecx, 6
add ecx, ebx
lea eax, [ecx - 0xc0]
push eax
push ecx
call fcn.00452bb0
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
shl eax, 6
add eax, ebx
push eax
mov eax, dword [ebp - 8]
lea ecx, [eax + eax*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
mov dword [ebp - 8], esi
cmp esi, edi
jl 0x4835c0
mov ecx, dword [ebp - 0x14]
mov edi, esi
cmp esi, dword [ebp - 0x18]
jne 0x483630
test cl, 1
jne 0x483630
lea eax, [ecx + ecx*2]
shl eax, 6
lea ecx, [esi + esi*2]
add eax, 0xffffff40
shl ecx, 6
add eax, ebx
add ecx, ebx
push eax
call fcn.00446d70
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
jge 0x483669
push dword [ebp - 0x10]
lea esi, [edi - 1]
sar esi, 1
lea eax, [esi + esi*2]
shl eax, 6
add eax, ebx
push eax
mov dword [ebp - 4], eax
call fcn.00452bb0
test al, al
je 0x483669
push dword [ebp - 4]
lea ecx, [edi + edi*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
mov edi, esi
cmp dword [ebp - 0xc], esi
jl 0x483635
push dword [ebp - 0x10]
lea ecx, [edi + edi*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x483680
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov esi, edx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], ecx
mov edi, eax
mov dword [ebp - 0xc], edx
sar edi, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
cmp edx, edi
jge 0x4836f6
add esi, esi
lea ecx, [esi + 2]
lea ecx, [ecx + ecx*2]
shl ecx, 6
add ecx, ebx
lea eax, [ecx - 0xc0]
push eax
push ecx
call fcn.00452e40
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
shl eax, 6
add eax, ebx
push eax
mov eax, dword [ebp - 8]
lea ecx, [eax + eax*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
mov dword [ebp - 8], esi
cmp esi, edi
jl 0x4836b0
mov ecx, dword [ebp - 0x14]
mov edi, esi
cmp esi, dword [ebp - 0x18]
jne 0x483720
test cl, 1
jne 0x483720
lea eax, [ecx + ecx*2]
shl eax, 6
lea ecx, [esi + esi*2]
add eax, 0xffffff40
shl ecx, 6
add eax, ebx
add ecx, ebx
push eax
call fcn.00446d70
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
jge 0x483759
push dword [ebp - 0x10]
lea esi, [edi - 1]
sar esi, 1
lea eax, [esi + esi*2]
shl eax, 6
add eax, ebx
push eax
mov dword [ebp - 4], eax
call fcn.00452e40
test al, al
je 0x483759
push dword [ebp - 4]
lea ecx, [edi + edi*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
mov edi, esi
cmp dword [ebp - 0xc], esi
jl 0x483725
push dword [ebp - 0x10]
lea ecx, [edi + edi*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x483770
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 8], edx
mov esi, edx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], ecx
mov edi, eax
mov dword [ebp - 0xc], edx
sar edi, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
cmp edx, edi
jge 0x4837e6
add esi, esi
lea ecx, [esi + 2]
lea ecx, [ecx + ecx*2]
shl ecx, 6
add ecx, ebx
lea eax, [ecx - 0xc0]
push eax
push ecx
call fcn.00453190
movzx eax, al
xor eax, 1
inc eax
add esi, eax
lea eax, [esi + esi*2]
shl eax, 6
add eax, ebx
push eax
mov eax, dword [ebp - 8]
lea ecx, [eax + eax*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
mov dword [ebp - 8], esi
cmp esi, edi
jl 0x4837a0
mov ecx, dword [ebp - 0x14]
mov edi, esi
cmp esi, dword [ebp - 0x18]
jne 0x483810
test cl, 1
jne 0x483810
lea eax, [ecx + ecx*2]
shl eax, 6
lea ecx, [esi + esi*2]
add eax, 0xffffff40
shl ecx, 6
add eax, ebx
add ecx, ebx
push eax
call fcn.00446d70
mov edi, dword [ebp - 4]
cmp dword [ebp - 0xc], edi
jge 0x483849
push dword [ebp - 0x10]
lea esi, [edi - 1]
sar esi, 1
lea eax, [esi + esi*2]
shl eax, 6
add eax, ebx
push eax
mov dword [ebp - 4], eax
call fcn.00453190
test al, al
je 0x483849
push dword [ebp - 4]
lea ecx, [edi + edi*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
mov edi, esi
cmp dword [ebp - 0xc], esi
jl 0x483815
push dword [ebp - 0x10]
lea ecx, [edi + edi*2]
shl ecx, 6
add ecx, ebx
call fcn.00446d70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x485648
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00485624
pop esi
leave
ret 8

Function at 0x489112
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x489151
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x489151
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x489151
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x489151
cmp dword [ecx + 0x74], 0xe
jbe 0x489151
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x48bddd
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x48bdeb
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and al, 1
pop ebp
ret

Function at 0x48be36
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x48be44
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x48c845
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48c86b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x48c86b
xor al, al
jmp 0x48c87f
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x48d9ac
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x4bbf15
call fcn.00488d60
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x48d9cc
mov al, 1
jmp 0x48da13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x48d9dd
xor al, al
jmp 0x48da13
lea ecx, [ebp - 0x44]
call fcn.0048db16
lea ecx, [ebp - 0x1c]
call fcn.0048d052
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0048dbae
test al, al
je 0x48da08
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.0048825d
pop ecx
mov al, bl
call fcn.00488d2e
ret

Function at 0x48da70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x48e0de
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x4a1375
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4e0138]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x4c19ac
push esi
call fcn.004ab4b1
pop ecx
pop ecx
test eax, eax
jne 0x4a13a3
xor al, al
jmp 0x4a1420
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.004a10aa
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x4a13dd
push dword [ebp - 0x210]
call fcn.004995bf
xor al, al
jmp 0x4a141e
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4a13e3
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x4a1403
push edx
call fcn.004a12ac
pop ecx
test al, al
je 0x4a13ce
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x4a1411
mov bl, 1
push dword [ebp - 0x210]
call fcn.004995bf
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0048824f
leave
ret

Function at 0x4a2676
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c2534
push 0x4c252c
push str.FlsAlloc
push 0x1f
call fcn.004a24a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a26aa
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bd4c0]
call esi
jmp 0x4a26b0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4a26f4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c2544
push 0x4c253c
push str.FlsGetValue
push 0x21
call fcn.004a24a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a272b
push dword [ebp + 8]
mov ecx, esi
call dword [0x4bd4c0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4a2733
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4c254c
push 0x4c2544
push str.FlsSetValue
push 0x22
call fcn.004a24a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4a276d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4bd4c0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4a5425
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00489370
mov eax, dword [0x4e0138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004a14f2
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a5467
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a55c3
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004b2ab0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e2f80]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004a62ac
mov ecx, dword [esi*4 + 0x4e2f80]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4a55bc
cmp eax, dword [ecx + edi + 0x24]
jne 0x4a55bc
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a55bc
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004a62ac
add esp, 0x14
test edx, edx
jl 0x4a55bc
jg 0x4a5532
test eax, eax
jb 0x4a55bc
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a55bc
jl 0x4a554c
cmp dword [ebp - 0x1008], eax
ja 0x4a55bc
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a556a
test ebx, ebx
je 0x4a55a3
cmp ecx, edi
jae 0x4a55a3
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a5584
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a5590
cmp byte [ecx + 1], 0xa
jne 0x4a5590
inc ecx
jmp 0x4a5590
movzx eax, al
movsx eax, byte [eax + 0x4e03e8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a556a
cmp edx, ebx
jne 0x4a556a
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a55c1
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0048824f
leave
ret
Function at 0x4a5744
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4e2f80]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a5784
cmp byte [ebx], 0xa
jne 0x4a5784
or byte [edi + eax + 0x28], 4
jmp 0x4a5789
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x4a5888
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4a586b
inc eax
cmp dl, 0xd
je 0x4a57b5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4a57db
cmp eax, ecx
jae 0x4a57e9
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x4a579d
jmp 0x4a5888
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a5866
cmp dword [ebp - 0x10], 0
je 0x4a5866
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4e2f80]
test byte [eax + edi + 0x28], 0x48
je 0x4a5840
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a582b
mov byte [esi], dl
jmp 0x4a583c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e2f80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a5888
cmp byte [ebp - 1], 0xa
jne 0x4a584f
cmp esi, ebx
jne 0x4a584f
mov byte [esi], 0xa
jmp 0x4a5887
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004a62ca
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a5888
mov byte [esi], 0xd
jmp 0x4a5887
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4e2f80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a5885
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a5888
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a5891
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4e2f80]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4a58d7
cmp word [ebx], dx
jne 0x4a58d7
or byte [eax + edi + 0x28], 4
jmp 0x4a58dc
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4a5a3f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4a5a1f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4a591d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a5953
cmp eax, edx
jae 0x4a5961
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4a58f8
jmp 0x4a5a3f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a5a1a
cmp dword [ebp - 0x18], 0
je 0x4a5a1a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4e2f80]
test byte [eax + edi + 0x28], 0x48
je 0x4a59f0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x4a59b4
mov word [esi], cx
jmp 0x4a59eb
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4e2f80]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4e2f80]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4e2f80]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4a5a3f
pop eax
cmp word [ebp - 4], ax
jne 0x4a5a00
cmp esi, ebx
jne 0x4a5a00
mov word [esi], ax
jmp 0x4a5a3c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004a62ca
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4a5a3f
push 0xd
pop eax
jmp 0x4a59fb
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4e2f80]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4a5a39
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4a5a3f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a9d86
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4a9e23
push ebx
push esi
call fcn.004a9d4f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004a7341
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4a9dd0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a9e22
push edi
push eax
call fcn.004a3bb4
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4a9df0
call fcn.004a21c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4a9e21
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004a7341
add esp, 0x20
test eax, eax
jne 0x4a9e0f
push edi
call fcn.004a21c2
jmp 0x4a9e17
push ebx
call fcn.004a21c2
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4a9e26
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4a9e37
pop esi
ret
push ebx
push edi
push esi
call fcn.004a9d4f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004a3bb4
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4a9e5f
push ebx
push esi
push edi
call fcn.0048f2d0
add esp, 0xc
push 0
call fcn.004a21c2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4aa22f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a9e74

Function at 0x4ac82f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004a1c88
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4ac89e
cmp esi, dword [ebp - 4]
je 0x4ac899
cmp dword [ebp + 0xc], 0
je 0x4ac899
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4ac876
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004ac381
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4ac8a0
xor eax, eax
inc eax
jmp 0x4ac8a0
xor eax, eax
pop edi
pop esi
leave
ret