joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1015f04
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [0x101ed94], esi
jne 0x1015fc3
cmp dword [0x101ed98], esi
jne 0x1015fc3
push ebx
push edi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [sym.imp.KERNEL32.dll_OpenEventW]
push 0x1001d30
push esi
mov ebx, 0x100000
push ebx
mov dword [0x101ed9c], eax
call edi
cmp eax, esi
mov dword [0x101ed98], eax
mov dword [0x101ef4c], esi
jne 0x1015f75
push 0x1001d04
push esi
push ebx
call edi
cmp eax, esi
mov dword [0x101ed98], eax
mov dword [0x101ef4c], 1
je 0x1015fb4
cmp dword [0x101ed9c], esi
je 0x1015fb4
mov eax, dword [ebp + 8]
mov dword [0x101ef40], eax
mov eax, dword [ebp + 0xc]
mov dword [0x101ef44], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x101ef48], eax
lea eax, [ebp - 4]
push eax
push esi
push 0x101ef40
push 0x1015e7c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x101ed94], eax
cmp dword [0x101ed94], esi
pop edi
pop ebx
jne 0x1015fc3
call fcn.01015d89
pop esi
leave
ret 8

Function at 0x1016018
Capabilities:
Get token membership

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x101ed2c]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], 3
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov dword [ebp - 0x10], ebx
je 0x101608f
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1016094
cmp dword [ebp - 0x10], ebx
je 0x1016094
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp esi, ebx
pop esi
je 0x1016094
cmp dword [ebp - 0x14], ebx
je 0x1016094
xor eax, eax
inc eax
jmp 0x1016096
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0101a8d9
leave
ret 4
Function at 0x101ad35
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 0x1001f50
push Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101ad8d
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1001f8c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101ad80
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101ad8f
xor eax, eax
pop esi
leave
ret 4

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 0x40dad7
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, ecx
test esi, esi
jns 0x40db05
push dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
and eax, 0xfffffffe
and esi, 0x7fffffff
push eax
add esi, edx
push esi
call fcn.0040db86
add esp, 0xc
jmp 0x40db82
push ebx
mov ecx, 0x7fffffff
and esi, ecx
add esi, edx
lea eax, [ebp + 8]
mov ebx, dword [esi]
and dword [ebp + 8], 0
push eax
push 4
push dword [esi + 4]
and ebx, ecx
add ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40db81
mov eax, dword [ebp + 0x10]
push 0xffffffffffffffff
mov ecx, dword [eax + 0x1c]
push 0
sub ecx, edi
test byte [ebp + 0xc], 0x40
pop eax
setne al
lea eax, [eax*2 - 1]
push eax
mov eax, dword [0x646d84]
imul eax, dword [esi]
push eax
mov eax, dword [0x646d8c]
imul eax, dword [esi]
push eax
mov eax, dword [0x646d80]
mov edx, dword [esi + 4]
xor eax, ecx
push eax
mov ecx, ebx
call fcn.0040e105
add esp, 0x14
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x40e0b5
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
push ebp
movzx eax, word [ebx + 0x14]
lea ebp, [ebx + 0x18]
add ebp, eax
push esi
xor eax, eax
xor esi, esi
push edi
mov dword [esp + 0x10], edx
cmp ax, word [ebx + 6]
jae 0x40e0f5
mov edi, ebp
push edi
push edx
call fcn.0041dd46
pop ecx
pop ecx
test eax, eax
je 0x40e0fd
movzx eax, word [ebx + 6]
mov edx, dword [esp + 0x10]
inc esi
add edi, 0x28
cmp esi, eax
jb 0x40e0d8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
imul esi, esi, 0x28
lea eax, [esi + ebp]
jmp 0x40e0f7
Function at 0x40ec07
Capabilities:
Parse pe header

