joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100977d
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1012288]
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push 7
push eax
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
call dword [0x1001180]
test eax, eax
jl 0x1009845
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [0x1001174]
test eax, eax
je 0x1009816
push esi
lea eax, [ebp - 0x210]
push eax
call dword [fcn.010010a0]
cmp word [ebp + eax*2 - 0x212], 0x5c
mov esi, dword [fcn.01001150]
je 0x10097fa
push 0x1001b64
lea eax, [ebp - 0x210]
push eax
call esi
push 0x1002598
lea eax, [ebp - 0x210]
push eax
call esi
lea eax, [ebp - 0x210]
push eax
call dword [fcn.010010ec]
pop esi
lea eax, [ebp - 0x214]
push eax
call dword [0x1001178]
test eax, eax
jl 0x1009845
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
call fcn.0100ecf8
leave
ret

Function at 0x1009956
Capabilities:
Get common file path
Get startup folder

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x1012288]
push ebx
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 0x218]
push ecx
mov dword [ebp - 4], eax
xor eax, eax
push 7
push eax
xor ebx, ebx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
call dword [0x1001180]
test eax, eax
jl 0x1009a4b
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x218]
call dword [0x1001174]
test eax, eax
je 0x1009a1c
push edi
lea eax, [ebp - 0x210]
push eax
call dword [fcn.010010a0]
cmp word [ebp + eax*2 - 0x212], 0x5c
mov edi, dword [fcn.01001150]
je 0x10099da
push 0x1001b64
lea eax, [ebp - 0x210]
push eax
call edi
push 0x1002598
lea eax, [ebp - 0x210]
push eax
call edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x23c], eax
lea eax, [ebp - 0x23c]
push eax
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x238], 2
mov dword [ebp - 0x230], esi
call fcn.0100967f
test eax, eax
pop edi
jl 0x1009a1c
xor ebx, ebx
inc ebx
lea eax, [ebp - 0x214]
push eax
call dword [0x1001178]
test eax, eax
jl 0x1009a4b
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x218]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
pop ebx
call fcn.0100ecf8
leave
ret
Function at 0x1009a5e
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
sub eax, esi
je 0x1009a76
dec eax
jne 0x1009a7d
mov dword [ebp + 8], esi
jmp 0x1009a7d
mov dword [ebp + 8], 2
call fcn.01009573
push 0x209
push 0x40
call dword [fcn.010010a8]
cmp eax, esi
mov dword [ebp - 4], eax
je 0x1009bb1
push ebx
push 0x104
push eax
push esi
call dword [0x10010b8]
push dword [0x1011090]
call dword [fcn.010010a0]
lea eax, [eax + eax + 0x208]
push eax
call dword [sym.imp.msvcrt.dll_malloc]
mov ebx, eax
cmp ebx, esi
pop ecx
je 0x1009b3d
push edi
push dword [0x1011090]
push ebx
call dword [fcn.01001160]
mov esi, dword [fcn.01001150]
mov edi, 0x10025dc
push edi
push ebx
call esi
push 0x1001f24
push ebx
call esi
push edi
push ebx
call esi
mov eax, dword [0x1011030]
mov eax, dword [eax + 0x14f8]
test eax, 0x200000
pop edi
je 0x1009b0c
push 0x1001f1c
jmp 0x1009b34
test eax, 0x400000
je 0x1009b1a
push 0x1001f10
jmp 0x1009b34
test eax, 0x800000
je 0x1009b28
push 0x1001f00
jmp 0x1009b34
test eax, 0x2000000
je 0x1009b37
push 0x1001ef8
push ebx
call esi
mov eax, ebx
xor esi, esi
jmp 0x1009b42
mov eax, dword [0x1011090]
push eax
push dword [ebp - 4]
call fcn.01009956
test eax, eax
pop ecx
pop ecx
jne 0x1009b69
push 0x10010
push 0x1f4
call fcn.0100b1e9
pop ecx
push eax
push 0x1fc
jmp 0x1009b96
call fcn.01009854
test eax, eax
je 0x1009b80
push esi
push dword [ebp + 8]
call dword [0x1001264]
test eax, eax
jne 0x1009ba4
push 0x10010
push 0x1f4
call fcn.0100b1e9
pop ecx
push eax
push 0x1fd
call fcn.0100b1e9
pop ecx
push eax
push esi
call dword [fcn.010011a4]
cmp ebx, esi
je 0x1009bb0
push ebx
call dword [sym.imp.msvcrt.dll_free]
pop ecx
pop ebx
xor eax, eax
inc eax
pop esi
leave
ret

