joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fef4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x1003e7e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001ff34
cmp byte [ebx], 0xa
jne 0x1001ff34
or byte [edi + eax + 0x28], 4
jmp 0x1001ff39
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10020038
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1002001b
inc eax
cmp dl, 0xd
je 0x1001ff65
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001ff8b
cmp eax, ecx
jae 0x1001ff99
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001ff4d
jmp 0x10020038
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10020016
cmp dword [ebp - 0x10], 0
je 0x10020016
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1003e7e0]
test byte [eax + edi + 0x28], 0x48
je 0x1001fff0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001ffdb
mov byte [esi], dl
jmp 0x1001ffec
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1003e7e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10020038
cmp byte [ebp - 1], 0xa
jne 0x1001ffff
cmp esi, ebx
jne 0x1001ffff
mov byte [esi], 0xa
jmp 0x10020037
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001f7a1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10020038
mov byte [esi], 0xd
jmp 0x10020037
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1003e7e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10020035
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10020038
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10020041
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1003e7e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10020087
cmp word [ebx], dx
jne 0x10020087
or byte [eax + edi + 0x28], 4
jmp 0x1002008c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100201ef
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100201cf
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x100200cd
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x10020103
cmp eax, edx
jae 0x10020111
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x100200a8
jmp 0x100201ef
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100201ca
cmp dword [ebp - 0x18], 0
je 0x100201ca
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1003e7e0]
test byte [eax + edi + 0x28], 0x48
je 0x100201a0
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10020164
mov word [esi], cx
jmp 0x1002019b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1003e7e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1003e7e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1003e7e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100201ef
pop eax
cmp word [ebp - 4], ax
jne 0x100201b0
cmp esi, ebx
jne 0x100201b0
mov word [esi], ax
jmp 0x100201ec
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001f7a1
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100201ef
push 0xd
pop eax
jmp 0x100201ab
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1003e7e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100201e9
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100201ef
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x100214de
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033aa0
push 0x10033a98
push str.FlsAlloc
push 0x1f
call fcn.1002135d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10021512
push dword [ebp + 8]
mov ecx, esi
call dword [0x100311ec]
call esi
jmp 0x10021518
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1002155c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033ab0
push 0x10033aa8
push str.FlsGetValue
push 0x21
call fcn.1002135d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10021593
push dword [ebp + 8]
mov ecx, esi
call dword [0x100311ec]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1002159b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10033ab8
push 0x10033ab0
push str.FlsSetValue
push 0x22
call fcn.1002135d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100215d5
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100311ec]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10025615
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 0x100256b2
push ebx
push esi
call fcn.100255de
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.1002314d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1002565f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100256b1
push edi
push eax
call fcn.10021da9
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1002567f
call fcn.100211f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100256b0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1002314d
add esp, 0x20
test eax, eax
jne 0x1002569e
push edi
call fcn.100211f0
jmp 0x100256a6
push ebx
call fcn.100211f0
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 0x100256b5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100256c6
pop esi
ret
push ebx
push edi
push esi
call fcn.100255de
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10021da9
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100256ee
push ebx
push esi
push edi
call fcn.10017560
add esp, 0xc
push 0
call fcn.100211f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10025abe
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10025703
Function at 0x1002ab61
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1002aadd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1002acd0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1002acd0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1002ac85
jg 0x1002abbd
test eax, eax
je 0x1002ac7b
push 1
push 0x1000
call fcn.10021193
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1002abe0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002ac72
push 0x8000
push ebx
call fcn.1002aa0e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1002ac09
jg 0x1002ac04
cmp ecx, 0x1000
jb 0x1002ac09
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10027eac
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002ac4e
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 0x1002ac04
jl 0x1002ac35
test ecx, ecx
jne 0x1002abf6
push dword [ebp - 0xc]
push ebx
call fcn.1002aa0e
push esi
call fcn.100211f0
add esp, 0xc
xor ebx, ebx
jmp 0x1002acde
cmp byte [edi + 0x24], 0
je 0x1002ac65
cmp dword [edi + 0x20], 5
jne 0x1002ac65
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1002ac70
mov ebx, dword [edi + 0x18]
jmp 0x1002ac72
xor ebx, ebx
push esi
call fcn.100211f0
pop ecx
jmp 0x1002acde
test ecx, ecx
jg 0x1002ac47
jl 0x1002ac85
test eax, eax
jae 0x1002ac47
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001f7a1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002aca5
cmp byte [edi + 0x1c], 0
je 0x1002ac47
jmp 0x1002acd6
push ebx
call fcn.10026012
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002ac47
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1002acde
cmp byte [edi + 0x1c], 0
je 0x1002acdb
mov ebx, dword [edi + 0x18]
jmp 0x1002acde
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001f7a1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002d830
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002d85d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002d85d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10013bd0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xdc
mov eax, dword [0x10065a80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xd8]
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov dword [ebp - 0xdc], ebx
call fcn.10013040
mov esi, eax
test esi, esi
je 0x10013c33
mov ecx, dword [ebp - 0xd8]
sub esi, edi
mov edx, dword [ebp - 0xd4]
mov al, 3
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov byte [ebx + 8], al
lea eax, [esi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cf0e
mov esp, ebp
pop ebp
ret 8
push 0x10050c88
push edi
call fcn.10033ef0
add esp, 8
test eax, eax
je 0x10013c65
movzx ebx, byte [eax]
or ebx, 0x20
cmp ebx, 0x6e
jne 0x10013c67
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cf0e
mov esp, ebp
pop ebp
ret 8
xor ebx, ebx
push ebx
lea eax, [ebp - 0xd8]
push eax
push edi
call fcn.10012fd0
mov esi, eax
test esi, esi
jne 0x10013d01
push 0x2e
push edi
call fcn.10027cb0
mov esi, eax
add esp, 8
test esi, esi
je 0x10013c50
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10013c95
sub ecx, edx
cmp ecx, 0xc8
ja 0x10013c50
lea edx, [ebp - 0xd0]
mov ecx, edi
sub edx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x10013cb0
call fcn.10030b7d
sub esi, edi
push ebx
mov eax, dword [eax]
mov al, byte [eax]
mov byte [ebp + esi - 0xd0], al
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xd0]
push eax
call fcn.10012fd0
mov esi, eax
test esi, esi
je 0x10013c50
mov eax, edi
lea ecx, [ebp - 0xd0]
sub eax, ecx
add esi, eax
test esi, esi
je 0x10013c50
mov ebx, dword [ebp - 0xdc]
sub esi, edi
movsd xmm0, qword [ebp - 0xd8]
mov al, 0x13
mov ecx, dword [ebp - 4]
pop edi
movsd qword [ebx], xmm0
xor ecx, ebp
mov byte [ebx + 8], al
lea eax, [esi + 1]
pop esi
pop ebx
call fcn.1004cf0e
mov esp, ebp
pop ebp
ret 8
Function at 0x10013de0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
call fcn.10030b7d
mov ecx, dword [ebp + 8]
xor edi, edi
xor esi, esi
xorps xmm1, xmm1
mov eax, dword [eax]
movsx eax, byte [eax]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov al, byte [ecx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x1004ff69], 8
je 0x10013e33
nop dword [eax]
mov al, byte [ecx + 1]
inc ecx
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x1004ff69], 8
jne 0x10013e20
mov al, byte [ebp - 1]
lea edx, [ecx + 1]
cmp al, 0x2d
jne 0x10013e46
mov dword [ebp - 0x14], 1
jmp 0x10013e4e
cmp al, 0x2b
mov dword [ebp - 0x14], esi
cmovne edx, ecx
cmp byte [edx], 0x30
jne 0x10013f87
mov al, byte [edx + 1]
cmp al, 0x78
je 0x10013e66
cmp al, 0x58
jne 0x10013f87
movsd xmm2, qword [0x10050d08]
add edx, 2
mov al, byte [edx]
movsx ecx, al
mov dword [ebp - 0x10], edx
mov byte [ebp - 1], al
cmp ecx, dword [ebp - 0x18]
jne 0x10013e91
cmp dword [ebp - 8], 0
jne 0x10013ee3
mov dword [ebp - 8], 1
inc edx
jmp 0x10013e71
movzx eax, al
test byte [eax + 0x1004ff69], 0x10
je 0x10013ee3
test edi, edi
jne 0x10013eac
cmp byte [ebp - 1], 0x30
jne 0x10013eac
inc dword [ebp - 0xc]
jmp 0x10013ed9
inc edi
cmp edi, 0x1e
jg 0x10013ed8
test byte [ecx + 0x1004ff69], 2
je 0x10013ec0
add ecx, 0xffffffd0
jmp 0x10013ec6
or ecx, 0x20
sub ecx, 0x57
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
mulsd xmm1, xmm2
addsd xmm1, xmm0
jmp 0x10013ed9
inc esi
cmp dword [ebp - 8], 0
je 0x10013ee0
dec esi
inc edx
jmp 0x10013e71
mov eax, dword [ebp - 0xc]
add eax, edi
je 0x10013f87
mov eax, dword [ebp + 0xc]
shl esi, 2
mov dword [eax], edx
mov al, byte [edx]
cmp al, 0x70
je 0x10013f00
cmp al, 0x50
jne 0x10013f61
mov al, byte [edx + 1]
inc edx
xor ecx, ecx
cmp al, 0x2d
jne 0x10013f15
mov edx, dword [ebp - 0x10]
lea edi, [ecx + 1]
add edx, 2
jmp 0x10013f21
cmp al, 0x2b
jne 0x10013f1f
mov edx, dword [ebp - 0x10]
add edx, 2
xor edi, edi
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x1004ff69], 2
je 0x10013f87
movsx eax, byte [ebp - 1]
lea ecx, [ecx + ecx*4]
inc edx
lea ecx, [ecx - 0x18]
lea ecx, [eax + ecx*2]
mov al, byte [edx]
mov byte [ebp - 1], al
movzx eax, al
test byte [eax + 0x1004ff69], 2
jne 0x10013f32
mov eax, ecx
neg eax
test edi, edi
cmove eax, ecx
add esi, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], edx
cmp dword [ebp - 0x14], 0
je 0x10013f6e
xorps xmm1, xmmword [0x10050d10]
push esi
sub esp, 8
movsd qword [esp], xmm1
call fcn.1002ec16
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
fldz
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10018db0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
xor eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x10018dde
movzx edx, byte [edi + esi - 1]
mov ecx, eax
shl ecx, 5
add edx, ecx
mov ecx, eax
shr ecx, 2
add edx, ecx
xor eax, edx
sub esi, 1
jne 0x10018dc4
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x10018df0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp byte [edi + 6], 0
jne 0x10018e3c
mov edx, dword [edi + 8]
push esi
mov esi, dword [edi + 0xc]
xor edx, esi
test esi, esi
je 0x10018e2d
push ebx
lea ebx, [edi + 0xf]
add ebx, esi
mov ecx, edx
lea ebx, [ebx - 1]
mov eax, edx
shl ecx, 5
shr eax, 2
add ecx, eax
movzx eax, byte [ebx + 1]
add ecx, eax
xor edx, ecx
sub esi, 1
jne 0x10018e10
pop ebx
pop esi
mov dword [edi + 8], edx
mov eax, edx
mov byte [edi + 6], 1
pop edi
pop ebp
ret 4
mov eax, dword [edi + 8]
pop edi
pop ebp
ret 4

