joyce8/EMBER2024-capa huggingface dataset:
Function at 0x68784350
Capabilities:
Get thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x28], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [0x68788058]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x687844c0
mov edx, dword [eax]
mov ecx, dword [eax + 8]
movzx eax, byte [0x68788064]
and eax, 8
test edx, edx
je 0x687844a0
mov edx, dword [edx + 4]
mov dword [ebp - 0x1c], edx
test al, al
jne 0x6878444f
cmp dword [ebp - 0x1c], 1
je 0x687844a4
test ebx, ebx
jle 0x687844d0
test esi, esi
jne 0x68784418
mov eax, edi
xor edx, edx
sub eax, dword [ebp - 0x28]
div ebx
xor edx, edx
neg ebx
lea esi, [eax + 1]
mov eax, esi
div dword [ebp - 0x1c]
cmp ecx, edx
jae 0x6878442f
lea edx, [eax + 1]
imul ecx, ebx
imul ebx, eax
mov eax, dword [ebp - 0x24]
imul ecx, edx
add ecx, edi
mov edi, dword [ebp - 0x20]
add ebx, ecx
mov dword [edi], ecx
mov dword [eax], ebx
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x28]
xor edx, edx
sub eax, edi
div ebx
xor edx, edx
lea esi, [eax + 1]
mov eax, esi
div dword [ebp - 0x1c]
cmp ecx, edx
jb 0x687843eb
cmp dword [ebp - 0x1c], esi
ja 0x687844f8
imul edx, ebx
add edi, edx
mov edx, eax
dec eax
jmp 0x687843ee
mov dword [ebp - 0x1c], 1
mov eax, dword [ebp - 0x24]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [esp + 0x10], edi
mov dword [esp + 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 0xc], str.__u___u___d___u___p___p__n
mov dword [esp + 0x14], eax
mov dword [esp + 8], str._vcomp_for_static_simple_init
mov dword [esp + 4], 0x68788064
mov dword [esp], 3
mov dword [ebp - 0x2c], ecx
call sym._wine_dbg_log.constprop.0
mov ecx, dword [ebp - 0x2c]
jmp 0x687843bc
test al, al
jne 0x68784448
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x28]
mov dword [eax], edi
mov eax, dword [ebp - 0x24]
mov dword [eax], esi
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
call sym._vcomp_init_thread_data.part.0
jmp 0x68784397
mov eax, dword [ebp - 0x20]
cmp esi, 1
mov edi, dword [ebp - 0x24]
mov dword [eax], 0
sbb eax, eax
and eax, 2
dec eax
mov dword [edi], eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
mov dword [eax], edi
mov eax, edi
sub eax, ebx
mov dword [esi], eax
jmp 0x68784405
Function at 0x68785420
Capabilities:
Get thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x68788058]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x68785508
mov eax, dword [ebx + 4]
mov ecx, 1
mov dword [ebp - 0x20], eax
mov eax, dword [ebx]
test eax, eax
je 0x6878546b
mov ecx, dword [eax + 4]
test byte [0x68788064], 8
jne 0x687854a0
mov eax, dword [ebx + 0x2c]
cmp eax, 1
je 0x687854dd
sub eax, 2
xor edx, edx
cmp eax, 1
jbe 0x68785518
lea esp, [ebp - 0x10]
mov eax, edx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], esi
mov dword [esp + 0xc], str.__p___p__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str._vcomp_for_dynamic_next
mov dword [esp + 4], 0x68788064
mov dword [esp], 3
mov dword [ebp - 0x24], ecx
call sym._wine_dbg_log.constprop.0
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 0x24]
cmp eax, 1
jne 0x6878547c
mov eax, dword [ebx + 0x30]
mov edi, dword [ebp - 0x1c]
mov edx, 1
mov dword [edi], eax
mov eax, dword [ebx + 0x34]
mov dword [esi], eax
mov eax, edx
mov dword [ebx + 0x2c], 0
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
call sym._vcomp_init_thread_data.part.0
mov ebx, eax
jmp 0x68785457
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [esp], 0x68788040
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
sub esp, 4
mov edx, dword [ebp - 0x28]
mov eax, dword [eax + 0x10]
cmp dword [ebx + 0x28], eax
je 0x68785568
mov dword [ebp - 0x1c], edx
mov dword [esp], 0x68788040
call dword [sym.imp.kernel32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 0x1c]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x6878553f
mov edx, dword [edi + 0x24]
cmp eax, edx
mov edi, edx
cmovbe edi, eax
cmp dword [ebx + 0x2c], 3
je 0x687855c3
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x14]
mov dword [edx], ecx
lea edx, [edi - 1]
imul edx, dword [eax + 0x20]
add edx, ecx
mov dword [esi], edx
mov edx, dword [eax + 0x1c]
mov ecx, edx
mov dword [ebp - 0x1c], edx
mov edx, dword [eax + 0x20]
sub ecx, edi
imul edx, edi
add dword [eax + 0x14], edx
xor edx, edx
test edi, edi
mov dword [eax + 0x1c], ecx
setne dl
test ecx, ecx
jne 0x6878553f
mov eax, dword [eax + 0x18]
mov dword [esi], eax
jmp 0x6878553f
imul edx, ecx
cmp eax, edx
jbe 0x68785582
lea eax, [eax + ecx - 1]
xor edx, edx
div ecx
mov edi, eax
jmp 0x68785582
Function at 0x687855e0
Capabilities:
Get thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x14
test byte [0x68788064], 8
jne 0x68785620
mov eax, dword [0x68788058]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x68785650
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0xc]
leave
lea esp, [ecx - 4]
ret
mov dword [esp + 0xc], 0x6878a088
mov dword [esp + 8], str.omp_in_parallel
mov dword [esp + 4], 0x68788064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x687855fa
call sym._vcomp_init_thread_data.part.0
mov ecx, dword [ebp - 4]
mov eax, dword [eax + 0xc]
leave
lea esp, [ecx - 4]
ret
Function at 0x68785c70
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x2c
mov esi, dword [ecx]
test byte [0x68788064], 8
jne 0x68785ce0
mov dword [esp + 8], 0x18
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x68785d0a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [ebx]
sub esp, 4
mov dword [eax + 0x18], str..._src_wine_dlls_vcomp_main.c:_critsect
mov dword [esi], ebx
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.omp_init_lock
mov dword [esp + 4], 0x68788064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x68785c8e
call sym._alloc_critsect.part.0
nop

Function at 0x68785d10
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x68788064], 8
jne 0x68785d80
mov ebx, dword [ebx]
test ebx, ebx
je 0x68785d6c
mov eax, dword [ebx]
mov dword [eax + 0x18], 0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.omp_destroy_lock
mov dword [esp + 4], 0x68788064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x68785d2d

Function at 0x68785db0
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ebx
push ecx
sub esp, 0x20
mov ebx, dword [ecx]
test byte [0x68788064], 8
jne 0x68785e00
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.ntdll.dll_RtlIsCriticalSectionLockedByThread]
sub esp, 4
test eax, eax
jne 0x68785e2a
mov eax, dword [ebx]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
lea esp, [ebp - 8]
pop ecx
pop ebx
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str.omp_set_lock
mov dword [esp + 4], 0x68788064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x68785dcd
test byte [0x68788064], 2
jne 0x68785e40
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, dword [ebx]
mov dword [esp + 0xc], str.omp_set_lock_called_while_holding_lock__p_n
mov dword [esp + 8], str.omp_set_lock
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x68788064
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x68785e33
Function at 0x687860b0
Capabilities:
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edi, dword [ecx]
test byte [0x68788064], 8
jne 0x687860f0
mov ebx, dword [edi]
test ebx, ebx
je 0x6878611e
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_EnterCriticalSection]
sub esp, 4
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p__n
mov dword [esp + 8], str._vcomp_enter_critsect
mov dword [esp + 4], 0x68788064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
mov ebx, dword [edi]
test ebx, ebx
jne 0x687860d5
mov dword [esp + 8], 0x18
mov dword [esp + 4], 0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
test eax, eax
je 0x687861b0
mov dword [ebp - 0x1c], eax
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov edx, dword [ebp - 0x1c]
sub esp, 4
mov eax, dword [edx]
mov dword [eax + 0x18], str..._src_wine_dlls_vcomp_main.c:_critsect
mov eax, ebx
lock cmpxchg dword [edi], edx
test eax, eax
je 0x687861a9
mov eax, dword [edx]
mov dword [ebp - 0x1c], edx
mov dword [eax + 0x18], 0
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
mov edx, dword [ebp - 0x1c]
sub esp, 4
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
mov ebx, dword [edi]
jmp 0x687860d5
call sym._alloc_critsect.part.0
lea esi, [esi]
lea esi, [esi]
Function at 0x687864c0
Capabilities:
Allocate thread local storage
Get system information on windows

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x58
mov edi, dword [ecx]
mov ebx, dword [ecx + 4]
mov esi, dword [ecx + 8]
test byte [0x68788064], 8
jne 0x68786510
cmp ebx, 1
je 0x68786545
cmp ebx, 3
je 0x687865d0
test ebx, ebx
mov ebx, 1
je 0x68786598
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], str.__p___ld___p__n
mov dword [esp + 8], str.DllMain
mov dword [esp + 4], 0x68788064
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
cmp ebx, 1
jne 0x687864ea
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x68788058], eax
cmp eax, 0xffffffff
je 0x687865f0
lea eax, [ebp - 0x3c]
mov ebx, 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x28]
mov dword [0x6878d010], edi
sub esp, 4
mov dword [0x6878d00c], eax
mov dword [0x6878d008], eax
mov dword [0x6878d004], eax
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
test esi, esi
jne 0x68786500
cmp dword [0x68788058], 0xffffffff
je 0x68786500
call sym._vcomp_free_thread_data
mov eax, dword [0x68788058]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsFree]
sub esp, 4
jmp 0x68786500
call sym._vcomp_free_thread_data
lea esp, [ebp - 0x10]
mov ebx, 1
pop ecx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0xc
test byte [0x68788064], 2
jne 0x68786600
xor ebx, ebx
jmp 0x68786500
mov dword [esp + 0xc], str.Failed_to_allocate_TLS_index_n
xor ebx, ebx
mov dword [esp + 8], str.DllMain
mov dword [esp + 4], 0x68788064
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x68786500