Function at 0x1009d9b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002628
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1009e00
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x100260c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1009df7
cmp dword [ebp - 8], 1
jne 0x1009df7
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x100b281
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x10017e0
push 0x80000001
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100b2de
push 4
lea eax, [ebp - 0xc]
push eax
push 3
push esi
push 0x100286c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret
Function at 0x100bc06
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x1012288]
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
xor esi, esi
mov edx, 0x81
mov dword [ebp - 0x210], esi
mov ecx, edx
lea edi, [ebp - 0x20c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x628], esi
mov ecx, edx
lea edi, [ebp - 0x624]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x41c], esi
xor eax, eax
mov ecx, edx
lea edi, [ebp - 0x418]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x630], esi
stosw word es:[edi], ax
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [0x10010c8]
lea eax, [ebp - 0x210]
push eax
call dword [fcn.010010a0]
lea eax, [ebp + eax*2 - 0x210]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [0x1001230]
cmp word [eax], 0x5c
mov edi, dword [fcn.01001150]
je 0x100bcb3
push 0x1001b64
lea eax, [ebp - 0x210]
push eax
call edi
push 0x10029a8
lea eax, [ebp - 0x210]
push eax
call edi
lea eax, [ebp - 0x210]
push eax
call dword [fcn.0100109c]
cmp eax, 0xffffffff
jne 0x100bcda
xor eax, eax
jmp 0x100be3b
mov edi, dword [0x1001158]
push ebx
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x628]
push eax
push 0x1001774
push 0x1002990
mov ebx, 0x1002984
push ebx
call edi
lea eax, [ebp - 0x210]
push eax
push esi
lea eax, [ebp - 0x41c]
push eax
push 0x1001774
push 0x1002964
push ebx
call edi
mov eax, dword [0x1011030]
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
xor esi, esi
inc esi
push esi
push eax
call dword [ecx + 0x2c]
mov eax, dword [0x1011030]
mov eax, dword [eax + 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x630]
push edx
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x1c]
xor ebx, ebx
cmp dword [ebp - 0x630], ebx
je 0x100bd60
call fcn.01009487
jmp 0x100be37
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x62c], ebx
mov dword [ebp - 0x638], ebx
mov dword [ebp - 0x634], esi
call dword [fcn.0100109c]
cmp eax, 0xffffffff
je 0x100bd91
lea eax, [ebp - 0x210]
push eax
call dword [fcn.010010ec]
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x62c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x10028e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp dword [ebp - 0x62c], ebx
je 0x100be37
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 0x634]
push eax
push 4
push ebx
push 0x10028c8
push dword [ebp - 0x62c]
call esi
mov edi, dword [fcn.010010a0]
lea eax, [ebp - 0x628]
push eax
call edi
shl eax, 1
push eax
lea eax, [ebp - 0x628]
push eax
push 1
push ebx
push 0x10028b4
push dword [ebp - 0x62c]
call esi
lea eax, [ebp - 0x41c]
push eax
call edi
shl eax, 1
push eax
lea eax, [ebp - 0x41c]
push eax
push 1
push ebx
push 0x1002894
push dword [ebp - 0x62c]
call esi
push dword [ebp - 0x62c]
call dword [fcn.01001094]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0100ecf8
leave
ret
Function at 0x100eecd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1002b68
push 0x80000000
call dword [entry0]
test eax, eax
jne 0x100ef25
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100215a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x100ef18
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x100ef27
xor eax, eax
pop esi
leave
ret 4

