joyce8/EMBER2024-capa huggingface dataset:
Function at 0x480748
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x480765
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x480901
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00476f54
test al, al
jne 0x4807a2
mov ecx, 0x480934
mov dl, 1
mov eax, dword [0x46b650]
call fcn.0040c274
call fcn.00403bc0
xor eax, eax
push ebp
push 0x4807ce
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00475a00
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004758ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4807ee
mov eax, dword [ebp - 0x10]
mov edx, 0x480970
call fcn.00404b54
je 0x48080b
mov eax, esi
mov edx, 0x480970
call fcn.00404b54
jne 0x48082f
mov eax, edi
mov edx, 0x480980
call fcn.00404b54
je 0x48082f
mov ecx, 0x480958
mov dl, 1
mov eax, dword [0x46b8f8]
call fcn.0040c274
call fcn.00403bc0
mov eax, edi
xor edx, edx
call fcn.00404b54
jne 0x48085c
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404b54
je 0x48085c
mov ecx, 0x480958
mov dl, 1
mov eax, dword [0x46b8f8]
call fcn.0040c274
call fcn.00403bc0
mov eax, dword [ebp - 0x10]
mov edx, 0x4809c0
call fcn.00404b54
jne 0x48088f
mov eax, edi
mov edx, 0x4809cc
call fcn.00404b54
je 0x48088f
mov ecx, 0x480958
mov dl, 1
mov eax, dword [0x46b8f8]
call fcn.0040c274
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047e838
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.004048e8
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x480a18]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480908
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048c4
ret
Function at 0x4821fc
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x482219
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4823b4
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00476f54
test al, al
jne 0x482256
mov ecx, 0x4823e8
mov dl, 1
mov eax, dword [0x46b650]
call fcn.0040c274
call fcn.00403bc0
xor eax, eax
push ebp
push 0x482282
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.00475a00
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004758ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4822a2
mov eax, edi
xor edx, edx
call fcn.00404b54
jne 0x4822cf
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00404b54
je 0x4822cf
mov ecx, 0x48240c
mov dl, 1
mov eax, dword [0x46b8f8]
call fcn.0040c274
call fcn.00403bc0
mov eax, dword [ebp - 0x10]
mov edx, 0x482424
call fcn.00404b54
jne 0x482302
mov eax, edi
mov edx, 0x482430
call fcn.00404b54
je 0x482302
mov ecx, 0x48240c
mov dl, 1
mov eax, dword [0x46b8f8]
call fcn.0040c274
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047e838
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.004048e8
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x41930c]
call fcn.00403350
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x41930c]
call fcn.00403350
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x41930c]
call fcn.00403350
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x48247c]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x46e674]
call fcn.0047da90
mov dword [ebx + 0x3c], eax
mov ax, word [0x482480]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4823bb
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004048c4
ret
Function at 0x484e10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x484e32
add esp, 0xfffffff0
call fcn.00403694
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x484f9d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00476f54
test al, al
jne 0x484e6f
mov ecx, 0x484fd0
mov dl, 1
mov eax, dword [0x46b650]
call fcn.0040c274
call fcn.00403bc0
push dword [0x4ce6bc]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x4ce6bc]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0xc]
call fcn.00477a2c
test al, al
jne 0x484f41
push dword [0x4ce6b8]
push dword [ebp + 8]
push dword [0x4ce6b8]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x14]
call fcn.00477a2c
test al, al
jne 0x484f41
push dword [0x4ce6bc]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x4ce6bc]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x18]
call fcn.00477b44
test al, al
jne 0x484f41
push dword [0x4ce6b8]
push edi
push dword [0x4ce6b8]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404b0c
mov eax, dword [ebp - 0x20]
call fcn.00477b44
test al, al
jne 0x484f41
mov ecx, 0x484fd0
mov dl, 1
mov eax, dword [0x46b650]
call fcn.0040c274
call fcn.00403bc0
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.0047e838
lea eax, [ebx + 4]
mov edx, esi
call fcn.004048e8
lea eax, [ebx + 8]
call fcn.004048ac
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.004048e8
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.004048e8
mov byte [ebx + 0xc], 0xc
mov ax, word [0x484fec]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484fa4
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.004048c4
ret

