joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457df0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x875f30], ebp
je 0x457fd6
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x457e10
mov edi, ebx
jmp 0x457e22
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x457fd4
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x457fc9
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.0042d490
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x457fc8
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x457fc8
cmp dword [esp + 0x6c], 0
je 0x457f75
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x457f09
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x457f1f
cmp cl, 0xc0
jbe 0x457f1f
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x5bc530]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x457ed9
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x457fc8
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x457fbc
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x457f79
pop esi
test ebx, ebx
jne 0x457fd4
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc
Function at 0x459170
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x4591a8
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4591a3
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.00430c10
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x45932b
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x45935b
cmp esi, 2
je 0x45935b
cmp esi, 4
je 0x45935b
cmp esi, 8
je 0x45935b
cmp esi, 0x18
je 0x45935b
cmp esi, 0x20
je 0x45935b
xor eax, eax
jmp 0x459528
mov ecx, dword [0x875f54]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x459524
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x876660]
cmp dword [eax], edx
je 0x45938e
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x459375
jmp 0x459524
cmp dword [esp + 0x38], 0x20
jne 0x4594fb
mov eax, dword [eax + 8]
test eax, eax
je 0x4593ce
cmp esi, 0x20
je 0x4593aa
cmp esi, 0xffffffff
jne 0x4593ce
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x459522
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x871bf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x459524
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x4594c6
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x4594a5
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
sub edi, 1
jne 0x459434
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
sub dword [esp + 0x24], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x459421
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x876660]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x871bf4]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x459524
cmp dword [esp + 0x38], 0x18
jne 0x459524
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x45c655
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x875f64]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x45c6b6
push esi
push dword [0x875f60]
push 8
push dword [0x871bf4]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x875f64]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x875f5c]
jmp 0x45c6a6
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x45c6a4
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x45c694
push edi
push 0x45c5f3
call fcn.00572ffb
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x45c6c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x45c6d6
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x875f60]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x45c70f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x871bf4]
mov dword [0x875f64], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x875f64]
call ebx
mov esi, dword [0x875f60]
lea eax, [edi + esi]
push eax
push dword [0x875f64]
mov dword [0x875f60], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x871bf4]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x875f64]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x45c74e
test ebx, ebx
je 0x45c76f
push 0x14
push 0x875f5c
call fcn.0045cfc6
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x45c76f
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x45d0d0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x86e568]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x45d109
push ecx
push dword [0x8766f0]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x45d118
push ecx
push 0
push dword [0x8766f0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.0045d470
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x45d190
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x86e568]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret
Function at 0x45d350
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x86e568]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x45d36e
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x45d392
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x45d3ad
cmp edx, 0x100000
jle 0x45d3c0
cmp ecx, 0x100000
jge 0x45d3a7
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x8766f0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x45d3e0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x86e568]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4