Function at 0x687866c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6878671b
cmp byte [esi + ebx - 1], 0xa
je 0x687866ef
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6878d0c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40d990
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46fe2b
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.00464622
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40da12
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00462430
mov eax, dword [eax]
push 0x88ccb4
push eax
call fcn.00455064
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004648ad
test bl, bl
je 0x40da12
push 0x88ccb4
lea ecx, [esp + 0xc]
call fcn.00464c3d
push 0x88ccc0
lea ecx, [esp + 0xc]
call fcn.00464c3d
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 0x40da4e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004648ad
jmp 0x40db19
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 0x40dad2
lea edx, [esp + 0x7c]
push 0x88ccbc
push edx
call fcn.00455064
add esp, 8
test eax, eax
je 0x40dad2
lea eax, [esp + 0x7c]
push 0x88ccb8
push eax
call fcn.00455064
add esp, 8
test eax, eax
je 0x40dad2
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 0x40da62
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.004648ad
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 0x40ed80
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 0x40ede2
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 0x40edf0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ff8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x8939b0]
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 0x40ef28
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ee56
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004648ad
xor eax, eax
jmp 0x40ef9f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004649ea
push esi
lea ecx, [esp + 0xc]
call fcn.00464c79
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x88ccf4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ef7d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040ed80
test eax, eax
jne 0x40ef7d
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.0040ed80
test eax, eax
jne 0x40ef7d
lea eax, [esp + 0x14]
push 0x88ccd0
push eax
call fcn.004560a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ef5c
lea ecx, [esp + 0x14]
push 0x88cccc
push ecx
call fcn.00456020
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ef5c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ef5f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046499a
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ee6e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004648ad
xor eax, eax
jmp 0x40ef9f
mov byte [esi], 0
push 0x88ccc8
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.004648ad
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 0x41f950
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 0x41f9be
cmp si, 0x69
ja 0x41f9be
add esi, 0xffd0
cmp si, 0x11
je 0x41f98e
push 0x11
call edi
test ax, ax
jge 0x41f98e
or esi, 0x2000
cmp si, 0x10
je 0x41f9a3
push 0x10
call edi
test ax, ax
jge 0x41f9a3
or esi, 0x4000
cmp si, 0x12
je 0x41f9b8
push 0x12
call edi
test ax, ax
jge 0x41f9b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41f9cb
mov esi, 0xbd
jmp 0x41f97f
cmp si, 0x6e
jne 0x41f9d8
mov esi, 0xbe
jmp 0x41f97f
cmp si, 0x6f
jne 0x41f979
mov esi, 0xbf
jmp 0x41f97f

Function at 0x4213b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x8a4088]
xor edx, edx
cmp eax, edx
jne 0x4213d6
xor eax, eax
mov byte [eax + 0x8a3f88], al
inc eax
cmp eax, 0x100
jl 0x4213be
mov dword [0x8a4088], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x8a3f88
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421467
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 0x42143a
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 0x421408
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4214e0
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 0x421533
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 0x42151a
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 0x4281e0
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 0x428378
cmp ebp, ebx
jle 0x428378
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 0x42823e
dec eax
or eax, 0xfffffff8
inc eax
je 0x428245
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x428254
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42825b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004645ee
add esp, 4
cmp eax, ebx
je 0x42827c
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.004645ee
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 0x42836e
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 0x428355
mov al, byte [edx]
cmp al, 0xc0
jbe 0x428341
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x428336
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 0x428344
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x428344
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4282e0
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 0x4282d1
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