joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ef80
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x838
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, edx
mov eax, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x830], eax
mov dword [ebp - 0x838], ecx
push esi
mov esi, dword [ebp + 8]
test ebx, ebx
je 0x45f187
test eax, eax
je 0x45f187
push edi
push 0x2000000
lea ecx, [ebp - 0x82c]
mov dword [ebp - 0x82c], 0x824
push ecx
lea ecx, [ebp - 0x828]
mov dword [ebp - 0x834], 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x45f04c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x45f039
push dword [ebp - 0x82c]
call fcn.0048b2b1
add esp, 4
mov dword [ebp - 0x834], 1
mov edi, eax
lea eax, [ebp - 0x82c]
push 0x2000000
push eax
push edi
push dword [ebp - 0x830]
call dword [sym.imp.WININET.dll_InternetCanonicalizeUrlA]
test eax, eax
jne 0x45f052
push edi
call fcn.0048b2ba
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x828]
push ebx
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp - 0x834], 0
mov ecx, eax
mov dword [ebp - 0x830], ecx
je 0x45f07e
push edi
call fcn.0048b2ba
mov ecx, dword [ebp - 0x830]
add esp, 4
test ecx, ecx
je case.default.0x45f0a0
mov edx, dword [ebp - 0x838]
mov ax, word [ebx + 0x18]
mov word [edx], ax
mov eax, dword [ebx + 0xc]
dec eax
cmp eax, 6
ja case.default.0x45f0a0
jmp dword [eax*4 + 0x45f19c]
pop edi
mov dword [esi], 1
test ecx, ecx
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 2
test ecx, ecx
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 3
test ecx, ecx
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0x100b
test ecx, ecx
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0x1001
test ecx, ecx
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0x1006
test ecx, ecx
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0x1002
test ecx, ecx
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0x1000
test ecx, ecx
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret
Function at 0x462f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b6230
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 1
cmp dword [ebp + 0x18], 0
je 0x462fcf
cmp dword [ebp + 0x30], 0
je 0x462fcf
lea ecx, [esi + 4]
lea eax, [ebp + 8]
cmp ecx, eax
je 0x462f5b
push 0xffffffffffffffff
push 0
push eax
call fcn.00437570
lea ecx, [esi + 0x1c]
lea eax, [ebp + 0x20]
cmp ecx, eax
je 0x462f6f
push 0xffffffffffffffff
push 0
push eax
call fcn.00437570
cmp byte [ebp + 0x40], 0
mov al, byte [ebp + 0x38]
mov byte [esi + 0x34], al
mov eax, dword [ebp + 0x3c]
mov dword [esi + 0x38], eax
mov dword [esi + 0x50], 3
je 0x462f93
mov ecx, esi
call fcn.00463ad0
mov bl, al
jmp 0x462fd8
mov eax, dword [esi + 0x40]
test eax, eax
je 0x462fab
push 0xffffffffffffffff
push eax
mov byte [esi + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [esi + 0x3c], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
push esi
push 0x463cf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x40], eax
mov bl, 1
jmp 0x462fd8
mov dword [esi + 0x50], 1
xor bl, bl
cmp dword [ebp + 0x1c], 0x10
jb 0x462fe9
push dword [ebp + 8]
call fcn.0048b2ba
add esp, 4
cmp dword [ebp + 0x34], 0x10
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
jb 0x46300c
push dword [ebp + 0x20]
call fcn.0048b2ba
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0676
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x463ad0
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b6358
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x628960]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov esi, ecx
push 4
xor eax, eax
mov dword [esp + 0x3c], 7
push 0x60d24c
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 0
mov word [esp + 0x2c], ax
call fcn.004383d0
lea edx, [esp + 0x24]
mov dword [esp + 0x48], 0
lea ecx, [esp + 0x1c]
call fcn.00464ac0
mov edx, eax
mov byte [esp + 0x48], 1
cmp dword [esi + 0x30], 0x10
jb 0x463b4c
mov ecx, dword [esi + 0x1c]
jmp 0x463b4f
lea ecx, [esi + 0x1c]
cmp dword [esi + 0x18], 0x10
lea eax, [esi + 4]
jb 0x463b5a
mov eax, dword [eax]
push ecx
push eax
push esi
push str.Curl__X_:___s_______s_
push dword [edx]
call fcn.00464ce0
mov byte [esp + 0x5c], 0
add esp, 0x14
mov edi, dword [esp + 0x20]
test edi, edi
je 0x463b9e
or ebx, 0xffffffff
lea ecx, [edi + 4]
mov eax, ebx
lock xadd dword [ecx], eax
jne 0x463b9e
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x463b9e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov dword [esp + 0x48], 0xffffffff
cmp dword [esp + 0x38], 8
jb 0x463bb9
push dword [esp + 0x24]
call fcn.0048b2ba
add esp, 4
cmp dword [esi + 0x38], 0
mov dword [esi + 0x50], 3
jne 0x463bcc
lea eax, [esi + 0x3c]
mov dword [esi + 0x38], eax
mov al, byte [esi + 0x34]
mov ecx, 0xa
cmp dword [esi + 0x44], ecx
mov byte [esp + 0x10], al
mov eax, 1
cmovl ecx, dword [esi + 0x44]
cmp ecx, eax
cmovl ecx, eax
xor edi, edi
mov dword [esp + 0x14], ecx
test ecx, ecx
jle 0x463caf
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ecx]
sub esp, 0x18
lea eax, [esi + 0x1c]
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00437570
sub esp, 0x18
mov dword [esp + 0x78], 2
mov ecx, esp
lea eax, [esi + 4]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00437570
push dword [esp + 0x40]
mov ecx, esi
mov dword [esp + 0x7c], 0xffffffff
call fcn.004630b0
test al, al
jne 0x463ccb
inc edi
mov dword [esp + 0x18], edi
cmp edi, dword [esp + 0x14]
jge 0x463caf
xor edi, edi
mov eax, dword [esi + 0x38]
cmp byte [eax], 0
jne 0x463c8e
cmp byte [esi + 0x3c], 0
jne 0x463c8e
push 0x64
call ebx
inc edi
cmp edi, 0x32
jl 0x463c76
mov eax, dword [esi + 0x38]
cmp byte [eax], 0
jne 0x463caf
cmp byte [esi + 0x3c], 0
jne 0x463caf
mov edi, dword [esp + 0x18]
mov byte [esp + 0x10], 1
cmp edi, dword [esp + 0x14]
jl 0x463c00
mov dword [esi + 0x50], 1
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x50], 4
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464da0
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b6ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x628960]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x628960]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
mov dword [esp + 0x14], esi
call fcn.0046d830
mov dword [esp + 0x40], 0
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
mov byte [esp + 0x40], 1
cmp dword [esi + 0x30], 0
je 0x464e3b
sub esp, 0x18
mov ecx, esp
push 0x25
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.__.4d__.2d__.2d__.2d__.2d__.2d__.3d_
mov byte [ecx], 0
call fcn.004373f0
lea ecx, [esp + 0x30]
call fcn.004647a0
add esp, 0x18
cmp byte [edi], 0
jne 0x464e44
xor ecx, ecx
jmp 0x464e59
mov ecx, edi
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x464e50
sub ecx, edx
push ecx
push edi
lea ecx, [esp + 0x20]
call fcn.00440a70
cmp dword [esi + 0x34], 0
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x10], ecx
je 0x464eee
cmp ecx, 2
jle 0x464eee
jmp 0x464e80
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ebx, dword [esp + 0x18]
cmp edi, 0x10
cmovae eax, ebx
cmp byte [eax + ecx - 1], 0xa
je 0x464eaa
cmp edi, 0x10
lea eax, [esp + 0x18]
cmovae eax, ebx
cmp byte [eax + ecx - 1], 0xd
jne 0x464eda
lea edx, [ecx - 1]
cmp ecx, edx
jb 0x464fb9
cmp edi, 0x10
mov dword [esp + 0x28], edx
lea eax, [esp + 0x18]
cmovae eax, ebx
mov byte [eax + edx], 0
mov edx, dword [esp + 0x10]
dec edx
mov dword [esp + 0x10], edx
test edx, edx
jle 0x464eda
mov ecx, dword [esp + 0x28]
jmp 0x464e80
push 2
push 0x60ed80
lea ecx, [esp + 0x20]
call fcn.00440a70
mov ecx, dword [esp + 0x28]
cmp dword [esi + 0x24], 0
je 0x464f0d
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x28]
cmp dword [esi + 0x28], 0
je 0x464f33
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push 0x60e3d4
call fcn.004ba3c5
mov ecx, dword [esp + 0x30]
add esp, 8
cmp dword [esi + 0x2c], 0
je 0x464f63
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x464f63
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x18]
push edx
cmovae eax, dword [esp + 0x1c]
push ecx
push 1
push eax
call fcn.004a1a2e
push dword [esi + 0x1c]
call fcn.004a20f6
add esp, 0x14
cmp dword [esp + 0x2c], 0x10
jb 0x464f76
push dword [esp + 0x18]
call fcn.0048b2ba
add esp, 4
push 0
push esi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], 0
mov byte [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a0676
mov esp, ebp
pop ebp
ret 4
push str.invalid_string_position
call fcn.004c1026
int3
Function at 0x466610
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b7467
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x628960]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x60f2cc
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
lea esi, [edi + 4]
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push ecx
push esi
lea eax, [ecx - 8]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
call fcn.0043f2d0
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x60]
mov dword [ecx + edi - 4], eax
mov ecx, esi
call fcn.0043e840
lea eax, [esi + 4]
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0xc], eax
lea ecx, [esi + 8]
lea eax, [esi + 0x14]
mov byte [esi + 0x4c], 0
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov byte [esi + 0x45], 0
mov dword [esi + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov eax, dword [esi + 0x30]
mov dword [eax], 0
mov eax, dword [esi + 0xc]
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
mov dword [eax], 0
mov eax, dword [esi + 0x2c]
mov dword [eax], 0
mov eax, dword [0x646674]
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [esi + 0x50], 0
mov dword [esi + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x46afe0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
mov word [edi + 4], ax
mov byte [edi + 6], al
jmp 0x46b000
movzx esi, byte [eax + str.80_]
mov ecx, 7
mov edx, esi
shr esi, 3
and edx, 7
sub ecx, edx
mov edx, 1
shl edx, cl
test byte [esi + ebx], dl
je 0x46b03a
mov edx, eax
mov esi, eax
and edx, 7
sar esi, 3
mov ecx, 7
sub ecx, edx
mov dl, 1
shl dl, cl
or byte [esi + edi], dl
inc eax
cmp eax, 0x38
jl 0x46b000
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x46b130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor eax, eax
push edi
mov edi, ecx
cmp eax, 4
jae 0x46b2ce
mov byte [ebp + eax - 0xc], 0
inc eax
cmp eax, 4
jl 0x46b14d
xor eax, eax
cmp eax, 4
jae 0x46b2ce
mov byte [ebp + eax - 8], 0
inc eax
cmp eax, 4
jl 0x46b163
mov ecx, dword [ebp + 0xc]
push esi
movzx eax, byte [ecx]
mov byte [esi], al
movzx eax, byte [ecx + 1]
mov byte [esi + 1], al
movzx eax, byte [ecx + 2]
mov byte [esi + 2], al
movzx eax, byte [ecx + 3]
mov byte [esi + 3], al
movzx eax, byte [ecx + 4]
mov byte [esi + 4], al
movzx eax, byte [ecx + 5]
mov byte [esi + 5], al
movzx eax, byte [ecx + 6]
mov byte [esi + 6], al
movzx eax, byte [ecx + 7]
mov byte [esi + 7], al
call fcn.0046b2e0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x46b21b
mov dword [ebp - 0x10], 0x10
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 4]
mov byte [esi], al
movzx eax, byte [esi + 5]
mov byte [esi + 1], al
movzx eax, byte [esi + 6]
mov byte [esi + 2], al
movzx eax, byte [esi + 7]
mov byte [esi + 3], al
lea eax, [ebp - 8]
push eax
push edi
push esi
call fcn.0046b360
mov cl, byte [ebp - 0xc]
add edi, 6
mov eax, dword [ebp - 8]
xor cl, al
mov dl, byte [ebp - 6]
mov al, ah
mov bl, byte [ebp - 5]
xor al, byte [ebp - 0xb]
xor dl, byte [ebp - 0xa]
xor bl, byte [ebp - 9]
dec dword [ebp - 0x10]
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov byte [esi + 6], dl
mov byte [esi + 7], bl
jne 0x46b1c1
jmp 0x46b289
cmp eax, 1
jne 0x46b2b5
lea eax, [edi + 0x5a]
mov edi, 0xf
mov dword [ebp - 0x10], eax
nop
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
movzx eax, byte [esi + 4]
mov byte [esi], al
movzx eax, byte [esi + 5]
mov byte [esi + 1], al
movzx eax, byte [esi + 6]
mov byte [esi + 2], al
movzx eax, byte [esi + 7]
mov byte [esi + 3], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
push esi
call fcn.0046b360
mov cl, byte [ebp - 0xc]
mov eax, dword [ebp - 8]
xor cl, al
mov dl, byte [ebp - 6]
mov al, ah
mov bl, byte [ebp - 5]
xor al, byte [ebp - 0xb]
xor dl, byte [ebp - 0xa]
xor bl, byte [ebp - 9]
sub dword [ebp - 0x10], 6
dec edi
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov byte [esi + 6], dl
mov byte [esi + 7], bl
jns 0x46b230
mov byte [ebp - 0xb], al
movzx eax, byte [esi]
mov byte [esi + 4], al
movzx eax, byte [esi + 1]
mov byte [esi + 5], al
movzx eax, byte [esi + 2]
mov byte [esi + 6], al
movzx eax, byte [esi + 3]
mov byte [esi + 7], al
mov byte [ebp - 0xc], cl
mov byte [ebp - 0xa], dl
mov byte [ebp - 9], bl
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
push esi
call fcn.0046b540
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret 0xc
call fcn.004a5835
int3
Function at 0x46b360
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push edi
mov edi, dword [ebp + 0x10]
cmp eax, 6
jae 0x46b4b4
mov byte [ebp + eax - 0xc], 0
inc eax
cmp eax, 6
jl 0x46b379
xor eax, eax
cmp eax, 8
jae 0x46b4b4
mov byte [ebp + eax - 0x14], 0
inc eax
cmp eax, 8
jl 0x46b38f
push ebx
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.0046b4c0
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
xor edx, edx
sub esi, eax
lea ecx, [ebp - 0xc]
add ecx, edx
inc edx
mov al, byte [esi + ecx]
xor byte [ecx], al
cmp edx, 6
jl 0x46b3b8
mov edx, dword [ebp - 0xc]
mov al, dl
shr al, 2
mov cl, dl
mov dl, byte [ebp - 0xa]
and cl, 3
mov byte [ebp - 0x14], al
mov al, dh
shl cl, 4
shr al, 4
or cl, al
mov al, dl
mov byte [ebp - 0x13], cl
and dl, 0x3f
shr al, 6
mov cl, dh
and cl, 0xf
mov byte [ebp - 0x11], dl
mov dl, byte [ebp - 8]
shl cl, 2
or cl, al
mov byte [ebp - 0x12], cl
mov cl, byte [ebp - 9]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x10], al
mov al, dl
shl cl, 4
and dl, 0xf
shr al, 4
or cl, al
shl dl, 2
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 7]
mov al, cl
and cl, 0x3f
shr al, 6
or dl, al
mov byte [ebp - 0xd], cl
mov byte [ebp - 0xe], dl
xor ebx, ebx
lea esp, [esp]
mov al, byte [ebp + ebx - 0x14]
movzx edx, al
and al, 1
shl al, 4
movzx ecx, al
mov eax, edx
shr eax, 1
and edx, 0x20
and eax, 0xf
or ecx, eax
movzx eax, bl
shl eax, 6
or ecx, edx
movzx eax, byte [ecx + eax + 0x60d490]
and al, 0xf
mov byte [ebp + ebx - 0x14], al
inc ebx
cmp ebx, 8
jl 0x46b440
pop esi
xor ecx, ecx
pop ebx
jmp 0x46b480
mov al, byte [ebp + ecx*2 - 0x14]
shl al, 4
or al, byte [ebp + ecx*2 - 0x13]
mov byte [ebp + ecx - 0xc], al
inc ecx
cmp ecx, 4
jl 0x46b480
lea eax, [ebp - 0xc]
push eax
call fcn.0046af60
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
xor ecx, ebp
mov dword [edi], eax
pop edi
call fcn.004a0676
mov esp, ebp
pop ebp
ret 0xc
call fcn.004a5835
int3
Function at 0x46d920
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b8230
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x628960]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
lea ebx, [esi + 4]
mov dword [ebp - 4], 0
push ebx
push 0x60ab10
mov edi, 1
push edi
push 0
push 0x60abe0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [esi], eax
cmp eax, 0x80004005
jne 0x46d9a0
push 0x60f5dc
call fcn.004ba3c5
add esp, 4
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx]
test edx, edx
je 0x46d986
mov ecx, dword [edx]
lea eax, [esi + 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [esi + 0xc]
push edx
call dword [ecx + 0xc]
mov dword [esi], eax
cmp eax, 0x80004005
jne 0x46da0f
push 0x60f644
call fcn.004ba3c5
mov eax, dword [ebx]
add esp, 4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor edi, edi
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46dbf0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push edi
cmovae eax, dword [ebp + 8]
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [edi], eax
test eax, eax
je 0x46dcb7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VariantToUInt16
push eax
call esi
push str.VariantToInt16
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.VariantToBoolean
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.VariantToUInt32
push dword [edi]
mov dword [edi + 0xc], eax
call esi
push str.VariantToInt32
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.VariantToUInt64
push dword [edi]
mov dword [edi + 0x14], eax
call esi
push str.VariantToInt64
push dword [edi]
mov dword [edi + 0x18], eax
call esi
push str.VariantToDouble
push dword [edi]
mov dword [edi + 0x1c], eax
call esi
push str.VariantToString
push dword [edi]
mov dword [edi + 0x20], eax
call esi
push str.VariantGetStringElem
push dword [edi]
mov dword [edi + 0x24], eax
call esi
push str.VariantGetInt32Elem
push dword [edi]
mov dword [edi + 0x28], eax
call esi
push str.VariantGetInt64Elem
push dword [edi]
mov dword [edi + 0x2c], eax
call esi
push str.VariantGetDoubleElem
push dword [edi]
mov dword [edi + 0x30], eax
call esi
mov dword [edi + 0x34], eax
pop esi
jmp 0x46dd12
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 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
cmp dword [ebp + 0x1c], 0x10
jb 0x46dd23
push dword [ebp + 8]
call fcn.0048b2ba
add esp, 4
mov eax, edi
pop edi
pop ebp
ret 0x18

Function at 0x46ee50
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
and byte [esi + 0xc], 9
mov al, byte [esi + 0xc]
test al, 1
je 0x46ee8b
test al, 8
jne 0x46ee8b
push 0xfffffffffffffff0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000000
je 0x46ee8b
or byte [esi + 0xc], 4
mov cl, byte [esi + 0xc]
test eax, 0x21000000
jne 0x46ee8b
or cl, 2
mov byte [esi + 0xc], cl
test byte [esi + 0xc], 2
je 0x46eeab
push 8
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0046e310
pop esi
pop ebp
ret 4
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 4
Function at 0x479070
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x628960]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x3c5], 0
je 0x479158
mov ecx, dword [esi + 0x2c4]
lea edx, [ebp - 0xc]
push 0
push edx
push 0
mov eax, dword [ecx]
push 0x434
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [esi + 0x3c8], eax
mov dword [esi + 0x3cc], ecx
cmp edi, 8
jne 0x4790dd
cmp ecx, eax
jne 0x479109
test eax, eax
jle 0x479109
push 1
dec eax
lea ecx, [esi + 0x3ac]
push eax
call fcn.00437f10
jmp 0x479158
cmp edi, 0x2e
jne 0x47911a
cmp ecx, eax
jne 0x479109
push ecx
lea ecx, [esi - 8]
call fcn.0047a210
mov ecx, dword [ebp - 8]
cmp ecx, eax
jge 0x479106
push 1
push ecx
lea ecx, [esi + 0x3ac]
call fcn.00437f10
jmp 0x479158
mov eax, dword [ebp - 0xc]
sub ecx, eax
push ecx
push eax
lea ecx, [esi + 0x3ac]
call fcn.00437f10
jmp 0x479158
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call ebx
test ax, ax
je 0x47912e
cmp edi, 0x5a
je 0x47919b
push 0x11
call ebx
test ax, ax
je 0x47913c
cmp edi, 0x56
je 0x47919b
push 0x11
call ebx
test ax, ax
je 0x47914a
cmp edi, 0x43
je 0x47919b
push 0x11
call ebx
test ax, ax
je 0x479158
cmp edi, 0x58
je 0x47919b
push dword [ebp + 0x10]
mov ecx, esi
push dword [ebp + 0xc]
push edi
call fcn.0047b060
mov ecx, dword [esi + 0x2c4]
lea edx, [ebp - 8]
push edx
push 0
mov dword [ebp - 0x14], 0
lea edx, [ebp - 0x14]
mov dword [ebp - 0x10], 0x4b0
mov eax, dword [ecx]
push edx
push 0x45f
call dword [eax + 0xc]
cmp dword [ebp - 8], 0
setle al
mov byte [esi + 0x3c4], al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0676
mov esp, ebp
pop ebp
ret 0xc