Disassembly:
push 8
push 0x436900
call fcn.00428820
mov esi, ecx
and dword [ebp - 4], 0
lea edi, [esi + 0x80]
push dword [ebp + 0xc]
push 0x40
push 0
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ed08
or dword [ebp - 4], 0xffffffff
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x40ecf7
mov eax, dword [esi + 0xbc]
test eax, eax
je 0x40ecf7
mov dword [ebp - 4], 1
lea edi, [esi + 0xc0]
push dword [ebp + 0xc]
push 0xf8
push eax
push edi
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ed08
or dword [ebp - 4], 0xffffffff
cmp dword [edi], 0x4550
jne 0x40ecf7
mov eax, 0x10b
cmp word [esi + 0xd8], ax
jne 0x40ecf7
movzx eax, word [esi + 0xc6]
test ax, ax
je 0x40ecf7
mov edi, eax
imul edi, edi, 0x28
movzx ecx, word [esi + 0xd4]
mov ebx, dword [esi + 0xbc]
add ecx, 0x18
add ebx, ecx
push edi
call fcn.0041de58
pop ecx
mov dword [esi + 0x1b8], eax
test eax, eax
jne 0x40eccc
push 8
jmp 0x40ed0e
mov dword [ebp - 4], 2
push dword [ebp + 0xc]
push edi
push ebx
push eax
call dword [ebp + 8]
add esp, 0x10
test al, al
je 0x40ed08
or dword [ebp - 4], 0xffffffff
lea eax, [ebx + edi]
mov dword [esi + 0x18], eax
xor eax, eax
jmp 0x40ed0f
push 0xb
jmp 0x40ed0e
or dword [ebp - 4], 0xffffffff
push 0x1e
pop eax
call fcn.0042885b
ret 8