Function at 0x4b9aa0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b9b1b
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4b9b02
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404410
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.00408748
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b9b22
lea eax, [ebp - 0x104]
call fcn.004041a0
ret
Function at 0x67801f00
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x6780930c
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.67801f60

Function at 0x67801f60
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6780b378]
test esi, esi
jle 0x67802053
mov edi, dword [0x6780b37c]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x67801f94
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6780204c
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x67801f80
mov dword [esp], eax
mov esi, eax
call fcn.678026a0
test eax, eax
mov edi, eax
je 0x67802090
mov esi, dword [0x6780b37c]
lea ebx, [ebx + ebx*4]
shl ebx, 2
add esi, ebx
mov dword [esi + 0x10], eax
mov dword [esi], 0
call fcn.678027b0
add eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x6780b37c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x67802070
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x67802045
sub eax, 4
and eax, 0xfffffffb
je 0x67802045
add ebx, dword [0x6780b37c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x6780205a
add dword [0x6780b378], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x67801f9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.67801f00
mov eax, dword [0x6780b37c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.67801f00
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.67801f00
Function at 0x67802320
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6780b388
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6780b380]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x67802375
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6780236e
test esi, esi
je 0x6780236e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x67802350
mov dword [esp], 0x6780b388
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x678036c0
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x67803713
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x67803700
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x67803790
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.67802f80
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.67802b30
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.678033c0
mov eax, dword [0x67808010]
cmp eax, 0xffffffff
je 0x678037bb
test eax, eax
je 0x678037ab
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x6780371b
call fcn.67807a20
test al, 1
mov edx, 3
jne 0x6780379e
jmp 0x678037a3
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x678037e1
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
setbe al
movzx eax, al
mov dword [0x67808010], eax
jmp 0x6780379a
xor eax, eax
jmp 0x678037d7
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x573c7a9e
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x542a7720
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x425850
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov edi, dword [eax + 0x3c]
add edi, eax
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.00425654
and edi, dword [edx]
mov cl, 0x73
movzx eax, word [edi + 6]
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.00425654
dec ebp
pop ebx
xor dword [edx], eax
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x4258ae
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x4258a8
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x425899
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00425654
imul esp, dword [esi - 0x22], 0xa8458dcb
push eax
call fcn.00425664
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00425619
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x425942
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.00425654
invalid
Function at 0x455ef0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
test eax, eax
mov dword [esp + 0x18], ecx
je 0x455f0a
lea ebx, [eax + eax]
mov dword [esp + 0xc], ebx
jmp 0x455f16
mov dword [esp + 0xc], 0x800
mov ebx, dword [esp + 0xc]
lea esi, [ebx*4]
push esi
call fcn.0041ed90
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x45600d
mov ecx, esi
push edi
mov edx, ecx
xor eax, eax
mov edi, ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x20], eax
mov ecx, dword [edi + 4]
test ecx, ecx
jle 0x455ffc
mov ecx, dword [edi]
mov esi, dword [ecx + eax*4]
test esi, esi
je 0x455fec
mov ecx, dword [esi + 4]
mov edi, dword [esi + 0xc]
mov al, byte [ecx]
test al, al
jne 0x455f77
xor eax, eax
jmp 0x455fcf
mov dl, al
inc al
inc ecx
mov bl, al
mov byte [esp + 0x14], dl
mov byte [esp + 0x18], bl
mov al, byte [ecx]
test al, al
je 0x455fc5
mov edx, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
and eax, 0xff
and edx, 0xff
and ebx, 0xff
xor edx, eax
xor ebx, eax
mov al, byte [ecx + 1]
mov dl, byte [edx + 0x4d2d94]
inc ecx
mov bl, byte [ebx + 0x4d2d94]
mov byte [esp + 0x14], dl
test al, al
mov byte [esp + 0x18], bl
jne 0x455f8c
xor eax, eax
mov ah, dl
mov al, bl
mov ebx, dword [esp + 0x10]
xor edx, edx
div ebx
test edi, edi
mov eax, dword [ebp + edx*4]
mov dword [esi + 0xc], eax
mov dword [ebp + edx*4], esi
mov esi, edi
jne 0x455f67
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [edi + 4]
inc eax
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x455f5a
mov ecx, dword [edi]
push ecx
call fcn.0041eda0
add esp, 4
mov dword [edi + 4], ebx
mov dword [edi], ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x456020
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
test ebp, ebp
mov dword [esp + 0x14], esi
jne 0x456041
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
cmp eax, ecx
jl 0x456063
mov ecx, esi
call fcn.00455ef0
cmp dword [esi], 0
jne 0x456063
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
mov al, byte [ebp]
test al, al
jne 0x45606e
xor eax, eax
jmp 0x4560c4
mov dl, al
inc al
lea ecx, [ebp + 1]
mov bl, al
mov byte [esp + 0x1c], dl
mov byte [esp + 0x10], bl
mov al, byte [ecx]
test al, al
je 0x4560be
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
and eax, 0xff
and edx, 0xff
and edi, 0xff
xor edx, eax
xor edi, eax
mov al, byte [ecx + 1]
mov dl, byte [edx + 0x4d2d94]
inc ecx
mov bl, byte [edi + 0x4d2d94]
mov byte [esp + 0x1c], dl
test al, al
mov byte [esp + 0x10], bl
jne 0x456085
xor eax, eax
mov ah, dl
mov al, bl
xor edx, edx
div dword [esi + 4]
mov eax, dword [esi]
mov edi, dword [eax + edx*4]
test edi, edi
lea ebx, [eax + edx*4]
je 0x456100
mov esi, dword [edi + 4]
mov eax, ebp
sub esi, ebp
movsx ecx, byte [esi + eax]
movsx edx, byte [eax]
inc eax
test ecx, ecx
je 0x4560ee
cmp ecx, edx
je 0x4560dc
jmp 0x4560f2
test edx, edx
je 0x456135
lea ebx, [edi + 0xc]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4560d5
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0xc]
add ecx, 0xcb4
call fcn.0041ebe0
mov edi, dword [esp + 0x14]
mov esi, eax
mov ecx, esi
mov eax, dword [edi + 0xc]
push eax
push ebp
call fcn.00456250
mov dword [ebx], esi
mov eax, dword [edi + 8]
inc eax
mov dword [edi + 8], eax
mov eax, dword [ebx]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov eax, dword [ebx]
pop edi
pop esi
pop ebp
mov ecx, dword [eax]
pop ebx
mov edx, ecx
and ecx, 1
and edx, 0xfffffffe
add edx, 2
xor edx, ecx
mov dword [eax], edx
add esp, 8
ret 4
Function at 0x456160
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
test ebp, ebp
mov esi, ecx
je 0x456173
mov ecx, dword [ebp + 4]
jmp 0x456175
xor ecx, ecx
test ecx, ecx
je 0x456200
mov edi, dword [esi]
test edi, edi
je 0x456200
mov al, byte [ecx]
test al, al
jne 0x45618d
xor eax, eax
jmp 0x4561e3
mov dl, al
inc al
inc ecx
push ebx
mov bl, al
mov byte [esp + 0x18], dl
mov al, byte [ecx]
mov byte [esp + 0x10], bl
test al, al
je 0x4561dc
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
and eax, 0xff
and edx, 0xff
and ebx, 0xff
xor edx, eax
xor ebx, eax
mov al, byte [ecx + 1]
mov dl, byte [edx + 0x4d2d94]
inc ecx
mov bl, byte [ebx + 0x4d2d94]
mov byte [esp + 0x18], dl
test al, al
mov byte [esp + 0x10], bl
jne 0x4561a3
xor eax, eax
mov ah, dl
mov al, bl
pop ebx
xor edx, edx
div dword [esi + 4]
mov eax, dword [edi + edx*4]
test eax, eax
lea ecx, [edi + edx*4]
je 0x456200
cmp ebp, eax
je 0x456209
lea ecx, [eax + 0xc]
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4561f2
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret 4
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov dword [ecx], edx
mov ecx, ebp
call fcn.00456280
mov ecx, dword [esi + 0xc]
push ebp
add ecx, 0xcb4
call fcn.0041ec30
mov eax, dword [esi + 8]
pop edi
dec eax
mov dword [esi + 8], eax
pop esi
mov al, 1
pop ebp
pop ecx
ret 4

Function at 0x456470
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
mov ebp, ecx
push esi
push edi
mov edi, dword [ebp + 4]
xor esi, esi
mov al, byte [edi]
test al, al
je 0x4564a4
mov byte [esp + 0xc], al
mov ecx, dword [esp + 0xc]
and ecx, 0xff
mov dl, byte [ecx + 0x4c6370]
xor dl, al
cmp al, dl
jne 0x4564a4
mov al, byte [edi + esi + 1]
inc esi
test al, al
jne 0x456481
cmp byte [edi + esi], 0
jne 0x4564b4
pop edi
mov dword [ebp + 8], ebp
mov eax, ebp
pop esi
pop ebp
pop ecx
ret
push edi
call fcn.0041c3f0
mov edi, eax
mov al, byte [edi + esi]
add esp, 4
lea ecx, [edi + esi]
test al, al
je 0x4564e9
mov byte [esp + 0xc], al
mov edx, dword [esp + 0xc]
and edx, 0xff
mov dl, byte [edx + 0x4c6370]
xor dl, al
mov byte [ecx], dl
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4564c9
mov eax, dword [ebp + 0x10]
push eax
push edi
call fcn.004562c0
add esp, 8
mov ecx, 0x4de568
mov dword [ebp + 8], eax
push edi
call fcn.0041e9a0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x47d710
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x4de7a0]
push esi
test eax, eax
push edi
jne 0x47d7af
mov edi, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push ebx
push 0x8001
mov dword [0x4de7a0], 1
call edi
push str.imm32.dll
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push ebx
mov esi, eax
call edi
test esi, esi
pop ebx
je 0x47d7af
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmGetContext
push esi
call edi
test eax, eax
mov dword [0x4de7a4], eax
je 0x47d7af
push str.ImmReleaseContext
push esi
call edi
test eax, eax
mov dword [0x4de7a8], eax
je 0x47d7af
push str.ImmSetCompositionWindow
push esi
call edi
test eax, eax
mov dword [0x4de7ac], eax
je 0x47d7af
push str.ImmSetCompositionFontA
push esi
call edi
test eax, eax
mov dword [0x4de7b0], eax
je 0x47d7af
push str.ImmGetCompositionStringW
push esi
call edi
mov dword [0x4de7b4], eax
mov dword [0x4de7a0], 2
pop edi
pop esi
ret

