joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d560
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x41d6e8
pushal
mov esi, section.UPX1
lea edi, [esi - 0x13000]
push edi
or ebp, 0xffffffff
jmp 0x41d58a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d591
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d580
mov eax, 1
add ebx, ebx
jne 0x41d5a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d598
jne 0x41d5b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d598
xor ecx, ecx
sub eax, 3
jb 0x41d5c8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d63a
mov ebp, eax
add ebx, ebx
jne 0x41d5d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d5e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d604
inc ecx
add ebx, ebx
jne 0x41d5f0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d5e5
jne 0x41d601
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d5e5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d624
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d615
jmp 0x41d586
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d624
add edi, ecx
jmp 0x41d586
pop esi
mov edi, esi
mov ecx, 0x86c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41d642
cmp byte [edi], 6
jne 0x41d642
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x41d647
lea edi, [esi + 0x1a000]
mov eax, dword [edi]
or eax, eax
je 0x41d6b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1edc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1ee3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d674
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1ee40]
or eax, eax
je 0x41d6b0
mov dword [ebx], eax
add ebx, 4
jmp 0x41d691
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x41d6e7
cmp al, 0xef
ja 0x41d6da
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x41d6bc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x41d6c9
popal
jmp 0x4124b8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x43601c]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
push 4
lea ecx, [ebp - 8]
call fcn.00407250
mov eax, dword [ebp + 8]
push eax
call fcn.00404620
add esp, 4
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.00407d50
add esp, 8
mov dword [ebp - 0x10], 0x407db0
mov edx, dword [ebp - 0xc]
add edx, 4
push edx
push 0
lea ecx, [ebp - 8]
call fcn.00401780
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0
call fcn.0040ec79
add esp, 0x18
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
je 0x407bb6
lea ecx, [ebp - 8]
call fcn.00407270
jmp 0x407bc7
mov eax, dword [ebp - 0xc]
mov dword [eax + 4], 0
push 6
call fcn.00408192
lea ecx, [ebp - 8]
call fcn.00407ca0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a37e
mov esp, ebp
pop ebp
ret 4

Function at 0x409240
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x43601c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x409265
xor eax, eax
jmp 0x4092c1
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x409292
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x409292
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x409348
cmp dword [edi + 0x4c], 0
je 0x4092bb
mov ecx, edi
call fcn.00408ebe
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4092d1
push dword [edi + 0x4c]
push ebx
call fcn.0040872b
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x4092c0
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0040a37e
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x427154]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x40931b
sub eax, 1
je 0x40931b
dec eax
sub eax, 1
jne 0x4092bb
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x4092ad
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x409338
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00411c6e
add esp, 0x10
cmp esi, eax
jne 0x4092bb
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x4092bb
mov ax, bx
jmp 0x4092c0

Function at 0x40ae10
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40ae4f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40ae4f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40ae4f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40ae4f
cmp dword [ecx + 0x74], 0xe
jbe 0x40ae4f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x419bab
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041985c

Function at 0x419bb6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004199e6

Function at 0x425dc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425ded
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425ded
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001f4c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002f130]
jne 0x10001f56
repz ret
jmp fcn.100021fd

