joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43aab6
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x447660
call fcn.0043cba4
mov edi, 0x94
mov eax, edi
call fcn.00439bd0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x469ac8], ecx
mov eax, dword [esi + 4]
mov dword [0x469ad4], eax
mov edx, dword [esi + 8]
mov dword [0x469ad8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x469acc], esi
cmp ecx, 2
je 0x43ab16
or esi, 0x8000
mov dword [0x469acc], esi
shl eax, 8
add eax, edx
mov dword [0x469ad0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x43ab51
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43ab51
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x43ab69
cmp eax, 0x20b
je 0x43ab56
mov dword [ebp - 0x1c], esi
jmp 0x43ab7d
cmp dword [ecx + 0x84], 0xe
jbe 0x43ab51
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x43ab77
cmp dword [ecx + 0x74], 0xe
jbe 0x43ab51
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0043f968
pop ecx
test eax, eax
jne 0x43ab91
push 0x1c
call fcn.0043aa92
pop ecx
call fcn.0043b655
test eax, eax
jne 0x43aba2
push 0x10
call fcn.0043aa92
pop ecx
call fcn.0043bca7
mov dword [ebp - 4], esi
call fcn.0043d312
test eax, eax
jge 0x43abbb
push 0x1b
call fcn.0043aa6d
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x46b2c4], eax
call fcn.0043f82c
mov dword [0x469b14], eax
call fcn.0043f78a
test eax, eax
jge 0x43abe1
push 8
call fcn.0043aa6d
pop ecx
call fcn.0043f557
test eax, eax
jge 0x43abf2
push 9
call fcn.0043aa6d
pop ecx
call fcn.00439a55
mov dword [ebp - 0x20], eax
cmp eax, esi
je 0x43ac05
push eax
call fcn.0043aa6d
pop ecx
mov dword [ebp - 0x38], esi
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0043f4ee
mov dword [ebp - 0x68], eax
test byte [ebp - 0x38], 1
je 0x43ac26
movzx eax, word [ebp - 0x34]
jmp 0x43ac29
push 0xa
pop eax
push eax
push dword [ebp - 0x68]
push esi
push esi
call edi
push eax
call fcn.00412cb0
mov edi, eax
mov dword [ebp - 0x6c], edi
cmp dword [ebp - 0x1c], esi
jne 0x43ac47
push edi
call fcn.00439b8d
call fcn.00439baf
jmp 0x43ac79
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.0043cbdf
ret
Function at 0x43ccd1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x43ce97
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x46a1a0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x43ce97
test cl, 0x48
je 0x43cd37
mov al, byte [eax + 5]
cmp al, 0xa
je 0x43cd37
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43cd89
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x43cd71
call fcn.0043d28d
mov dword [eax], 9
call fcn.0043d296
mov dword [eax], esi
jmp 0x43cd81
cmp eax, 0x6d
je 0x43ce97
push eax
call fcn.0043d29f
pop ecx
or eax, 0xffffffff
jmp 0x43ce99
mov eax, dword [edi]
mov edx, dword [ebp - 0xc]
add dword [ebp - 8], edx
lea ecx, [eax + esi + 4]
mov al, byte [ecx]
test al, al
jns 0x43ce92
test edx, edx
je 0x43cdac
cmp byte [ebx], 0xa
jne 0x43cdac
or al, 4
jmp 0x43cdae
and al, 0xfb
mov byte [ecx], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x43ce8c
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x43ce7c
cmp al, 0xd
je 0x43cde2
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x43ce6e
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x43cdfc
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x43cdf7
add dword [ebp + 0x10], 2
jmp 0x43ce50
mov dword [ebp + 0x10], eax
jmp 0x43ce6a
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ce24
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x43ce6a
cmp dword [ebp - 0xc], 0
je 0x43ce6a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x43ce45
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x43ce50
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x43ce6d
cmp ebx, dword [ebp + 0xc]
jne 0x43ce55
cmp byte [ebp - 1], 0xa
jne 0x43ce55
mov byte [ebx], 0xa
jmp 0x43ce6d
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0043d510
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x43ce6e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x43cdc6
jmp 0x43ce8c
mov eax, dword [edi]
lea esi, [eax + esi + 4]
mov al, byte [esi]
test al, 0x40
jne 0x43ce8c
or al, 2
mov byte [esi], al
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x43ce99
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43d9d2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4656b4]
xor eax, dword [ebp + 4]
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edi
jne 0x43d9fb
xor eax, eax
jmp 0x43db69
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x46a1a0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x43da2e
push 2
push edi
push edi
push dword [ebp + 8]
call fcn.00442976
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x43db00
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], edi
jbe 0x43db3b
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x420]
mov dword [ebp - 0xc], edi
cmp ecx, dword [ebp + 0x10]
jae 0x43da89
mov edx, dword [ebp - 0x10]
inc dword [ebp - 0x10]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x43da7a
inc dword [ebp - 0x18]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0xc]
mov byte [eax], dl
inc eax
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x400
jl 0x43da5d
mov edi, eax
lea eax, [ebp - 0x420]
sub edi, eax
push 0
lea eax, [ebp - 0x1c]
push eax
push edi
lea eax, [ebp - 0x420]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43dac9
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x14], eax
cmp eax, edi
jl 0x43dad2
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x43da4e
jmp 0x43dad4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
xor edi, edi
mov eax, dword [ebp - 0x14]
cmp eax, edi
jne 0x43db64
cmp dword [ebp - 8], edi
je 0x43db3b
push 5
pop esi
cmp dword [ebp - 8], esi
jne 0x43db2d
call fcn.0043d28d
mov dword [eax], 9
call fcn.0043d296
mov dword [eax], esi
jmp 0x43db36
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x43db22
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], eax
jmp 0x43dad4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x43dad4
push dword [ebp - 8]
call fcn.0043d29f
pop ecx
or eax, 0xffffffff
jmp 0x43db67
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x43db50
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
jne 0x43db50
xor eax, eax
jmp 0x43db67
call fcn.0043d28d
mov dword [eax], 0x1c
call fcn.0043d296
mov dword [eax], edi
jmp 0x43db36
sub eax, dword [ebp - 0x18]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
call fcn.0043ba44
leave
ret
Function at 0x43f1da
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x4656b4]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x465c48]
je 0x43f207
inc eax
cmp eax, 0x12
jb 0x43f1f8
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x465c48]
jne 0x43f33b
mov eax, dword [0x469b1c]
cmp eax, 1
je 0x43f316
cmp eax, edx
jne 0x43f237
cmp dword [0x465504], 1
je 0x43f316
cmp ecx, 0xfc
je 0x43f33b
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x43f270
lea eax, [ebp - 0x10c]
push str._program_name_unknown_
push eax
call fcn.00440f90
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.0043e750
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x43f2b2
lea eax, [ebp - 0x10c]
push eax
call fcn.0043e750
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x447db0
push edi
call fcn.004410e0
add esp, 0x10
push edi
call fcn.0043e750
push dword [esi + 0x465c4c]
mov ebx, eax
call fcn.0043e750
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00439bd0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00440f90
push edi
push ebx
call 0x440fa0
push 0x447d90
push ebx
call 0x440fa0
push dword [esi + 0x465c4c]
push ebx
call 0x440fa0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.00442e05
add esp, 0x2c
jmp 0x43f33b
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x465c4c]
push dword [esi]
call fcn.0043e750
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0043ba44
pop edi
pop esi
pop ebx
leave
ret
Function at 0x442c0e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00439bd0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x442ca3
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x469ac8]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x442ca3
cmp eax, 1
je 0x442cbb
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x442ca3
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x442c78
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x442c9f
xor eax, eax
inc eax
jmp 0x442cd7
cmp esi, ebx
jae 0x442ca7
xor eax, eax
jmp 0x442cd7
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x469ac8]
jmp 0x442cbd
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x442e05
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x469e2c], ebx
push esi
push edi
jne 0x442e85
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x442ec0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4485e4
push edi
call esi
test eax, eax
mov dword [0x469e2c], eax
je 0x442ec0
push str.GetActiveWindow
push edi
call esi
push 0x4485c0
push edi
mov dword [0x469e30], eax
call esi
cmp dword [0x469ac8], 2
mov dword [0x469e34], eax
jne 0x442e85
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x469e3c], eax
je 0x442e85
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x469e38], eax
mov eax, dword [0x469e38]
test eax, eax
je 0x442eca
call eax
test eax, eax
je 0x442eb1
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x469e3c]
test eax, eax
je 0x442eb1
test byte [ebp - 8], 1
jne 0x442eca
cmp dword [0x469ad4], 4
jb 0x442ec4
or byte [ebp + 0x12], 0x20
jmp 0x442ee9
xor eax, eax
jmp 0x442ef9
or byte [ebp + 0x12], 4
jmp 0x442ee9
mov eax, dword [0x469e30]
test eax, eax
je 0x442ee9
call eax
mov ebx, eax
test ebx, ebx
je 0x442ee9
mov eax, dword [0x469e34]
test eax, eax
je 0x442ee9
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x469e2c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x44460c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00439bd0
mov eax, dword [0x4656b4]
xor eax, dword [ebp + 4]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0043d510
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x444736
push 2
push esi
push dword [ebp + 8]
call fcn.0043d510
add esp, 0xc
cmp eax, ebx
je 0x444736
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4446d9
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x100c]
push esi
push eax
call fcn.00441210
push 0x8000
push dword [ebp + 8]
call fcn.00444b59
add esp, 0x14
mov dword [ebp - 0xc], eax
cmp edi, ebx
mov eax, ebx
jge 0x444692
mov eax, edi
push eax
lea eax, [ebp - 0x100c]
push eax
push dword [ebp + 8]
call fcn.0043d9d2
add esp, 0xc
cmp eax, 0xffffffff
je 0x4446b2
sub edi, eax
test edi, edi
jg 0x44468a
jmp 0x4446ca
call fcn.0043d296
cmp dword [eax], 5
jne 0x4446c7
call fcn.0043d28d
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.00444b59
pop ecx
pop ecx
jmp 0x444721
jge 0x444721
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0043d510
push dword [ebp + 8]
call fcn.0044216f
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x444721
call fcn.0043d28d
mov dword [eax], 0xd
call fcn.0043d296
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.0043d510
add esp, 0xc
mov eax, esi
pop edi
jmp 0x444738
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop esi
pop ebx
call fcn.0043ba44
leave
ret

