joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4509f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, eax
xor eax, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
push esi
call fcn.00451df0
test al, al
jne 0x450a27
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 0x686d7478
lea edx, [esp + 0x1c]
push edx
lea eax, [esi + 0x60]
call fcn.00451f70
mov ebx, dword [esi + 0x88]
add esi, 0x80
cmp dword [esi + 4], ebx
jbe 0x450a4f
call fcn.0046a455
mov edi, dword [esp + 0x18]
test edi, edi
je 0x450a5b
cmp edi, esi
je 0x450a60
call fcn.0046a455
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x450a1b
test edi, edi
jne 0x450a71
call fcn.0046a455
cmp esi, dword [edi + 8]
jb 0x450a7b
call fcn.0046a455
mov eax, dword [esi + 8]
push 0
add eax, 8
push eax
push ebp
xor edx, edx
call fcn.00440120
test eax, eax
jne 0x450a1b
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x450abb
call fcn.004164a0
test eax, eax
jne 0x450a1b
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret 4

Function at 0x450ad0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
mov esi, eax
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], eax
push edi
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x18]
push ecx
mov eax, esi
call fcn.00451ec0
test al, al
jne 0x450b08
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 0x766d7478
lea edx, [esp + 0x1c]
push edx
lea eax, [esi + 0x60]
call fcn.00451f70
mov ebx, dword [esi + 0x88]
add esi, 0x80
cmp dword [esi + 4], ebx
jbe 0x450b30
call fcn.0046a455
mov edi, dword [esp + 0x18]
test edi, edi
je 0x450b3c
cmp edi, esi
je 0x450b41
call fcn.0046a455
mov esi, dword [esp + 0x1c]
cmp esi, ebx
je 0x450afc
test edi, edi
jne 0x450b52
call fcn.0046a455
cmp esi, dword [edi + 8]
jb 0x450b5c
call fcn.0046a455
mov eax, dword [esi + 8]
push 0
add eax, 8
push eax
push ebp
xor edx, edx
call fcn.00440120
test eax, eax
jne 0x450afc
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x450b9c
call fcn.004164a0
test eax, eax
jne 0x450afc
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret 4
Function at 0x454cf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48bc48
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4b1784]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 4], eax
mov byte [esp + 0x30], al
mov dword [esp + 0x40], eax
push 1
lea eax, [esp + 8]
push eax
call fcn.00458c20
lea eax, [esp + 4]
call fcn.00458bb0
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x457c80
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
mov eax, 0x4e67c6a7
jbe 0x457cad
push esi
push edi
jmp 0x457c90
mov esi, eax
mov edi, eax
shl esi, 5
shr edi, 2
add esi, edi
movzx edi, byte [ecx]
add esi, edi
xor eax, esi
add ecx, 1
sub edx, 1
jne 0x457c90
pop edi
pop esi
and eax, 0x7fffffff
ret
Function at 0x460742
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4b1784]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00460681
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0046ea20
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x460791
cmp dword [ebp - 0x1c], 5
jb 0x4607a9
jmp 0x4607a5
cmp dword [ebp - 0x10], 1
jne 0x4607a9
cmp dword [ebp - 0x1c], 4
ja 0x4607a5
jne 0x4607a9
cmp dword [ebp - 0x18], 0
jbe 0x4607a9
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x48fd78
call fcn.00415ed0
test eax, eax
jge 0x4607ca
mov byte [0x4bf090], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00469efd
add ebp, 0x78
leave
ret

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

Disassembly:
cmp dword [0x4bb374], 0
push esi
jne 0x4608ef
call fcn.0046081a
test eax, eax
je 0x460932
mov eax, dword [0x4bb374]
cmp eax, 1
jne 0x460910
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x460932
pop esi
ret
push eax
call dword [0x4bb37c]
test eax, eax
jne 0x46097a
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x460936
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4bb374]
call dword [0x4bb37c]
mov edi, eax
test edi, edi
je 0x46095d
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x460979
lea edi, [esi + 0xff0]
push esi
push dword [0x4bb374]
call dword [0x4bb378]
add esi, 0x10
cmp esi, edi
jb 0x460963
mov eax, esi
pop edi
pop esi
ret
jmp 0x4608dc
Function at 0x461ba0
Capabilities:
Terminate process

Disassembly:
push edi
call fcn.00461b90
mov edi, eax
mov eax, dword [edi + 0x22c]
test eax, eax
je 0x461bbe
mov eax, dword [esp + 8]
mov dword [edi + 0x230], eax
pop edi
ret
push str._nMIRACL_error_from_routine
call fcn.00461d90
add esp, 4
mov eax, dword [edi + 0x20]
cmp eax, 0x18
jge 0x461be1
mov ecx, dword [edi + eax*4 + 0x24]
mov edx, dword [ecx*4 + 0x4b0288]
push edx
jmp 0x461be6
push 0x4b0da0
call fcn.00461d90
add esp, 4
push esi
push 0x4b17f0
push 0xa
call fcn.00469f0c
mov esi, dword [edi + 0x20]
add esp, 8
dec esi
js 0x461c4a
lea edi, [edi + esi*4 + 0x24]
push str.______________called_from
call fcn.00461d90
add esp, 4
cmp esi, 0x18
jge 0x461c26
mov eax, dword [edi]
mov ecx, dword [eax*4 + 0x4b0288]
push ecx
jmp 0x461c2b
push 0x4b0da0
call fcn.00461d90
add esp, 4
push 0x4b17f0
push 0xa
call fcn.00469f0c
add esp, 8
dec esi
sub edi, 4
test esi, esi
jge 0x461c08
mov edx, dword [esp + 0xc]
pop esi
lea eax, [edx - 1]
cmp eax, 0x17
ja case.default.0x461c5b
jmp dword [eax*4 + 0x461d28]
push str.Number_base_too_big_for_representation_n
jmp 0x461d17
push str.Division_by_zero_attempted_n
jmp 0x461d17
push str.Overflow___Number_too_big_n
jmp 0x461d17
push str.Internal_result_is_negative_n
jmp 0x461d17
push str.Input_format_error_n
jmp 0x461d17
push str.Illegal_number_base_n
jmp 0x461d17
push str.Illegal_parameter_usage_n
jmp 0x461d17
push str.Out_of_space_n
jmp 0x461d17
push str.Even_root_of_a_negative_number_n
jmp 0x461d17
push str.Raising_integer_to_negative_power_n
jmp 0x461d17
push str.Attempt_to_take_illegal_root_n
jmp 0x461d17
push str.Integer_operation_attempted_on_Flash_number_n
jmp 0x461d17
push str.Flash_overflow_n
jmp 0x461d17
push str.Numbers_too_big_n
jmp 0x461d17
push str.Log_of_a_non_positive_number_n
jmp 0x461d17
push str.Flash_to_double_conversation_failure_n
jmp 0x461d17
push str.I_O_buffer_overflow_n
jmp 0x461d17
push str.MIRACL_not_initialised___no_call_to_mirsys___n
jmp 0x461d17
push str.Illegal_modulus__n
jmp 0x461d17
push str.No_modulus_defined_n
jmp 0x461d17
push str.Exponent_too_big_n
jmp 0x461d17
push str.Number_Base_must_be_power_of_2_n
jmp 0x461d17
push str.Specified_double_length_type_isnt_double_length_n
jmp 0x461d17
push str.Specified_basis_is_NOT_irreducible_n
call fcn.00461d90
add esp, 4
push 0
call fcn.00470e6a
mov edi, edi
bound ebx, qword [esi + eax*2]
add byte [esp + ebx + 70], ch
add byte [esi + 0x1c], dh
inc esi
add byte [eax - 0x75ffb9e4], al
sbb al, 0x46
add byte [esp + ebx + 0x1c9b0046], dl
inc esi
add byte [edx - 0x56ffb9e4], ah
sbb al, 0x46
add byte [eax - 0x48ffb9e4], dh
sbb al, 0x46
add byte [esi - 0x3affb9e4], bh
sbb al, 0x46
add ah, cl
sbb al, 0x46
add bl, dl
sbb al, 0x46
add dl, bl
sbb al, 0x46
add cl, ah
sbb al, 0x46
add al, ch
sbb al, 0x46
add bh, ch
sbb al, 0x46
add dh, dh
sbb al, 0x46
add ch, bh
sbb al, 0x46
add byte [ebx + 0x1d0b0046], al
inc esi
add byte [edx], dl
sbb eax, 0x90900046
nop
nop
nop
nop
nop
nop
Function at 0x461eb0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, 1
call fcn.00461b90
mov ebx, dword [esp + 0x14]
mov ecx, eax
xor eax, eax
mov edi, 0xe
mov dword [ecx + 0x134], eax
mov dword [ecx + 0x130], eax
xor dword [ecx + 0x9c], ebx
mov eax, edi
mov ebp, 0x25
cdq
idiv ebp
sub ebx, esi
add edi, 0xe
mov eax, dword [ecx + edx*4 + 0x9c]
xor eax, esi
cmp edi, 0x206
mov dword [ecx + edx*4 + 0x9c], eax
mov eax, esi
mov esi, ebx
mov ebx, eax
jl 0x461edd
mov esi, 0x3e8
call fcn.00461e20
dec esi
jne 0x461f0f
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x463380
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x487656
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
call fcn.00463b50
mov dword [esi], eax
push 0
mov dword [esp + 0x30], 0
call fcn.00462070
mov dword [esi + 4], eax
push 0
call fcn.00462070
mov dword [esi + 8], eax
mov edi, dword [0x4bb5dc]
push 0
call fcn.0046ba87
push eax
call fcn.00461eb0
mov dword [edi + 0x238], 0x10
mov edi, dword [esp + 0x44]
push 0
mov ebx, dword [edi*4 + 0x4b0de8]
call fcn.00462070
push ebx
push eax
mov dword [esp + 0x38], eax
call fcn.00465450
mov ebx, dword [edi*4 + 0x4b0e10]
push 0
call fcn.00462070
push ebx
push eax
mov dword [esp + 0x40], eax
call fcn.00465450
mov ebx, dword [edi*4 + 0x4b0dc0]
push 0
call fcn.00462070
push ebx
push eax
mov dword [esp + 0x48], eax
call fcn.00465450
mov ebx, dword [edi*4 + 0x4b0e60]
push 0
call fcn.00462070
push ebx
push eax
mov dword [esp + 0x50], eax
call fcn.00465450
add esp, 0x40
mov ebx, dword [edi*4 + 0x4b0e88]
push 0
call fcn.00462070
push ebx
push eax
mov dword [esp + 0x18], eax
call fcn.00465450
mov edi, dword [edi*4 + 0x4b0e38]
push 0
mov byte [esp + 0x3c], 7
call fcn.00462070
mov ebx, eax
push edi
push ebx
call fcn.00465450
mov eax, dword [esi + 4]
push eax
push ebx
call fcn.00462ae0
push ebx
call fcn.004626a0
push 0
lea ecx, [esp + 0x3c]
lea edx, [esp + 0x40]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
call fcn.00465420
add esp, 0x34
call fcn.00463b50
mov edi, eax
lea ecx, [esp + 0xc]
push edi
push 0
call fcn.00465370
push eax
lea ecx, [esp + 0x1c]
call fcn.00465370
push eax
call fcn.00463c10
mov ecx, dword [esi]
push ecx
push edi
call fcn.00464080
push edi
call fcn.00463bd0
mov edx, dword [esp + 0x28]
push edx
call fcn.004626a0
mov eax, dword [esp + 0x30]
push eax
call fcn.004626a0
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004626a0
mov edx, dword [esp + 0x40]
push edx
call fcn.004626a0
mov eax, dword [esp + 0x48]
push eax
call fcn.004626a0
mov ecx, dword [esp + 0x54]
add esp, 0x30
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret 4

