joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4335d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [edx + 8]
mov edi, dword [edx + 4]
mov esi, ecx
mov cl, 1
lea ebx, [eax + 1]
cmp ebx, edi
mov dword [edx + 8], ebx
jae 0x43360d
mov ecx, dword [edx]
movzx ecx, byte [ecx + ebx]
cmp ecx, 0x2b
je 0x433603
cmp ecx, 0x2d
mov cl, 1
jne 0x43360d
xor ecx, ecx
jmp 0x433605
mov cl, 1
add eax, 2
mov ebx, eax
mov dword [edx + 8], eax
cmp ebx, edi
jae 0x4337ae
mov eax, dword [edx]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esi
mov esi, edx
lea edx, [ebx + 1]
mov dword [ebp - 0x14], esi
movzx ecx, byte [eax + ebx]
mov dword [esi + 8], edx
add cl, 0xd0
cmp cl, 0xa
jae 0x4337cc
mov esi, dword [ebp + 0xc]
cmp edx, edi
mov dword [ebp - 0x28], esi
movzx esi, cl
jae 0x4336ae
mov edx, dword [ebp - 0x14]
neg edi
add ebx, 2
jmp 0x433663
movzx ecx, cl
lea esi, [esi + esi*4]
lea esi, [ecx + esi*2]
lea ecx, [edi + ebx + 1]
inc ebx
cmp ecx, 1
je 0x4336b1
movzx ecx, byte [eax + ebx - 1]
add cl, 0xd0
cmp cl, 0xa
jae 0x4336b1
cmp esi, 0xccccccb
mov dword [edx + 8], ebx
jle 0x433650
cmp esi, 0xccccccc
jne 0x433688
cmp cl, 7
jbe 0x433650
mov ecx, dword [ebp - 0x28]
xor eax, eax
movzx esi, byte [ebp - 0x18]
movzx edi, byte [ebp + 8]
or ecx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
sete al
push esi
push eax
push edi
call fcn.00433ff0
add esp, 0x28
jmp 0x43379d
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x14]
cmp byte [ebp - 0x18], 0
je 0x4336c9
lea eax, [edi + esi]
sar eax, 0x1f
add eax, 0x80000000
add edi, esi
jmp 0x4336d7
xor eax, eax
cmp edi, esi
setns al
add eax, 0x7fffffff
sub edi, esi
cmovo edi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x10]
movd xmm0, eax
movd xmm1, ecx
mov eax, edi
punpckldq xmm1, xmm0
neg eax
punpckldq xmm1, xmmword [0x5a4b50]
cmovs eax, edi
cmp eax, 0x135
subpd xmm1, xmmword [0x5a4b60]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addsd xmm0, xmm1
jb 0x433758
movsd xmm2, qword [0x5a4b70]
xorpd xmm1, xmm1
nop word cs:[eax + eax]
nop
ucomisd xmm0, xmm1
jne 0x433738
jnp 0x433783
test edi, edi
jns 0x4337ec
divsd xmm0, xmm2
add edi, 0x134
mov eax, edi
neg eax
cmovs eax, edi
cmp eax, 0x134
ja 0x433730
mov ecx, dword [0x607494]
test edi, edi
movsd xmm1, qword [ecx + eax*8]
js 0x4337a2
mulsd xmm0, xmm1
ucomisd xmm0, qword [0x5a4b78]
jae 0x4337ec
movsd xmm1, qword [0x5a4b80]
ucomisd xmm1, xmm0
jae 0x4337ec
cmp byte [ebp + 8], 0
jne 0x433791
xorpd xmm0, xmmword [0x5a4b90]
movsd qword [esi + 8], xmm0
xor eax, eax
mov dword [esi], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
divsd xmm0, xmm1
cmp byte [ebp + 8], 0
je 0x433789
jmp 0x433791
lea eax, [ebp - 0x24]
mov ecx, edx
mov dword [ebp - 0x24], 5
mov edx, eax
call fcn.00434080
mov dword [esi + 4], eax
mov dword [esi], 1
jmp 0x43379a
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0xd
call fcn.00434080
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], 1
jmp 0x43379a
lea eax, [ebp - 0x24]
mov ecx, edx
mov dword [ebp - 0x24], 0xe
mov edx, eax
call fcn.00434080
mov dword [esi + 4], eax
mov eax, 1
jmp 0x433798
Function at 0x4c9480
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x18
mov eax, dword [0x59907c]
test eax, eax
je 0x4c94ab
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x4c94c3
cmp dword [eax + 4], 0
je 0x4c94c3
add eax, 8
add esp, 0x18
pop esi
pop ebp
ret
push 0x59907c
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x4c949c
mov eax, dword [0x59907c]
test eax, eax
je 0x4c9574
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x4c9590
mov esi, eax
test eax, eax
jne 0x4c953b
mov eax, dword [0x6074b4]
mov esi, dword [0x6074a0]
movzx eax, byte [eax]
mov eax, dword [esi]
test eax, eax
jne 0x4c9509
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x4c95a7
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x4c95a7
mov dword [eax], 0x59907c
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x59907c]
test eax, eax
je 0x4c9598
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov eax, dword [ebp + 8]
test eax, eax
je 0x4c9550
mov ecx, dword [eax + 4]
cmp dword [eax], 0
mov dword [eax], 0
jne 0x4c9561
mov ecx, 1
lock xadd dword [0x599078], ecx
test ecx, ecx
je 0x4c95b5
mov dword [esi + 4], 1
lea eax, [esi + 8]
mov dword [esi + 8], ecx
add esp, 0x18
pop esi
pop ebp
ret
push 0x59907c
call fcn.00541e40
add esp, 4
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x4c94e0
xor eax, eax
add esp, 0x18
pop esi
pop ebp
ret
push 0x59907c
call fcn.00541e40
add esp, 4
jmp 0x4c9534
push 0xc
push 4
call fcn.0041a8c0
add esp, 8
ud2
mov dword [ebp - 0x1c], 0x5b1738
mov dword [ebp - 0x18], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0x5ac720
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x1c]
push 0x5b1740
push eax
call fcn.00425150
add esp, 8
ud2
Function at 0x4e6490
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
test esi, esi
je 0x4e64e9
cmp dword [eax], 0
jne 0x4e6522
mov ebx, dword [edx + 8]
xor eax, eax
mov dword [edx + 8], 0
test ebx, ebx
je 0x4e6522
mov edi, dword [0x6074a0]
add esi, 4
jmp 0x4e64d6
add esi, 0x10
dec ebx
je 0x4e651d
cmp dword [esi], 0
je 0x4e64d0
push dword [esi - 4]
push 0
push dword [edi]
call sub.KERNEL32.dll_HeapFree
jmp 0x4e64d0
mov ebx, dword [eax]
test ebx, ebx
je 0x4e6520
mov esi, dword [eax + 8]
test esi, esi
je 0x4e6520
mov ecx, dword [ebx + 8]
cmp esi, 1
jne 0x4e652a
test ecx, ecx
je 0x4e6698
add ebx, 0xc
shl esi, 4
nop dword [eax]
mov byte [ebx], 0
add ebx, 0x10
add esi, 0xfffffff0
jne 0x4e6510
jmp 0x4e6520
mov edx, dword [ebp + 0xc]
xor eax, eax
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
lea edx, [esi + 0xfffffff]
xor edi, edi
mov eax, edx
and eax, 0xfffffff
cmp eax, 8
jb 0x4e6673
movd xmm0, ecx
and edx, 7
mov edi, eax
pshufd xmm1, xmm0, 0
movdqa xmm0, xmmword [0x5b1b00]
sub edi, edx
mov dword [ebp - 0x10], edx
lea edx, [ebx + 0x88]
mov ecx, edi
movdqa xmm2, xmm1
nop dword [eax]
movd xmm3, dword [edx - 0x40]
movd xmm5, dword [edx - 0x50]
movd xmm4, dword [edx - 0x70]
movd xmm6, dword [edx - 0x20]
movdqa xmm7, xmm1
pxor xmm1, xmm0
punpckldq xmm5, xmm3
movd xmm3, dword [edx - 0x60]
punpckldq xmm4, xmm3
movd xmm3, dword [edx]
punpcklqdq xmm4, xmm5
movd xmm5, dword [edx - 0x10]
punpckldq xmm5, xmm3
movd xmm3, dword [edx - 0x30]
sub edx, 0xffffff80
add ecx, 0xfffffff8
punpckldq xmm3, xmm6
movdqa xmm6, xmm4
pxor xmm6, xmm0
punpcklqdq xmm3, xmm5
pcmpgtd xmm6, xmm1
pand xmm7, xmm6
pandn xmm6, xmm4
movdqa xmm4, xmm2
pxor xmm2, xmm0
movdqa xmm1, xmm6
movdqa xmm6, xmm3
pxor xmm6, xmm0
por xmm1, xmm7
pcmpgtd xmm6, xmm2
pand xmm4, xmm6
pandn xmm6, xmm3
movdqa xmm2, xmm6
por xmm2, xmm4
jne 0x4e6570
movdqa xmm4, xmm1
movdqa xmm3, xmm2
cmp dword [ebp - 0x10], 0
pxor xmm4, xmm0
pxor xmm3, xmm0
pcmpgtd xmm3, xmm4
pand xmm1, xmm3
pandn xmm3, xmm2
por xmm3, xmm1
pshufd xmm2, xmm3, 0xee
movdqa xmm4, xmm3
movdqa xmm1, xmm2
pxor xmm4, xmm0
pxor xmm1, xmm0
pcmpgtd xmm1, xmm4
pand xmm3, xmm1
pandn xmm1, xmm2
por xmm1, xmm3
movdqa xmm3, xmm1
pshufd xmm2, xmm1, 0x55
pxor xmm3, xmm0
pxor xmm0, xmm2
pcmpgtd xmm0, xmm3
pand xmm1, xmm0
pandn xmm0, xmm2
por xmm0, xmm1
movd ecx, xmm0
je 0x4e668d
sub eax, edi
shl edi, 4
lea edx, [edi + ebx + 0x18]
nop dword [eax]
mov edi, dword [edx]
cmp ecx, edi
cmovae ecx, edi
add edx, 0x10
dec eax
jne 0x4e6680
mov edx, dword [ebp + 0xc]
test ecx, ecx
jne 0x4e6506
lea edi, [ebx + 4]
jmp 0x4e66a6
add edi, 0x10
dec esi
je 0x4e66be
cmp dword [edi], 0
je 0x4e66a0
push dword [edi - 4]
push 0
mov eax, dword [0x6074a0]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
jmp 0x4e66a0
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0
je 0x4e66d6
push ebx
push 0
mov eax, dword [0x6074a0]
push dword [eax]
call sub.KERNEL32.dll_HeapFree
mov edx, dword [ebp + 0xc]
xor eax, eax
mov dword [esi], 0
jmp 0x4e6522
Function at 0x4f67b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 8]
mov ebx, ecx
test esi, esi
je 0x4f68e5
js 0x4f6933
mov eax, dword [0x6074b4]
mov edi, edx
lea ecx, [esi*8]
movzx eax, byte [eax]
mov eax, dword [0x6074a0]
mov eax, dword [eax]
test eax, eax
jne 0x4f6801
mov esi, ecx
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x4f691c
mov ecx, dword [0x6074a0]
mov dword [ecx], eax
mov ecx, esi
mov esi, ecx
push ecx
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x4f691c
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp esi, 0x10
jb 0x4f68bb
lea edx, [eax + esi*8 - 8]
cmp edx, eax
jb 0x4f68bb
lea edx, [eax + esi*8 - 4]
mov esi, eax
add esi, 4
cmp edx, esi
jb 0x4f68bb
mov esi, dword [ebp + 8]
lea edx, [esi - 1]
cmp edx, 0x1fffffff
ja 0x4f68bb
movdqa xmm0, xmmword [0x5b1cc0]
mov ecx, esi
xor edx, edx
and ecx, 0xfffffffe
nop dword [eax]
movdqu xmm1, xmmword [edi + edx*8]
pshufd xmm3, xmm1, 0xed
pshufd xmm2, xmm1, 0xe8
movdqa xmm5, xmm3
movdqa xmm1, xmm2
movdqa xmm6, xmm2
pxor xmm5, xmm0
pxor xmm1, xmm0
movdqa xmm4, xmm5
pcmpgtd xmm4, xmm1
pcmpgtd xmm1, xmm5
pand xmm6, xmm4
pandn xmm4, xmm3
pand xmm2, xmm1
pandn xmm1, xmm3
por xmm4, xmm6
por xmm1, xmm2
punpckldq xmm4, xmm1
movdqu xmmword [eax + edx*8], xmm4
add edx, 2
cmp ecx, edx
jne 0x4f6860
cmp ecx, esi
je 0x4f68ea
mov dword [ebp - 0x20], ebx
nop
mov esi, dword [edi + ecx*8 + 4]
mov edx, dword [edi + ecx*8]
cmp edx, esi
mov ebx, esi
cmovb ebx, edx
cmova esi, edx
mov dword [eax + ecx*8], ebx
mov dword [eax + ecx*8 + 4], esi
mov esi, dword [ebp + 8]
inc ecx
cmp esi, ecx
jne 0x4f68c0
mov ebx, dword [ebp - 0x20]
jmp 0x4f68ea
mov eax, 4
test esi, esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
sete byte [ebp - 0x10]
lea ecx, [ebp - 0x1c]
call fcn.004e32b0
movsd xmm0, qword [ebp - 0x1c]
movsd xmm1, qword [ebp - 0x14]
movsd qword [ebx + 8], xmm1
movsd qword [ebx], xmm0
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 8]
not eax
shr eax, 0x1a
and eax, 4
push esi
push eax
call fcn.0041a8c0
add esp, 8
ud2
call fcn.0041a880
ud2
Function at 0x51b6b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov esi, dword [edx + 8]
mov dword [esp], ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp dword [esi], 0
je 0x51b6d4
mov edi, dword [esi + 0xc]
mov esi, dword [esi + 4]
jmp 0x51b6e3
mov edi, dword [esi + 4]
cmp edi, 6
jae 0x51b84f
add esi, 8
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
je 0x51b7b8
dec edi
add esi, 0x10
nop word cs:[eax + eax]
nop dword [eax]
movsd xmm0, qword [esi - 0x10]
movsd xmm1, qword [esi - 8]
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
lea ebx, [esp + 0x38]
lea edx, [esp + 0xc]
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0xc]
push ebx
push dword [eax + 0x20]
call fcn.00517cb0
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, eax
xor edx, 0x2e
or edx, ecx
je 0x51b7de
lea ebx, [esp + 0x32]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov ebx, dword [ebx]
mov dword [esp + 4], ebx
lea ebx, [esp + 0x32]
movzx ebx, word [ebx + 4]
mov word [esp + 8], bx
movzx ebx, word [esp + 0x30]
cmp bx, word [ebp + 8]
mov ebx, dword [esp + 0x2c]
je 0x51b821
add esi, 0x10
add edi, 0xffffffff
jb 0x51b710
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 0
jne 0x51b7cc
mov ecx, dword [esp + 0xc]
sub ecx, dword [eax]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], ecx
jmp 0x51b7cc
cmp dword [edx + 0x14], 0
jne 0x51b7cc
mov dword [edx + 0x14], 1
mov dword [edx + 0x18], 0
mov eax, dword [esp]
mov dword [eax + 4], 0
mov dword [eax], 0x2e
jmp 0x51b847
lea edx, [esp + 0x32]
mov ecx, dword [esp]
mov edi, dword [esp + 0x2c]
mov esi, dword [edx]
movzx eax, word [edx + 4]
movzx edx, word [esp + 0x30]
mov dword [esp + 4], esi
mov dword [ecx + 0x12], esi
mov esi, dword [esp + 0x28]
mov word [ecx + 0x16], ax
mov word [esp + 8], ax
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], esi
mov word [ecx + 0x10], dx
mov dword [ecx + 4], 0
mov dword [ecx], 0x2f
jmp 0x51b847
movzx esi, word [esp + 8]
mov edi, dword [esp]
mov word [edi + 0x16], si
mov esi, dword [esp + 4]
mov dword [edi + 0x12], esi
mov dword [edi + 4], ecx
movzx ecx, word [ebp + 8]
mov dword [edi], eax
mov dword [edi + 8], edx
mov dword [edi + 0xc], ebx
mov word [edi + 0x10], cx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5a9444
push 5
push edi
call fcn.004287f0
add esp, 0xc
ud2

