joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b0f70
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
add ebx, esi
push edi
mov edi, dword [ebp + 8]
movzx eax, cl
add edi, esi
and eax, 1
test esi, esi
je 0x4b0fae
movzx edx, byte [ebx - 1]
lea ebx, [ebx - 1]
movzx ecx, cl
lea edi, [edi - 1]
xor edx, ecx
mov cl, byte [ebp + 0x14]
add eax, edx
mov byte [edi], al
shr eax, 8
sub esi, 1
jne 0x4b0f90
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4bcf30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4bd034
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4bd034
call fcn.005414b2
mov dword [eax], 0
mov eax, dword [ebx]
test eax, eax
jne 0x4bd05e
mov edi, esi
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x4bcf66
sub edi, ecx
je 0x4bd049
cmp edi, 0x7ffffffc
ja 0x4bd049
push 0x244
call fcn.005414d5
add esp, 4
mov dword [ebx], eax
test eax, eax
jne 0x4bcfa9
call fcn.005414b2
mov dword [eax], 0xc
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0x244
push 0
push eax
call fcn.0053f280
add esp, 0xc
cmp byte [edi + esi - 1], 0x2a
je 0x4bd009
lea eax, [edi + 3]
call fcn.0053e940
mov edx, esp
mov ecx, edx
sub ecx, esi
nop
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x4bcfd0
mov al, byte [edx + edi - 1]
cmp al, 0x2f
je 0x4bcffe
cmp al, 0x5c
je 0x4bcffe
mov ax, word [0x5b1170]
mov word [edx + edi], ax
mov al, byte [0x5b1172]
mov byte [edx + edi + 2], al
jmp 0x4bd007
mov eax, 0x2a
mov word [edx + edi], ax
mov esi, edx
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebx]
mov dword [ecx + 0x140], eax
mov eax, dword [ebx]
cmp dword [eax + 0x140], 0xffffffff
jne 0x4bd06f
push eax
call fcn.005414d0
add esp, 4
mov dword [ebx], 0
call fcn.005414b2
mov dword [eax], 0x16
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.005414b2
mov dword [eax], 2
xor eax, eax
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
push eax
push dword [eax + 0x140]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x4bd03f
mov ecx, dword [ebx]
push 0xff
lea eax, [ecx + 0x2c]
push eax
lea eax, [ecx + 0x144]
push eax
call fcn.00551270
mov eax, dword [ebx]
add esp, 0xc
mov byte [eax + 0x243], 0
mov eax, dword [ebx]
add eax, 0x144
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4cfc70
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
push ebx
push esi
test eax, eax
je 0x4cfc8d
test byte [eax + 0x5c], 2
mov ebx, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
jne 0x4cfc92
mov ebx, 0x5ba1f0
mov esi, dword [ebp + 0x14]
test esi, esi
jle 0x4cfd65
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
inc edi
movzx eax, byte [edi - 1]
cmp esi, 3
jl 0x4cfcf3
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
and eax, 0x3f
movzx ecx, byte [ecx + ebx]
mov byte [edx + 2], cl
mov cl, byte [eax + ebx]
lea eax, [edx + 3]
jmp 0x4cfd3d
shl eax, 0x10
cmp esi, 2
jne 0x4cfd03
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
inc edx
and ecx, 0x3f
mov dword [ebp + 0xc], edx
movzx ecx, byte [ecx + ebx]
mov byte [edx], cl
cmp esi, 1
jne 0x4cfd29
mov al, 0x3d
jmp 0x4cfd32
shr eax, 6
and eax, 0x3f
mov al, byte [eax + ebx]
mov byte [edx + 1], al
mov cl, 0x3d
mov eax, dword [ebp + 0xc]
add eax, 2
mov byte [eax], cl
lea edx, [eax + 1]
mov ecx, dword [ebp - 4]
sub esi, 3
add ecx, 4
add edi, 3
mov dword [ebp - 4], ecx
test esi, esi
jg 0x4cfca5
pop edi
pop esi
mov byte [edx], 0
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop esi
pop ebx
mov byte [eax], cl
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x4d4b00
Capabilities:
Resolve function by parsing pe exports

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

