joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015390
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10024678
push 0x1001aa96
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100263b0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x1001543d
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001543d
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x1001543d
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x1001543d
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10015830
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x10027708]
test esi, esi
push edi
je 0x1001585d
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x10015863
mov esi, dword [esi + 4]
test esi, esi
jne 0x10015843
pop edi
xor eax, eax
pop esi
pop ecx
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ecx
ret

Function at 0x100158f0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
call fcn.100158d0
mov esi, eax
cmp esi, dword [esp + 0x2c]
jae 0x1001599e
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, dword [0x10026380]
jb 0x1001592b
cmp esi, dword [0x10026384]
ja 0x1001592b
add esi, 0x8000000
jmp 0x10015994
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
push 0x1c
lea eax, [esp + 0x10]
push eax
push esi
call ebp
test eax, eax
je 0x1001599e
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x10015987
cmp eax, 0x10000
jb 0x10015987
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x100159a0
add esi, 0x10000
jmp 0x10015994
mov ecx, dword [esp + 0xc]
add eax, ecx
call fcn.100158d0
mov esi, eax
cmp esi, dword [esp + 0x2c]
jb 0x10015913
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x1c
ret
Function at 0x10015a70
Capabilities:
Hook routines via microsoft detours

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
call fcn.10015570
mov eax, dword [0x1002770c]
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov edx, dword [0x10027708]
add esp, 0xc
test eax, eax
jne 0x10015aad
test edx, edx
je 0x10015ac0
mov eax, edx
mov dword [0x1002770c], eax
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10015ac0
cmp ecx, edi
jb 0x10015ac0
cmp ecx, ebx
jbe 0x10015b57
test edx, edx
mov eax, edx
mov dword [0x1002770c], eax
je 0x10015aea
test eax, eax
je 0x10015ade
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x10015ade
cmp ecx, edi
jb 0x10015ade
cmp ecx, ebx
jbe 0x10015b52
mov eax, dword [eax + 4]
test eax, eax
jne 0x10015acf
mov dword [0x1002770c], eax
mov edx, esi
and edx, 0xffff
sub esi, edx
push edi
mov eax, esi
call fcn.100159b0
add esp, 4
test eax, eax
jne 0x10015b12
push ebx
mov eax, esi
call fcn.100158f0
add esp, 4
test eax, eax
je 0x10015b81
mov dword [eax], 0x52727464
mov dword [eax + 8], 0
mov ecx, dword [0x10027708]
mov dword [eax + 4], ecx
mov dword [0x1002770c], eax
mov dword [0x10027708], eax
xor edx, edx
lea ecx, [eax + 0xffa8]
mov esi, 0x38b
nop
mov dword [ecx + 0x40], edx
mov edx, ecx
sub ecx, 0x48
sub esi, 1
jne 0x10015b40
mov dword [eax + 8], edx
jmp 0x10015b57
mov dword [0x1002770c], eax
mov esi, dword [eax + 8]
cmp esi, edi
jb 0x10015b81
cmp esi, ebx
ja 0x10015b81
mov edx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [eax + 8], edx
call sub.MSVCR80.dll_memset
add esp, 0xc
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x10015bc0
Capabilities:
Hook routines via microsoft detours

Disassembly:
cmp dword [esi], 0x52727464
je 0x10015bcb
xor eax, eax
ret
push edi
lea edi, [esi + 0x10000]
xor ecx, ecx
lea edx, [esi + 0x88]
lea ebx, [ebx]
mov eax, dword [edx]
test eax, eax
je 0x10015bee
cmp eax, esi
jb 0x10015c03
cmp eax, edi
jae 0x10015c03
add ecx, 1
add edx, 0x48
cmp ecx, 0x38d
jb 0x10015be0
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret
Function at 0x10015d50
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10027718], eax
je 0x10015d66
mov eax, 0x10dd
pop ecx
ret
push ebx
push ebp
push esi
mov esi, dword [0x10027728]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x10015dbc
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [esp]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0x10]
push eax
movzx eax, byte [edx + 0x36]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call ebx
cmp dword [esi + 4], ebp
jne 0x10015dab
mov edi, dword [esi + 0x10]
cmp edi, ebp
je 0x10015dab
call fcn.10015b90
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10015d80
mov dword [0x10027728], ebp
call fcn.10015870
mov esi, dword [0x10027724]
cmp esi, ebp
je 0x10015dee
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10015dd7
pop edi
pop esi
mov dword [0x10027724], ebp
mov dword [0x10027718], ebp
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x10016120
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1002771c]
test eax, eax
jne 0x1001619c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1001613e
xor eax, eax
pop edi
ret 4
push esi
push 8
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
test esi, esi
jne 0x10016154
lea edi, [eax + 8]
jmp 0x10016171
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10016188
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop esi
mov dword [0x1002771c], edi
mov eax, edi
mov dword [0x10027720], 0
pop edi
ret 4
mov eax, dword [0x10027724]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x10027724], esi
pop esi
xor eax, eax
pop edi
ret 4
Function at 0x100164c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x10027718], eax
je 0x100164d8
mov eax, 0x10dd
pop ecx
ret 8
mov eax, dword [0x1002771c]
test eax, eax
jne 0x100165eb
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x100164f6
lea eax, [esi + 0x57]
pop esi
pop ecx
ret 8
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x10016508
lea eax, [ebp + 6]
pop ebp
pop esi
pop ecx
ret 8
cmp dword [ebp], 0
jne 0x10016524
mov dword [0x10027720], ebp
mov eax, 6
pop ebp
mov dword [0x1002771c], eax
pop esi
pop ecx
ret 8
push ebx
push edi
push 0x18
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x1001653e
lea esi, [eax + 8]
jmp 0x100165cc
mov eax, dword [ebp]
push 0
push eax
call fcn.10015c60
push 0
push esi
mov edi, eax
call fcn.10015c60
movzx ecx, byte [edi + 0x36]
mov esi, dword [edi + 0x40]
sub esi, ecx
test ecx, ecx
je 0x100165be
cmp ecx, 0x1e
ja 0x100165be
cmp dword [edi + 0x44], eax
jne 0x100165be
lea edx, [esp + 0x10]
push edx
push 0x40
push ecx
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001658f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x100165cc
mov ecx, dword [0x10027728]
mov dword [ebx + 8], ebp
mov dword [ebx + 0x10], edi
mov dword [ebx + 0xc], esi
mov dword [ebx + 4], 1
mov eax, dword [esp + 0x10]
pop edi
mov dword [ebx + 0x14], eax
mov dword [ebx], ecx
mov dword [0x10027728], ebx
pop ebx
pop ebp
xor eax, eax
pop esi
pop ecx
ret 8
cmp dword [0x10027710], 0
mov esi, 9
jne 0x100165d2
mov dword [0x1002771c], esi
test ebx, ebx
je 0x100165df
push ebx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 4
pop edi
pop ebx
mov dword [0x10027720], ebp
pop ebp
mov eax, esi
pop esi
pop ecx
ret 8
Function at 0x10019520
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100246c0
push 0x1001aa96
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x100263b0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 8]
add esi, 0x10000
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea edi, [eax - 2]
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
ja 0x1001959d
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x24], 0x1000
jne 0x10019610
mov eax, dword [ebp - 0x20]
cmp al, 1
je 0x10019610
test eax, 0x100
jne 0x10019610
mov dword [ebp - 4], 0
cmp word [esi], 0x5a4d
jne 0x1001960d
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x28]
ja 0x1001960d
cmp eax, 0x40
jb 0x1001960d
cmp dword [eax + esi], 0x4550
jne 0x1001960d
mov dword [ebp - 4], edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], edi
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x28]
lea esi, [eax + edx]
jmp 0x10019576
Function at 0x10019b50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10024760
push 0x1001aa96
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100263b0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [ebp + 8], edx
xor esi, esi
cmp eax, esi
jne 0x10019b9d
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
mov edx, eax
mov dword [ebp - 4], esi
cmp word [edx], 0x5a4d
je 0x10019bb1
push 0xc1
jmp 0x10019d0e
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
je 0x10019bc8
push 0xbf
jmp 0x10019d0e
cmp word [eax + 0x14], si
je 0x10019d09
mov eax, dword [eax + 0x80]
cmp eax, esi
je 0x10019c1f
lea edi, [eax + edx]
mov dword [ebp - 0x1c], edi
cmp edi, esi
je 0x10019d09
lea ebx, [ebx]
mov ecx, dword [edi]
test ecx, ecx
je 0x10019cb9
mov eax, dword [edi + 0xc]
test eax, eax
je 0x10019d09
lea esi, [eax + edx]
test esi, esi
je 0x10019d09
lea ebx, [ecx + edx]
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10019c27
lea edi, [eax + edx]
jmp 0x10019c29
mov dword [ebp - 0x1c], esi
jmp 0x10019d09
xor edi, edi
mov eax, dword [edi]
push eax
call fcn.10019870
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10019c44
push esi
push eax
mov edx, dword [ebp + 0xc]
push edx
call ecx
test eax, eax
je 0x10019cb9
xor esi, esi
mov dword [ebp - 0x24], esi
test ebx, ebx
je 0x10019caa
lea ecx, [ecx]
mov eax, dword [ebx + esi*4]
test eax, eax
je 0x10019c97
xor edx, edx
mov dword [ebp - 0x20], edx
xor ecx, ecx
test eax, eax
jns 0x10019c6a
movzx edx, ax
mov dword [ebp - 0x20], edx
jmp 0x10019c78
add eax, 2
je 0x10019c76
mov ecx, dword [ebp + 8]
add ecx, eax
jmp 0x10019c78
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x10019c8f
lea eax, [edi + esi*4]
push eax
push ecx
push edx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [ebp + 0x14]
test eax, eax
je 0x10019c97
add esi, 1
mov dword [ebp - 0x24], esi
jmp 0x10019c50
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x10019caa
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call eax
add dword [ebp - 0x1c], 0x14
mov edi, dword [ebp - 0x1c]
mov edx, dword [ebp + 8]
jmp 0x10019bf0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x10019cca
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10019db0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10024780
push 0x1001aa96
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100263b0]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test eax, eax
jne 0x10019df7
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
cmp word [eax], 0x5a4d
je 0x10019e0f
push 0xc1
jmp 0x10019ee4
mov ecx, dword [eax + 0x3c]
add ecx, eax
mov dword [ebp - 0x24], ecx
cmp dword [ecx], 0x4550
je 0x10019e29
push 0xbf
jmp 0x10019ee4
movzx eax, word [ecx + 0x14]
test ax, ax
je 0x10019edf
movzx eax, ax
lea edx, [eax + ecx + 0x18]
mov dword [ebp - 0x1c], edx
xor edx, edx
mov dword [ebp - 0x20], edx
movzx eax, word [ecx + 6]
cmp edx, eax
jae 0x10019edf
lea ecx, [edx + edx*4]
mov eax, dword [ebp - 0x1c]
lea ebx, [eax + ecx*8]
mov edi, str..detour
mov esi, ebx
mov ecx, 8
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x10019ebd
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x10019edf
cmp dword [ebx + 0x10], 0
je 0x10019edf
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x10019edf
cmp dword [esi + 4], 0x727444
jne 0x10019edf
cmp dword [esi + 8], 0
jne 0x10019e98
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
add edx, 1
mov ecx, dword [ebp - 0x24]
jmp 0x10019e42
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1001a888
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100263b0]
jne 0x1001a892
repz ret
jmp fcn.1001af7c
Function at 0x407e40
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ba80b
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.004af337
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407ec2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004ad1ba
mov eax, dword [eax]
push 0x737210
push eax
call fcn.00460df4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004af5c2
test bl, bl
je 0x407ec2
push 0x737210
lea ecx, [esp + 0xc]
call fcn.004af952
push 0x73ad68
lea ecx, [esp + 0xc]
call fcn.004af952
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 0x407efe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004af5c2
jmp 0x407fc9
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 0x407f82
lea edx, [esp + 0x7c]
push 0x73ad64
push edx
call fcn.00460df4
add esp, 8
test eax, eax
je 0x407f82
lea eax, [esp + 0x7c]
push 0x73ad60
push eax
call fcn.00460df4
add esp, 8
test eax, eax
je 0x407f82
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 0x407f12
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.004af5c2
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 0x4087c0
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 0x408822
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 0x408830
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ba88b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x747078]
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 0x408968
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408896
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004af5c2
xor eax, eax
jmp 0x4089df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004af6ff
push esi
lea ecx, [esp + 0xc]
call fcn.004af98e
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 0x4089bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.004087c0
test eax, eax
jne 0x4089bd
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.004087c0
test eax, eax
jne 0x4089bd
lea eax, [esp + 0x14]
push 0x73ad7c
push eax
call fcn.00461ef0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40899c
lea ecx, [esp + 0x14]
push 0x73ad78
push ecx
call fcn.00461e70
mov esi, eax
add esp, 8
test esi, esi
jne 0x40899c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40899f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004af6af
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4088ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004af5c2
xor eax, eax
jmp 0x4089df
mov byte [esi], 0
push 0x73ad74
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.004af5c2
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 0x419070
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 0x4190de
cmp si, 0x69
ja 0x4190de
add esi, 0xffd0
cmp si, 0x11
je 0x4190ae
push 0x11
call edi
test ax, ax
jge 0x4190ae
or esi, 0x2000
cmp si, 0x10
je 0x4190c3
push 0x10
call edi
test ax, ax
jge 0x4190c3
or esi, 0x4000
cmp si, 0x12
je 0x4190d8
push 0x12
call edi
test ax, ax
jge 0x4190d8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4190eb
mov esi, 0xbd
jmp 0x41909f
cmp si, 0x6e
jne 0x4190f8
mov esi, 0xbe
jmp 0x41909f
cmp si, 0x6f
jne 0x419099
mov esi, 0xbf
jmp 0x41909f

Function at 0x41a750
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x75b9f8]
xor edx, edx
cmp eax, edx
jne 0x41a776
xor eax, eax
mov byte [eax + 0x75b8f8], al
inc eax
cmp eax, 0x100
jl 0x41a75e
mov dword [0x75b9f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x75b8f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a807
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 0x41a7da
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 0x41a7a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a880
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 0x41a8d3
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 0x41a8ba
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