Function at 0x444bc6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x444be6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0043d29f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x444c09
test byte [esp + 8], 2
je 0x444c09
call fcn.0043d28d
mov dword [eax], 0xd
call fcn.0043d296
mov dword [eax], 5
jmp 0x444be2
xor eax, eax
ret
Function at 0x40ac20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f41b
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.00463d59
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40aca2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00461c70
mov eax, dword [eax]
push 0x48a200
push eax
call fcn.00454124
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00463fe4
test bl, bl
je 0x40aca2
push 0x48a200
lea ecx, [esp + 0xc]
call fcn.00464374
push 0x48dd74
lea ecx, [esp + 0xc]
call fcn.00464374
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 0x40acde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00463fe4
jmp 0x40ada9
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 0x40ad62
lea edx, [esp + 0x7c]
push 0x48dd70
push edx
call fcn.00454124
add esp, 8
test eax, eax
je 0x40ad62
lea eax, [esp + 0x7c]
push 0x48dd6c
push eax
call fcn.00454124
add esp, 8
test eax, eax
je 0x40ad62
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 0x40acf2
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.00463fe4
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 0x40b5a0
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 0x40b602
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 0x40b610
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46f49b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x494764]
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 0x40b748
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40b676
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463fe4
xor eax, eax
jmp 0x40b7bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00464121
push esi
lea ecx, [esp + 0xc]
call fcn.004643b0
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 0x40b79d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040b5a0
test eax, eax
jne 0x40b79d
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.0040b5a0
test eax, eax
jne 0x40b79d
lea eax, [esp + 0x14]
push 0x48dd88
push eax
call fcn.00455160
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b77c
lea ecx, [esp + 0x14]
push 0x48dd84
push ecx
call fcn.004550e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40b77c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40b77f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004640d1
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40b68e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00463fe4
xor eax, eax
jmp 0x40b7bf
mov byte [esi], 0
push 0x48dd80
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.00463fe4
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 0x41cb20
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 0x41cb8e
cmp si, 0x69
ja 0x41cb8e
add esi, 0xffd0
cmp si, 0x11
je 0x41cb5e
push 0x11
call edi
test ax, ax
jge 0x41cb5e
or esi, 0x2000
cmp si, 0x10
je 0x41cb73
push 0x10
call edi
test ax, ax
jge 0x41cb73
or esi, 0x4000
cmp si, 0x12
je 0x41cb88
push 0x12
call edi
test ax, ax
jge 0x41cb88
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41cb9b
mov esi, 0xbd
jmp 0x41cb4f
cmp si, 0x6e
jne 0x41cba8
mov esi, 0xbe
jmp 0x41cb4f
cmp si, 0x6f
jne 0x41cb49
mov esi, 0xbf
jmp 0x41cb4f

Function at 0x41e240
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4a4e50]
xor edx, edx
cmp eax, edx
jne 0x41e266
xor eax, eax
mov byte [eax + 0x4a4d50], al
inc eax
cmp eax, 0x100
jl 0x41e24e
mov dword [0x4a4e50], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4a4d50
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e2f7
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 0x41e2ca
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 0x41e298
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e370
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 0x41e3c3
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 0x41e3aa
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