Function at 0x51b870
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x300
mov edi, dword [ebp + 8]
call fcn.0051b887
Function at 0x52a100
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x52a224
mov dword [esp], ecx
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
movzx ecx, byte [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ch, dl
and ch, 0x3f
cmp ch, 0xd
je 0x52a245
and edx, 0x3f
cmp edx, 0xe
je 0x52a254
cmp edx, 0xf
jne 0x52a233
mov eax, dword [edi + 0x68]
test eax, eax
je 0x52a233
mov ecx, dword [ebx + 0x18]
test ecx, ecx
je 0x52a2b6
mov edx, dword [ebx + 0x14]
mov dword [esp + 0x28], ecx
mov dword [esp + 0xc], ecx
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 8], edx
mov edx, ecx
mov ecx, dword [esp + 8]
jmp 0x52a188
mov dword [esp + 0xc], edx
sub edx, edi
jbe 0x52a1c7
mov esi, dword [ebp + 0xc]
shr edx, 1
xor ebx, ebx
add edx, edi
imul eax, edx, 0x110
cmp dword [ecx + eax + 0x108], esi
mov eax, 0xff
setne bl
cmovb ebx, eax
cmp bl, 1
je 0x52a180
movzx eax, bl
cmp eax, 0xff
jne 0x52a2b6
inc edx
mov edi, edx
mov edx, dword [esp + 0xc]
sub edx, edi
ja 0x52a188
test edi, edi
je 0x52a2b6
mov eax, dword [esp + 0x28]
dec edi
cmp edi, eax
jae 0x52a32b
mov edx, dword [esp + 8]
imul ecx, edi, 0x110
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x18]
cmp dword [edx + ecx + 0xa8], 0
jne 0x52a209
add edx, ecx
mov ecx, dword [edx + 0xac]
cmp ecx, eax
jbe 0x52a2d8
mov edx, dword [esp]
movzx eax, byte [esp + 0x12]
movzx esi, word [esp + 0x10]
mov byte [esp + 6], al
mov word [esp + 4], si
jmp 0x52a2b9
mov dword [ecx + 4], 0
mov byte [ecx], 0x4b
jmp 0x52a2d0
mov eax, dword [esp]
mov dword [eax + 4], 0
mov byte [eax], 0x4b
jmp 0x52a2d0
movzx edx, cl
mov ecx, dword [esp]
push esi
push edi
push ebx
push eax
push dword [ebp + 0x14]
jmp 0x52a282
mov edx, ebx
movzx ebx, cl
lea ecx, [esp + 0x10]
push ebx
push eax
call fcn.00521ee0
add esp, 8
movzx eax, byte [esp + 0x10]
cmp al, 0x4b
jne 0x52a28c
mov ecx, dword [esp]
mov edx, ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.005289f0
add esp, 0x14
jmp 0x52a2d0
movzx ecx, byte [esp + 0x13]
mov edx, dword [esp]
movzx edi, word [esp + 0x11]
mov esi, dword [esp + 0x14]
movsd xmm0, qword [esp + 0x18]
mov byte [edx + 3], cl
mov word [edx + 1], di
mov byte [edx], al
mov dword [edx + 4], esi
movsd qword [edx + 8], xmm0
jmp 0x52a2d0
mov edx, dword [esp]
movzx eax, byte [esp + 6]
movzx esi, word [esp + 4]
mov byte [edx + 3], al
mov word [edx + 1], si
mov byte [edx], 0x37
mov dword [edx + 4], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub eax, ecx
xor ecx, ecx
cmp byte [edx + 0xc9], 8
mov dword [esp + 8], edx
mov edi, eax
sete cl
shl ecx, 3
add ecx, dword [edx + 0xcc]
mov edx, dword [edx + 0xc4]
sub ecx, edx
add ecx, 4
sub edi, ecx
jb 0x52a324
cmp edi, edx
jae 0x52a324
mov edi, dword [esp + 0x24]
mov ecx, dword [esp]
mov edx, 1
add edi, 8
push esi
push edi
push ebx
push eax
push dword [esp + 0x18]
jmp 0x52a282
mov ecx, eax
jmp 0x52a209
push 0x5ff224
push eax
push edi
call fcn.00425270
add esp, 0xc
ud2
Function at 0x52bc40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x42c
mov ebx, 0x200
xor edi, edi
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 2
mov dword [ebp - 0x1c], 0
cmp ebx, 0x201
jae 0x52bcb0
jmp 0x52bc91
mov edi, dword [ebp - 0x10]
jbe 0x52bd39
cmp ebx, 0x201
jae 0x52bcb0
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x18], 0x200
lea esi, [ebp - 0x438]
mov edi, ebx
jmp 0x52bce1
mov eax, dword [ebp - 0x1c]
sub ebx, edi
sub eax, edi
cmp eax, ebx
jae 0x52bcd2
mov edx, edi
lea ecx, [ebp - 0x28]
push ebx
call fcn.005166d0
add esp, 4
mov eax, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
push 0
call sub.KERNEL32.dll_SetLastError
push esi
push edi
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebx, eax
test eax, eax
jne 0x52bd02
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x52bd86
cmp ebx, edi
jne 0x52bc80
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x52bda1
lea ebx, [edi + edi]
test edi, edi
mov edi, dword [ebp - 0x10]
mov eax, 0xffffffff
cmovs ebx, eax
cmp ebx, 0x201
jb 0x52bc91
jmp 0x52bcb0
mov eax, dword [ebp - 0x18]
cmp ebx, eax
ja 0x52bdb7
lea eax, [ebp - 0x38]
push ebx
push esi
push eax
call fcn.0052f440
add esp, 0xc
movsd xmm0, qword [ebp - 0x38]
mov eax, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x30]
movsd qword [eax + 8], xmm1
movsd qword [eax], xmm0
test edi, edi
je 0x52bd78
push dword [ebp - 0x14]
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
mov eax, dword [ebp + 8]
add esp, 0x42c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x10]
mov byte [ecx], 0
mov dword [ecx + 4], eax
mov byte [ecx + 0xc], 2
test edi, edi
jne 0x52bd68
jmp 0x52bd78
push 0x601278
push 0x28
push str.internal_error:_entered_unreachable_code
call fcn.004251d0
add esp, 0xc
jmp 0x52bdc6
push 0x601268
push eax
push ebx
call fcn.004287f0
add esp, 0xc
ud2
Function at 0x52fda0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [edx + 0x1c]
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ecx, 0
mov edi, edx
call 0x52fdbe
pop esi
cmp bl, 1
setne dl
sbb ecx, ecx
or cl, dl
cmp cl, 0xff
movzx edx, cl
je 0x52fdd5
test edx, edx
jne 0x52fdfe
mov byte [ebp - 0x14], bl
movzx ebx, byte [edi + 0x1e]
cmp cl, 0xff
mov dword [ebp - 0x18], ebx
je 0x52fde8
test edx, edx
jne 0x52fdf2
mov ecx, edi
call fcn.0052fcb0
movzx eax, al
movzx ebx, byte [ebp - 0x14]
xor ecx, ecx
test bl, bl
jne 0x52fe5f
jmp 0x52fe0b
mov dword [ebp - 0x18], 0
xor ecx, ecx
test bl, bl
jne 0x52fe5f
xor ecx, ecx
cmp byte [edi + 8], 6
lea edx, [edi + 8]
cmove edx, ecx
je 0x52fe5f
movzx ebx, byte [edx]
mov ecx, 6
add esi, dword [ebx*4 + 0x52ff78]
jmp esi
add eax, ecx
movzx ecx, byte [ebp - 0x18]
mov esi, dword [edi + 4]
lea ebx, [eax + ecx]
mov dword [ebp - 0x1c], ecx
cmp esi, ebx
jb 0x52ff5e
mov ecx, edi
mov edi, dword [edi]
cmp esi, ebx
mov edx, edi
lea edx, [edi + ebx]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov edx, esi
jne 0x52fe9b
movzx eax, byte [ecx + 8]
mov edi, dword [ebp - 0x18]
mov ecx, edx
mov byte [ebp - 0xd], al
xor eax, eax
jmp 0x52ff0c
movzx ecx, byte [ecx + 8]
cmp cl, 3
mov byte [ebp - 0xd], cl
jae 0x52fecd
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, edx
sub eax, edx
lea esi, [edx + esi - 1]
nop dword [eax + eax]
cmp byte [esi], 0x5c
je 0x52fef8
dec esi
inc eax
jne 0x52fec0
xor eax, eax
jmp 0x52ff0c
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov ecx, edx
sub eax, edx
lea edi, [edx + esi - 1]
nop dword [eax + eax]
movzx esi, byte [edi]
cmp esi, 0x2f
je 0x52fef8
cmp esi, 0x5c
je 0x52fef8
dec edi
inc eax
jne 0x52fee0
mov edi, dword [ebp - 0x18]
xor eax, eax
jmp 0x52ff0c
not eax
lea ebx, [ebx + eax + 1]
cmp ecx, ebx
jb 0x52ff66
mov edi, dword [ebp - 0x14]
mov eax, 1
add edi, ebx
sub ecx, ebx
je 0x52ff33
movzx ebx, byte [ebp - 0xd]
mov dl, 9
cmp ecx, 2
je 0x52ff37
cmp ecx, 1
jne 0x52ff46
cmp byte [edi], 0x2e
jne 0x52ff46
xor edx, edx
cmp bl, 3
setae dl
lea edx, [edx + edx*2 + 7]
jmp 0x52ff46
mov dl, 0xa
jmp 0x52ff46
cmp byte [edi], 0x2e
jne 0x52ff46
cmp byte [edi + 1], 0x2e
sete dl
xor dl, 9
mov esi, dword [ebp - 0x20]
add eax, ecx
mov dword [esi], eax
mov byte [esi + 4], dl
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x5ffd14
push esi
jmp 0x52ff6c
push 0x5ffd24
push ecx
push ebx
call fcn.00428790
add esp, 0xc
ud2
Function at 0x5359b0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.0058cb30
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x53d280
push eax
push 0x1000
push ebx
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x535ad6
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x535a0e
cmp dword [ebp - 0x18], 0
jne 0x535ae5
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x535ae5
cmp ebx, 0x1000
ja 0x535b0d
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x535afc
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x53d280
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x535add
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x535a80
cmp dword [ebp - 0x18], 0
jne 0x535ae2
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x535a40
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x53d280
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x535a0e
call sub.KERNEL32.dll_GetLastError
jmp 0x535ae5
call sub.KERNEL32.dll_GetLastError
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x600ce8
push ebx
push edi
call fcn.00428850
add esp, 0xc
jmp 0x535b20
push 0x600ce8
push 0x1000
push ebx
call fcn.004287f0
add esp, 0xc
ud2

Function at 0x5396f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.00542a80
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x539751
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
push 1
call fcn.0053c170
add esp, 4
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ebx, ebx
je 0x53974e
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x539758
mov byte [esi], 4
test edi, edi
jne 0x539767
jmp 0x539775
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x539775
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x539775
push ebx
push 0
push dword [0x6320d0]
call sub.KERNEL32.dll_HeapFree
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret