joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ffdd
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
test byte [eax + 0x60], 1
jne 0x41ffeb
xor al, al
leave
ret
push edi
call fcn.0042095c
mov edi, eax
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
cmp eax, 3
jge 0x420001
xor al, al
jmp 0x42006a
test eax, eax
push esi
mov esi, 0x80070057
jge 0x420011
push esi
call fcn.00401856
mov eax, dword [edi]
cmp byte [eax], 0x5c
jne 0x420044
cmp dword [eax - 0xc], 1
jge 0x420024
push esi
call fcn.00401856
mov eax, dword [edi]
cmp byte [eax + 1], 0x5c
jne 0x420044
cmp dword [eax - 0xc], 2
jge 0x420038
push esi
call fcn.00401856
mov eax, dword [edi]
cmp byte [eax + 2], 0x5c
je 0x420044
xor al, al
jmp 0x420069
xor esi, esi
call fcn.00403fd6
mov byte [ebp + esi - 4], al
inc esi
cmp esi, 3
jl 0x420046
lea eax, [ebp - 4]
push eax
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
setne al
pop esi
pop edi
leave
ret

Function at 0x42006d
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
call fcn.0042095c
lea ecx, [ebp - 4]
mov esi, eax
call fcn.0040d360
push 0x5c
call fcn.0040143c
lea ecx, [eax + 1]
lea eax, [ebp - 8]
push eax
mov eax, esi
call fcn.00405e1a
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00401c90
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
mov ebx, dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4200cd
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esi]
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x4200e5
inc eax
mov dword [edi + 8], eax
mov esi, eax
jmp 0x420149
mov eax, dword [0x42a5a0]
mov ecx, 0x42a5a0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push dword [eax]
lea eax, [ebp - 8]
push dword [esi]
push ebx
push str.__s___OriginalPath:__s__s
push eax
call fcn.00403d0a
add esp, 0x14
lea eax, [edi + 0x10c]
call fcn.00422228
xor esi, esi
push esi
push 0x20
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00405459
add esp, 0x14
test al, al
jne 0x42013e
xor eax, eax
inc eax
mov dword [edi + 8], eax
mov esi, eax
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [ebx - 0x10]
call fcn.0040175b
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x42237b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
xor esi, esi
cmp dword [ebx + 4], esi
mov edi, eax
mov dword [ebx + 0x10], edi
je 0x422408
cmp edi, esi
je 0x4223b3
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push eax
lea esi, [ebx + 0x14]
call fcn.0040b62d
push dword [ebx + 0x14]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x20]
xor esi, esi
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x42240f
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp edi, esi
mov ebx, eax
je 0x4223d3
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x4223fd
cmp ebx, esi
mov edi, dword [ebp - 4]
je 0x4223f9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x42240a
cmp ebx, esi
je 0x422408
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422837
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2e
mov esi, edi
mov ebx, eax
call fcn.0040143c
test eax, eax
jg 0x422859
mov al, 1
jmp 0x4229c7
lea ecx, [ebp - 8]
push ecx
mov esi, edi
call fcn.004014a5
mov eax, dword [0x42a5a0]
mov esi, 0x42a5a0
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp - 8]
add eax, 0x10
push dword [edi]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
push dword [eax]
lea eax, [ebp - 0x10]
push str.__verbose___log_file__s____remove_pack_file___s____s_
push eax
call fcn.00403d0a
add esp, 0x14
cmp dword [ebx + 0x10], 0
je 0x4228a3
mov ecx, dword [ebx + 0x10]
mov eax, dword [ecx]
push edi
call dword [eax + 0x14]
push 0
push 0x8000008
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebx + 0xc]
push eax
call fcn.00405459
add esp, 0x14
lea ecx, [ebp - 8]
mov byte [ebp - 1], 1
call fcn.0040da2c
test al, al
je 0x4228db
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x422992
mov eax, dword [0x42a5a0]
mov ecx, esi
call dword [eax + 0xc]
push dword [ebp + 0xc]
add eax, 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
call fcn.00405a31
mov eax, dword [0x42a5a0]
pop ecx
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
push 0xca
lea ecx, [ebp - 0x18]
mov dword [ebp - 0xc], eax
call fcn.00401000
mov esi, dword [ebp - 8]
mov edi, dword [esi - 0xc]
push 0x5c
mov eax, esi
call fcn.004015e9
test eax, eax
pop ecx
pop ecx
jne 0x42292e
or ecx, 0xffffffff
jmp 0x422932
sub eax, esi
mov ecx, eax
mov eax, edi
sub eax, ecx
lea ecx, [ebp - 0x1c]
push ecx
lea esi, [ebp - 8]
call fcn.00401456
mov esi, dword [ebp - 0x14]
push esi
push dword [eax]
lea eax, [ebp - 0xc]
push dword [ebp - 0x18]
push eax
call fcn.00403d0a
mov eax, dword [ebp - 0x1c]
add esp, 0x10
add eax, 0xfffffff0
call fcn.0040175b
push 0
lea edi, [ebp - 0xc]
call fcn.00409472
mov eax, dword [ebp - 0x18]
pop ecx
add eax, 0xfffffff0
mov byte [ebp - 1], 0
call fcn.0040175b
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff0
call fcn.0040175b
lea eax, [esi - 0x10]
call fcn.0040175b
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebx + 0x10], 0
je 0x4229ae
mov ebx, dword [ebx + 0x10]
mov eax, dword [ebx]
push edi
mov ecx, ebx
call dword [eax + 0x18]
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.0040175b
mov eax, dword [ebp - 8]
add eax, 0xfffffff0
call fcn.0040175b
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x422f20
Capabilities:
Create thread

Disassembly:
mov dword [esi + 0xc], eax
lea eax, [esi + 4]
push eax
xor eax, eax
push eax
push esi
push 0x422f56
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
xor eax, eax
ret
Function at 0x423b36
Capabilities:
Terminate process

Disassembly:
push 0x11c
push 0x4256d0
call fcn.004245d8
mov eax, dword [0x42a060]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x42a6dc]
test eax, eax
je 0x423b79
and dword [ebp - 4], 0
push ecx
push dword [ebp + 8]
call eax
pop ecx
pop ecx
or dword [ebp - 4], 0xffffffff
jmp 0x423c83
mov eax, dword [ebp + 8]
dec eax
je 0x423b95
mov ebx, str.Unknown_security_failure_detected_
mov dword [ebp - 0x12c], str.A_security_error_of_unknown_cause_has_been_detected_which_has_ncorrupted_the_programs_internal_state.__The_program_cannot_safely_ncontinue_execution_and_must_now_be_terminated._n
mov edi, 0xd4
jmp 0x423ba9
mov ebx, str.Buffer_overrun_detected_
mov dword [ebp - 0x12c], str.A_buffer_overrun_has_been_detected_which_has_corrupted_the_programs_ninternal_state.__The_program_cannot_safely_continue_execution_and_must_nnow_be_terminated._n
mov edi, 0xb9
mov byte [ebp - 0x20], 0
push 0x104
lea eax, [ebp - 0x124]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x423bd8
push str._program_name_unknown_
lea eax, [ebp - 0x124]
push eax
call fcn.00424730
pop ecx
pop ecx
lea eax, [ebp - 0x124]
mov dword [ebp - 0x128], eax
push eax
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
call esi
add eax, 0xb
cmp eax, 0x3c
jbe 0x423c1f
lea eax, [ebp - 0x124]
push eax
call esi
lea ecx, [ebp - 0x124]
sub ecx, 0x31
add eax, ecx
mov dword [ebp - 0x128], eax
push 3
push 0x42551c
push eax
call fcn.00423cf0
add esp, 0xc
push dword [ebp - 0x128]
call esi
lea eax, [eax + edi + 0xc]
add eax, 3
and eax, 0xfffffffc
call fcn.00424830
mov dword [ebp - 0x18], esp
mov edi, esp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ebx, 0x425518
push ebx
push edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push str.Program:
push edi
call esi
push dword [ebp - 0x128]
push edi
call esi
push ebx
push edi
call esi
push dword [ebp - 0x12c]
push edi
call esi
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 3
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4244f5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00424830
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424590
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x42a6b4]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x424590
cmp eax, 1
je 0x4245b1
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424590
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x42455d
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x42458c
xor eax, eax
inc eax
jmp 0x4245d0
cmp edi, eax
jae 0x424594
xor eax, eax
jmp 0x4245d0
cmp eax, esi
jae 0x42459b
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x42a6b4]
jmp 0x4245b4
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42495e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x42498c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x424993
cmp ebx, dword [eax + 4]
jae 0x424993
xor eax, eax
jmp 0x424b83
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4249a4
xor eax, eax
inc eax
jmp 0x424b82
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4249ba
cmp ecx, edx
jae 0x424aff
cmp dword [eax + 4], 0
je 0x4249c3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4249ab
cmp dword [ebp + 8], 0
je 0x4249e5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x424aff
cmp eax, esi
jae 0x424aff
mov eax, dword [0x42a6e0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x424a0a
cmp dword [esi*4 + 0x42a6e8], edi
je 0x424b03
inc esi
cmp esi, eax
jl 0x4249f8
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x424b7f
cmp dword [ebp - 8], 0x1000000
jne 0x424b7f
test byte [ebp - 0xc], 0xcc
je 0x424a88
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x424b7f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x424b7f
cmp word [eax + 0x18], 0x10b
jne 0x424b7f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x424b7f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x424a88
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x424a88
test byte [ecx + 0x27], 0x80
jne 0x424aff
push 1
push 0x42a728
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42499c
mov ecx, dword [0x42a6e0]
test ecx, ecx
mov edx, ecx
jle 0x424abc
lea eax, [ecx*4 + 0x42a6e4]
cmp dword [eax], edi
je 0x424abc
dec edx
sub eax, 4
test edx, edx
jg 0x424ab0
test edx, edx
jne 0x424aed
push 0xf
pop ebx
cmp ecx, ebx
jg 0x424ac9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x424ae1
lea eax, [edx*4 + 0x42a6e8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x424acf
cmp ecx, 0x10
jge 0x424aed
inc ecx
mov dword [0x42a6e0], ecx
push 0
push 0x42a728
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42499c
xor eax, eax
jmp 0x424b82
test esi, esi
jle 0x42499c
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42a728
call ebx
test eax, eax
jne 0x42499c
cmp dword [esi*4 + 0x42a6e8], edi
je 0x424b59
mov eax, dword [0x42a6e0]
lea esi, [eax - 1]
test esi, esi
jl 0x424b47
cmp dword [esi*4 + 0x42a6e8], edi
je 0x424b43
dec esi
jns 0x424b37
test esi, esi
jge 0x424b57
cmp eax, 0x10
jge 0x424b52
inc eax
mov dword [0x42a6e0], eax
lea esi, [eax - 1]
jmp 0x424b59
je 0x424b71
xor ecx, ecx
test esi, esi
jl 0x424b71
lea eax, [ecx*4 + 0x42a6e8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x424b5f
push 0
push 0x42a728
call ebx
jmp 0x42499c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
mov byte [esp + 0xa], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [esp + 0x108]
lea edx, [esp]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, 1
add esp, 0x104
ret

Function at 0x41d071
Capabilities:
Resolve function by parsing pe exports

Disassembly:
ret
mov eax, dword [ebx + 0x3c]
jmp 0x421136
mov esi, dword [edi + eax*4]
add esi, ebx
ret 4
lea edi, [eax + ebx]
cmp ecx, dword [edx + 0x18]
je 0x41d070
stc
xor eax, eax
jmp 0x4210ea
push eax
shl eax, 4
xchg dword [esp], eax
sub dword [esp], eax
movzx eax, byte [edi]
jmp 0x42115b
pop eax
wait
jne 0x4210ea
xor eax, 0x3c1f9928
jmp 0x421264
sub ecx, edx
and dh, ah
lea ecx, [eax + edx + 0xd0a16a4]
mov edx, dword [eax + ebx + 0x78]
lea edx, [edx + ebx]
not ah
adc eax, ebp
nop
sub ch, ch
cmp ecx, ebx
mov esi, dword [edx + 0x20]
add esi, ebx
jmp 0x4211d8
inc edi
cld
sub dword [esp], eax
nop
cld
cld
wait
lea esi, [esi]
cld
cmp byte [edi], 0
jmp 0x421124
not eax
or ecx, 0xffffffff
lodsd eax, dword [esi]
inc ecx
jmp 0x41d184
add esi, ebx
lea edx, [0x2938ab4b]
adc dl, ah
mov eax, dword [esi + ecx*2]
nop
xchg edx, edx
cld
adc dl, bl
add edi, ebx
not dh
and eax, 0xffff
jmp 0x41d10e
cmp eax, dword [esp + 4]
jne 0x4211dd
mov esi, dword [edx + 0x24]
nop
cmp ah, bh
not ah
or ah, dl
lea eax, [ebp - 0x7f]
mov ah, cl
lahf
dec eax
lea eax, [ebp + 0x4fbc1425]
mov edi, dword [edx + 0x1c]
jmp 0x42122a
Function at 0x4062a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f8cb
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.0048481a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x406322
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048272c
mov eax, dword [eax]
push 0x10ebc50
push eax
call fcn.00474964
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00484aa5
test bl, bl
je 0x406322
push 0x10ebc50
lea ecx, [esp + 0xc]
call fcn.00484e35
push 0x10ebc5c
lea ecx, [esp + 0xc]
call fcn.00484e35
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 0x40635e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00484aa5
jmp 0x406429
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 0x4063e2
lea edx, [esp + 0x7c]
push 0x10ebc58
push edx
call fcn.00474964
add esp, 8
test eax, eax
je 0x4063e2
lea eax, [esp + 0x7c]
push 0x10ebc54
push eax
call fcn.00474964
add esp, 8
test eax, eax
je 0x4063e2
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 0x406372
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.00484aa5
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 0x406c30
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 0x406c92
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 0x406ca0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48f94b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x10fb008]
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 0x406dd8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406d06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00484aa5
xor eax, eax
jmp 0x406e4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00484be2
push esi
lea ecx, [esp + 0xc]
call fcn.00484e71
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 0x406e2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00406c30
test eax, eax
jne 0x406e2d
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.00406c30
test eax, eax
jne 0x406e2d
lea eax, [esp + 0x14]
push 0x10ebc6c
push eax
call fcn.00475a00
mov esi, eax
add esp, 8
test esi, esi
jne 0x406e0c
lea ecx, [esp + 0x14]
push 0x10ebc68
push ecx
call fcn.00475980
mov esi, eax
add esp, 8
test esi, esi
jne 0x406e0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x406e0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00484b92
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x406d1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00484aa5
xor eax, eax
jmp 0x406e4f
mov byte [esi], 0
push 0x10ebc64
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.00484aa5
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 0x4178b0
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 0x41791e
cmp si, 0x69
ja 0x41791e
add esi, 0xffd0
cmp si, 0x11
je 0x4178ee
push 0x11
call edi
test ax, ax
jge 0x4178ee
or esi, 0x2000
cmp si, 0x10
je 0x417903
push 0x10
call edi
test ax, ax
jge 0x417903
or esi, 0x4000
cmp si, 0x12
je 0x417918
push 0x12
call edi
test ax, ax
jge 0x417918
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41792b
mov esi, 0xbd
jmp 0x4178df
cmp si, 0x6e
jne 0x417938
mov esi, 0xbe
jmp 0x4178df
cmp si, 0x6f
jne 0x4178d9
mov esi, 0xbf
jmp 0x4178df

Function at 0x419170
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x110b750]
xor edx, edx
cmp eax, edx
jne 0x419196
xor eax, eax
mov byte [eax + 0x110b650], al
inc eax
cmp eax, 0x100
jl 0x41917e
mov dword [0x110b750], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x110b650
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x419227
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 0x4191fa
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 0x4191c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4192a0
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 0x4192f3
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 0x4192da
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