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

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x573222
xor eax, eax
pop edi
ret
push ebp
push esi
push edi
call fcn.004db8f0
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x5732e5
mov ecx, dword [edi + 0x10c]
push ebx
cmp ecx, esi
jne 0x573276
test esi, esi
jle 0x5732c4
mov edx, ebp
lea ecx, [edi + 0x8c]
mov ebx, esi
nop word [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x573260
jmp 0x5732c4
sub eax, ecx
mov byte [ecx + edi + 0xec], 0x80
cmp eax, 1
jle 0x57329a
dec eax
push eax
lea eax, [edi + 0xed]
add eax, ecx
push 0
push eax
call fcn.005a49e0
add esp, 0xc
test esi, esi
jle 0x5732c4
mov edx, ebp
lea ecx, [edi + 0xac]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x5732b0
push esi
push ebp
push ebp
push edi
call fcn.0050ec10
add esp, 0x10
pop ebx
test eax, eax
jne 0x5732e5
push esi
push ebp
call fcn.004cd5d0
add esp, 8
xor eax, eax
pop esi
pop ebp
pop edi
ret
pop esi
pop ebp
mov eax, 1
pop edi
ret

Function at 0x57c820
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ebp, 1
push edi
push ebx
push esi
call fcn.0057cce0
mov edi, eax
add esp, 8
test edi, edi
jns 0x57c85b
push 0x7b
push str..crypto_bio_b_sock.c
push 0x6c
push 0x6a
push 0x20
call fcn.004b4710
add esp, 0x14
jmp 0x57c91c
call fcn.0057cc10
cmp eax, 1
jne 0x57c92c
test edi, edi
jle 0x57c874
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
push 0x8e
push str..crypto_bio_b_sock.c
push 0x16
push 9
call fcn.004d55f0
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
jne 0x57c8b1
push 0x92
push str..crypto_bio_b_sock.c
push 0x66
push 0x6a
push 0x20
call fcn.004b4710
add esp, 0x14
jmp 0x57c902
cmp word [ecx + 8], 2
je 0x57c8d2
push 0x99
push str..crypto_bio_b_sock.c
push 0x6b
push 0x6a
push 0x20
call fcn.004b4710
add esp, 0x14
jmp 0x57c902
mov eax, dword [ecx + 0xc]
xor ebp, ebp
mov eax, dword [eax]
movzx eax, byte [eax]
mov byte [ebx], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 1]
mov byte [ebx + 1], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 2]
mov byte [ebx + 2], al
mov eax, dword [ecx + 0xc]
mov eax, dword [eax]
movzx eax, byte [eax + 3]
mov byte [ebx + 3], al
push 0xa2
push str..crypto_bio_b_sock.c
push 0x16
push 0xa
call fcn.004d55f0
add esp, 0x10
test ebp, ebp
je 0x57c933
push esi
push str.host
push 2
call fcn.004b3d20
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x57cc90
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 8]
push esi
mov dword [esp + 0xc], eax
lea eax, [esp + 0xc]
push eax
push 0x8004667e
push dword [esp + 0x10]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
test esi, esi
jns 0x57ccd0
push 0x233
push str..crypto_bio_b_sock.c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 5
push 2
call fcn.004b4710
add esp, 0x14
xor eax, eax
test esi, esi
pop esi
sete al
ret
Function at 0x582700
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0x10]
mov edx, 0x400
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, 0x80
mov esi, edx
mov ecx, edi
mov byte [ebp], 0
cmp dword [esp + 0x18], ecx
cmovle ecx, dword [esp + 0x18]
test eax, eax
cmovg esi, eax
cmp esi, edx
cmovg esi, edx
mov dword [esp + 0x14], esi
test ecx, ecx
jle 0x582755
mov ebx, dword [esp + 0x1c]
mov edx, ebp
sub ebx, ebp
mov esi, ecx
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x582743
mov esi, dword [esp + 0x14]
movzx ebx, byte [ecx + ebp - 1]
cmp ecx, edi
jge 0x58277a
mov edx, ebp
movzx eax, byte [edx]
lea edx, [edx + 1]
add eax, ebx
movzx eax, al
movzx ebx, byte [eax + 0x624fa8]
mov byte [ecx + ebp], bl
inc ecx
cmp ecx, edi
jl 0x582760
mov ecx, dword [esp + 0x14]
lea ebx, [esi + 7]
sar ebx, 3
neg ecx
sub edi, ebx
and ecx, 7
movzx eax, byte [edi + ebp]
lea esi, [edi + ebp]
mov edx, 0xff
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x624fa8]
mov byte [esi], cl
test edi, edi
je 0x5827c8
nop dword [eax + eax]
movzx eax, byte [esi + ebx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x624fa8]
mov byte [esi], cl
sub edi, 1
jne 0x5827b0
lea esi, [ebp + 0xfc]
mov edi, 0x40
lea edx, [ebp + 0x7e]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
mov dword [esi + 4], ecx
sub edi, 1
jne 0x5827d6
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x585a70
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x18], 0
je 0x585a84
mov dword [esp + 0x18], fcn.00584250
jmp fcn.0055ac70
mov dword [esp + 0x18], fcn.005834f0
jmp fcn.0055a9c0

