joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d54a7
Capabilities:
Get token privileges

Disassembly:
push 0x14
mov eax, 0x510e76
call fcn.004d8af2
mov eax, ecx
mov dword [ebp - 0x20], eax
mov edi, dword [ebp + 8]
test edi, edi
je 0x4d5566
lea ecx, [ebp - 0x14]
xor ebx, ebx
push ecx
push ebx
push ebx
push 3
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4d5566
mov esi, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x14]
cmp eax, 0x400
ja 0x4d550e
mov ecx, eax
call fcn.0040602c
test al, al
mov eax, dword [ebp - 0x14]
je 0x4d550e
call fcn.004d8d70
mov eax, esp
jmp 0x4d551a
push eax
lea ecx, [ebp - 0x18]
call fcn.0040609c
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4d554f
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push 3
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4d554f
lea ecx, [edi + 4]
call fcn.00405e73
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.004063eb
mov bl, 1
test esi, esi
je 0x4d5562
mov edi, dword [esi]
push esi
mov esi, edi
call fcn.004e3620
pop ecx
test edi, edi
jne 0x4d5553
mov al, bl
jmp 0x4d5568
xor al, al
lea esp, [ebp - 0x30]
call fcn.004d8aa1
ret 0xc

Function at 0x4d5c00
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x577014]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], ebx
mov eax, dword [edi + 4]
or eax, 0x2001f
mov dword [esp + 0x10], ebx
push eax
push ecx
push dword [edi]
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], ebx
call fcn.004d6087
mov esi, eax
test esi, esi
je 0x4d5c66
cmp dword [esp + 0xc], ebx
je 0x4d5c5f
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4d5cf5
lea eax, [esp + 0x20]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x4d5caa
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004d5c00
mov esi, eax
test esi, esi
jne 0x4d5d0c
lea eax, [esp + 0x20]
xor ecx, ecx
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push ecx
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x100
call ebx
test eax, eax
je 0x4d5c81
cmp dword [esp + 0xc], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4d5cd4
push dword [esp + 0xc]
call esi
and dword [esp + 0xc], 0
push dword [esp + 0x1c]
and dword [esp + 0x14], 0
mov ecx, edi
call fcn.004d5b58
cmp dword [esp + 0xc], 0
mov edi, eax
je 0x4d5cf3
push dword [esp + 0xc]
call esi
mov eax, edi
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d818b
mov esp, ebp
pop ebp
ret 4
cmp dword [esp + 0xc], 0
jmp 0x4d5c53
Function at 0x4d656e
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x577014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x158], esi
xor edi, edi
lea edx, [esi + 0x21]
movzx ecx, byte [edx - 1]
movzx eax, byte [edx]
lea edx, [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [ebp + edi*4 - 0x144], ecx
inc edi
cmp edi, 0x10
jl 0x4d6591
push 0x40
lea ecx, [ebp - 0x13c]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
ror eax, 0x1f
mov dword [ecx + 0x34], eax
sub edx, 1
jne 0x4d65c8
mov eax, dword [esi + 4]
mov ebx, dword [esi + 8]
mov edi, dword [esi + 0xc]
and dword [ebp - 0x154], edx
mov dword [ebp - 0x14c], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x148], eax
mov eax, dword [esi + 0x14]
mov esi, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x14c]
mov ecx, ebx
not ecx
ror edx, 0x1b
and ecx, esi
mov eax, edi
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0x154]
add edx, ecx
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x150], esi
add ecx, 0x5a827999
mov esi, edi
mov edi, ebx
add edx, dword [ebp + eax*4 - 0x144]
shr ebx, 2
add edx, ecx
shl edi, 0x1e
or edi, ebx
mov ebx, dword [ebp - 0x14c]
push 0x14
inc eax
mov dword [ebp - 0x14c], edx
pop ecx
mov dword [ebp - 0x154], eax
cmp eax, ecx
jl 0x4d660e
mov dword [ebp - 0x148], esi
mov eax, esi
xor eax, edi
ror edx, 0x1b
xor eax, ebx
add edx, eax
mov eax, dword [ebp - 0x150]
add edx, dword [ebp + ecx*4 - 0x144]
add eax, 0x6ed9eba1
add edx, eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x148], eax
shr ebx, 2
shl edi, 0x1e
or edi, ebx
mov ebx, dword [ebp - 0x14c]
inc ecx
mov dword [ebp - 0x14c], edx
cmp ecx, 0x28
jl 0x4d6674
push 0x28
pop esi
mov ecx, edi
ror edx, 0x1b
or ecx, ebx
add edx, 0x8f1bbcdc
add edx, dword [ebp - 0x150]
and ecx, eax
mov eax, edi
and eax, ebx
or ecx, eax
mov eax, dword [ebp - 0x148]
add ecx, dword [ebp + esi*4 - 0x144]
mov dword [ebp - 0x150], eax
add edx, ecx
mov eax, edi
mov edi, ebx
shr ebx, 2
shl edi, 0x1e
or edi, ebx
mov dword [ebp - 0x148], eax
mov ebx, dword [ebp - 0x14c]
inc esi
mov dword [ebp - 0x14c], edx
cmp esi, 0x3c
jl 0x4d66c4
mov esi, dword [ebp - 0x158]
push 0x3c
pop ecx
xor eax, edi
ror edx, 0x1b
add edx, dword [ebp - 0x150]
xor eax, ebx
add eax, 0xca62c1d6
add eax, dword [ebp + ecx*4 - 0x144]
add edx, eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x150], eax
mov eax, edi
mov edi, ebx
mov dword [ebp - 0x148], eax
shr ebx, 2
shl edi, 0x1e
or edi, ebx
mov ebx, dword [ebp - 0x14c]
inc ecx
mov dword [ebp - 0x14c], edx
cmp ecx, 0x50
jl 0x4d6721
add dword [esi + 0xc], edi
add dword [esi + 0x10], eax
add dword [esi + 8], ebx
add dword [esi + 4], edx
mov eax, dword [ebp - 0x150]
add dword [esi + 0x14], eax
and dword [esi + 0x60], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d818b
leave
ret
Function at 0x4d6794
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x60]
cmp eax, 0x37
mov byte [eax + esi + 0x20], 0x80
mov ecx, dword [esi + 0x60]
lea eax, [ecx + 1]
mov dword [esi + 0x60], eax
jle 0x4d67e9
jmp 0x4d67ba
mov byte [eax + esi + 0x20], 0
inc dword [esi + 0x60]
mov eax, dword [esi + 0x60]
cmp eax, 0x40
jl 0x4d67af
mov ecx, esi
call fcn.004d656e
mov eax, dword [esi + 0x60]
jmp 0x4d67d7
mov byte [eax + esi + 0x20], 0
mov eax, dword [esi + 0x60]
inc eax
mov dword [esi + 0x60], eax
cmp eax, 0x38
jl 0x4d67cb
jmp 0x4d67ee
mov byte [eax + esi + 0x20], 0
inc dword [esi + 0x60]
mov eax, dword [esi + 0x60]
cmp eax, 0x38
jl 0x4d67de
mov al, byte [esi + 0x1f]
mov ecx, esi
mov byte [esi + 0x58], al
mov al, byte [esi + 0x1e]
mov byte [esi + 0x59], al
mov al, byte [esi + 0x1d]
mov byte [esi + 0x5a], al
mov al, byte [esi + 0x1c]
mov byte [esi + 0x5b], al
mov al, byte [esi + 0x1b]
mov byte [esi + 0x5c], al
mov al, byte [esi + 0x1a]
mov byte [esi + 0x5d], al
mov al, byte [esi + 0x19]
mov byte [esi + 0x5e], al
mov al, byte [esi + 0x18]
mov byte [esi + 0x5f], al
pop esi
jmp fcn.004d656e

Function at 0x4d8fa5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4d8fe4
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4d8fe4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4d8fe4
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4d8fe4
cmp dword [ecx + 0x74], 0xe
jbe 0x4d8fe4
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4ef7da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004d9200
mov eax, dword [0x577014]
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.004fb7d7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ef81c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ef978
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0050fc80
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 + 0x57cef0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.004fcc02
mov ecx, dword [esi*4 + 0x57cef0]
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 0x4ef971
cmp eax, dword [ecx + edi + 0x24]
jne 0x4ef971
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 0x4ef971
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004fcc02
add esp, 0x14
test edx, edx
jl 0x4ef971
jg 0x4ef8e7
test eax, eax
jb 0x4ef971
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ef971
jl 0x4ef901
cmp dword [ebp - 0x1008], eax
ja 0x4ef971
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ef91f
test ebx, ebx
je 0x4ef958
cmp ecx, edi
jae 0x4ef958
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ef939
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ef945
cmp byte [ecx + 1], 0xa
jne 0x4ef945
inc ecx
jmp 0x4ef945
movzx eax, al
movsx eax, byte [eax + 0x577288]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ef91f
cmp edx, ebx
jne 0x4ef91f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ef976
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004d818b
leave
ret

Function at 0x4fc13f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52f104
push 0x52f0fc
push str.FlsAlloc
push 0x1f
call fcn.004fbf6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fc173
push dword [ebp + 8]
mov ecx, esi
call dword [0x52a748]
call esi
jmp 0x4fc179
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4fc1bd
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52f114
push 0x52f10c
push str.FlsGetValue
push 0x21
call fcn.004fbf6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fc1f4
push dword [ebp + 8]
mov ecx, esi
call dword [0x52a748]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4fc1fc
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x52f11c
push 0x52f114
push str.FlsSetValue
push 0x22
call fcn.004fbf6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fc236
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x52a748]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x4fc2d4
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x52ef7c
push str.GetTempPath2W
push 5
call fcn.004fbf6a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fc30e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x52a748]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]

Function at 0x4fcc7e
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 + 0x57cef0]
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 0x4fccbe
cmp byte [ebx], 0xa
jne 0x4fccbe
or byte [edi + eax + 0x28], 4
jmp 0x4fccc3
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 0x4fcdc2
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4fcda5
inc eax
cmp dl, 0xd
je 0x4fccef
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4fcd15
cmp eax, ecx
jae 0x4fcd23
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 0x4fccd7
jmp 0x4fcdc2
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 0x4fcda0
cmp dword [ebp - 0x10], 0
je 0x4fcda0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x57cef0]
test byte [eax + edi + 0x28], 0x48
je 0x4fcd7a
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4fcd65
mov byte [esi], dl
jmp 0x4fcd76
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x57cef0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4fcdc2
cmp byte [ebp - 1], 0xa
jne 0x4fcd89
cmp esi, ebx
jne 0x4fcd89
mov byte [esi], 0xa
jmp 0x4fcdc1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004fcc20
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4fcdc2
mov byte [esi], 0xd
jmp 0x4fcdc1
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x57cef0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4fcdbf
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4fcdc2
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4fcdcb
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 + 0x57cef0]
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 0x4fce11
cmp word [ebx], dx
jne 0x4fce11
or byte [eax + edi + 0x28], 4
jmp 0x4fce16
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 0x4fcf79
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 0x4fcf59
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4fce57
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4fce8d
cmp eax, edx
jae 0x4fce9b
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 0x4fce32
jmp 0x4fcf79
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 0x4fcf54
cmp dword [ebp - 0x18], 0
je 0x4fcf54
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x57cef0]
test byte [eax + edi + 0x28], 0x48
je 0x4fcf2a
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 0x4fceee
mov word [esi], cx
jmp 0x4fcf25
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x57cef0]
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 + 0x57cef0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x57cef0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4fcf79
pop eax
cmp word [ebp - 4], ax
jne 0x4fcf3a
cmp esi, ebx
jne 0x4fcf3a
mov word [esi], ax
jmp 0x4fcf76
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004fcc20
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4fcf79
push 0xd
pop eax
jmp 0x4fcf35
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x57cef0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4fcf73
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4fcf79
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 0x507dd9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x577014]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x507e24
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00507f74
test al, al
jne 0x507e1e
sub edx, 2
cmp edx, edi
jne 0x507e04
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x507e46
lea eax, [edi + 2]
cmp edx, eax
je 0x507e46
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00507d25
add esp, 0x10
jmp 0x507f40
push esi
lea ecx, [ebp - 0x255]
call fcn.00507f74
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x507e89
push dword [ebp - 0x25c]
jmp 0x507e36
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x507ec6
cmp word [ebp - 0x226], 0
je 0x507ee7
cmp word [ebp - 0x226], ax
jne 0x507ec6
cmp word [ebp - 0x224], 0
je 0x507ee7
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00507d25
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x507f33
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x507ea0
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x507f1b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x507f40
push 0x507b55
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0050eb70
add esp, 0x10
jmp 0x507f10
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d818b
leave
ret
Function at 0x508856
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 0x5088f3
push ebx
push esi
call fcn.0050881f
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.00501aa7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x5088a0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5088f2
push edi
push eax
call fcn.004fa865
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5088c0
call fcn.004fa82b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5088f1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00501aa7
add esp, 0x20
test eax, eax
jne 0x5088df
push edi
call fcn.004fa82b
jmp 0x5088e7
push ebx
call fcn.004fa82b
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 0x5088f6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x508907
pop esi
ret
push ebx
push edi
push esi
call fcn.0050881f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004fa865
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x50892f
push ebx
push esi
push edi
call fcn.004d99b0
add esp, 0xc
push 0
call fcn.004fa82b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x509089
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00508ba4

Function at 0x50b0a4
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004fa540
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 0x50b113
cmp esi, dword [ebp - 4]
je 0x50b10e
cmp dword [ebp + 0xc], 0
je 0x50b10e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x50b0eb
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0050abf6
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x50b115
xor eax, eax
inc eax
jmp 0x50b115
xor eax, eax
pop edi
pop esi
leave
ret