Function at 0x469efd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b1784]
jne 0x469f07
repz ret
jmp fcn.00475b11
Function at 0x476ed0
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4b21f8]
je 0x476eeb
inc edi
cmp edi, 0x17
jb 0x476edc
cmp edi, 0x17
jae 0x47706b
push ebp
push 3
call fcn.00482030
cmp eax, 1
pop ecx
je 0x477037
push 3
call fcn.00482030
test eax, eax
pop ecx
jne 0x476f1f
cmp dword [0x4b1600], 1
je 0x477037
cmp ebx, 0xfc
je 0x47706a
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4bbb50
push ebp
call fcn.004742e8
add esp, 0xc
test eax, eax
je 0x476f55
push esi
push esi
push esi
push esi
push esi
call fcn.0046a335
add esp, 0x14
push 0x104
mov esi, 0x4bbb69
push esi
push 0
mov byte [0x4bbc6d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x476f99
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004742e8
add esp, 0xc
test eax, eax
je 0x476f99
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0046a335
add esp, 0x14
push esi
call fcn.00470260
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x476fde
push esi
call fcn.00470260
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4bbe64
push 0x49103c
sub ecx, eax
push ecx
push eax
call fcn.0047e48d
add esp, 0x14
test eax, eax
je 0x476fde
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0046a335
add esp, 0x14
jmp 0x476fe0
xor esi, esi
push 0x491038
push ebx
push ebp
call fcn.0047e41c
add esp, 0xc
test eax, eax
je 0x477000
push esi
push esi
push esi
push esi
push esi
call fcn.0046a335
add esp, 0x14
push dword [edi*8 + 0x4b21fc]
push ebx
push ebp
call fcn.0047e41c
add esp, 0xc
test eax, eax
je 0x477022
push esi
push esi
push esi
push esi
push esi
call fcn.0046a335
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00481e73
add esp, 0xc
jmp 0x47706a
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x47706a
cmp ebp, 0xffffffff
je 0x47706a
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4b21fc]
push dword [esi]
call fcn.00470260
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x481e73
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004727d9
xor ebx, ebx
cmp dword [0x4bc0a4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x481f49
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x482029
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x482029
push eax
call fcn.0047276b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4bc0a4], eax
call esi
push eax
call fcn.0047276b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4bc0a8], eax
call esi
push eax
call fcn.0047276b
mov dword [0x4bc0ac], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00470c83
test eax, eax
pop ecx
pop ecx
je 0x481f17
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046a335
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x481f49
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0047276b
cmp eax, ebx
pop ecx
mov dword [0x4bc0b4], eax
je 0x481f49
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047276b
pop ecx
mov dword [0x4bc0b0], eax
mov eax, dword [0x4bc0b0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x481fce
cmp dword [0x4bc0b4], ecx
je 0x481fce
push eax
call fcn.004727e2
push dword [0x4bc0b4]
mov esi, eax
call fcn.004727e2
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x481fce
cmp edi, ebx
je 0x481fce
call esi
cmp eax, ebx
je 0x481f9b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x481f9b
test byte [ebp - 0x18], 1
jne 0x481fce
lea eax, [ebp - 0x10]
push eax
call fcn.00470cba
test eax, eax
pop ecx
je 0x481fb6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0046a335
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x481fc5
or dword [ebp + 0x10], 0x200000
jmp 0x482009
or dword [ebp + 0x10], 0x40000
jmp 0x482009
mov eax, dword [0x4bc0a8]
cmp eax, dword [ebp - 8]
je 0x482009
push eax
call fcn.004727e2
cmp eax, ebx
pop ecx
je 0x482009
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x482009
mov eax, dword [0x4bc0ac]
cmp eax, dword [ebp - 8]
je 0x482009
push eax
call fcn.004727e2
cmp eax, ebx
pop ecx
je 0x482009
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4bc0a4]
call fcn.004727e2
cmp eax, ebx
pop ecx
je 0x482029
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48202b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c080
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x469fab
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.0045e947
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c102
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045c6bd
mov eax, dword [eax]
push 0x4801c0
push eax
call fcn.0044f4b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045ebd2
test bl, bl
je 0x40c102
push 0x4801c0
lea ecx, [esp + 0xc]
call fcn.0045ef62
push 0x483d34
lea ecx, [esp + 0xc]
call fcn.0045ef62
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 0x40c13e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045ebd2
jmp 0x40c209
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 0x40c1c2
lea edx, [esp + 0x7c]
push 0x483d30
push edx
call fcn.0044f4b4
add esp, 8
test eax, eax
je 0x40c1c2
lea eax, [esp + 0x7c]
push 0x483d2c
push eax
call fcn.0044f4b4
add esp, 8
test eax, eax
je 0x40c1c2
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 0x40c152
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.0045ebd2
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 0x40ca20
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 0x40ca82
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 0x40ca90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a02b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48a248]
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 0x40cbc8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40caf6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045ebd2
xor eax, eax
jmp 0x40cc3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045ed0f
push esi
lea ecx, [esp + 0xc]
call fcn.0045ef9e
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 0x40cc1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040ca20
test eax, eax
jne 0x40cc1d
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.0040ca20
test eax, eax
jne 0x40cc1d
lea eax, [esp + 0x14]
push 0x483d48
push eax
call fcn.004504f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cbfc
lea ecx, [esp + 0x14]
push 0x483d44
push ecx
call fcn.00450470
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cbfc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40cbff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045ecbf
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40cb0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045ebd2
xor eax, eax
jmp 0x40cc3f
mov byte [esi], 0
push 0x483d40
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.0045ebd2
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 0x41f9b0
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 0x41fa1e
cmp si, 0x69
ja 0x41fa1e
add esi, 0xffd0
cmp si, 0x11
je 0x41f9ee
push 0x11
call edi
test ax, ax
jge 0x41f9ee
or esi, 0x2000
cmp si, 0x10
je 0x41fa03
push 0x10
call edi
test ax, ax
jge 0x41fa03
or esi, 0x4000
cmp si, 0x12
je 0x41fa18
push 0x12
call edi
test ax, ax
jge 0x41fa18
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41fa2b
mov esi, 0xbd
jmp 0x41f9df
cmp si, 0x6e
jne 0x41fa38
mov esi, 0xbe
jmp 0x41f9df
cmp si, 0x6f
jne 0x41f9d9
mov esi, 0xbf
jmp 0x41f9df

Function at 0x421160
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49a8e0]
xor edx, edx
cmp eax, edx
jne 0x421186
xor eax, eax
mov byte [eax + 0x49a7e0], al
inc eax
cmp eax, 0x100
jl 0x42116e
mov dword [0x49a8e0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49a7e0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421217
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 0x4211ea
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 0x4211b8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421290
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 0x4212e3
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 0x4212ca
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