joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10061146
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x1007a0b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0xd
mov dword [ebp - 0x20], ebx
call fcn.10021f80
mov esi, eax
pop ecx
push esi
mov dword [esi], 0x61766441
mov dword [esi + 8], 0x6c6c642e
mov byte [esi + 0xc], bl
mov word [esi + 5], 0x3369
mov byte [esi + 4], 0x70
mov byte [esi + 7], 0x32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.10021f89
pop ecx
test edi, edi
je 0x10061257
lea eax, [ebp - 0x20]
push eax
push 0x20
call fcn.10060b1d
push eax
call fcn.10001770
add esp, 0xc
test eax, eax
je 0x1006124e
push 0x16
call fcn.10021f80
mov esi, eax
pop ecx
push esi
push edi
mov dword [esi], 0x6b6f6f4c
mov dword [esi + 5], 0x69725070
mov dword [esi + 9], 0x656c6976
mov word [esi + 0x14], 0x41
mov dword [esi + 0xf], 0x756c6156
mov word [esi + 0xd], 0x6567
mov byte [esi + 4], 0x75
mov byte [esi + 0x13], 0x65
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov dword [0x1007b918], eax
call fcn.10021f89
mov eax, dword [0x1007b918]
pop ecx
test eax, eax
je 0x1006124e
lea ecx, [ebp - 0xc]
push ecx
push str.SeDebugPrivilege
push ebx
call eax
test eax, eax
je 0x1006124e
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push ebx
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push 0x10
push eax
push ebx
push dword [ebp - 0x20]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call fcn.1000345b
add esp, 0x18
push dword [ebp - 0x20]
call fcn.1005fdfa
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002258f
mov esp, ebp
pop ebp
ret

Function at 0x10062b50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x28
mov eax, dword [0x1007a0b4]
xor eax, esp
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x30]
push ebp
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x44]
push esi
push edi
mov dword [esp + 0x14], eax
xor edi, edi
mov eax, dword [esp + 0x50]
inc edi
mov dword [esp + 0x10], eax
call fcn.10063227
mov esi, eax
test esi, esi
je 0x10062bf9
lea eax, [esp + 0x20]
mov dword [esp + 0x2d], 0x577845
push eax
push esi
mov word [esp + 0x2b], 0x7551
mov word [esp + 0x2e], 0x7972
mov word [esp + 0x29], 0x6765
mov dword [esp + 0x31], 0x65756c61
mov byte [esp + 0x28], 0x52
mov byte [esp + 0x2d], 0x65
mov byte [esp + 0x30], 0x56
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10062bf2
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x20]
push dword [esp + 0x28]
push ebp
push ebx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002258f
add esp, 0x28
ret
Function at 0x10062ce8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
or ecx, 0xffffffff
mov al, byte [edx]
test al, al
je 0x10062d1b
push esi
movzx eax, al
push 7
xor ecx, eax
pop esi
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub esi, 1
jns 0x10062cfe
inc edx
mov al, byte [edx]
test al, al
jne 0x10062cf6
pop esi
not ecx
mov eax, ecx
ret

Function at 0x10063227
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1007a0b4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x61766441
push eax
mov dword [ebp - 0xb], 0x6c6c64
mov word [ebp - 0xd], 0x2e32
mov word [ebp - 0x10], 0x6970
mov byte [ebp - 0xe], 0x33
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002258f
mov esp, ebp
pop ebp
ret
Function at 0x4149f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x446080]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0xf7acd4a1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
sub eax, 0xce561804
je 0x414b92
jmp 0x414a2b
mov eax, dword [ebp - 0x20]
sub eax, 0xf7acd4a1
je 0x414a7c
jmp 0x414a3e
mov eax, dword [ebp - 0x20]
sub eax, 0x4c049d83
je 0x414ac0
jmp 0x414a51
mov eax, dword [ebp - 0x20]
sub eax, 0x51ce4f5a
je 0x414b81
jmp 0x414a64
mov eax, dword [ebp - 0x20]
sub eax, 0x749f567c
je 0x414b0e
jmp 0x414a77
jmp 0x414b99
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
push eax
mov edx, esp
mov dword [ebp - 0x10], ecx
mov dword [edx], eax
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
mov ecx, dword [ebp - 0x10]
mov edi, dword [edx]
not byte [edi]
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
add byte [edi], 0x86
sub byte [edi], 0x37
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
imul byte [edi]
inc edi
loop 0x414a97
mov dword [ebp - 0x14], 0x4c049d83
jmp 0x414b99
mov eax, dword [0x4475a4]
mov ecx, dword [0x4475a0]
mov edx, eax
sub edx, 0xdbd86c43
sub edx, 1
add edx, 0xdbd86c43
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xce561804
mov ecx, 0x749f567c
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x414b99
mov ecx, dword [0x4475a4]
mov eax, dword [0x4475a0]
mov edx, ecx
sub edx, 0x9db383f4
sub edx, 1
add edx, 0x9db383f4
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xce561804
mov ecx, 0x51ce4f5a
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x414b99
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0042ed80
lea esp, [ebp - 8]
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x14], 0x749f567c
jmp 0x414a15
Function at 0x42f64b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42f68a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f68a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f68a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42f68a
cmp dword [ecx + 0x74], 0xe
jbe 0x42f68a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x436deb
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x436e88
push ebx
push esi
call fcn.00436db4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00436d48
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x436e35
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436e87
push edi
push eax
call fcn.00435880
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x436e55
call fcn.004358ce
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x436e86
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00436d48
add esp, 0x20
test eax, eax
jne 0x436e74
push edi
call fcn.004358ce
jmp 0x436e7c
push ebx
call fcn.004358ce
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x438097
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x440ff0
push 0x440fe8
push str.FlsAlloc
push 0x1f
call fcn.00437f56
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4380cb
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e144]
call esi
jmp 0x4380d1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x438115
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441000
push 0x440ff8
push str.FlsGetValue
push 0x21
call fcn.00437f56
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43814c
push dword [ebp + 8]
mov ecx, esi
call dword [0x43e144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x438154
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x441008
push 0x441000
push str.FlsSetValue
push 0x22
call fcn.00437f56
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43818e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43e144]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43d460
Capabilities:
Parse pe header

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

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4065c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x42d2c4], 0
jne 0x406604
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4065dd
mov dword [ecx*4 + 0x42d2c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4065d8
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406631
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x42d2c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406612
not eax
pop ebp
ret 0xc

Function at 0x4153e0
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x982e90dc
xchg ebx, esi
or eax, 0x466f78d5
outsd dx, dword [esi]
inc esi
outsd dx, dword [esi]
inc esi
cmp al, 0xbe
aas
das
mov eax, 0xb1ce3a39
test al, 0x28
mov ecx, ds
adc cl, ah
daa
add esp, 0xffffffc4
xor byte [ecx + 0x2772be90], cl
xchg dword [ebx + 0x3a3be9cf], eax
jne entry0
dec eax
jns 0x4153d5
popal
cmp byte [edx - 0x72], cl
fst dword [eax - 0x78d9cf96]
rcl byte [esi - 0x6883a79], cl
or byte [ebx - 0x31], bh
xor dword [ecx - 0x4ed9cfb9], ecx
stc
iretd
Function at 0x10017340
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100af190
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100a3c22
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10018a90
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10017394
jmp dword [ecx*4 + 0x100174fc]
mov al, byte [esi]
test al, al
je 0x100173c2
cmp al, 0x20
je 0x100173ae
cmp al, 0xa1
jne 0x100173c2
cmp byte [esi + 1], al
jne 0x100173c2
test al, 0x80
je 0x100173ba
mov al, byte [esi + 1]
inc esi
test al, al
je 0x100173c2
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100173a1
test ecx, ecx
je case.default.0x10017394
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10017394
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10017408
cmp dl, 0xa1
jne 0x100173fc
cmp byte [eax + 1], 0xa1
jne 0x100173fc
test ecx, ecx
jne 0x100173f4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1001741c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10017436
jmp 0x1001741c
cmp dl, 0x20
jne 0x1001741a
test ecx, ecx
jne 0x10017413
mov edi, eax
mov ecx, 1
jmp 0x1001741c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x100173dc
cmp ecx, 1
jne case.default.0x10017394
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10017394
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10017394
mov al, byte [esi]
test al, al
je 0x1001748e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10017474
mov cl, byte [esi + 1]
test cl, cl
je 0x1001748e
cmp al, 0xa1
jne 0x10017464
cmp cl, al
je 0x10017471
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10018d20
inc esi
jmp 0x10017486
cmp al, 0x20
je 0x10017486
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10018d60
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001744d
push 0
lea ecx, [esp + 0x14]
call fcn.10018d60
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10028350
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x100174c1
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100cc8d8
call fcn.10018c90
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100a3bb4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10021cb0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100afbdb
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.100a3929
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10021d32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100a1204
mov eax, dword [eax]
push 0x100e7ce0
push eax
call fcn.10093b34
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100a3bb4
test bl, bl
je 0x10021d32
push 0x100e7ce0
lea ecx, [esp + 0xc]
call fcn.100a3f44
push 0x100e7cec
lea ecx, [esp + 0xc]
call fcn.100a3f44
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 0x10021d6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100a3bb4
jmp 0x10021e39
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 0x10021df2
lea edx, [esp + 0x7c]
push 0x100e7ce8
push edx
call fcn.10093b34
add esp, 8
test eax, eax
je 0x10021df2
lea eax, [esp + 0x7c]
push 0x100e7ce4
push eax
call fcn.10093b34
add esp, 8
test eax, eax
je 0x10021df2
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 0x10021d82
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.100a3bb4
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 0x10022630
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 0x10022692
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 0x100226a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x100afc5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x100f2418]
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 0x100227d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x10022706
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100a3bb4
xor eax, eax
jmp 0x1002284f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.100a3cf1
push esi
lea ecx, [esp + 0xc]
call fcn.100a3f80
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 0x1002282d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.10022630
test eax, eax
jne 0x1002282d
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 accept
mov ecx, edi
call fcn.10022630
test eax, eax
jne 0x1002282d
lea eax, [esp + 0x14]
push 0x100e7cfc
push eax
call fcn.10094bb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002280c
lea ecx, [esp + 0x14]
push 0x100e7cf8
push ecx
call fcn.10094b30
mov esi, eax
add esp, 8
test esi, esi
jne 0x1002280c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1002280f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.100a3ca1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1002271e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.100a3bb4
xor eax, eax
jmp 0x1002284f
mov byte [esi], 0
push 0x100e7cf4
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.100a3bb4
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 0x100340f0
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 0x1003415e
cmp si, 0x69
ja 0x1003415e
add esi, 0xffd0
cmp si, 0x11
je 0x1003412e
push 0x11
call edi
test ax, ax
jge 0x1003412e
or esi, 0x2000
cmp si, 0x10
je 0x10034143
push 0x10
call edi
test ax, ax
jge 0x10034143
or esi, 0x4000
cmp si, 0x12
je 0x10034158
push 0x12
call edi
test ax, ax
jge 0x10034158
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x1003416b
mov esi, 0xbd
jmp 0x1003411f
cmp si, 0x6e
jne 0x10034178
mov esi, 0xbe
jmp 0x1003411f
cmp si, 0x6f
jne 0x10034119
mov esi, 0xbf
jmp 0x1003411f

Function at 0x10035a80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x10102cf8]
xor edx, edx
cmp eax, edx
jne 0x10035aa6
xor eax, eax
mov byte [eax + 0x10102bf8], al
inc eax
cmp eax, 0x100
jl 0x10035a8e
mov dword [0x10102cf8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x10102bf8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x10035b37
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 0x10035b0a
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 0x10035ad8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x10035bb0
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 0x10035c03
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 0x10035bea
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 0x1003cc10
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 0x1003cda8
cmp ebp, ebx
jle 0x1003cda8
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 0x1003cc6e
dec eax
or eax, 0xfffffff8
inc eax
je 0x1003cc75
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x1003cc84
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x1003cc8b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.100a38f5
add esp, 4
cmp eax, ebx
je 0x1003ccac
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.100a38f5
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 0x1003cd9e
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 0x1003cd85
mov al, byte [edx]
cmp al, 0xc0
jbe 0x1003cd71
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x1003cd66
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 0x1003cd74
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x1003cd74
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x1003cd10
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 0x1003cd01
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