joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47c0d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x47c0db
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x47c1de
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x51926c]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x51926c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x51926c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x51926c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x51926c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x51926c]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x51926c]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x51926c]
xor eax, edx
inc ecx
dec edi
jne 0x47c0f6
pop edi
test esi, esi
je 0x47c200
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x51926c]
xor eax, edx
inc ecx
dec esi
jne 0x47c1e2
pop esi
pop ebx
not eax
ret

Function at 0x47ca70
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
mov cl, byte [ebx]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x47cab1
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0xc]
push 0
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47caa6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0xc]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x14]
push esi
push edi
lea esi, [edx + eax]
cmp esi, ecx
jbe 0x47cac4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x10]
mov edi, dword [esp + 0x14]
mov ecx, eax
add esi, edx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
xor edx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x18]
pop edi
add ecx, eax
pop esi
div ebp
mov dword [ebx + 0x18], ecx
pop ebp
pop ebx
ret
Function at 0x4803e0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x480483
test eax, eax
jbe 0x480483
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x480483
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x48042e
xor esi, esi
jmp 0x480434
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x48045f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00484030
add esi, eax
push esi
mov ebx, esi
call fcn.00484030
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x480440
pop ebp
test edi, edi
pop edi
jne 0x480483
test ebx, ebx
je 0x480483
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004a81e0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x4805a5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4806bd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4806bd
mov eax, dword [esi + 0x3c]
push eax
call fcn.004b9bb0
mov esi, eax
test esi, esi
je 0x4806bd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4806bd
mov ecx, esi
call fcn.00480530
cmp edi, eax
jge 0x4806bd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x480643
mov dword [esp + 0x34], 1
jmp 0x48069e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4806bd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0047eda0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x48ae60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, ecx
push ebp
push esi
mov eax, dword [ebx + 0x13c]
push edi
test eax, eax
jle 0x48aeac
mov eax, dword [ebx + 0x140]
test eax, eax
jle 0x48aeac
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
lea edi, [ebx + 0x150]
mov eax, dword [edi]
test eax, eax
je 0x48ae96
push eax
call ebp
test ax, ax
jl 0x48aea4
inc esi
add edi, 4
cmp esi, 6
jb 0x48ae88
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
mov ecx, ebx
call fcn.0048ab60
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x48ea20
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x48ea80
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x48ea80
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x48ea80
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x48ea80
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x48ea90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4922e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x57ac8c]
xor edx, edx
cmp eax, edx
jne 0x492306
xor eax, eax
mov byte [eax + 0x57ab8c], al
inc eax
cmp eax, 0x100
jl 0x4922ee
mov dword [0x57ac8c], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x57ab8c
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x492397
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x49236a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x492338
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4923a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4923f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4923da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x498d70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c771e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00499690
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x51b48c
call fcn.004b7ec6
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x498e03
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004b7ec6
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x498dfc
push 0
mov ecx, eax
call fcn.0048ff10
mov dword [esi + 0xc], eax
jmp 0x498e05
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x498e05
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4a93c3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4a93e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a8e1a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4a9406
test byte [esp + 8], 2
je 0x4a9406
call fcn.004a8e8d
mov dword [eax], 0xd
call fcn.004a8e96
mov dword [eax], 5
jmp 0x4a93df
xor eax, eax
ret

Function at 0x4ba553
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ba58b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004b85e0
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b85b8
jmp 0x4ba597
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4bbc48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4bbc8a
call fcn.004c1888
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4bbc8a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4bbc81
xor eax, eax
jmp 0x4bbc92
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004bbc98
pop edi
pop esi
pop ebx
ret 4

Function at 0x4c1db8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c1de6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c1e04
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c1d1e
jmp 0x4c1e04
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c1e04
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c1d1e
test edi, edi
mov eax, edi
jne 0x4c1dee
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x438c94
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x438a14
sub ecx, esi
add ecx, 1
add esi, esi
call fcn.00438cd4
mov ecx, esi
mov esi, 0x7c6c0fe0
sub esp, 4
mov dword [esp], ecx
pop ecx
xor dword [ebx], edx
and esi, ecx
and esi, esi
sub ecx, 0x7ebb3b5f
inc ebx
sub esi, 0x6599cdf
cmp ebx, eax
jne fcn.00438c94
or ecx, esi
ret

