joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001233
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x1002018]
push ebx
push esi
push edi
lea esi, [ebp + 0xd4]
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 0xe4]
and dword [ebp - 0x7c], 0
and dword [ebp - 0x78], 0
movsd dword es:[edi], dword [esi]
mov dword [ebp + 0xc8], eax
lea eax, [ebp + 0xa0]
movsd dword es:[edi], dword [esi]
push eax
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.010011c4
test eax, eax
je 0x1001304
lea eax, [ebp + 0xa0]
push eax
lea eax, [ebp - 0x64]
push 0x1001118
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
push 0x20019
xor esi, esi
push esi
lea eax, [ebp - 0x64]
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10012f3
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push esi
push 0x1001130
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10012f3
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov dword [ebp - 0x7c], 1
cmp dword [ebp - 0x78], esi
je 0x1001301
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [ebp + 0xc8]
call fcn.0100143e
pop edi
pop esi
pop ebx
add ebp, 0xcc
leave
ret 0x14

Function at 0x100143e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002018]
jne 0x1001447
ret
jmp 0x100144c
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x1002018]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x1002018]
push edi
mov dword [ebp - 0x2c], eax
mov eax, dword [0x1002014]
mov dword [ebp - 0x2c], eax
xor eax, eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x2ac]
mov dword [ebp - 0x74], eax
mov dword [ebp + 0x90], eax
lea eax, [ebp + 0x2ac]
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x28], 0x10001
mov dword [ebp + 0x9c], eax
push ss
pop dword [ebp + 0xa0]
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0100143e
pop edi
add ebp, 0x2a8
leave
ret
Function at 0x10014fe
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001138
call fcn.0100170c
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
or edi, 0xffffffff
mov dword [ebp - 4], edi
cmp word [0x1000000], 0x5a4d
jne 0x1001551
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1001551
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x1001569
cmp ecx, 0x20b
je 0x1001556
mov dword [ebp - 0x1c], ebx
jmp 0x100157d
cmp dword [eax + 0x84], 0xe
jbe 0x1001551
xor ecx, ecx
cmp dword [eax + 0xf8], ebx
jmp 0x1001577
cmp dword [eax + 0x74], 0xe
jbe 0x1001551
xor ecx, ecx
cmp dword [eax + 0xe8], ebx
setne cl
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 1
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
mov dword [0x1002034], edi
mov dword [0x1002038], edi
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100202c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1002028]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100203c], eax
call fcn.01001706
cmp dword [0x100201c], ebx
jne 0x10015da
push fcn.01001706
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010016f4
push 0x1002010
push 0x100200c
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002024]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1002020]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1002008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
cmp byte [eax], 0x22
jne 0x1001665
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1001645
cmp cl, 0x22
jne 0x1001636
cmp byte [eax], 0x22
jne 0x100164e
inc eax
mov dword [ebp - 0x20], eax
mov cl, byte [eax]
cmp cl, bl
je 0x1001659
cmp cl, 0x20
jbe 0x100164a
test byte [ebp - 0x54], 1
je 0x1001670
movzx ecx, word [ebp - 0x50]
jmp 0x1001673
cmp byte [eax], 0x20
jbe 0x100164e
inc eax
mov dword [ebp - 0x20], eax
jmp 0x1001665
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call fcn.0100131c
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1001691
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], edi
jmp 0x10016cd
mov eax, esi
jmp 0x10016e1
call fcn.01001747
ret

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 0x1b03680
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6f8000]
push edi
jmp 0x1b0369a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1b036a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b03690
mov eax, 1
add ebx, ebx
jne 0x1b036b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1b036c4
jne 0x1b036e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b036e3
dec eax
add ebx, ebx
jne 0x1b036d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1b036a8
add ebx, ebx
jne 0x1b036df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1b03735
xor ecx, ecx
sub eax, 3
jb 0x1b036fb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1b0376a
sar eax, 1
mov ebp, eax
jmp 0x1b03706
add ebx, ebx
jne 0x1b03706
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b036d4
inc ecx
add ebx, ebx
jne 0x1b03714
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1b036d4
add ebx, ebx
jne 0x1b03721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1b03716
jne 0x1b03732
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1b03716
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1b03754
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1b03746
jmp 0x1b03696
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1b03754
add edi, ecx
jmp 0x1b03696
pop esi
mov edi, esi
mov ecx, 0x44c04f
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x1b0378f
cmp byte [edi], 0x82
jne 0x1b03774
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x1b03772
lea edi, [esi + 0x9e2000]
mov eax, dword [edi]
or eax, eax
je 0x1b037e0
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa1d91c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa1d958]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1b03795
mov ecx, edi
jns 0x1b037c4
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 + 0xa1d95c]
or eax, eax
je 0x1b037da
mov dword [ebx], eax
add ebx, 4
jmp 0x1b037b2
call dword [esi + 0xa1d96c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1b03811
cmp al, 0xef
ja 0x1b03804
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1b037e6
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1b037f3
mov ebp, dword [esi + 0xa1d960]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x1b03845
sub esp, 0xffffff80
jmp 0x14ec3e7
Function at 0x4856fc
Capabilities:
Query environment variable

Disassembly:
jmp 0x576507
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x57651b
xor edi, edi
jmp 0x57655f
push ebx
push esi
call fcn.00576400
push 0x40
mov ebx, eax
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
sub ebx, esi
and ebx, 0xfffffffe
push 2
push ebx
call fcn.004874b1
mov edi, eax
add esp, 0x14
test edi, edi
je 0x57654c
push ebx
push esi
push edi
call fcn.004876d7
add esp, 0xc
push 2
push 0
call fcn.00486e71
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x486fca
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x58e070
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x5d7ae0], 1
jge 0x58e0df
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x58e0b5
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x58e0b5
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x58e092
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x58e0cb
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x58e0d2
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x58e1cf
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x58e1a0
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x58e195
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x58e189
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x58e190
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x58e1cf
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x58e1ca
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x58e1b3
mov eax, dword [ebx + 8]
jmp 0x58e1cf
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x58e1c1
xor eax, eax
jmp 0x58e1cf
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x58e0ff
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40560d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40561c
pop dword [ebp - 0x30]
mov eax, 0xd565a52f
add eax, 0x2adab0ed
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xe3d9ca47
sub dword [ebp - 0x40], 0x958784fc
mov dword [ebp - 0x3c], 0xc42c8933
sub dword [ebp - 0x3c], 0x91f93cee
mov dword [ebp - 0x38], 0xaf05b9da
sub dword [ebp - 0x38], 0x62b975ac
mov dword [ebp - 0x34], 0x384087a2
sub dword [ebp - 0x34], 0x384087a2
lea eax, [ebp - 0x40]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x4dd1ac75
sub dword [ebp - 0x40], 0xd95f431f
mov dword [ebp - 0x3c], 0xe5a369e9
sub dword [ebp - 0x3c], 0xa4370874
mov dword [ebp - 0x38], 0x6b769bd4
sub dword [ebp - 0x38], 0x8072f68
mov dword [ebp - 0x34], 0xec0c96bc
sub dword [ebp - 0x34], 0xec0c96bc
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3ad33
push 0
call eax
mov ecx, 0xb851300b
sub ecx, 0xb850e2d2
xor edi, edi
add edi, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x30]
mov ebx, 0xb6d8ce2d
add ebx, 0x24ce6843
add dword [ebp - 0xc], ecx
mov edx, dword [esi]
add dword [ebp - 0x28], edx
sub edx, ebx
xor dword [ebp - 4], esi
mov dword [edi], edx
xor dword [ebp - 0x2c], 0x953e8cb3
add edi, 0xfd010b2b
sub edi, 0xfd010b27
add esi, 0x1e3d32c2
sub esi, 0x1e3d32be
loop 0x405730
add eax, 0xc757a4d2
add eax, 0x38a982e5
xor ebx, ebx
add ebx, eax
add eax, 0x6cd0939
add eax, 0xf932f6cc
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4106f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a012b
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.00494e67
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x410772
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00492d79
mov eax, dword [eax]
push 0x4c0c68
push eax
call fcn.00484e24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004950f2
test bl, bl
je 0x410772
push 0x4c0c68
lea ecx, [esp + 0xc]
call fcn.00495482
push 0x4c0c74
lea ecx, [esp + 0xc]
call fcn.00495482
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 0x4107ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004950f2
jmp 0x410879
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 0x410832
lea edx, [esp + 0x7c]
push 0x4c0c70
push edx
call fcn.00484e24
add esp, 8
test eax, eax
je 0x410832
lea eax, [esp + 0x7c]
push 0x4c0c6c
push eax
call fcn.00484e24
add esp, 8
test eax, eax
je 0x410832
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 0x4107c2
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.004950f2
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 0x411080
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 0x4110e2
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 0x4110f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a01ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d53c0]
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 0x411228
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x411156
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004950f2
xor eax, eax
jmp 0x41129f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0049522f
push esi
lea ecx, [esp + 0xc]
call fcn.004954be
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 0x41127d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00411080
test eax, eax
jne 0x41127d
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 SysReAllocString
mov ecx, edi
call fcn.00411080
test eax, eax
jne 0x41127d
lea eax, [esp + 0x14]
push 0x4c0c84
push eax
call fcn.00485f70
mov esi, eax
add esp, 8
test esi, esi
jne 0x41125c
lea ecx, [esp + 0x14]
push 0x4c0c80
push ecx
call fcn.00485ef0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41125c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41125f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004951df
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41116e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004950f2
xor eax, eax
jmp 0x41129f
mov byte [esi], 0
push 0x4c0c7c
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.004950f2
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 0x421d60
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 0x421dce
cmp si, 0x69
ja 0x421dce
add esi, 0xffd0
cmp si, 0x11
je 0x421d9e
push 0x11
call edi
test ax, ax
jge 0x421d9e
or esi, 0x2000
cmp si, 0x10
je 0x421db3
push 0x10
call edi
test ax, ax
jge 0x421db3
or esi, 0x4000
cmp si, 0x12
je 0x421dc8
push 0x12
call edi
test ax, ax
jge 0x421dc8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x421ddb
mov esi, 0xbd
jmp 0x421d8f
cmp si, 0x6e
jne 0x421de8
mov esi, 0xbe
jmp 0x421d8f
cmp si, 0x6f
jne 0x421d89
mov esi, 0xbf
jmp 0x421d8f

Function at 0x423690
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e5b40]
xor edx, edx
cmp eax, edx
jne 0x4236b6
xor eax, eax
mov byte [eax + 0x4e5a40], al
inc eax
cmp eax, 0x100
jl 0x42369e
mov dword [0x4e5b40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e5a40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x423747
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 0x42371a
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 0x4236e8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4237c0
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 0x423813
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 0x4237fa
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 0x42a850
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x42a9e8
cmp ebp, ebx
jle 0x42a9e8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42a8ae
dec eax
or eax, 0xfffffff8
inc eax
je 0x42a8b5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x42a8c4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42a8cb
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00494e33
add esp, 4
cmp eax, ebx
je 0x42a8ec
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00494e33
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42a9de
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x42a9c5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x42a9b1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x42a9a6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x42a9b4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x42a9b4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x42a950
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x42a941
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret