joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a517
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x4e8544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi], 0x4b4f0c
mov dword [edi + 4], 0x4b4f20
mov dword [edi + 8], 0x4b4f34
mov dword [edi + 0xc], 0x4b4f44
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 2
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.00413860
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 3
call fcn.00413860
lea esi, [edi + 0x60]
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00416db0
lea ecx, [esi + 0x28]
call fcn.00413860
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 5
call fcn.00428530
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42a150
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a540
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4e8544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push dword [esi + 0xcc]
call fcn.0047c0dc
push dword [esi + 0xc0]
call fcn.0047c0dc
push dword [esi + 0x9c]
call fcn.0047c0dc
push dword [esi + 0x90]
call fcn.0047c0dc
push dword [esi + 0x30]
call fcn.0047c0dc
push dword [esi + 0x24]
call fcn.0047c0dc
push dword [esi + 0x18]
call fcn.0047c0dc
add esp, 0x1c
mov ecx, dword [esi + 0xc]
mov dword [ebp - 4], 0
test ecx, ecx
je 0x42a1d0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 8]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x42a1e4
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi + 4]
mov dword [ebp - 4], 2
test ecx, ecx
je 0x42a1f8
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [esi]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x42a20b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42a2c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a5cc
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4e8544]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xe0
call fcn.0047c095
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x42a451
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [esi], ecx
test ecx, ecx
je 0x42a31a
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 1
mov dword [esi + 4], ecx
test ecx, ecx
je 0x42a32e
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 8]
mov byte [ebp - 4], 2
mov dword [esi + 8], ecx
test ecx, ecx
je 0x42a342
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 0xc]
mov byte [ebp - 4], 3
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x42a356
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
movzx eax, byte [edi + 0x10]
lea ecx, [esi + 0x18]
mov byte [esi + 0x10], al
movzx eax, byte [edi + 0x11]
mov byte [esi + 0x11], al
movzx eax, byte [edi + 0x12]
mov byte [esi + 0x12], al
movzx eax, byte [edi + 0x13]
mov byte [esi + 0x13], al
movzx eax, byte [edi + 0x14]
mov byte [esi + 0x14], al
movzx eax, byte [edi + 0x15]
mov byte [esi + 0x15], al
movzx eax, byte [edi + 0x16]
mov byte [esi + 0x16], al
movzx eax, byte [edi + 0x17]
mov byte [esi + 0x17], al
lea eax, [edi + 0x18]
push eax
mov byte [ebp - 4], 4
call fcn.004136c0
lea eax, [edi + 0x24]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x24]
call fcn.004136c0
lea eax, [edi + 0x30]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x30]
call fcn.004136c0
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
movq xmm0, qword [edi + 0x44]
movq qword [esi + 0x44], xmm0
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x54]
mov dword [esi + 0x50], eax
mov dword [esi + 0x54], ecx
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
mov dword [esi + 0x58], eax
mov dword [esi + 0x5c], ecx
movzx eax, byte [edi + 0x60]
mov byte [esi + 0x60], al
mov eax, dword [edi + 0x68]
mov ecx, dword [edi + 0x6c]
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], ecx
mov eax, dword [edi + 0x70]
mov ecx, dword [edi + 0x74]
mov dword [esi + 0x70], eax
lea eax, [edi + 0x78]
mov dword [esi + 0x74], ecx
lea ecx, [esi + 0x78]
push eax
mov byte [ebp - 4], 7
call fcn.00429f70
lea eax, [edi + 0xa8]
mov byte [ebp - 4], 8
push eax
lea ecx, [esi + 0xa8]
call fcn.00429f70
mov eax, dword [edi + 0xd8]
mov ecx, dword [edi + 0xdc]
mov dword [esi + 0xd8], eax
mov dword [esi + 0xdc], ecx
jmp 0x42a453
xor esi, esi
mov eax, dword [ebx + 4]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov ecx, dword [ebx]
mov dword [ecx + eax*4], esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x48b06c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d8e14
push 0x4d8e0c
push str.FlsAlloc
push 0x1e
call fcn.0048aef6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b0a0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b42b0]
call esi
jmp 0x48b0a6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x48b0ea
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4d8e24
push 0x4d8e1c
push str.FlsGetValue
push 0x20
call fcn.0048aef6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x48b121
push dword [ebp + 8]
mov ecx, esi
call dword [0x4b42b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x48d19d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0048d00e

Function at 0x48e7e5
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 + 0x4ec588]
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 0x48e825
cmp byte [ebx], 0xa
jne 0x48e825
or byte [eax + edi + 0x28], 4
jmp 0x48e82a
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x48e928
mov al, byte [edx]
cmp al, 0x1a
je 0x48e90a
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x48e859
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x48e87e
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x48e888
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 0x48e83b
jmp 0x48e928
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 0x48e905
cmp dword [ebp - 0xc], 0
je 0x48e905
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4ec588]
test byte [eax + edi + 0x28], 0x48
je 0x48e8df
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x48e8ca
mov byte [esi], dl
jmp 0x48e8db
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4ec588]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x48e928
cmp byte [ebp - 1], 0xa
jne 0x48e8ee
cmp esi, ebx
jne 0x48e8ee
mov byte [esi], 0xa
jmp 0x48e927
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0049416b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x48e928
mov byte [esi], 0xd
jmp 0x48e927
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4ec588]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48e924
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48e928
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x48e931
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 + 0x4ec588]
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 0x48e974
cmp word [esi], dx
jne 0x48e974
or byte [edi + eax + 0x28], 4
jmp 0x48e979
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 0x48eacc
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 0x48eaac
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x48e9bb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x48e9f1
cmp eax, edx
jae 0x48e9fd
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 0x48e993
jmp 0x48eacc
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 0x48eaa8
cmp dword [ebp - 0x14], 0
je 0x48eaa8
mov eax, dword [ebx*4 + 0x4ec588]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x48ea80
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x48ea49
mov word [esi], cx
jmp 0x48ea7c
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4ec588]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4ec588]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4ec588]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x48eacc
pop ebx
cmp word [ebp - 4], bx
jne 0x48ea91
cmp esi, dword [ebp + 0xc]
jne 0x48ea91
mov word [esi], bx
jmp 0x48eac9
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0049416b
add esp, 0x10
cmp word [ebp - 4], bx
je 0x48eacc
push 0xd
jmp 0x48eac5
mov ecx, dword [ebx*4 + 0x4ec588]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x48eac3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x48eacc
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 0x4b1f20
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4e8544]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov dword [ebp - 0x84], 0x420041
xor edx, edx
mov dword [ebp - 0x80], 0x440043
mov dword [ebp - 0x7c], 0x460045
mov dword [ebp - 0x78], 0x480047
mov dword [ebp - 0x74], 0x4a0049
mov dword [ebp - 0x70], 0x4c004b
mov dword [ebp - 0x6c], 0x4e004d
mov dword [ebp - 0x68], 0x50004f
mov dword [ebp - 0x64], 0x520051
mov dword [ebp - 0x60], 0x540053
mov dword [ebp - 0x5c], 0x560055
mov dword [ebp - 0x58], 0x580057
mov dword [ebp - 0x54], 0x5a0059
mov dword [ebp - 0x50], 0x620061
mov dword [ebp - 0x4c], 0x640063
mov dword [ebp - 0x48], 0x660065
mov dword [ebp - 0x44], 0x680067
mov dword [ebp - 0x40], 0x6a0069
mov dword [ebp - 0x3c], 0x6c006b
mov dword [ebp - 0x38], 0x6e006d
mov dword [ebp - 0x34], 0x70006f
mov dword [ebp - 0x30], 0x720071
mov dword [ebp - 0x2c], 0x740073
mov dword [ebp - 0x28], 0x760075
mov dword [ebp - 0x24], 0x780077
mov dword [ebp - 0x20], 0x7a0079
mov dword [ebp - 0x1c], 0x310030
mov dword [ebp - 0x18], 0x330032
mov dword [ebp - 0x14], 0x350034
mov dword [ebp - 0x10], 0x370036
mov dword [ebp - 0xc], 0x390038
mov dword [ebp - 8], 0x2f002b
test esi, esi
jle 0x4b205f
nop word [eax + eax]
movzx ecx, word [edi + edx*2]
xor eax, eax
cmp word [ebp + eax*2 - 0x84], cx
je 0x4b205a
inc eax
cmp eax, 0x40
jb 0x4b2036
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047be9b
mov esp, ebp
pop ebp
ret 4
inc edx
cmp edx, esi
jl 0x4b2030
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0047be9b
mov esp, ebp
pop ebp
ret 4
Function at 0x4b2400
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4e8544]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0x214], eax
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0047d540
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4b24e7
push ebx
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4b249f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4b249f
mov ecx, dword [edi]
jmp 0x4b24b1
mov eax, dword [ebp - 0x210]
xor ecx, ecx
add ecx, ebx
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
push ecx
mov dword [ebp - 0x218], 0
call fcn.0047c0d3
mov ecx, dword [ebp - 0x214]
add esp, 4
push 0
mov dword [ecx], eax
lea ecx, [ebp - 0x218]
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0047be9b
mov esp, ebp
pop ebp
ret 8
Function at 0x10094a3b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
test edx, edx
mov dword [esp + 0x14], edx
je 0x10094afd
mov edi, dword [esp + 0x14]
xor ebx, ebx
xor eax, eax
xor esi, esi
mov dword [esp + 0x1c], ecx
mov ecx, 7
mov dword [esp + 0x18], edi
mov dword [esp + 4], 0
mov edi, eax
mov dword [esp + 0x20], ecx
call fcn.10094b09
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
push ebx
mov eax, 8
push eax
lea eax, [esp + 0x10]
push eax
call fcn.100719f4
add esp, 0xc
mov ebx, eax
and eax, 1
xor esi, eax
call fcn.10094b09
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
push ebx
mov eax, 8
push eax
lea eax, [esp + 0x10]
push eax
call fcn.100719f4
add esp, 0xc
mov ebx, eax
and eax, 1
xor eax, edi
mov edi, esi
cmp esi, eax
je 0x10094a78
mov ecx, dword [esp + 4]
add ecx, ecx
or ecx, esi
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x20]
test ecx, ecx
lea ecx, [ecx - 1]
jne 0x10094a72
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 4]
mov byte [ecx], dl
dec edi
lea ecx, [ecx + 1]
jne 0x10094a5d
mov eax, dword [esp + 0x14]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100b3fee
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, dword [esp + 0x24]
push dword [esi]
call fcn.1024a244
add esp, 4
test eax, eax
jne 0x100b4119
mov ecx, dword [esi + 4]
mov eax, 0x16
cmp ecx, 0x80
ja 0x100b4119
mov edx, dword [esi + 8]
cmp edx, 0x80
jg 0x100b4119
cmp ecx, edx
jg 0x100b4119
mov edi, dword [esp + 0x2c]
mov ebx, dword [esp + 0x28]
cmp edi, 0x11
jb 0x100b4088
test ecx, ecx
jne 0x100b4088
imul eax, dword [esi], 0x58
mov ebp, dword [eax + 0x104900c8]
cmp ebp, edi
jae 0x100b4090
mov eax, edi
sub eax, ebp
mov dword [esp + 4], eax
jne 0x100b4028
xor eax, eax
jmp 0x100b4086
lea eax, [esi + 0x210]
mov dword [esp], eax
lea eax, [esi + 0x8c]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 8], eax
test ebp, ebp
mov eax, 0
je 0x100b405b
mov ecx, dword [ebx + eax]
xor dword [esi + eax + 0x8c], ecx
add eax, 4
cmp eax, ebp
jb 0x100b404a
imul eax, dword [esi], 0x58
push dword [esp]
mov ecx, dword [esp + 0x10]
push ecx
push ecx
call dword [eax + 0x104900d4]
add esp, 0xc
test eax, eax
jne 0x100b4119
mov eax, dword [esp + 8]
add ebx, ebp
add eax, ebp
cmp eax, dword [esp + 4]
jb 0x100b403d
sub edi, eax
test edi, edi
je 0x100b4117
lea eax, [esi + 0x210]
mov dword [esp + 8], eax
lea eax, [esi + 0x8c]
mov dword [esp + 4], eax
lea eax, [esi + 0xc]
mov dword [esp], eax
mov eax, dword [esi + 4]
mov ebp, dword [esi + 8]
cmp eax, ebp
jne 0x100b40f3
xor ecx, ecx
test eax, eax
je 0x100b40cb
mov al, byte [esi + ecx + 0x8c]
xor byte [esi + ecx + 0xc], al
inc ecx
cmp ecx, dword [esi + 8]
jb 0x100b40ba
imul eax, dword [esi], 0x58
push dword [esp + 8]
push dword [esp + 8]
push dword [esp + 8]
call dword [eax + 0x104900d4]
add esp, 0xc
test eax, eax
jne 0x100b4119
mov dword [esi + 4], 0
xor eax, eax
mov ebp, dword [esi + 8]
sub ebp, eax
lea eax, [esi + eax + 0xc]
cmp edi, ebp
cmovb ebp, edi
push ebp
push ebx
push eax
call fcn.100e01c4
add esp, 0xc
mov eax, dword [esi + 4]
add ebx, ebp
add eax, ebp
sub edi, ebp
mov dword [esi + 4], eax
jne 0x100b40ad
xor eax, eax
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100c2994
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov ebp, dword [esp + 0x18]
mov eax, 0x16
cmp ebp, 4
jb 0x100c2a73
mov ecx, dword [esp + 0x14]
mov eax, 0x20005
mov bl, byte [ecx]
and bl, 0x1f
cmp bl, 3
jne 0x100c2a73
movzx ebx, byte [ecx + 1]
mov esi, 2
mov edx, ebx
and edx, 0x7f
test bl, bl
js 0x100c29d7
mov edi, edx
jmp 0x100c2a05
mov ebx, edx
dec bl
cmp bl, 1
ja 0x100c2a73
xor edi, edi
mov esi, 2
mov ebp, edx
mov ebx, edi
movzx edi, byte [ecx + esi]
inc esi
shl ebx, 8
or edi, ebx
dec ebp
jne 0x100c29ed
mov ebp, dword [esp + 0x18]
add edx, 2
mov esi, edx
test edi, edi
je 0x100c2a73
lea edx, [esi + edi]
cmp edx, ebp
ja 0x100c2a73
movzx eax, byte [ecx + esi]
mov ebx, dword [esp + 0x20]
lea edx, [edi*8 - 8]
and eax, 7
sub edx, eax
cmp edx, dword [ebx]
jbe 0x100c2a31
mov dword [ebx], edx
mov eax, 0x20004
jmp 0x100c2a73
test edx, edx
je 0x100c2a6b
inc esi
xor ebx, ebx
mov eax, ebx
movzx edi, byte [ecx + esi]
mov ebp, ecx
and eax, 7
mov ecx, eax
xor cl, 7
movzx ecx, cl
bt edi, ecx
mov ecx, dword [esp + 0x1c]
mov edi, 7
setb byte [ecx + ebx]
xor ecx, ecx
cmp eax, edi
sete cl
inc ebx
add esi, ecx
mov ecx, ebp
cmp ebx, edx
jne 0x100c2a38
mov eax, dword [esp + 0x20]
mov dword [eax], edx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100cad84
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x110]
push esi
call fcn.10146454
add esp, 4
mov ebx, eax
test eax, eax
jne 0x100caee4
imul edi, esi, 0x64
mov ebx, dword [edi + 0x10483e24]
push dword [edi + 0x10483e28]
call fcn.10071f14
add esp, 4
mov esi, eax
push ebx
call fcn.10071f14
add esp, 4
mov ebp, eax
test esi, esi
je 0x100cadd4
test ebp, ebp
jne 0x100cadf4
test esi, esi
je 0x100cade1
push esi
call fcn.1007274c
add esp, 4
mov ebx, 0xc
test ebp, ebp
je 0x100caee4
push ebp
jmp 0x100caedc
mov dword [esp], ebx
mov dword [esp + 4], ebp
push ebp
mov eax, dword [esp + 0x20]
push eax
call dword [edi + 0x10483e78]
add esp, 8
mov ebx, eax
test eax, eax
jne 0x100caebd
lea ebp, [edi + 0x10483e28]
mov edx, dword [esp + 0x1c]
cmp dword [ebp], 0
je 0x100cae3b
xor eax, eax
mov ecx, dword [edx + 0x228]
mov cl, byte [ecx + eax]
xor cl, 0x5c
mov byte [esi + eax], cl
inc eax
cmp eax, dword [ebp]
jb 0x100cae26
push edx
call dword [edi + 0x10483e70]
add esp, 4
mov ebx, eax
test eax, eax
jne 0x100caebd
push dword [ebp]
push esi
push dword [esp + 0x24]
call dword [edi + 0x10483e74]
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x100caebd
lea eax, [edi + 0x10483e74]
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x24]
call dword [eax]
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x100caebd
lea eax, [edi + 0x10483e78]
push esi
push dword [esp + 0x20]
call dword [eax]
add esp, 8
mov ebx, eax
test eax, eax
jne 0x100caebd
xor ebx, ebx
mov edi, dword [esp + 0x24]
cmp dword [esp], 0
mov ecx, 0
je 0x100caebb
mov edx, dword [esp + 0x20]
xor ecx, ecx
cmp ecx, dword [edi]
jae 0x100caebb
mov al, byte [esi + ecx]
mov byte [edx + ecx], al
inc ecx
cmp ecx, dword [esp]
jb 0x100caeab
mov dword [edi], ecx
mov eax, dword [esp + 0x1c]
push dword [eax + 0x228]
call fcn.1007274c
add esp, 4
push dword [esp + 4]
call fcn.1007274c
add esp, 4
push esi
call fcn.1007274c
add esp, 4
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x100d1b88
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x104
mov ebx, dword [esp + 0x118]
mov ecx, 0x1047f1b0
mov edx, str.SetDefaultDllDirectories
call fcn.100d1a35
test eax, eax
je 0x100d1bbb
push 0x800
push 0
push ebx
call sub.KERNEL32.dll_LoadLibraryExA
jmp 0x100d1c07
mov ebp, esp
push 0x104
push ebp
call sub.KERNEL32.dll_GetSystemDirectoryA
xor esi, esi
test eax, eax
je 0x100d1c05
mov edi, eax
push ebx
call fcn.10242cf4
add esp, 4
lea ecx, [edi + eax + 2]
cmp ecx, 0x104
ja 0x100d1c05
inc eax
mov byte [esp + edi], 0x5c
lea ecx, [esp + edi + 1]
push eax
push ebx
push ecx
call fcn.100e01c4
add esp, 0xc
push 8
push 0
push ebp
call sub.KERNEL32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
add esp, 0x104
pop esi
pop edi
pop ebx
pop ebp
ret