Function at 0x58f910
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
cmovge ebp, edi
cmovge edi, edx
mov eax, dword [edi + 4]
cmp eax, dword [ebx + 8]
jg 0x58f939
mov eax, ebx
jmp 0x58f943
push eax
push ebx
call fcn.00512580
add esp, 8
test eax, eax
jne 0x58f94b
pop edi
pop ebp
pop ebx
ret
xor eax, eax
cmp dword [ebp + 4], eax
jle 0x58f96a
push esi
mov ecx, dword [edi]
mov edx, dword [ebp]
mov esi, dword [ecx + eax*4]
mov ecx, dword [ebx]
xor esi, dword [edx + eax*4]
mov dword [ecx + eax*4], esi
inc eax
cmp eax, dword [ebp + 4]
jl 0x58f953
pop esi
cmp eax, dword [edi + 4]
jge 0x58f980
nop
mov ecx, dword [edi]
mov edx, dword [ebx]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [edi + 4]
jl 0x58f970
mov ecx, dword [edi + 4]
mov dword [ebx + 4], ecx
test ecx, ecx
jle 0x58f9a3
mov edx, dword [ebx]
add edx, 0xfffffffc
lea edx, [edx + ecx*4]
mov eax, dword [edx]
lea edx, [edx - 4]
test eax, eax
jne 0x58f9a0
dec ecx
test ecx, ecx
jg 0x58f992
mov dword [ebx + 4], ecx
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x5932c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, 0x2c
call fcn.005a2ab0
mov eax, dword [0x693f30]
xor eax, esp
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x34]
mov dword [esp], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
push ebx
push ebp
movzx ebx, byte [eax]
lea ebp, [eax + 1]
mov edx, ebp
shl ebx, 0x18
push esi
push edi
mov edi, dword [esp + 0x54]
movzx eax, byte [edx]
movzx ecx, byte [edx + 3]
shl eax, 0x10
or ebx, eax
shl ecx, 0x18
movzx eax, byte [edx + 1]
shl eax, 8
or ebx, eax
mov esi, dword [edi]
movzx eax, byte [edx + 2]
or ebx, eax
mov dword [esp + 0x1c], edi
movzx eax, byte [edx + 4]
shl eax, 0x10
or ecx, eax
mov dword [esp + 0x24], ebp
movzx eax, byte [edx + 6]
mov dword [esp + 0x14], ecx
movzx ecx, byte [edx + 5]
mov edx, dword [esp + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x14], ebx
mov eax, ebx
mov byte [esp + 0x2f], bl
shr eax, 0x18
or edx, ecx
mov byte [esp + 0x2c], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x48]
mov dword [esp + 0x18], edx
mov byte [esp + 0x33], dl
test eax, eax
je 0x593485
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x40]
sub ecx, edi
mov dword [esp + 0x10], ecx
xor ebp, ebp
nop dword [eax]
dec eax
mov dword [esp + 0x48], eax
test esi, esi
jne 0x593415
push dword [esp + 0x20]
lea eax, [esp + 0x18]
push eax
call fcn.00592cd0
mov ebx, dword [esp + 0x1c]
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x2c], al
mov eax, ebx
mov ecx, dword [esp + 0x10]
shr eax, 0x10
mov byte [esp + 0x2d], al
mov eax, ebx
shr eax, 8
mov byte [esp + 0x2e], al
mov eax, edx
shr eax, 0x18
mov byte [esp + 0x30], al
mov eax, edx
shr eax, 0x10
mov byte [esp + 0x31], al
mov eax, edx
shr eax, 8
inc ebp
mov byte [esp + 0x2f], bl
mov byte [esp + 0x32], al
mov byte [esp + 0x33], dl
mov al, byte [esp + esi + 0x2c]
inc esi
xor al, byte [edi]
and esi, 7
mov byte [ecx + edi], al
inc edi
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x5933b0
test ebp, ebp
mov ebp, dword [esp + 0x24]
je 0x59346c
mov ecx, dword [esp + 0x28]
mov eax, ebx
shr eax, 0x18
mov byte [ecx], al
mov eax, ebx
shr eax, 0x10
mov byte [ebp], al
mov eax, ebx
shr eax, 8
mov byte [ebp + 1], al
mov eax, edx
shr eax, 0x18
mov byte [ebp + 2], bl
mov byte [ebp + 3], al
mov eax, edx
shr eax, 0x10
mov byte [ebp + 4], al
mov eax, edx
shr eax, 8
mov byte [ebp + 5], al
mov byte [ebp + 6], dl
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.005a1c7e
add esp, 0x2c
ret
mov ecx, dword [esp + 0x38]
mov dword [edi], esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005a1c7e
add esp, 0x2c
ret
Function at 0x59ed2e
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.0059ed0a
pop esi
leave
ret 8