Function at 0x45d420
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x86e568]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x45d447
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x45d447
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x45d450
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x86e568]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x45d530
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x86e568]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret 4
Function at 0x470400
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
jl QueryPerformanceCounter
push ebx
mov ebx, edi
shr ebx, 3
mov eax, ebx
neg eax
lea edi, [edi + eax*8]
mov eax, dword [esp + 0x10]
movzx edx, byte [esi]
movzx ecx, byte [esi + 1]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 2]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 3]
shl edx, 8
or edx, ecx
xor eax, edx
mov ecx, eax
shr ecx, 0x10
movzx edx, cl
mov ecx, eax
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x5cc100]
xor edx, dword [ecx*4 + 0x5cbd00]
mov ecx, eax
shr ecx, 0x18
movzx eax, al
xor edx, dword [ecx*4 + 0x5cc500]
movzx ecx, byte [esi + 6]
xor edx, dword [ecx*4 + 0x5cad00]
movzx ecx, byte [esi + 5]
xor edx, dword [ecx*4 + 0x5cb100]
movzx ecx, byte [esi + 7]
xor edx, dword [ecx*4 + 0x5ca900]
movzx ecx, byte [esi + 4]
add esi, 8
xor edx, dword [ecx*4 + 0x5cb500]
xor edx, dword [eax*4 + 0x5cb900]
mov eax, edx
sub ebx, 1
jne SetUnhandledExceptionFilter
pop ebx
jmp QueryPerformanceCounter
mov eax, dword [esp + 0xc]
test edi, edi
je 0x4704dc
nop dword [eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
mov edx, eax
shl eax, 8
shr edx, 0x18
xor edx, ecx
xor eax, dword [edx*4 + 0x5ca900]
sub edi, 1
jne 0x4704c0
pop edi
pop esi
ret

Function at 0x476313
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call fcn.00476e2f
mov edx, dword [esi + 0x14]
pop ecx
test edx, edx
je 0x47636e
mov ecx, dword [esi + 0x10]
mov eax, dword [esi]
push ebp
push edi
mov edi, dword [esi + 0x20]
mov ebp, dword [eax + ecx*4]
cmp edi, edx
jae 0x47636c
push ebx
mov ebx, dword [esi + 0x18]
push 0x18
pop ecx
sub ecx, edi
mov eax, ebp
shr eax, cl
add edi, 8
movzx ecx, al
mov eax, ebx
shr eax, 8
xor ecx, eax
movzx ebx, bl
shl ebx, 8
movzx ecx, word [ecx*2 + 0x5cdc90]
xor ebx, ecx
mov dword [esi + 0x20], edi
mov dword [esi + 0x18], ebx
cmp edi, edx
jb 0x47633b
pop ebx
pop edi
pop ebp
mov ax, word [esi + 0x18]
pop esi
ret

Function at 0x476e2f
Capabilities:
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0x1c]
mov edx, ecx
mov edi, dword [esi + 0x10]
cmp edi, ecx
jbe 0x476eab
push ebx
mov ebx, dword [esi + 0x20]
test ebx, ebx
je 0x476eaa
mov eax, dword [esi]
lea edx, [ecx + 1]
mov dword [esp + 0xc], edx
push ebp
mov ebp, dword [eax + ecx*4]
mov eax, dword [esi + 0x18]
mov dword [esi + 0x1c], edx
mov dword [esp + 0x18], eax
cmp ebx, 0x20
jae 0x476ea2
mov edx, eax
push 0x18
pop ecx
sub ecx, ebx
mov eax, ebp
shr eax, cl
add ebx, 8
movzx ecx, al
mov eax, edx
shr eax, 8
xor ecx, eax
movzx edx, dl
shl edx, 8
movzx ecx, word [ecx*2 + 0x5cdc90]
xor edx, ecx
mov dword [esi + 0x20], ebx
cmp ebx, 0x20
jb 0x476e68
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
and dword [esi + 0x20], 0
mov dword [esi + 0x18], eax
pop ebp
pop ebx
movzx eax, word [esi + 0x18]
sub edi, edx
push eax
mov eax, dword [esi]
push edi
lea eax, [eax + edx*4]
push eax
call fcn.0047a823
add esp, 0xc
movzx eax, ax
and dword [esi + 0x1c], 0
mov dword [esi + 0x18], eax
pop edi
pop esi
pop ecx
ret
Function at 0x47a823
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
cmp esi, 2
jb 0x47a8bd
push ebp
mov ebp, esi
shr ebp, 1
mov ebx, dword [edi]
sub esi, 2
mov edx, dword [edi + 4]
movzx eax, cx
shr ebx, 0x10
xor ebx, eax
mov eax, edx
shr eax, 0x18
mov ecx, ebx
shr ecx, 8
mov cx, word [ecx*2 + 0x5cea90]
xor cx, word [eax*2 + 0x5ce290]
movzx eax, byte [edi + 5]
xor cx, word [eax*2 + 0x5cde90]
movzx eax, byte [edi + 6]
xor cx, word [eax*2 + 0x5ce090]
movzx eax, byte [edi + 1]
xor cx, word [eax*2 + 0x5ce690]
movzx eax, bl
xor cx, word [eax*2 + 0x5ce890]
mov eax, dword [edi]
add edi, 8
movzx eax, al
xor cx, word [eax*2 + 0x5ce490]
movzx eax, dl
xor cx, word [eax*2 + 0x5cdc90]
movzx ecx, cx
sub ebp, 1
jne 0x47a840
pop ebp
test esi, esi
je 0x47a8ff
mov ebx, dword [edi]
mov edx, ebx
movzx eax, cx
shr edx, 0x10
xor edx, eax
movzx eax, byte [edi + 1]
mov ecx, edx
shr ecx, 8
mov cx, word [ecx*2 + 0x5ce290]
xor cx, word [eax*2 + 0x5cde90]
movzx eax, dl
xor cx, word [eax*2 + 0x5ce090]
movzx eax, bl
xor cx, word [eax*2 + 0x5cdc90]
movzx ecx, cx
pop edi
pop esi
mov ax, cx
pop ebx
ret