Function at 0x438c89
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x438a14
mov ebx, 0x6df1d746
call fcn.00438cba
push edi
pop edi
dec ebx
or ebx, ebx
xor dword [ecx], esi
add edi, ebx
or ebx, edi
inc ecx
add ebx, 1
mov ebx, ebx
cmp ecx, edx
jne fcn.00438c89
inc ebx
ret
Function at 0x402600
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
push dword [ebp + 8]
mov ecx, dword [esi + 8]
call fcn.00402450
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
test eax, eax
je 0x402626
mov ecx, dword [esi + 8]
mov dword [ecx + 0xc], eax
mov edi, dword [esi + 8]
lea eax, [ebp + 0xc]
push eax
push 0
push edi
push 0x4023d0
push 0
push 0
mov dword [ebp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x10], eax
test eax, eax
je 0x40266a
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x40266a
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x10], 0
mov eax, dword [esi + 8]
pop edi
pop esi
mov al, byte [eax + 4]
pop ebp
ret 8
Function at 0x402f00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79e208
mov eax, dword fs:[0]
push eax
sub esp, 0x62c
mov eax, dword [0x8ca144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x634], edi
lea eax, [edi + 8]
mov dword [edi], 0
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x638], edi
jb 0x402f5a
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 4], ecx
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], ecx
cmp dword [edi + 0x34], 8
jb 0x402f77
mov eax, dword [edi + 0x20]
jmp 0x402f7a
lea eax, [edi + 0x20]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x38]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x402f94
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea eax, [edi + 0x50]
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], ecx
cmp dword [eax + 0x14], 8
jb 0x402fae
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
push ecx
mov byte [ebp - 4], 3
call fcn.00757d6d
push eax
call fcn.00757f4d
push 0x20c
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.0074fc20
add esp, 0x14
lea eax, [ebp - 0x21c]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
ja 0x403061
xor eax, eax
push 0x412
push eax
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x630]
push eax
call fcn.0074fc20
add esp, 0xc
lea eax, [ebp - 0x630]
push 0x208
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x403052
test eax, eax
je 0x403052
add eax, eax
cmp eax, 0x412
jae 0x40304d
xor ecx, ecx
mov word [ebp + eax - 0x630], cx
lea eax, [ebp - 0x630]
jmp 0x403058
call fcn.006e75c7
lea eax, [ebp - 0x21c]
push eax
lea ecx, [edi + 0x20]
call fcn.004027d0
mov eax, dword [edi + 0x30]
test eax, eax
je 0x40308d
cmp dword [edi + 0x34], 8
jb 0x403073
mov ecx, dword [edi + 0x20]
jmp 0x403076
lea ecx, [edi + 0x20]
cmp word [ecx + eax*2 - 2], 0x5c
je 0x40308d
push 1
push 0x8b08b4
lea ecx, [edi + 0x20]
call fcn.004044c0
cmp dword [edi + 0x30], 0
jne 0x4030a2
push 3
push 0x8b08b8
lea ecx, [edi + 0x20]
call fcn.00402820
mov dword [edi + 4], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret
Function at 0x406450
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x79e5c3
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x8ca144]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x830], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x82c], eax
mov dword [ebp - 0x834], 0
call fcn.006f1356
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0074fc20
lea eax, [ebx + 0x50]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4064d5
mov eax, dword [eax]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push edi
push dword [ebp - 0x82c]
push dword [ebp - 0x830]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
call fcn.006eedcc
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x406520
mov eax, dword [esi]
jmp 0x406522
mov eax, esi
xor ecx, ecx
mov word [eax], cx
cmp word [ebp - 0x810], cx
je 0x40654f
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406540
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x810]
mov ecx, esi
push eax
call fcn.00402820
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
mov dword [ebp - 0x834], 1
jb 0x406579
mov eax, dword [esi]
jmp 0x40657b
mov eax, esi
mov ecx, edi
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4065a6
test dx, dx
je 0x4065a2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4065a6
add eax, 4
add ecx, 4
test dx, dx
jne 0x406580
xor eax, eax
jmp 0x4065ab
sbb eax, eax
or eax, 1
test eax, eax
jne 0x406628
push edi
push dword [ebp - 0x82c]
lea eax, [ebp - 0x828]
mov ecx, ebx
push dword [ebp - 0x830]
push eax
call fcn.00406140
mov edi, eax
cmp esi, edi
je 0x40660a
mov eax, dword [esi + 0x14]
cmp eax, 8
jb 0x4065e3
inc eax
mov ecx, esi
push eax
push dword [esi]
call fcn.00402920
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x4065fb
mov eax, dword [esi]
jmp 0x4065fd
mov eax, esi
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push edi
call fcn.00404450
mov ecx, dword [ebp - 0x814]
cmp ecx, 8
jb 0x406628
inc ecx
push ecx
push dword [ebp - 0x828]
lea ecx, [ebp - 0x828]
call fcn.00402920
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret 0x10
Function at 0x407960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x8ca144]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x8cc670]
test al, al
jne 0x407a08
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0074fc20
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x407a03
lea eax, [ebp - 0x20c]
push eax
call fcn.0075a865
lea eax, [ebp - 0x20c]
push str.config_systemprofile
push eax
call fcn.0074efd5
add esp, 0xc
test eax, eax
jne 0x4079e9
lea eax, [ebp - 0x20c]
push str.cocuments_and_settingslocalService
push eax
call fcn.0074efd5
add esp, 8
test eax, eax
je 0x407a03
call fcn.00402330
mov al, 1
mov byte [0x8cc670], al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret
mov al, byte [0x8cc670]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006e70bb
mov esp, ebp
pop ebp
ret
Function at 0x40fb60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
dec edx
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x8cc680], ecx
inc eax
cmp eax, 0x100
jb 0x40fb62
cmp eax, 0x800
jae 0x40fc33
nop
mov edx, dword [eax*4 + str.._AV__basic_filebuf_DU__char_traits_D_std___std__]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x8cc680]
mov dword [eax*4 + 0x8cc680], edx
inc eax
cmp eax, 0x800
jb 0x40fc10
mov dword [0x8ce680], 0x40af30
call fcn.00410030
mov ecx, dword [0x8ce680]
test eax, eax
mov edx, 0x40afd0
cmove ecx, edx
mov dword [0x8ce680], ecx
ret
Function at 0x410f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x10
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
push ebx
xor ebx, ebx
and eax, 7
cmp ecx, 5
jae 0x410f80
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 0x10], 5
lea edx, [ecx - 4]
push esi
mov esi, dword [ebp + 8]
push edi
or edi, 0xffffffff
add edx, esi
mov dword [ebp + 0xc], edx
add esi, ebx
mov dword [ebp - 4], esi
cmp esi, edx
jae 0x410fb2
nop dword [eax]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x410faf
inc esi
cmp esi, edx
jb 0x410fa0
mov dword [ebp - 4], esi
mov ebx, esi
sub ebx, dword [ebp + 8]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x4110d7
cmp ecx, 3
jbe 0x410fcc
xor eax, eax
jmp 0x41100a
dec ecx
shl eax, cl
and eax, 7
je 0x41100a
movzx ecx, byte [eax + 0x7ba43c]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x7ba434], 0
mov cl, byte [edx + 4]
je 0x410ff4
test cl, cl
je 0x410ff4
cmp cl, 0xff
jne 0x411007
mov edx, dword [ebp + 0xc]
and eax, 3
mov esi, dword [ebp + 8]
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x410f94
mov edx, dword [ebp + 0xc]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x10], edi
test cl, cl
je 0x41102c
cmp cl, 0xff
je 0x41102c
mov esi, dword [ebp + 8]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x410f94
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 0x10]
shl edi, 8
or edi, ecx
nop dword [eax]
cmp dword [ebp + 0x18], 0
je 0x41105d
lea edx, [edi + ebx]
add edx, esi
jmp 0x411063
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x4110a1
movzx edi, byte [eax + 0x7ba43c]
mov ecx, 0x18
shl edi, 3
sub ecx, edi
mov dword [ebp - 0xc], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 8], edi
test cl, cl
je 0x41108d
cmp cl, 0xff
jne 0x4110a1
mov ecx, 0x20
mov edi, 1
sub ecx, dword [ebp - 0xc]
shl edi, cl
dec edi
xor edi, edx
jmp 0x411050
mov esi, dword [ebp - 4]
mov ecx, edx
mov edi, dword [ebp - 0x10]
shr ecx, 0x18
and cl, 1
dec cl
mov byte [esi + 1], dl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
mov edx, dword [ebp + 0xc]
shr ecx, 8
add ebx, 5
mov byte [esi + 2], cl
mov esi, dword [ebp + 8]
jmp 0x410f94
pop edi
pop esi
cmp ecx, 3
jbe 0x4110ec
mov ecx, dword [ebp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0x14]
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret