joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411280
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
cmp dword [ecx + 4], 0
mov esi, ecx
je 0x4112e9
lea ebx, [esi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x41131f
cmp dword [ebp - 0x14], 0
je 0x411306
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x411333
mov edi, eax
inc eax
mov dword [esi], eax
mov eax, dword [0x7ee0c4]
nop dword [eax + eax]
mov dword [esi + 8], eax
lock cmpxchg dword [0x7ee0c4], esi
jne 0x4112d0
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x411315
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x41136f
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [esi], ecx
jne 0x41130a
mov edi, dword [ebp - 0x10]
jmp 0x411315
mov edi, dword [esi]
jmp 0x411314
mov edi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
call fcn.004113a0
ud2
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
lea ecx, [ebp - 0x2c]
mov edx, 0x7e5914
mov dword [ebp - 0x2c], 0x7e58dc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov dword [ebp - 0x20], 0
call fcn.00403c20
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x7e58dc
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.00411400
ud2
Function at 0x413160
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [0x445020]
test eax, eax
je 0x413185
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jbe 0x41319a
cmp dword [eax + 4], 0
je 0x41319a
add eax, 8
pop esi
pop ebp
ret
mov ecx, 0x445020
call fcn.00411280
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
ja 0x413179
mov eax, dword [0x445020]
test eax, eax
je 0x413219
dec eax
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
je 0x41322e
mov esi, eax
test eax, eax
jne 0x413201
movzx eax, byte [0x7ee060]
mov eax, dword [0x7ee0c0]
test eax, eax
jne 0x4131d3
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x41323f
mov dword [0x7ee0c0], eax
push 0x10
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x41323f
mov dword [eax], 0x445020
mov dword [eax + 4], 0
mov esi, eax
mov eax, dword [0x445020]
test eax, eax
je 0x413233
dec eax
push esi
push eax
call sub.KERNEL32.dll_TlsSetValue
mov dword [esi + 4], 1
mov dword [esi + 8], 0
lea eax, [esi + 8]
mov byte [esi + 0xc], 0
pop esi
pop ebp
ret
mov ecx, 0x445020
call fcn.00411280
push eax
call sub.KERNEL32.dll_TlsGetValue
cmp eax, 1
jne 0x4131af
xor eax, eax
pop esi
pop ebp
ret
mov ecx, 0x445020
call fcn.00411280
jmp 0x4131fa
mov ecx, 4
mov edx, 0x10
call fcn.00403700
ud2
Function at 0x415ca0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [edx + 0x1c]
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ecx, 0
mov edi, edx
call 0x415cbe
pop esi
cmp bl, 1
setne dl
sbb ecx, ecx
or cl, dl
cmp cl, 0xff
movzx edx, cl
je 0x415cd5
test edx, edx
jne 0x415cfe
mov byte [ebp - 0x14], bl
movzx ebx, byte [edi + 0x1e]
cmp cl, 0xff
mov dword [ebp - 0x18], ebx
je 0x415ce8
test edx, edx
jne 0x415cf2
mov ecx, edi
call fcn.00415bb0
movzx eax, al
movzx ebx, byte [ebp - 0x14]
xor ecx, ecx
test bl, bl
jne 0x415d5f
jmp 0x415d0b
mov dword [ebp - 0x18], 0
xor ecx, ecx
test bl, bl
jne 0x415d5f
xor ecx, ecx
cmp byte [edi + 8], 6
lea edx, [edi + 8]
cmove edx, ecx
je 0x415d5f
movzx ebx, byte [edx]
mov ecx, 6
add esi, dword [ebx*4 + 0x415e74]
jmp esi
add eax, ecx
movzx ecx, byte [ebp - 0x18]
mov edx, dword [edi + 4]
mov dword [ebp - 0x1c], ecx
add ecx, eax
cmp edx, ecx
jb 0x415e62
mov esi, edi
mov edi, dword [edi]
cmp edx, ecx
mov ebx, edi
lea ebx, [edi + ecx]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
jne 0x415d96
movzx eax, byte [esi + 8]
mov byte [ebp - 0xd], al
mov ebx, dword [ebp - 0x14]
xor eax, eax
jmp 0x415e02
movzx ebx, byte [esi + 8]
cmp bl, 3
mov byte [ebp - 0xd], bl
jae 0x415dbf
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
sub eax, edx
lea esi, [edx + esi - 1]
nop
cmp byte [esi], 0x5c
je 0x415e51
dec esi
inc eax
jne 0x415db0
jmp 0x415d8f
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
sub eax, edx
lea edi, [edx + esi - 1]
nop
movzx esi, byte [edi]
cmp esi, 0x2f
je 0x415deb
cmp esi, 0x5c
je 0x415deb
dec edi
inc eax
jne 0x415dd0
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
xor eax, eax
jmp 0x415e02
mov edx, dword [ebp - 0x1c]
not eax
lea ecx, [ecx + eax + 1]
cmp edx, ecx
jb 0x415e5b
mov ebx, dword [ebp - 0x18]
mov eax, 1
add ebx, ecx
sub edx, ecx
je 0x415e26
mov cl, 9
cmp edx, 2
je 0x415e2a
cmp edx, 1
jne 0x415e39
cmp byte [ebx], 0x2e
jne 0x415e39
xor ecx, ecx
cmp byte [ebp - 0xd], 3
setae cl
lea ecx, [ecx + ecx*2 + 7]
jmp 0x415e39
mov cl, 0xa
jmp 0x415e39
cmp byte [ebx], 0x2e
jne 0x415e39
cmp byte [ebx + 1], 0x2e
sete cl
xor cl, 9
mov esi, dword [ebp - 0x20]
add eax, edx
mov dword [esi], eax
mov byte [esi + 4], cl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], edx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
not eax
lea ecx, [ecx + eax + 1]
cmp edx, ecx
jae 0x415df8
push 0x7e4d58
jmp 0x415e67
push 0x7e4d48
call fcn.004042a0
add esp, 4
ud2
Function at 0x42a050
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x30
mov esi, dword [ebp + 0x20]
test esi, esi
je 0x42a174
mov dword [esp], ecx
mov edi, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
movzx ecx, byte [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ch, dl
and ch, 0x3f
cmp ch, 0xd
je 0x42a195
and edx, 0x3f
cmp edx, 0xe
je 0x42a1a4
cmp edx, 0xf
jne 0x42a183
mov eax, dword [edi + 0x68]
test eax, eax
je 0x42a183
mov edx, dword [ebx + 0x18]
test edx, edx
je 0x42a206
mov ecx, dword [ebx + 0x14]
mov dword [esp + 0x28], edx
mov dword [esp + 0xc], edx
xor edi, edi
mov dword [esp + 0x24], eax
mov dword [esp + 8], ecx
mov ecx, edx
mov edx, dword [esp + 8]
jmp 0x42a0d8
mov dword [esp + 0xc], ecx
sub ecx, edi
jbe 0x42a117
mov esi, dword [ebp + 0xc]
shr ecx, 1
xor ebx, ebx
add ecx, edi
imul eax, ecx, 0x110
cmp dword [edx + eax + 0x108], esi
mov eax, 0xff
setne bl
cmovb ebx, eax
cmp bl, 1
je 0x42a0d0
movzx eax, bl
cmp eax, 0xff
jne 0x42a206
inc ecx
mov edi, ecx
mov ecx, dword [esp + 0xc]
sub ecx, edi
ja 0x42a0d8
test edi, edi
je 0x42a206
mov edx, dword [esp + 0x28]
dec edi
cmp edi, edx
jae 0x42a27b
mov edx, dword [esp + 8]
imul ecx, edi, 0x110
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x20]
mov ebx, dword [ebp + 0x18]
cmp dword [edx + ecx + 0xa8], 0
jne 0x42a159
add edx, ecx
mov ecx, dword [edx + 0xac]
cmp ecx, eax
jbe 0x42a228
mov edx, dword [esp]
movzx eax, byte [esp + 0x12]
movzx esi, word [esp + 0x10]
mov byte [esp + 6], al
mov word [esp + 4], si
jmp 0x42a209
mov dword [ecx + 4], 0
mov byte [ecx], 0x4b
jmp 0x42a220
mov eax, dword [esp]
mov dword [eax + 4], 0
mov byte [eax], 0x4b
jmp 0x42a220
movzx edx, cl
mov ecx, dword [esp]
push esi
push edi
push ebx
push eax
push dword [ebp + 0x14]
jmp 0x42a1d2
mov edx, ebx
movzx ebx, cl
lea ecx, [esp + 0x10]
push ebx
push eax
call fcn.0042a770
add esp, 8
movzx eax, byte [esp + 0x10]
cmp al, 0x4b
jne 0x42a1dc
mov ecx, dword [esp]
mov edx, ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
call fcn.0042a290
add esp, 0x14
jmp 0x42a220
movzx ecx, byte [esp + 0x13]
mov edx, dword [esp]
movzx edi, word [esp + 0x11]
mov esi, dword [esp + 0x14]
movsd xmm0, qword [esp + 0x18]
mov byte [edx + 3], cl
mov word [edx + 1], di
mov byte [edx], al
mov dword [edx + 4], esi
movsd qword [edx + 8], xmm0
jmp 0x42a220
mov edx, dword [esp]
movzx eax, byte [esp + 6]
movzx esi, word [esp + 4]
mov byte [edx + 3], al
mov word [edx + 1], si
mov byte [edx], 0x37
mov dword [edx + 4], ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
sub eax, ecx
xor ecx, ecx
cmp byte [edx + 0xc9], 8
mov dword [esp + 8], edx
mov edi, eax
sete cl
shl ecx, 3
add ecx, dword [edx + 0xcc]
mov edx, dword [edx + 0xc4]
sub ecx, edx
add ecx, 4
sub edi, ecx
jb 0x42a274
cmp edi, edx
jae 0x42a274
mov edi, dword [esp + 0x24]
mov ecx, dword [esp]
mov edx, 1
add edi, 8
push esi
push edi
push ebx
push eax
push dword [esp + 0x18]
jmp 0x42a1d2
mov ecx, eax
jmp 0x42a159
mov ecx, edi
push 0x7e4868
call fcn.00403c50
add esp, 4
ud2
Function at 0x42b260
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov ebx, dword [edx + 8]
mov dword [esp], ecx
mov eax, dword [edx]
mov ecx, dword [edx + 4]
cmp dword [ebx], 0
je 0x42b284
mov edi, dword [ebx + 0xc]
mov ebx, dword [ebx + 4]
jmp 0x42b293
mov edi, dword [ebx + 4]
cmp edi, 6
jae 0x42b3f8
add ebx, 8
test edi, edi
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edx
je 0x42b36a
nop
dec edi
add ebx, 0x10
cmp edi, 0xffffffff
je 0x42b383
lea eax, [ebx - 0x10]
lea ecx, [esp + 0x20]
lea esi, [esp + 0x38]
lea edx, [esp + 0xc]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, dword [esp + 0x1c]
movsd qword [esp + 0x40], xmm1
movsd qword [esp + 0x38], xmm0
mov eax, dword [eax + 0xc]
push esi
push dword [eax + 0x20]
call fcn.00426930
add esp, 8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov edx, eax
xor edx, 0x2e
or edx, ecx
je 0x42b3af
lea esi, [esp + 0x32]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], edi
mov esi, dword [esi]
mov dword [esp + 4], esi
lea esi, [esp + 0x32]
movzx esi, word [esi + 4]
mov word [esp + 8], si
movzx esi, word [esp + 0x30]
cmp si, word [ebp + 8]
mov esi, dword [esp + 0x2c]
jne 0x42b2b0
movzx edi, word [esp + 8]
mov ebx, dword [esp]
mov word [ebx + 0x16], di
mov edi, dword [esp + 4]
mov dword [ebx + 0x12], edi
mov dword [ebx + 4], ecx
movzx ecx, word [ebp + 8]
mov dword [ebx], eax
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], esi
mov word [ebx + 0x10], cx
jmp 0x42b3f0
cmp dword [edx + 0x14], 0
mov eax, dword [esp]
jne 0x42b3a0
mov dword [edx + 0x14], 1
mov dword [edx + 0x18], 0
jmp 0x42b3a0
mov eax, dword [esp + 0x1c]
cmp dword [eax + 0x14], 0
jne 0x42b39d
mov ecx, dword [esp + 0xc]
sub ecx, dword [eax]
mov dword [eax + 0x14], 1
mov dword [eax + 0x18], ecx
mov eax, dword [esp]
mov dword [eax + 4], 0
mov dword [eax], 0x2e
jmp 0x42b3f0
lea edx, [esp + 0x32]
mov ecx, dword [esp]
mov edi, dword [esp + 0x2c]
mov esi, dword [edx]
movzx eax, word [edx + 4]
movzx edx, word [esp + 0x30]
mov dword [esp + 4], esi
mov dword [ecx + 0x12], esi
mov esi, dword [esp + 0x28]
mov word [ecx + 0x16], ax
mov word [esp + 8], ax
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], esi
mov word [ecx + 0x10], dx
mov dword [ecx + 4], 0
mov dword [ecx], 0x2f
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, edi
mov edx, 5
push 0x7e37dc
call fcn.00404300
add esp, 4
ud2
Function at 0x441410
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0043be50
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0043be50
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x441470
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x7eeb10]
test esi, esi
jle 0x441590
mov eax, dword [0x7eeb14]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4414a4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x441527
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x441490
mov dword [esp], ebx
call fcn.00441e60
mov edi, eax
test eax, eax
je 0x4415b7
mov eax, dword [0x7eeb14]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.00441fa0
mov edx, dword [0x7eeb14]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x441597
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x441520
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x441530
add dword [0x7eeb10], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x7eeb14]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x441520
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00441410
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4414ae
mov eax, dword [0x7eeb14]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00441410
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00441410
lea esi, [esi]
nop
Function at 0x441ad0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x7eeb2c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x7eeb24]
sub esp, 4
test ebx, ebx
je 0x441b25
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x441b1e
test esi, esi
je 0x441b1e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x441b00
mov dword [esp], 0x7eeb2c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x441e60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x441e85
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x441e90
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x441e85
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x441ed8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x441ece
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x441eda
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x441ec0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x40e6d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x471e2b
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.00466833
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e752
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046437a
mov eax, dword [eax]
push 0x493260
push eax
call fcn.004566d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00466abe
test bl, bl
je 0x40e752
push 0x493260
lea ecx, [esp + 0xc]
call fcn.00466e4e
push 0x496db8
lea ecx, [esp + 0xc]
call fcn.00466e4e
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 0x40e78e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00466abe
jmp 0x40e859
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 0x40e812
lea edx, [esp + 0x7c]
push 0x496db4
push edx
call fcn.004566d4
add esp, 8
test eax, eax
je 0x40e812
lea eax, [esp + 0x7c]
push 0x496db0
push eax
call fcn.004566d4
add esp, 8
test eax, eax
je 0x40e812
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 0x40e7a2
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.00466abe
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 0x40f050
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 0x40f0b2
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 0x40f0c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x471eab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49ed48]
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 0x40f1f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40f126
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00466abe
xor eax, eax
jmp 0x40f26f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00466bfb
push esi
lea ecx, [esp + 0xc]
call fcn.00466e8a
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 0x40f24d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040f050
test eax, eax
jne 0x40f24d
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.0040f050
test eax, eax
jne 0x40f24d
lea eax, [esp + 0x14]
push 0x496dcc
push eax
call fcn.00457710
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f22c
lea ecx, [esp + 0x14]
push 0x496dc8
push ecx
call fcn.00457690
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f22c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40f22f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00466bab
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40f13e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00466abe
xor eax, eax
jmp 0x40f26f
mov byte [esi], 0
push 0x496dc4
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.00466abe
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 0x41fc60
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 0x41fcce
cmp si, 0x69
ja 0x41fcce
add esi, 0xffd0
cmp si, 0x11
je 0x41fc9e
push 0x11
call edi
test ax, ax
jge 0x41fc9e
or esi, 0x2000
cmp si, 0x10
je 0x41fcb3
push 0x10
call edi
test ax, ax
jge 0x41fcb3
or esi, 0x4000
cmp si, 0x12
je 0x41fcc8
push 0x12
call edi
test ax, ax
jge 0x41fcc8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41fcdb
mov esi, 0xbd
jmp 0x41fc8f
cmp si, 0x6e
jne 0x41fce8
mov esi, 0xbe
jmp 0x41fc8f
cmp si, 0x6f
jne 0x41fc89
mov esi, 0xbf
jmp 0x41fc8f

Function at 0x421400
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4af4b8]
xor edx, edx
cmp eax, edx
jne 0x421426
xor eax, eax
mov byte [eax + 0x4af3b8], al
inc eax
cmp eax, 0x100
jl 0x42140e
mov dword [0x4af4b8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4af3b8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4214b7
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 0x42148a
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 0x421458
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421530
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 0x421583
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 0x42156a
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