Function at 0x10025b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10025b74
mov eax, dword [ebp + 0x14]
shl dword [ebp + 0x10], 8
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [eax]
mov ebx, dword [ebp + 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push esi
mov cl, byte [ecx]
movsx edx, cl
sub cl, 0x61
cmp cl, 0x19
mov ecx, dword [ebp + 0x10]
lea esi, [edx - 0x20]
cmova esi, edx
mov edx, dword [ebp - 4]
add ecx, esi
add eax, ebx
xor eax, dword [edx + ecx*4]
mov ecx, ebx
shl ecx, 5
add ecx, 3
add ecx, esi
add ebx, ecx
mov ecx, dword [ebp + 8]
inc ecx
add ebx, eax
mov dword [ebp + 8], ecx
sub edi, 1
jne 0x10025b33
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp + 0x18]
pop edi
mov esp, ebp
pop ebp
ret 0x18

Function at 0x10025e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor eax, 0x61754c1b
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
jbe 0x10025e75
mov edx, dword [ebp + 0x10]
sub edi, edx
push ebx
push esi
mov ecx, eax
lea esi, [ebp - 4]
and ecx, 3
add edx, eax
add esi, ecx
mov bl, byte [esi]
xor byte [edx], bl
movzx ecx, byte [edx + edi]
mov edx, dword [ebp + 0x10]
xor cl, al
add cl, bl
inc eax
mov byte [esi], cl
cmp eax, dword [ebp + 0xc]
jb 0x10025e50
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100274a0
Capabilities:
Listen for remote procedure calls

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x10065a80]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [0x10053538]
mov eax, dword [0x10053578]
push edi
mov edi, dword [ebp + 8]
movups xmmword [ebp - 0x148], xmm0
mov dword [ebp - 0x108], eax
movups xmm0, xmmword [0x10053548]
movups xmmword [ebp - 0x138], xmm0
movups xmm0, xmmword [0x10053558]
movups xmmword [ebp - 0x128], xmm0
movups xmm0, xmmword [0x10053568]
movups xmmword [ebp - 0x118], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [ebp - 0x114]
push dword [eax + 4]
lea eax, [ebp - 0x104]
push str._s_d
push eax
call fcn.100273b0
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10027539
mov eax, 0x6aa
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1004cf0e
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x114]
push esi
push 0
mov eax, dword [eax]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x14c], eax
lea eax, [ebp - 0x150]
mov dword [ebp - 0x114], eax
lea eax, [ebp - 0x148]
push eax
push 0xa
call dword [sym.imp.RPCRT4.dll_RpcServerUseAllProtseqsIf]
mov esi, eax
test esi, esi
jne 0x100275be
push eax
push eax
lea eax, [ebp - 0x148]
push eax
call dword [sym.imp.RPCRT4.dll_RpcServerRegisterIf]
mov esi, eax
test esi, esi
jne 0x100275be
push 0x10065bdc
push dword [ebp + 0xc]
mov ecx, edi
push fcn.100273e0
call dword [0x1004f1a8]
call edi
mov esi, eax
test esi, esi
js 0x100275bc
push 1
push 0x4d2
push 1
call dword [sym.imp.RPCRT4.dll_RpcServerListen]
mov esi, eax
test esi, esi
je 0x100275cc
cmp dword [0x10065bdc], 0
je 0x100275cc
call fcn.100275e0
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop edi
call fcn.1004cf0e
mov esp, ebp
pop ebp
ret 8

Function at 0x10028b09
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10053cfc
push 0x10053cf4
push 0x10053cfc
push 0x21
call fcn.10028974
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10028b40
push dword [ebp + 8]
mov ecx, esi
call dword [0x1004f1a8]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x10028b48
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10053d10
push 0x10053d08
push 0x10053d10
push 0x22
call fcn.10028974
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10028b82
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004f1a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x10028c20
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.GetTempPath2W
push 0x10053bcc
push str.GetTempPath2W
push 5
call fcn.10028974
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10028c5a
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1004f1a8]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetTempPathW]
Function at 0x10034f25
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10034f64
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10034f64
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10034f64
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10034f64
cmp dword [ecx + 0x74], 0xe
jbe 0x10034f64
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1003999d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x10065e88]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100399dd
cmp byte [ebx], 0xa
jne 0x100399dd
or byte [edi + eax + 0x28], 4
jmp 0x100399e2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10039ae1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x10039ac4
inc eax
cmp dl, 0xd
je 0x10039a0e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x10039a34
cmp eax, ecx
jae 0x10039a42
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x100399f6
jmp 0x10039ae1
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10039abf
cmp dword [ebp - 0x10], 0
je 0x10039abf
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x10065e88]
test byte [eax + edi + 0x28], 0x48
je 0x10039a99
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x10039a84
mov byte [esi], dl
jmp 0x10039a95
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10065e88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10039ae1
cmp byte [ebp - 1], 0xa
jne 0x10039aa8
cmp esi, ebx
jne 0x10039aa8
mov byte [esi], 0xa
jmp 0x10039ae0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10045e03
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10039ae1
mov byte [esi], 0xd
jmp 0x10039ae0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x10065e88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10039ade
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10039ae1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret