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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov eax, dword [esi + 0x6af90]
mov dword [esi + 0x6af80], 2
test eax, eax
je 0x412dce
cmp eax, 3
jb 0x412c36
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x412c73
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x412c73
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x412c5d
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.004128a0
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, dword [esi + 0x6af84]
cmp edi, 3
jb 0x412d4a
sub ecx, dword [esi + 0x6af88]
lea eax, [edi - 3]
mov edx, ecx
mov ecx, esi
push eax
call fcn.004121f0
mov ecx, dword [esi + 0x6af90]
add esp, 4
sub ecx, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x6af90], ecx
cmp edi, dword [esi + 0x6af98]
ja 0x412d19
cmp ecx, 3
jb 0x412d19
dec edi
nop word [eax + eax]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x412cc0
jmp 0x412d68
add dword [esi + 0x6af84], edi
xor edi, edi
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [edx + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
mov dword [esi + 0x6af7c], eax
jmp 0x412d74
movzx eax, byte [ecx + esi + 0x1af70]
xor edx, edx
push eax
mov ecx, esi
call fcn.004121f0
add esp, 4
mov dword [ebp - 4], eax
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
cmp dword [ebp - 4], 0
je 0x412dad
mov eax, dword [esi + 0x6af74]
test eax, eax
js 0x412d8e
lea ecx, [esi + 0x1af70]
add ecx, eax
jmp 0x412d90
xor ecx, ecx
sub edx, eax
push 0
push edx
mov edx, ecx
mov ecx, esi
call fcn.00411e40
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x412dc0
mov ecx, esi
call fcn.00412a60
mov eax, dword [esi + 0x6af90]
test eax, eax
jne 0x412be5
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x412de2
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x412de4
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.00411e40
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413ba0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x413bab
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x413c67
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
sub edi, 1
jne 0x413bc0
pop edi
test esi, esi
je 0x413c8a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fedf8]
sub esi, 1
jne 0x413c70
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x413d20
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x511080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [ebp - 8], ebx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x413e07
mov ecx, dword [esi + 0x3c]
mov eax, ecx
test ecx, ecx
je 0x413d68
cmp dword [esi + 0x40], ebx
jae 0x413d68
push ecx
call fcn.004d2f5c
add esp, 4
mov dword [esi + 0x3c], 0
jmp 0x413d6c
test eax, eax
jne 0x413d7e
lea eax, [ebx + ebx]
push eax
call fcn.004d31b2
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call fcn.004d4640
xor edx, edx
add esp, 0xc
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x413e04
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x4fedf8]
movzx eax, cl
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
mov dword [esi + 0x30], ecx
mov ecx, edi
xor ecx, 1
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
mov ebx, dword [ebp - 8]
shr edx, 8
xor edx, dword [eax*4 + 0x4fedf8]
mov dword [esi + 0x38], edx
mov edx, dword [ebp - 0xc]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp - 0xc], edx
cmp edx, ebx
jb 0x413d92
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x413e47
mov edx, dword [esi + 0x24]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x413e22
mov dword [esi + 0x14], 0x30000
jmp 0x413e7a
push ebx
add ecx, edx
push edi
push ecx
call fcn.004d4640
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x413e73
push 0
lea ecx, [ebp - 8]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 8
mov dword [esi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 8
Function at 0x414020
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x511080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x78]
test edx, edx
je 0x414093
mov ecx, dword [edi + 0x80]
mov esi, dword [edi + 0x7c]
cmp ecx, esi
jae 0x4140e2
sub esi, ecx
lea eax, [ecx + edx]
cmp esi, dword [ebp + 0xc]
cmova esi, dword [ebp + 0xc]
push esi
push eax
push ebx
call fcn.004d4640
mov ecx, dword [edi + 0x6c]
mov edx, ebx
add dword [edi + 0x80], esi
add dword [edi + 0x68], esi
push esi
call fcn.00413ba0
add esp, 0x10
mov dword [edi + 0x6c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4140db
push 0
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4140e2
mov esi, dword [ebp - 8]
mov edx, ebx
mov ecx, dword [edi + 0x6c]
add dword [edi + 0x68], esi
push esi
call fcn.00413ba0
add esp, 4
mov dword [edi + 0x6c], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d2eed
mov esp, ebp
pop ebp
ret 8
Function at 0x445520
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x44554d
push esi
lea esi, [edx + 1]
nop dword [eax + eax]
mov ecx, dword [eax + 0x98]
mov edx, esi
xor edx, ecx
and edx, 3
xor edx, ecx
mov dword [eax + 0x98], edx
mov eax, dword [eax + 8]
test eax, eax
jne 0x445530
pop esi
ret
Function at 0x451dd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
push 0
push 0x14
mov dword [ebp - 4], ebx
mov dword [ebp - 8], eax
mov dword [eax], 0
call fcn.004188b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x451e05
lea eax, [esi + 7]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [0x511c1c], 0
je 0x451e50
mov eax, dword [0x511d18]
test eax, eax
je 0x451e25
push 0xc8
call eax
add esp, 4
test eax, eax
jne 0x451e50
mov eax, dword [ebp + 8]
lea edi, [esi + 8]
mov dword [edi], ebx
lea ebx, [esi + 4]
push ebx
push 0
push esi
push 0x41c040
push 0
push 0
mov dword [esi + 0xc], eax
call fcn.004df677
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x451e63
jmp 0x451e56
lea edi, [esi + 8]
lea ebx, [esi + 4]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
cmp dword [edi], 0
jne 0x451e7c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push dword [ebp + 8]
mov dword [ebx], eax
call dword [ebp - 4]
add esp, 4
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
pop edi
mov dword [eax], esi
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d3bf3
Capabilities:
Parse pe header

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

Function at 0x4e5af0
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x4e5b0a
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4e5b21
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x4e5b79
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.004ed2fd
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x4e5b79
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4e5b79
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4e5b79
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x4e5b73
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x4e5b75
xor bl, bl
mov al, bl
jmp 0x4e5b7b
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x4e8f27
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004d3e50
mov eax, dword [0x511080]
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.004e529f
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4e8f69
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4e90e0
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004f4ac0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x514880]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004ea926
mov ecx, dword [esi*4 + 0x514880]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4e90d9
cmp eax, dword [edi + ecx + 0x24]
jne 0x4e90d9
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e90d9
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ea926
add esp, 0x14
cmp edx, esi
jl 0x4e90d9
jg 0x4e9034
cmp eax, esi
jb 0x4e90d9
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x4e90d9
jl 0x4e9056
cmp dword [ebp - 0x1008], eax
ja 0x4e90d9
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x4e907b
cmp ebx, esi
je 0x4e90c0
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x4e90c0
mov al, byte [ecx]
cmp al, 0xd
jne 0x4e90a1
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4e90ad
cmp byte [ecx + 1], 0xa
jne 0x4e90ad
inc ecx
jmp 0x4e90ad
movzx eax, al
movsx eax, byte [eax + 0x5114f0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4e9087
cmp edx, ebx
jne 0x4e9087
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x4e90de
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004d2eed
leave
ret
Function at 0x4e9db2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x514880]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4e9df4
cmp byte [ebx], 0xa
jne 0x4e9df4
or byte [edi + eax + 0x28], 4
jmp 0x4e9df9
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4e9efc
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4e9ed7
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4e9e28
mov eax, dword [ebp - 8]
jmp 0x4e9e48
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4e9e64
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4e9e42
add eax, 2
mov cl, 0xa
jmp 0x4e9e45
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4e9e0a
jmp 0x4e9efc
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 0x4e9ed2
cmp dword [ebp - 0x10], 0
je 0x4e9ed2
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x514880]
test byte [eax + edi + 0x28], 0x48
je 0x4e9eb1
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4e9ea1
mov byte [esi], 0xa
jmp 0x4e9efb
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x514880]
mov byte [eax + edi + 0x2a], cl
jmp 0x4e9efb
cmp byte [ebp - 1], 0xa
jne 0x4e9ebb
cmp esi, ebx
je 0x4e9e9c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ea944
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4e9efc
mov byte [esi], 0xd
jmp 0x4e9efb
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x514880]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x4e9ef9
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4e9efc
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4e9f05
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x514880]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4e9f49
push 0xa
pop esi
cmp word [ebx], si
jne 0x4e9f49
or byte [eax + edi + 0x28], 4
jmp 0x4e9f4e
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4ea0b9
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4ea091
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4e9f9b
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4e9fc5
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4e9fe4
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4e9fb2
push ebx
add eax, 4
pop edx
jmp 0x4e9fba
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4e9f60
jmp 0x4ea0b9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ea08c
cmp dword [ebp - 0x14], 0
je 0x4ea08c
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x514880]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4ea068
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4ea030
mov word [esi], ax
jmp 0x4ea0b6
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x514880]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x514880]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x514880]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4ea0b6
cmp word [ebp - 4], ax
jne 0x4ea072
cmp esi, ebx
je 0x4ea028
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004ea944
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4ea0b9
push 0xd
pop eax
jmp 0x4ea028
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x514880]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4ea0b3
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4ea0b9
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4ebf08
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x511080]
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 0x4ebf53
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004ec0a1
test al, al
jne 0x4ebf4d
sub edx, 2
cmp edx, edi
jne 0x4ebf33
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4ebf75
lea eax, [edi + 2]
cmp edx, eax
je 0x4ebf75
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004ebe54
add esp, 0x10
jmp 0x4ec06d
push esi
lea ecx, [ebp - 0x255]
call fcn.004ec0a1
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4ebfb6
push dword [ebp - 0x25c]
jmp 0x4ebf65
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 0x4ebff3
cmp word [ebp - 0x226], 0
je 0x4ec014
cmp word [ebp - 0x226], ax
jne 0x4ebff3
cmp word [ebp - 0x224], 0
je 0x4ec014
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004ebe54
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4ec060
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4ebfcd
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4ec048
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4ec06d
push 0x4ebc84
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004f2880
add esp, 0x10
jmp 0x4ec03d
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.004d2eed
leave
ret

Function at 0x4ec983
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ec994
pop esi
ret
push ebx
push edi
push esi
call fcn.004ec94c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004e3f70
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ec9bc
push ebx
push esi
push edi
call fcn.004d4640
add esp, 0xc
push 0
call fcn.004e3f20
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4ecd8b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ec9d1
Function at 0x4ef2f6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004e3da2
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 0x4ef365
cmp esi, dword [ebp - 4]
je 0x4ef360
cmp dword [ebp + 0xc], 0
je 0x4ef360
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4ef33d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004eee4b
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4ef367
xor eax, eax
inc eax
jmp 0x4ef367
xor eax, eax
pop edi
pop esi
leave
ret