Function at 0x4150f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x415112
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x415119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x415108
mov eax, 1
add ebx, ebx
jne 0x41512b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x415120
jne 0x41513c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x415120
xor ecx, ecx
sub eax, 3
jb 0x415150
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4151c2
mov ebp, eax
add ebx, ebx
jne 0x41515b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x415168
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41518c
inc ecx
add ebx, ebx
jne 0x415178
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41516d
jne 0x415189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41516d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4151ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41519d
jmp 0x41510e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4151ac
add edi, ecx
jmp 0x41510e
pop esi
mov edi, esi
mov ecx, 0xa1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4151ca
cmp byte [edi], 5
jne 0x4151ca
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 0x4151cf
lea edi, [esi + 0x13000]
mov eax, dword [edi]
or eax, eax
je 0x415247
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x159fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15a88]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4151fc
mov ecx, edi
jns 0x41522b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15a8c]
or eax, eax
je 0x415241
mov dword [ebx], eax
add ebx, 4
jmp 0x415219
call dword [esi + 0x15a90]
popal
jmp 0x4021d0
Function at 0x40759b
Capabilities:
Encode data using xor

Disassembly:
push 0x48
mov eax, 0x46a206
call fcn.0044f58f
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], edi
lea eax, [ebp + 0xc]
push eax
xor ebx, ebx
lea eax, [ebp - 0x2c]
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004073e4
pop ecx
pop ecx
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00407028
mov dword [ebp - 0x50], ebx
cmp dword [ebp - 0x18], edi
jbe 0x407605
push edi
lea ecx, [ebp - 0x2c]
call fcn.00406ce9
mov cl, byte [0x49629c]
xor byte [eax], cl
push edi
lea ecx, [ebp - 0x2c]
call fcn.00406ce9
movzx eax, byte [eax]
push eax
mov ecx, esi
call fcn.004070ef
inc edi
cmp edi, dword [ebp - 0x18]
jb 0x4075da
push dword [esi]
lea ecx, [ebp - 0x48]
call fcn.00405cb8
mov edi, dword [ebp + 0x28]
dec edi
mov byte [ebp - 4], 3
test edi, edi
jle 0x407657
push dword [ebp + 0x2c]
lea eax, [ebp - 0x48]
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.00405874
lea eax, [ebp - 0x4c]
push eax
call fcn.0040759b
add esp, 0x28
push eax
mov ecx, esi
mov byte [ebp - 4], 4
call fcn.004072f4
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 3
call fcn.00404b88
inc edi
cmp dword [ebp + 0x2c], edi
jne 0x407688
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp + 0x2c]
mov ecx, esi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.004071ae
push eax
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.004072f4
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.00404b88
push 0
push ebx
lea ecx, [ebp - 0x48]
call fcn.004051e4
push 0
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004051e4
push 0
push ebx
lea ecx, [ebp + 0xc]
call fcn.004051e4
mov eax, esi
call fcn.0044f612
ret
Function at 0x40b8f5
Capabilities:
Encode data using xor