Function at 0x4d4b10
Capabilities:
Hash data using sha224

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0xcbbb9d5d
mov dword [eax + 8], 0x367cd507
mov dword [eax + 0xc], 0x629a292a
mov dword [eax + 0x10], 0x3070dd17
mov dword [eax + 0x14], 0x9159015a
mov dword [eax + 0x18], 0xf70e5939
mov dword [eax + 0x1c], 0x152fecd8
mov dword [eax + 0x20], 0xffc00b31
mov dword [eax + 0x24], 0x67332667
mov dword [eax + 0x28], 0x68581511
mov dword [eax + 0x2c], 0x8eb44a87
mov dword [eax + 0x30], 0x64f98fa7
mov dword [eax + 0x34], 0xdb0c2e0d
mov dword [eax + 0x38], 0xbefa4fa4
mov dword [eax + 0x3c], 0x47b5481d
mov dword [eax + 0x40], 0
mov dword [eax + 0x44], 0
mov dword [eax + 0x48], 0
mov dword [eax + 0x4c], 0
mov dword [eax + 0xd0], 0
mov dword [eax + 0xd4], 0x30
mov eax, 1
pop ebp
ret
Function at 0x4db020
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0x80
mov esi, 0x400
mov edx, edi
mov byte [ebx], 0
cmp dword [ebp + 0xc], edx
mov ecx, esi
cmovle edx, dword [ebp + 0xc]
test eax, eax
cmovg ecx, eax
cmp ecx, esi
cmovg ecx, esi
mov dword [ebp + 0xc], ecx
test edx, edx
jle 0x4db071
sub dword [ebp + 0x10], ebx
mov ecx, ebx
mov ebx, dword [ebp + 0x10]
mov esi, edx
nop
mov al, byte [ebx + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub esi, 1
jne 0x4db060
mov ebx, dword [ebp + 8]
movzx esi, byte [edx + ebx - 1]
cmp edx, edi
jge 0x4db09c
mov ecx, ebx
nop dword [eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
add eax, esi
movzx eax, al
mov al, byte [eax + 0x5bcb10]
mov byte [edx + ebx], al
inc edx
movzx esi, al
cmp edx, edi
jl 0x4db080
mov ecx, dword [ebp + 0xc]
mov edx, 0xff
lea eax, [ecx + 7]
neg ecx
sar eax, 3
and ecx, 7
sub edi, eax
mov dword [ebp + 8], eax
movzx eax, byte [edi + ebx]
lea esi, [edi + ebx]
sar edx, cl
and edx, eax
mov al, byte [edx + 0x5bcb10]
movzx ecx, al
mov byte [esi], al
test edi, edi
je 0x4db0eb
mov edx, dword [ebp + 8]
movzx eax, byte [esi + edx - 1]
lea esi, [esi - 1]
xor eax, ecx
mov al, byte [eax + 0x5bcb10]
movzx ecx, al
mov byte [esi], al
sub edi, 1
jne 0x4db0d1
lea esi, [ebx + 0xfc]
mov edi, 0x40
lea edx, [ebx + 0x7e]
nop dword [eax]
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 0x4db100
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4dc760
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004dc980
add esp, 0xc
test eax, eax
js 0x4dc972
mov eax, dword [esi + 0xf0]
push ebx
push edi
xor ebx, ebx
lea edi, [eax*4]
test edi, edi
jle 0x4dc7e9
mov eax, dword [ebp + 0x10]
lea esi, [esi + edi*4]
add esi, 8
add eax, 8
nop
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x4dc7a0
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0xf0]
mov ebx, 1
cmp eax, ebx
jle 0x4dc96e
lea edi, [esi + 4]
nop dword [eax]
movzx eax, byte [edi + 0xd]
lea edi, [edi + 0x10]
mov edx, dword [edi - 4]
inc ebx
movzx ecx, byte [eax*4 + 0x5bd010]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x5be410]
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5bdc10]
movzx eax, byte [edi - 2]
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5be010]
movzx eax, dl
mov edx, dword [edi]
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5be810]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi - 4], ecx
movzx ecx, byte [eax*4 + 0x5bd010]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5be010]
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5be410]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5bdc10]
movzx eax, dl
mov edx, dword [edi + 4]
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5be810]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi], ecx
movzx ecx, byte [eax*4 + 0x5bd010]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5be010]
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5be410]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5bdc10]
movzx eax, dl
mov edx, dword [edi + 8]
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5be810]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [edi + 4], ecx
movzx ecx, byte [eax*4 + 0x5bd010]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x5be010]
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5be410]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5bdc10]
movzx eax, dl
movzx eax, byte [eax*4 + 0x5bd010]
xor ecx, dword [eax*4 + 0x5be810]
mov dword [edi + 8], ecx
cmp ebx, dword [esi + 0xf0]
jl 0x4dc800
pop edi
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x4decf0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [eax + 0xf]
mov ecx, eax
and eax, 0xf
add eax, eax
and ecx, 0xfffffff0
push edi
mov ebx, dword [esi + eax*8 + 8]
mov edi, dword [esi + eax*8]
mov edx, dword [esi + eax*8 + 4]
mov eax, dword [esi + eax*8 + 0xc]
add esi, ecx
mov ecx, ebx
mov dword [ebp - 0xc], ebx
and ecx, 0xf
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x5bede8]
mov dword [ebp - 4], ecx
mov ecx, edi
shrd ecx, edx, 4
shl edi, 0x1c
xor ebx, ecx
shr edx, 4
mov ecx, dword [ebp - 4]
xor ebx, dword [esi]
xor ecx, edx
xor ecx, dword [esi + 4]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
shrd ecx, eax, 4
mov dword [ebp - 8], ebx
xor ecx, dword [esi + 8]
shr eax, 4
or eax, edi
mov dword [ebp - 0xc], ecx
xor eax, dword [esi + 0xc]
mov esi, 0xe
mov dword [ebp - 0x14], esi
nop dword [eax]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [esi + ecx]
xor esi, esi
mov edi, ecx
and ecx, 0xf
shl ecx, 4
and edi, 0xfffffff0
add edx, ecx
mov ecx, dword [ebp - 0xc]
shrd dword [ebp - 0xc], eax, 4
and ecx, 0xf
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 4]
shr eax, 4
mov ebx, dword [ecx*4 + 0x5bede8]
mov ecx, dword [ebp - 8]
shrd ecx, edx, 4
shr edx, 4
xor esi, ecx
mov ecx, dword [ebp - 8]
xor ebx, edx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x10]
shl ecx, 0x1c
or ecx, eax
mov dword [ebp - 8], 0
xor esi, dword [edx]
xor ebx, dword [edx + 4]
xor ecx, dword [edx + 0xc]
mov dword [ebp - 0x10], esi
xor esi, esi
or esi, dword [ebp - 0xc]
xor esi, dword [edx + 8]
mov edx, dword [ebp + 0xc]
mov eax, esi
and eax, 0xf
shrd esi, ecx, 4
shr ecx, 4
mov eax, dword [eax*4 + 0x5bede8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x10]
shrd eax, ebx, 4
xor dword [ebp - 8], eax
mov eax, dword [ebp - 4]
shr ebx, 4
xor eax, ebx
mov ebx, dword [ebp - 8]
xor eax, dword [edi + edx + 4]
xor ebx, dword [edi + edx]
xor edx, edx
mov dword [ebp - 4], eax
or edx, esi
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
shl eax, 0x1c
or eax, ecx
mov dword [ebp - 8], ebx
mov ecx, dword [ebp + 0xc]
xor edx, dword [edi + ecx + 8]
xor eax, dword [edi + ecx + 0xc]
sub esi, 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], esi
jns 0x4ded70
mov esi, dword [ebp + 8]
mov ecx, dword [ebp - 4]
bswap ebx
bswap ecx
bswap edx
bswap eax
pop edi
mov dword [esi + 4], ebx
mov dword [esi], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e58e0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1048
push 0x5c0f18
push esi
call fcn.0053f3e0
mov ebx, dword [ebp + 0x10]
mov edi, 0x48
add esp, 0xc
mov dword [ebp + 8], 0
cmp dword [ebp + 0xc], edi
mov eax, ebx
cmovle edi, dword [ebp + 0xc]
add edi, ebx
nop dword [eax]
movzx edx, byte [eax]
inc eax
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
cmp eax, edi
cmovae eax, ebx
shl edx, 8
movzx ecx, byte [eax]
inc eax
or edx, ecx
mov ecx, dword [ebp + 8]
cmp eax, edi
cmovae eax, ebx
xor dword [esi + ecx*4], edx
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, 0x12
jl 0x4e5920
mov dword [ebp - 8], 0
xor edi, edi
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push esi
push eax
call fcn.004e6360
mov eax, dword [ebp - 8]
add esp, 8
mov dword [esi + edi*4], eax
mov eax, dword [ebp - 4]
mov dword [esi + edi*4 + 4], eax
add edi, 2
cmp edi, 0x12
jl 0x4e5972
xor edi, edi
lea eax, [ebp - 8]
push esi
push eax
call fcn.004e6360
mov eax, dword [ebp - 8]
add esp, 8
mov dword [esi + edi*4 + 0x48], eax
mov eax, dword [ebp - 4]
mov dword [esi + edi*4 + 0x4c], eax
add edi, 2
cmp edi, 0x400
jl 0x4e5996
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53c260
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov ebx, dword [esi]
cmp eax, 0xffffffff
jne 0x53c32d
mov ecx, dword [ebx]
lea edx, [ebp - 0x108]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x53c287
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x53c2a0
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x2f
je 0x53c2d3
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53c2c0
mov ax, word [0x56b90c]
mov word [edi], ax
lea edi, [ebp - 0x108]
dec edi
nop word [eax + eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x53c2e0
mov ax, word [0x570d88]
mov word [edi], ax
lea eax, [ebp - 0x108]
push eax
push 0
call fcn.0053d960
add esp, 8
lea ecx, [ebp - 0x358]
push ecx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push eax
call fcn.0053b370
add esp, 4
mov dword [esi + 8], eax
cmp eax, 0xffffffff
jne 0x53c382
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x358]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push eax
call fcn.0053b370
add esp, 4
test eax, eax
jne 0x53c382
mov eax, dword fs:[0x2c]
mov esi, dword [eax]
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53c35f
call fcn.005414b2
cmp dword [eax], 0x12
jne 0x53c379
mov eax, dword [esi + 0x28f0]
test eax, eax
jne 0x53c373
call fcn.005414b2
mov dword [eax], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
test byte [ebp - 0x358], 0x10
mov dword [ebx + 8], 0
sete al
mov dword [ebx + 0xc], 0
lea eax, [eax*4 + 4]
mov byte [ebx + 0x120], al
mov eax, 0x120
mov word [ebx + 0x10], ax
lea eax, [ebp - 0x32c]
push eax
push 0
call fcn.0053d670
push 0x104
lea esi, [ebx + 0x14]
push dword [eax]
push esi
call fcn.0053d8c0
add esp, 0x14
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x53c3d4
mov eax, dword fs:[0x2c]
sub esi, ecx
mov word [ebx + 0x12], si
mov eax, dword [eax]
mov eax, dword [eax + 0x28f0]
test eax, eax
jne 0x53c3f8
call fcn.005414b2
pop edi
mov dword [eax], 0
lea eax, [ebx + 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x53d520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword fs:[0x2c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, esi
mov edx, dword [eax]
add edx, 0x2cb4
push edi
mov dword [ebp - 4], edx
lea ecx, [ebx + 1]
xor edi, edi
mov al, byte [ebx]
inc ebx
test al, al
jne 0x53d544
push dword [edx]
sub ebx, ecx
call fcn.005414d0
lea eax, [ebx*2 + 2]
push eax
call fcn.005414d5
mov ebx, eax
add esp, 8
mov eax, dword [ebp - 4]
mov dword [ebp + 8], ebx
mov dword [eax], ebx
mov cl, byte [esi]
test cl, cl
je 0x53d58f
lea edx, [esi + 1]
cmp cl, 0xc0
jae 0x53d5ae
movzx eax, cl
mov word [ebx + edi*2], ax
inc edi
mov esi, edx
mov cl, byte [esi]
test cl, cl
jne 0x53d574
mov eax, dword [ebp - 4]
xor ecx, ecx
mov word [ebx + edi*2], cx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp cl, 0xe0
jae 0x53d5fc
mov dl, byte [edx]
lea eax, [edi + 1]
mov dword [ebp - 8], eax
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53d5e9
and cl, 0x1f
and dl, 0x3f
movzx ecx, cl
shl cx, 6
movzx eax, dl
or cx, ax
movzx eax, cx
mov ecx, 2
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53d586
movzx eax, cl
mov ecx, 1
mov word [ebx + edi*2], ax
add esi, ecx
mov edi, dword [ebp - 8]
jmp 0x53d586
cmp cl, 0xf0
jae 0x53d584
mov dl, byte [edx]
mov al, dl
and al, 0xc0
cmp al, 0x80
jne 0x53d64d
mov bl, byte [esi + 2]
mov al, bl
and al, 0xc0
cmp al, 0x80
jne 0x53d64a
and dl, 0x3f
movzx eax, cl
shl ax, 6
and bl, 0x3f
movzx edx, dl
or dx, ax
movzx eax, bl
mov ebx, dword [ebp + 8]
shl dx, 6
or dx, ax
mov eax, 3
movzx ecx, dx
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53d586
mov ebx, dword [ebp + 8]
movzx ecx, cl
mov eax, 1
add esi, eax
mov word [ebx + edi*2], cx
inc edi
jmp 0x53d586

Function at 0x5412b9
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5e0854
push 0x5e084c
push 0x5e0854
push 0
call fcn.00541232
mov esi, eax
add esp, 0x10
test esi, esi
je 0x5412eb
push dword [ebp + 8]
mov ecx, esi
call fcn.0053efb6
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x54132d
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x5e0884
push 0x5e087c
push 0x5e0884
push 3
call fcn.00541232
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x541361
mov ecx, esi
call fcn.0053efb6
call esi
jmp 0x541367
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x557b58
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005579d7

Function at 0x559f1a
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00559e1f

Function at 0x55aa3f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0055a3ad
Function at 0x4014d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4014e9
jmp 0x4014f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x402044
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x402068
mov word [ebp - 0x408], 0
jmp 0x40208b
push 0
call fcn.00402024
add esp, 4
cmp eax, 3
jne 0x402082
mov word [ebp - 0x408], 1
jmp 0x40208b
mov word [ebp - 0x408], 2
mov ecx, dword [ebp - 0x408]
and ecx, 0xffff
mov dword [ebp - 0x40c], ecx
cmp dword [ebp - 0x40c], 0
je 0x4020bd
cmp dword [ebp - 0x40c], 2
je 0x4020b1
jmp 0x4020cc
movsx eax, word [ebp - 0x408]
jmp 0x40216b
mov dword [ebp - 0x404], 0
jmp 0x402165
push 0x400
lea edx, [ebp - 0x400]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401c46
add esp, 0xc
lea ecx, [ebp - 0x400]
push ecx
call fcn.00401923
add esp, 4
lea edx, [ebp - 0x400]
push edx
call fcn.00406c90
add esp, 4
cmp eax, 3
jbe 0x40215b
lea eax, [ebp - 0x400]
push eax
call fcn.00402044
add esp, 4
mov dword [ebp - 0x404], eax
mov ecx, dword [ebp - 0x404]
mov dword [ebp - 0x410], ecx
cmp dword [ebp - 0x410], 0
je 0x402133
jmp 0x402159
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40214f
mov dword [ebp - 0x404], 0
jmp 0x402159
mov dword [ebp - 0x404], 3
jmp 0x402165
mov dword [ebp - 0x404], 2
mov eax, dword [ebp - 0x404]
mov esp, ebp
pop ebp
ret

Function at 0x40216f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esp, ebp
pop ebp
ret

Function at 0x402202
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], 0xffffffff
push 0x1e
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.00406c10
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x10], 0x210
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x402259
cmp dword [ebp - 0xe], 0
jne 0x402259
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov esp, ebp
pop ebp
ret