Function at 0x47d850
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
lea ecx, [esp + 8]
push 7
and eax, 0xffff
push ecx
push 0x1004
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x47d89c
push esi
lea edx, [esp + 8]
push 0xa
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00459e10
add esp, 0x10
test eax, eax
mov eax, dword [esp + 4]
jne 0x47d89e
mov eax, esi
pop esi
add esp, 0xc
ret

Function at 0x47e730
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
push esi
push eax
mov esi, str.Windows
mov dword [esp + 8], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
dec eax
je 0x47e7a1
dec eax
jne 0x47e7bf
mov eax, dword [esp + 8]
cmp eax, 5
jne 0x47e78d
mov eax, dword [esp + 0xc]
cmp eax, 1
jne 0x47e77a
mov esi, str.Windows_XP
mov eax, esi
pop esi
add esp, 0x94
ret
test eax, eax
jne 0x47e7bf
mov esi, str.Windows_2000
mov eax, esi
pop esi
add esp, 0x94
ret
cmp eax, 4
jne 0x47e7bf
mov esi, str.Windows_NT
mov eax, esi
pop esi
add esp, 0x94
ret
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x47e7b8
mov esi, str.Windows_98_ME
mov eax, esi
pop esi
add esp, 0x94
ret
jne 0x47e7bf
mov esi, str.Windows_95
mov eax, esi
pop esi
add esp, 0x94
ret