Function at 0x47a906
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor al, al
test edx, edx
je 0x47a92a
push esi
mov esi, dword [esp + 8]
movzx ecx, byte [esi]
movzx eax, al
xor ecx, eax
inc esi
mov al, byte [ecx + 0x5cec90]
sub edx, 1
jne 0x47a915
pop esi
ret
Function at 0x4b0a80
Capabilities:
Create thread

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
je 0x4b0c2f
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4b0c2f
push esi
mov esi, dword [esp + 0x24]
push edi
test esi, esi
je 0x4b0ab6
mov eax, dword [esi + 4]
test eax, eax
je 0x4b0ac6
push dword [esi]
push 0x18
call eax
add esp, 8
jmp 0x4b0ac0
push 0x18
call fcn.00573de4
add esp, 4
mov edi, eax
test edi, edi
jne 0x4b0ad0
pop edi
pop esi
pop ebp
mov eax, 0xfffffffc
pop ebx
ret
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
lea eax, [edi + 8]
mov dword [edi], ebx
test eax, eax
je 0x4b0b30
test esi, esi
je 0x4b0b15
cmp dword [esi], 0
jne 0x4b0afb
cmp dword [esi + 0xc], 0
jne 0x4b0b01
cmp dword [esi + 4], 0
jne 0x4b0afb
cmp dword [esi + 8], 0
je 0x4b0b15
cmp dword [esi + 0xc], 0
je 0x4b0b30
cmp dword [esi + 4], 0
jne 0x4b0b0d
cmp dword [esi + 8], 0
je 0x4b0b30
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
jmp 0x4b0b30
mov dword [eax], 0
mov dword [eax + 4], 0x47d060
mov dword [eax + 8], 0x47d070
mov dword [eax + 0xc], 0x47cff0
lea eax, [esp + 0x14]
push eax
push 0
push edi
push 0x4b0d40
push dword [esp + 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [ebp], ecx
test ecx, ecx
jne 0x4b0b95
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004ad460
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4b0c28
test esi, esi
je 0x4b0b85
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x4b0b8e
push dword [esi]
push edi
call ecx
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call fcn.00573def
add esp, 4
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
mov eax, dword [esp + 0x18]
add eax, 5
cmp eax, 6
ja case.0x4b0ba1.2
jmp dword [eax*4 + 0x4b0c38]
mov eax, 0xfffffff1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
or eax, 0xffffffff
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 1
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, 0xf
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
xor eax, eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop ebp
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x4b67e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
movzx eax, word [esi + 0x20]
cmp eax, 6
ja case.0x4b67f8.12
jmp dword [eax*4 + 0x4b69d8]
cmp word [esi + 0x18], 8
je case.0x4b67f8.12
movzx eax, word [esi + 0x18]
mov edi, 1
mov cl, al
shl edi, cl
mov ecx, 0xff
dec edi
cmp eax, 0x10
cmove edi, ecx
lea eax, [edi + 1]
push eax
call fcn.004b1ae0
add esp, 4
mov dword [esi + 0x38], eax
test eax, eax
jne 0x4b6860
push str.No_space_for_photometric_conversion_table
push dword [esi]
call fcn.004b23d0
add esp, 4
push eax
mov eax, dword [esi]
push dword [eax + 0x304]
call fcn.004bc920
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
xor ebx, ebx
cmp word [esi + 0x20], bx
jne 0x4b688a
test edi, edi
js 0x4b68a6
imul ebp, edi, 0xff
mov eax, ebp
mov ecx, dword [esi + 0x38]
cdq
sub ebp, 0xff
idiv edi
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jle 0x4b6872
jmp 0x4b68a6
test edi, edi
js 0x4b68a6
xor ebp, ebp
mov eax, ebp
mov ecx, dword [esi + 0x38]
cdq
add ebp, 0xff
idiv edi
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jle 0x4b6890
cmp word [esi + 0x18], 0x10
ja case.0x4b67f8.12
movzx eax, word [esi + 0x20]
cmp eax, 1
je 0x4b68bb
test ax, ax
jne case.0x4b67f8.12
push esi
call fcn.004b7bf0
add esp, 4
test eax, eax
jne 0x4b68d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push dword [esi + 0x38]
call fcn.004b1ad0
add esp, 4
mov dword [esi + 0x38], 0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
mov cl, byte [esi + 0x18]
mov eax, 1
mov ebp, dword [esi + 0x24]
mov edx, ebp
mov ebx, dword [esi + 0x2c]
mov edi, dword [esi + 0x28]
shl eax, cl
mov ecx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
test ecx, ecx
jle 0x4b694c
mov dword [esp + 0x1c], 0x100
nop word [eax + eax]
mov ax, word [edx]
lea edx, [edx + 2]
dec ecx
cmp ax, word [esp + 0x1c]
jae 0x4b698e
mov ax, word [edi]
add edi, 2
cmp ax, word [esp + 0x1c]
jae 0x4b698e
mov ax, word [ebx]
add ebx, 2
cmp ax, word [esp + 0x1c]
jae 0x4b698e
test ecx, ecx
jg 0x4b6920
push str.Assuming_8_bit_colormap
push dword [esi]
call fcn.004b23d0
add esp, 4
push eax
mov eax, dword [esi]
push dword [eax + 0x304]
call fcn.004bc8e0
add esp, 0xc
cmp word [esi + 0x18], 8
ja case.0x4b67f8.12
push esi
call fcn.004b7ea0
add esp, 4
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
add edx, 0xffffffff
js 0x4b696c
mov eax, dword [esi + 0x28]
sub ebp, eax
mov ebx, dword [esp + 0x14]
sub ebx, eax
lea ecx, [eax + edx*2]
nop word [eax + eax]
sub edx, 1
movzx eax, byte [ecx + ebp + 1]
mov word [ecx + ebp], ax
lea ecx, [ecx - 2]
movzx eax, byte [ecx + 3]
mov word [ecx + 2], ax
movzx eax, byte [ebx + ecx + 3]
mov word [ebx + ecx + 2], ax
jns 0x4b69b0
jmp 0x4b696c
Function at 0x4f39b0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4f39d0
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4f39d0
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4f39d0
push dword [esp + 8]
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]