Function at 0x4119f8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov ecx, 0xff077af4
test edi, edi
je 0x411a31
movzx eax, byte [ebx]
cdq
push 0
xor esi, edx
push 0x1000193
xor ecx, eax
push esi
push ecx
inc ebx
call fcn.004281f0
xor esi, esi
mov ecx, eax
dec edi
jne 0x411a13
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411a3a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov eax, dword [0x64a178]
or eax, dword [0x64a17c]
push ebx
push esi
mov ebx, edx
push edi
mov dword [esp + 0xc], ebx
mov edi, ecx
jne 0x411a9a
xor esi, esi
mov eax, esi
push 8
cdq
pop ebx
mov ecx, eax
shrd eax, edx, 1
and ecx, 1
shr edx, 1
or ecx, 0
je 0x411a7c
xor eax, 0xd7870f42
xor edx, 0xc96c5795
dec ebx
jne 0x411a61
mov dword [esi*8 + 0x649980], eax
mov dword [esi*8 + 0x649984], edx
inc esi
cmp esi, 0x100
jl 0x411a5b
mov ebx, dword [esp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
not ecx
not edx
test edi, edi
je 0x411acb
movzx eax, byte [edi]
xor eax, ecx
shrd ecx, edx, 8
and eax, 0xff
shr edx, 8
xor ecx, dword [eax*8 + 0x649980]
xor edx, dword [eax*8 + 0x649984]
inc edi
dec ebx
jne 0x411aa8
pop edi
not ecx
pop esi
not edx
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x416fe1
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42986b
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [0x649954], 0
push esi
je 0x417080
mov esi, 0x649944
push ecx
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x1c]
push eax
mov ecx, esi
call fcn.00419209
mov ecx, eax
call fcn.00419432
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x417031
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
push dword [eax + ecx*4]
lea ecx, [esp + 0x24]
call fcn.00410d25
and dword [esp + 0x44], 0
mov ecx, esi
call fcn.004190be
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x417062
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
or dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.00402161
cmp dword [0x649954], 0
jne 0x41700e
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417090
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x429340
call fcn.0041e59c
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x14], 0x10
mov edi, edx
jb 0x4170ae
mov eax, dword [esi]
jmp 0x4170b0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x41715e
push ecx
push ecx
mov ecx, esi
call fcn.00418714
cmp eax, 0xffffffff
je 0x417103
push eax
push 0
lea eax, [ebp - 0x24]
push eax
mov ecx, esi
call fcn.00410a91
and dword [ebp - 4], 0
mov edx, edi
mov ecx, eax
call fcn.00417090
mov bl, al
neg bl
sbb bl, bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00402161
inc bl
je 0x417103
xor al, al
jmp 0x41716a
mov ecx, dword [0x648ad4]
test ecx, ecx
je 0x417120
cmp dword [esi + 0x14], 0x10
jb 0x417117
mov eax, dword [esi]
jmp 0x417119
mov eax, esi
push 0
push eax
call ecx
jmp 0x41714a
cmp dword [0x647c48], 0
je 0x417148
push 0x18
pop eax
call fcn.0041e9c0
push esp
push 0x434ff8
call fcn.0040de8b
push eax
call dword [0x647c48]
add esp, 0xc
jmp 0x4170ff
xor eax, eax
test eax, eax
je 0x4170ff
push esi
mov ecx, 0x649944
call fcn.0041903b
mov byte [edi], 0
jmp 0x417168
test eax, 0x410
je 0x4170ff
mov byte [edi], 1
mov al, 1
lea esp, [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417dc8
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x42a371
call fcn.0041e59c
mov eax, 0x1030
call fcn.0041e9c0
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1048], ebx
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebx
push 0x642b18
push 0x80000001
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push 0xf
pop edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov dword [esp + 0x1048], ebx
xor ebp, ebp
inc ebp
mov dword [esp + 0x1c], ebp
test eax, eax
jne 0x417ebe
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x20]
push eax
push ebx
push dword [esp + 0x1068]
mov dword [esp + 0x24], 0x1000
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov byte [esp + ecx + 0x3c], bl
test eax, eax
jne 0x417eb4
mov eax, dword [esp + 0x18]
dec eax
cmp eax, 2
ja 0x417eb4
push ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.004024bb
mov dword [esp + 0x1048], ebp
lea eax, [esp + 0x20]
push eax
mov ecx, esi
call fcn.0041098d
mov byte [esp + 0x1048], bl
lea ecx, [esp + 0x20]
call fcn.00402161
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x1040]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41a628
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push esi
mov esi, dword [0x642120]
push edi
test edx, edx
je 0x41a652
lea eax, [edx - 1]
shr eax, 2
inc eax
imul ecx, ecx, 0x4848c0c0
xor ecx, esi
sub edx, 4
dec eax
jne 0x41a644
mov eax, dword [ebp + 8]
shr edx, 2
lea edi, [eax + edx*4]
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x41a683
dec edx
shr edx, 2
inc edx
imul ecx, ecx, 0x4848c0c0
xor ecx, esi
mov eax, ecx
not eax
xor dword [edi], eax
lea edi, [edi + 4]
dec edx
je 0x41a683
mov esi, dword [0x642120]
jmp 0x41a667
pop edi
pop esi
pop ebp
ret
Function at 0x425f72
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x641b10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [fcn.0041af1e]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0041f53e
mov dword [ebp - 0x14], eax
cmp dword [0x647b78], edi
jne 0x426063
push 0x800
push edi
push 0x42d298
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x425ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x426143
push 0x42d298
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x426143
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x426143
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x647b78], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x647b7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x647b80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x647b88], eax
test eax, eax
je 0x426060
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x647b84], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x426088
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42607b
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42609d
push 4
pop eax
jmp 0x426145
cmp dword [ebp - 0x14], edi
je 0x42609d
push dword [0x647b78]
call dword [fcn.0041af22]
push 3
jmp 0x426082
mov eax, dword [0x647b84]
mov ebx, dword [fcn.0041af22]
cmp eax, esi
je 0x4260fb
cmp dword [0x647b88], esi
je 0x4260fb
push eax
call ebx
push dword [0x647b88]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4260fb
test eax, eax
je 0x4260fb
call ecx
test eax, eax
je 0x4260f0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4260f0
test byte [ebp - 8], 1
jne 0x4260fb
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x42612b
mov eax, dword [0x647b7c]
cmp eax, esi
je 0x426128
push eax
call ebx
test eax, eax
je 0x426128
call eax
mov edi, eax
test edi, edi
je 0x426128
mov eax, dword [0x647b80]
cmp eax, esi
je 0x426128
push eax
call ebx
test eax, eax
je 0x426128
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x647b78]
call ebx
test eax, eax
je 0x426143
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x426145
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f29f
leave
ret
Function at 0x419290
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d1feb
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.004c425f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x419312
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004c1865
mov eax, dword [eax]
push 0x5aa234
push eax
call fcn.00496e84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004c44ea
test bl, bl
je 0x419312
push 0x5aa234
lea ecx, [esp + 0xc]
call fcn.004c48c6
push 0x5addc0
lea ecx, [esp + 0xc]
call fcn.004c48c6
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 0x41934e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004c44ea
jmp 0x419419
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 0x4193d2
lea edx, [esp + 0x7c]
push 0x5addbc
push edx
call fcn.00496e84
add esp, 8
test eax, eax
je 0x4193d2
lea eax, [esp + 0x7c]
push 0x5addb8
push eax
call fcn.00496e84
add esp, 8
test eax, eax
je 0x4193d2
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 0x419362
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.004c44ea
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 0x419c10
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 0x419c72
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 0x419c80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4d206b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5bef28]
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 0x419db8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x419ce6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c44ea
xor eax, eax
jmp 0x419e2f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004c4673
push esi
lea ecx, [esp + 0xc]
call fcn.004c4902
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 0x419e0d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00419c10
test eax, eax
jne 0x419e0d
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.00419c10
test eax, eax
jne 0x419e0d
lea eax, [esp + 0x14]
push 0x5addd4
push eax
call fcn.00498030
mov esi, eax
add esp, 8
test esi, esi
jne 0x419dec
lea ecx, [esp + 0x14]
push 0x5addd0
push ecx
call fcn.00497fb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x419dec
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x419def
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004c4623
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x419cfe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004c44ea
xor eax, eax
jmp 0x419e2f
mov byte [esi], 0
push 0x5addcc
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.004c44ea
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 0x423226
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
mov eax, dword [esi + 0x3ac]
test eax, eax
jne 0x42324e
lea eax, [esp + 4]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x3ac], eax
pop esi
add esp, 0x190
ret
Function at 0x42d4c0
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 0x42d52e
cmp si, 0x69
ja 0x42d52e
add esi, 0xffd0
cmp si, 0x11
je 0x42d4fe
push 0x11
call edi
test ax, ax
jge 0x42d4fe
or esi, 0x2000
cmp si, 0x10
je 0x42d513
push 0x10
call edi
test ax, ax
jge 0x42d513
or esi, 0x4000
cmp si, 0x12
je 0x42d528
push 0x12
call edi
test ax, ax
jge 0x42d528
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42d53b
mov esi, 0xbd
jmp 0x42d4ef
cmp si, 0x6e
jne 0x42d548
mov esi, 0xbe
jmp 0x42d4ef
cmp si, 0x6f
jne 0x42d4e9
mov esi, 0xbf
jmp 0x42d4ef

Function at 0x42ec70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x67ddc0]
xor edx, edx
cmp eax, edx
jne 0x42ec96
xor eax, eax
mov byte [eax + 0x67dcc0], al
inc eax
cmp eax, 0x100
jl 0x42ec7e
mov dword [0x67ddc0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x67dcc0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42ed27
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 0x42ecfa
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 0x42ecc8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42eda0
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 0x42edf3
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 0x42edda
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