Disassembly:
push 0xc8
mov eax, fcn.0046a6e3
call fcn.0044f58f
mov ebx, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x50], edi
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], edi
call fcn.004073e4
pop ecx
pop ecx
mov byte [ebp - 4], 1
call fcn.0042d3c8
push eax
lea ecx, [ebp - 0x4c]
call fcn.00406e76
xor esi, esi
mov byte [ebp - 4], 2
cmp dword [ebp - 0x18], edi
jbe 0x40b96b
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406ce9
mov cl, byte [0x49629c]
xor byte [eax], cl
push esi
lea ecx, [ebp - 0x2c]
call fcn.00406ce9
movsx ax, byte [eax]
movzx eax, ax
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040a749
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x40b93b
mov esi, dword [ebp + 0x28]
dec esi
cmp esi, edi
jle 0x40b9f9
push dword [ebp - 0x4c]
lea ecx, [ebp - 0xd4]
call fcn.00409919
push dword [eax]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.00405cb8
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 5
cmp dword [ebp - 0xd4], eax
je 0x40b9b1
push dword [ebp - 0xd4]
call fcn.0044f0a3
pop ecx
push dword [ebp + 0x2c]
lea eax, [ebp - 0x48]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x50], esp
push eax
call fcn.00405874
lea eax, [ebp - 0x50]
push eax
call fcn.0040b8f5
add esp, 0x28
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.0040a8c4
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
call fcn.00404b88
push edi
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 2
call fcn.004051e4
inc esi
cmp dword [ebp + 0x2c], esi
jne 0x40ba31
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax - 0xc]
sub eax, dword [ebp + 0x2c]
lea ecx, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x50]
push eax
call fcn.00409f8b
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 7
call fcn.0040a8c4
mov ecx, dword [ebp - 0x50]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00404b88
lea ecx, [ebp - 0x4c]
call fcn.0040a820
mov ecx, eax
call fcn.0040a869
push eax
mov ecx, ebx
call fcn.00408e47
mov ecx, dword [ebp - 0x4c]
add ecx, 0xfffffff0
call fcn.00404b88
push edi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004051e4
push edi
push 1
lea ecx, [ebp + 0xc]
call fcn.004051e4
mov eax, ebx
call fcn.0044f612
ret
Function at 0x40f270
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47c35b
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.0046ecda
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f2f2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046c5c0
mov eax, dword [eax]
push 0xb31200
push eax
call fcn.0045f054
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046ef65
test bl, bl
je 0x40f2f2
push 0xb31200
lea ecx, [esp + 0xc]
call fcn.0046f341
push 0xb34d7c
lea ecx, [esp + 0xc]
call fcn.0046f341
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 0x40f32e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046ef65
jmp 0x40f3f9
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 0x40f3b2
lea edx, [esp + 0x7c]
push 0xb34d78
push edx
call fcn.0045f054
add esp, 8
test eax, eax
je 0x40f3b2
lea eax, [esp + 0x7c]
push 0xb34d74
push eax
call fcn.0045f054
add esp, 8
test eax, eax
je 0x40f3b2
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 0x40f342
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.0046ef65
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 0x40fbf0
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 0x40fc52
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 0x40fc60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47c3db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xb3d9a0]
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 0x40fd98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40fcc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ef65
xor eax, eax
jmp 0x40fe0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046f0ee
push esi
lea ecx, [esp + 0xc]
call fcn.0046f37d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0xb34db4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40fded
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040fbf0
test eax, eax
jne 0x40fded
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.0040fbf0
test eax, eax
jne 0x40fded
lea eax, [esp + 0x14]
push 0xb34d90
push eax
call fcn.00460130
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fdcc
lea ecx, [esp + 0x14]
push 0xb34d8c
push ecx
call fcn.004600b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fdcc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40fdcf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046f09e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40fcde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046ef65
xor eax, eax
jmp 0x40fe0f
mov byte [esi], 0
push 0xb34d88
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.0046ef65
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 0x420820
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 0x42088e
cmp si, 0x69
ja 0x42088e
add esi, 0xffd0
cmp si, 0x11
je 0x42085e
push 0x11
call edi
test ax, ax
jge 0x42085e
or esi, 0x2000
cmp si, 0x10
je 0x420873
push 0x10
call edi
test ax, ax
jge 0x420873
or esi, 0x4000
cmp si, 0x12
je 0x420888
push 0x12
call edi
test ax, ax
jge 0x420888
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42089b
mov esi, 0xbd
jmp 0x42084f
cmp si, 0x6e
jne 0x4208a8
mov esi, 0xbe
jmp 0x42084f
cmp si, 0x6f
jne 0x420849
mov esi, 0xbf
jmp 0x42084f

Function at 0x421fd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xb4e818]
xor edx, edx
cmp eax, edx
jne 0x421ff6
xor eax, eax
mov byte [eax + 0xb4e718], al
inc eax
cmp eax, 0x100
jl 0x421fde
mov dword [0xb4e818], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xb4e718
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x422087
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 0x42205a
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 0x422028
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x422100
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 0x422153
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 0x42213a
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