Function at 0x5a31f8
Capabilities:
Parse pe header

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

Function at 0x5bb8e4
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x693f30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x62f0bc
push esi
call fcn.005bd4e7
pop ecx
pop ecx
test eax, eax
jne 0x5bb912
xor al, al
jmp 0x5bb98f
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.005bb5e8
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x5bb94c
push dword [ebp - 0x210]
call fcn.005a7bc3
xor al, al
jmp 0x5bb98d
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5bb952
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x5bb972
push edx
call fcn.005bb81a
pop ecx
test al, al
je 0x5bb93d
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x5bb980
mov bl, 1
push dword [ebp - 0x210]
call fcn.005a7bc3
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.005a1c7e
leave
ret
Function at 0x5bbdcf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.005a2ab0
mov eax, dword [0x693f30]
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.005bd58d
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x5bbe11
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x5bbf6d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005a2b20
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 + 0x699730]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.005bd46b
mov ecx, dword [esi*4 + 0x699730]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x5bbf66
cmp eax, dword [edi + ecx + 0x24]
jne 0x5bbf66
push 0
lea eax, [ebp - 0x1014]
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 0x5bbf66
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005bd46b
add esp, 0x14
test edx, edx
jl 0x5bbf66
jg 0x5bbedc
test eax, eax
jb 0x5bbf66
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x5bbf66
jl 0x5bbef6
cmp dword [ebp - 0x1008], eax
ja 0x5bbf66
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x5bbf14
test ebx, ebx
je 0x5bbf4d
cmp ecx, edi
jae 0x5bbf4d
mov al, byte [ecx]
cmp al, 0xd
jne 0x5bbf2e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x5bbf3a
cmp byte [ecx + 1], 0xa
jne 0x5bbf3a
inc ecx
jmp 0x5bbf3a
movzx eax, al
movsx eax, byte [eax + 0x6940c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x5bbf14
cmp edx, ebx
jne 0x5bbf14
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x5bbf6b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.005a1c7e
leave
ret
Function at 0x5c478d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
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 + 0x699730]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5c47cd
cmp byte [ebx], 0xa
jne 0x5c47cd
or byte [eax + edi + 0x28], 4
jmp 0x5c47d2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x5c48d0
mov al, byte [edx]
cmp al, 0x1a
je 0x5c48b2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x5c4801
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x5c4826
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x5c4830
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x5c47e3
jmp 0x5c48d0
push 0
lea eax, [ebp - 0xc]
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 0x5c48ad
cmp dword [ebp - 0xc], 0
je 0x5c48ad
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x699730]
test byte [eax + edi + 0x28], 0x48
je 0x5c4887
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5c4872
mov byte [esi], dl
jmp 0x5c4883
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x699730]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x5c48d0
cmp byte [ebp - 1], 0xa
jne 0x5c4896
cmp esi, ebx
jne 0x5c4896
mov byte [esi], 0xa
jmp 0x5c48cf
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005bd489
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5c48d0
mov byte [esi], 0xd
jmp 0x5c48cf
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x699730]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5c48cc
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5c48d0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5c48d9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x699730]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5c491c
cmp word [esi], dx
jne 0x5c491c
or byte [edi + eax + 0x28], 4
jmp 0x5c4921
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x5c4a5a
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x5c4a3a
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x5c4963
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5c4999
cmp eax, edx
jae 0x5c49a5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
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 - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x5c493b
jmp 0x5c4a5a
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 0x5c4a36
cmp dword [ebp - 0x14], 0
je 0x5c4a36
mov eax, dword [ebx*4 + 0x699730]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5c4a0e
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x5c4a54
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x699730]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x699730]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x699730]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x5c4a57
pop ebx
cmp word [ebp - 4], bx
jne 0x5c4a1f
cmp esi, dword [ebp + 0xc]
jne 0x5c4a1f
mov word [esi], bx
jmp 0x5c4a57
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005bd489
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5c4a5a
push 0xd
jmp 0x5c4a53
mov ecx, dword [ebx*4 + 0x699730]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5c4a51
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5c4a5a
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x5c8030
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x6310fc
push 0x6310f4
push str.FlsAlloc
push 0x1e
call fcn.005c7e5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5c8064
push dword [ebp + 8]
mov ecx, esi
call dword [0x5e04b0]
call esi
jmp 0x5c806a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x5c80ae
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x63110c
push 0x631104
push str.FlsGetValue
push 0x20
call fcn.005c7e5a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5c80e5
push dword [ebp + 8]
mov ecx, esi
call dword [0x5e04b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x5cba31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005cb8a2
Function at 0x5cc8f7
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005cc873
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x5cca6f
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x5cca6f
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x5cca1e
jg 0x5cc950
test eax, eax
je 0x5cca14
push 1
push 0x1000
call fcn.005c7918
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x5cc976
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x5cca0b
push 0x8000
push ebx
call fcn.005bd72f
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x5cc9a2
jg 0x5cc99d
cmp ecx, 0x1000
jb 0x5cc9a2
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.005c59d9
add esp, 0x10
cmp eax, 0xffffffff
je 0x5cc9e7
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x5cc99d
jl 0x5cc9ce
test ecx, ecx
jne 0x5cc98f
push dword [ebp - 0xc]
push ebx
call fcn.005bd72f
push esi
call fcn.005c64dd
add esp, 0xc
xor edi, edi
jmp 0x5cca80
cmp byte [edi + 0x24], 0
je 0x5cc9fe
cmp dword [edi + 0x20], 5
jne 0x5cc9fe
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x5cca09
mov edi, dword [edi + 0x18]
jmp 0x5cca0b
xor edi, edi
push esi
call fcn.005c64dd
pop ecx
jmp 0x5cca80
test ecx, ecx
jg 0x5cc9e0
jl 0x5cca1e
test eax, eax
jae 0x5cc9e0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005bd489
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x5cca41
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5cc9e0
jmp 0x5cca78
push ebx
call fcn.005cc1e3
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x5cc9e0
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x5cca80
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x5cca7d
mov edi, dword [edi + 0x18]
jmp 0x5cca80
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005bd489
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5ce9d3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x693f30]
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 0x5cea1e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005ceb72
test al, al
jne 0x5cea18
sub edx, 2
cmp edx, edi
jne 0x5ce9fe
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5cea40
lea eax, [edi + 2]
cmp edx, eax
je 0x5cea40
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005ce91f
add esp, 0x10
jmp 0x5ceb3a
push esi
lea ecx, [ebp - 0x255]
call fcn.005ceb72
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 0x5cea83
push dword [ebp - 0x25c]
jmp 0x5cea30
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 0x5ceac0
cmp word [ebp - 0x226], 0
je 0x5ceae1
cmp word [ebp - 0x226], ax
jne 0x5ceac0
cmp word [ebp - 0x224], 0
je 0x5ceae1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005ce91f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5ceb2d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x5cea9a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5ceb15
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5ceb3a
push 0x5ce74f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.005ba440
add esp, 0x10
jmp 0x5ceb0a
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.005a1c7e
leave
ret