Function at 0x10002750
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1002f110], 0
mov byte [0x1002f114], 0
mov dword [0x1002f104], 0x7e8
mov dword [0x1002f10c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100027a3
mov dword [0x1002f10c], 0
jmp 0x100027d5
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1002f108], 0x126
mov eax, dword [0x1002f10c]
add eax, 1
mov dword [0x1002f10c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100027a3
jmp 0x10002797
mov eax, 0x100
mov dword [0x1002f118], 0
mov ecx, dword [0x1002f110]
mov edx, dword [0x1002f10c]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x1002f118], edi
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x1002f110], edx
mov dword [0x1002f104], 0x1c92
mov ecx, dword [0x1002f10c]
mov bl, byte [esi + ecx]
mov byte [0x1002f114], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x1002f114]
mov ecx, dword [0x1002f110]
mov byte [esi + ecx], bl
mov ecx, dword [0x1002f10c]
add ecx, 1
mov dword [0x1002f10c], ecx
cmp ecx, 0x100
jl 0x100027d5
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10002c40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, 0x20fb
lea ecx, [fcn.10002c40]
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x10002c96
mov eax, dword [ebp - 0xc]
mov dword [0x1002f104], eax
mov eax, dword [ebp - 0x10]
add esp, 0x10
pop ebp
ret
mov eax, 0x207e
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffff000
and ecx, 0xfffff000
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
jmp 0x10002c96
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
je 0x10002c59
jmp 0x10002c69
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ecx
je 0x10002c85
jmp 0x10002c69
Function at 0x10002cb0
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x24
mov dword [ebp - 8], 0
mov dword [0x1002f108], 0x1aa4
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x1002f104], 0x82f
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x10002d37
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x10002d96
jmp 0x10002dd8
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x14], eax
jl 0x10002d37
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x18], eax
je 0x10002d4f
jmp 0x10002dd8
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edx
je 0x10002d20
jmp 0x10002d09
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x10002dd8
mov dword [0x1002f104], 0x1ebc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x16], 0x61
jne 0x10002dd8
mov dword [0x1002f104], 0x716
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x10002cf1
jmp 0x10002dd8
mov dword [0x1002f104], 0x90f
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x10002dd8
mov eax, 1
mov ecx, 0x1f9
mov dword [0x1002f108], 0x201d
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x18]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
je 0x10002dec
xor eax, eax
mov ecx, dword [0x1002f104]
add ecx, 0x544
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
mov dword [0x1002f104], eax
mov eax, ecx
add esp, 0x24
pop esi
pop ebp
ret
Function at 0x10003210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x1002f104], 0x15b6
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
jmp 0x100032b1
lea eax, [0x10004507]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [0x1002f104]
add esi, 0x1ba6
mov dword [0x1002f108], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call fcn.10002e80
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.10003560
mov ecx, eax
mov dword [0x1002f124], eax
mov eax, esp
mov edx, dword [ebp - 0x44]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
jmp 0x10003303
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, ecx, 0x128
mov edi, edx
add edi, esi
add edi, 0x124
imul esi, ecx, 0x128
add edx, esi
add edx, 0xa8
add ecx, 1
mov esi, dword [edi]
movzx edx, word [edx]
xor edx, esi
add edx, eax
cmp ecx, 0x246
mov eax, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
je 0x10003235
jmp 0x100032b1
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, section..data
imul esi, ecx, 0x128
mov edi, edx
add edi, esi
add edi, 0xa8
imul esi, ecx, 0x128
mov ebx, edx
add ebx, esi
add ebx, 0x124
imul esi, ecx, 0x128
add edx, esi
add edx, 0x58
mov esi, dword [ebp - 0x48]
add esi, eax
add ecx, 1
mov ebx, dword [ebx]
mov edx, dword [edx]
movzx edi, word [edi]
xor edi, ebx
mov dword [esp], esi
mov dword [esp + 4], edx
mov dword [esp + 8], edi
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], ecx
call fcn.10003420
mov eax, dword [ebp - 0x58]
mov ecx, dword [ebp - 0x54]
add eax, ecx
mov edx, dword [ebp - 0x5c]
cmp edx, 0x246
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], eax
jne 0x10003303
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x44]
mov dword [esp + 8], ecx
call fcn.100030a0
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 0xf1fc2
mov edx, dword [ebp - 0x48]
add edx, 0x109869
mov dword [0x1002f104], 0x1c3a
mov esi, dword [ebp - 0x30]
mov dword [esi], edx
mov dword [esi + 4], 0x13fe00
mov dword [esi + 8], ecx
mov dword [esi + 0xc], 0x20c0
mov dword [0x1002f108], 0x950
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x508670
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x63db3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0062e8da
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x5086f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0062b114
mov eax, dword [eax]
push 0xe7aee4
push eax
call fcn.005bc664
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0062eb65
test bl, bl
je 0x5086f2
push 0xe7aee4
lea ecx, [esp + 0xc]
call fcn.0062ef41
push 0xe7aef0
lea ecx, [esp + 0xc]
call fcn.0062ef41
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x50872e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0062eb65
jmp 0x5087f9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x5087b2
lea edx, [esp + 0x7c]
push 0xe7aeec
push edx
call fcn.005bc664
add esp, 8
test eax, eax
je 0x5087b2
lea eax, [esp + 0x7c]
push 0xe7aee8
push eax
call fcn.005bc664
add esp, 8
test eax, eax
je 0x5087b2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x508742
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0062eb65
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x509a80
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x509ae2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x509af0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x63dc9b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xe8ea30]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x509c28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x509b56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0062eb65
xor eax, eax
jmp 0x509c9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0062ecee
push esi
lea ecx, [esp + 0xc]
call fcn.0062ef7d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x509c7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00509a80
test eax, eax
jne 0x509c7d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00509a80
test eax, eax
jne 0x509c7d
lea eax, [esp + 0x14]
push 0xe7af10
push eax
call fcn.005bd9f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x509c5c
lea ecx, [esp + 0x14]
push 0xe7af0c
push ecx
call fcn.005bd970
mov esi, eax
add esp, 8
test esi, esi
jne 0x509c5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x509c5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0062ec9e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x509b6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0062eb65
xor eax, eax
jmp 0x509c9f
mov byte [esi], 0
push 0xe7af08
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0062eb65
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x510bfa
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x63e598
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.006302db
xor ebp, ebp
mov dword [esi], 0xe3f940
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x40], ebp
lea edi, [esi + 0x44]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], edi
lea ecx, [edi + 0x18]
mov dword [edi], fcn.004fce20
call fcn.004fe2d0
lea ecx, [edi + 0x30]
mov byte [esp + 0x38], 1
call fcn.0062d885
lea ebx, [edi + 0x44]
mov ecx, ebx
call fcn.004fe2d0
mov dword [ebx], 0xe3f3ac
mov dword [edi], 0xe3f858
mov dword [esi + 0xa0], ebp
mov dword [esi + 0x9c], 0xe3eb18
lea ecx, [esi + 0xb0]
call fcn.004fe2d0
lea edi, [esi + 0xc8]
mov dword [edi + 4], ebp
mov dword [edi], 0xe3f934
mov byte [esp + 0x38], 5
mov dword [esi], 0xe3f860
mov dword [esi + 0xac], ebp
call fcn.0063950a
mov eax, dword [eax + 0xc]
push 0x40e
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
mov ecx, edi
call fcn.00635be2
mov ecx, dword [esi + 0xcc]
lea eax, [esp + 0x18]
push eax
push 0x18
push ecx
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x1c]
mov eax, 0x55555556
imul ecx
mov ecx, dword [esp + 0x20]
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esi + 0xd4], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0xd0], edx
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x510d90
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x63e625
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0xe3f860
mov dword [esp + 0x18], 0
lea ecx, [esi + 0xc8]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 4
call fcn.00635c39
lea ecx, [esi + 0xb0]
mov byte [esp + 0x18], 2
mov dword [ecx], 0xe3e980
call fcn.004fe4d0
lea ecx, [esi + 0x9c]
mov dword [esp + 0xc], ecx
mov dword [ecx], method.CGdiObject.virtual_0
mov byte [esp + 0x18], 5
call fcn.00635c39
lea edi, [esi + 0x44]
mov dword [esp + 0xc], edi
lea ecx, [edi + 0x44]
mov byte [esp + 0x18], 7
mov dword [ecx], 0xe3e980
call fcn.004fe4d0
lea ecx, [edi + 0x30]
mov byte [esp + 0x18], 6
call fcn.0062d8b8
lea ecx, [edi + 0x18]
mov byte [esp + 0x18], 0
mov dword [ecx], 0xe3e980
call fcn.004fe4d0
mov ecx, esi
mov dword [esp + 0x18], 0xffffffff
call fcn.00637688
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x524760
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x5247ce
cmp si, 0x69
ja 0x5247ce
add esi, 0xffd0
cmp si, 0x11
je 0x52479e
push 0x11
call edi
test ax, ax
jge 0x52479e
or esi, 0x2000
cmp si, 0x10
je 0x5247b3
push 0x10
call edi
test ax, ax
jge 0x5247b3
or esi, 0x4000
cmp si, 0x12
je 0x5247c8
push 0x12
call edi
test ax, ax
jge 0x5247c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x5247db
mov esi, 0xbd
jmp 0x52478f
cmp si, 0x6e
jne 0x5247e8
mov esi, 0xbe
jmp 0x52478f
cmp si, 0x6f
jne 0x524789
mov esi, 0xbf
jmp 0x52478f

Function at 0x526bd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xea70b8]
xor edx, edx
cmp eax, edx
jne 0x526bf6
xor eax, eax
mov byte [eax + 0xea6fb8], al
inc eax
cmp eax, 0x100
jl 0x526bde
mov dword [0xea70b8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xea6fb8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x526c87
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 0x526c5a
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 0x526c28
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x526d00
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 0x526d53
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 0x526d3a
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