joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403072
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, dword [0x4170ec]
mov edi, eax
sub esi, dword [0x40b01c]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x403248
push dword [0x41f0fc]
call fcn.00403285
push ebp
push ebp
push dword [0x40b01c]
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41f0f8], esi
mov dword [0x4170e8], ebp
mov eax, dword [0x4170f0]
mov ebx, 0x4000
sub eax, dword [0x41f0fc]
cmp eax, ebx
jg 0x4030e5
mov ebx, eax
mov esi, 0x4130a8
push ebx
push esi
call fcn.00403253
test eax, eax
je 0x403213
add dword [0x41f0fc], ebx
mov dword [0x40b038], esi
mov dword [0x40b03c], ebx
cmp dword [0x424348], ebp
je 0x403176
cmp dword [0x4243e0], ebp
jne 0x403176
cmp dword [esp + 0x10], ebp
je 0x403143
mov eax, dword [0x41f0f8]
push ebp
sub eax, dword [0x4170ec]
sub eax, dword [esp + 0x20]
add eax, dword [0x40b01c]
mov dword [0x4170e8], eax
call fcn.00405e5f
jmp 0x403176
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jbe 0x403176
mov eax, dword [0x424344]
neg eax
sbb eax, eax
not eax
and eax, 0x4091ec
push eax
push 0x402bae
push ebp
push 0x6f
push dword [0x424340]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x40b020
mov dword [0x40b040], 0x40b0a8
mov dword [0x40b044], 0x8000
call fcn.00405f20
test eax, eax
jl 0x40321c
mov esi, dword [0x40b040]
mov eax, 0x40b0a8
sub esi, eax
je 0x4031dd
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403218
cmp esi, dword [esp + 0x14]
jne 0x403218
add dword [0x40b01c], esi
cmp dword [0x40b03c], ebp
jne 0x40310b
jmp 0x4031e9
cmp dword [0x40b03c], ebp
jne 0x40321c
cmp ebx, ebp
je 0x40321c
mov eax, dword [0x4170ec]
mov ecx, eax
sub ecx, dword [0x40b01c]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jg 0x4030cf
push ebp
push ebp
push eax
push dword [0x409024]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403221
or eax, 0xffffffff
jmp 0x40324a
push 0xfffffffffffffffe
jmp 0x40321e
push 0xfffffffffffffffd
pop eax
jmp 0x40324a
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x403248
mov eax, dword [0x41f0f8]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4170e8], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
Function at 0x40bb27
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x410438], eax
je 0x40bb49
cmp dword [0x410438], ebx
jne 0x40bbdd
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x410438
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x410438
push 4
push edi
mov dword [0x410438], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x410438]
not eax
mov dword [0x4120c0], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret
Function at 0x40144f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
push esi
push esi
push 2
push esi
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4015da
cmp dword [ebp + 0x14], 1
jne 0x4014a8
lea ecx, [ebp - 4]
push esi
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
cmp edi, esi
jle 0x4014cf
mov eax, ecx
push 2
cdq
pop esi
idiv esi
test edx, edx
je 0x4014c6
add byte [ecx + ebx], 0xf5
jmp 0x4014ca
add byte [ecx + ebx], 0x2e
inc ecx
cmp ecx, edi
jl 0x4014b4
push str.o_8_
call fcn.00402850
xor edx, edx
pop ecx
test edi, edi
mov dword [ebp + 8], eax
jle 0x401517
nop
nop
nop
xor ecx, ecx
cmp ecx, dword [ebp + 8]
jge 0x40150c
lea esi, [edx + ebx]
nop
nop
nop
mov al, byte [esi + ecx]
cmp al, byte [ecx + str.o_8_]
jne 0x401506
inc ecx
cmp ecx, dword [ebp + 8]
jl 0x4014f0
jmp 0x401509
nop
nop
nop
cmp ecx, dword [ebp + 8]
je 0x4015e1
inc edx
cmp edx, edi
jl 0x4014e3
or dword [ebp + 8], 0xffffffff
cmp dword [ebp + 8], 0xffffffff
je 0x4015da
lea eax, [ebp - 4]
push 0
push eax
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp + 8]
push ebx
push dword [ebp - 8]
call esi
test eax, eax
je 0x4015da
push 0x3200000
call fcn.00402839
pop ecx
mov dword [ebp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
and ecx, 0x3ff
add ecx, 0x400
cmp ecx, 0x2000
jae 0x4015a2
lea edi, [ecx + 3]
mov eax, ecx
xor edx, edx
mov ebx, 0xff
add ecx, 0x20
div ebx
mov eax, dword [ebp + 0x14]
mov byte [eax + edi - 3], dl
mov eax, edi
xor edx, edx
add edi, 0x20
div ebx
mov eax, dword [ebp + 0x14]
cmp edi, 0x2003
mov byte [eax + ecx - 0x1b], dl
jb 0x40156f
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push 0x3200000
push dword [ebp + 0x14]
push dword [ebp - 8]
call esi
test eax, eax
je 0x4015da
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ebp + 8]
sub edi, eax
sub edi, 4
lea eax, [eax + ebx + 4]
push edi
push eax
push dword [ebp - 8]
call esi
test eax, eax
jne 0x401495
xor eax, eax
jmp 0x4014a1
mov dword [ebp + 8], edx
jmp 0x40151b
Function at 0x4015e9
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
and byte [ebp - 0x104], 0
push esi
push edi
mov esi, ecx
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
inc eax
mov ecx, eax
cmp byte [eax], 0
je 0x401621
inc ecx
cmp byte [ecx], 0
jne 0x40161b
mov edx, ecx
dec ecx
cmp edx, eax
je 0x40162d
cmp byte [ecx], 0x5c
jne 0x401621
mov dl, byte [ecx]
push eax
sub dl, 0x5c
lea eax, [ebp - 0x104]
neg dl
sbb edx, edx
push eax
not edx
and ecx, edx
and byte [ecx], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
call fcn.0040165d
pop edi
pop esi
leave
ret

Function at 0x401e4d
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0xc]
mov dword [esi + 0x70], 0x404100
mov dword [0x404498], esi
push dword [ebp + 8]
mov dword [esi], 0x84
mov dword [esi + 0x64], 0x300
push esi
call fcn.00401f50
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
je 0x401e9a
push 0x10
push dword [ebp + 0x10]
push 0x404488
call fcn.00402bf0
add esp, 0xc
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov edi, 0x94
mov dword [esi + 0x18], eax
push edi
lea eax, [ebp - 0xb8]
push ebx
push eax
call fcn.00402b90
add esp, 0xc
lea eax, [ebp - 0xb8]
mov dword [ebp - 0xb8], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [ebp - 0xa8], 2
jne 0x401eeb
cmp dword [ebp - 0xb4], 5
jae 0x401f41
mov eax, dword [ebp - 0x10]
cmp eax, 1
jbe 0x401f41
or dword [esi + 0x74], 0xffffffff
add eax, eax
xor ecx, ecx
test eax, 0x80000000
jne 0x401f0d
shr dword [esi + 0x74], 1
shl eax, 1
inc ecx
cmp ecx, 0x20
jl 0x401efb
shr dword [esi + 0x74], 1
mov eax, dword [esi + 0x74]
lea eax, [eax*4 + 4]
push eax
push ebx
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x78], eax
xor edi, edi
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ecx, dword [esi + 0x78]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [esi + 0x74]
jbe 0x401f2a
jmp 0x401f47
mov dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x420bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x420bbf
pop dword [ebp - 0x20]
mov eax, 0x977a49f
add eax, 0xf6ca6720
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3fe52
push 0
mov eax, 0x5a571e85
sub eax, 0x5a14cc6d
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xd47b3c84
sub ecx, 0xd47aed59
mov edi, eax
mov ebx, 0x9d4b3ec0
sub ebx, 0x9d07eac0
add ebx, dword [ebp - 0x20]
mov esi, 0xa5655b93
add dword [ebp - 0x14], 0x78f84733
mov edx, dword [ebx]
xor dword [ebp - 4], ecx
sub edx, esi
xor dword [ebp - 0x18], esi
mov dword [edi], edx
mov dword [ebp - 0x10], 0xb8a0532c
add edi, 4
add ebx, 0x4d38ca46
add ebx, 0xb2c735be
loop 0x420c18
add eax, 0x12f7f
mov ebx, eax
add eax, 0x76895349
add eax, 0x8976acbc
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x2a56607d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1755c85
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4082c0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.0040be50
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.0040be50
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jne 0x40833c
mov eax, dword [0x4c1198]
mov dword [ebp + 8], eax
mov dword [ebp - 0x18], esp
push dword [ebp + 8]
push 0
push 0x1f0fff
mov eax, 0xe
call fcn.0040be62
cmp dword [ebp - 0x18], esp
je 0x408368
push 6
call fcn.0040be5c
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0xf01ff
push dword [ebp - 4]
mov eax, 0x1e
call fcn.0040be62
cmp dword [ebp - 0x18], esp
je 0x408396
push 6
call fcn.0040be5c
add esp, 4
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0
mov eax, 0x1f
call fcn.0040be62
cmp dword [ebp - 0x18], esp
je 0x4083c2
push 6
call fcn.0040be5c
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov dword [ebp - 0x18], esp
push 0
push 0
push 0
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x20
call fcn.0040be62
cmp dword [ebp - 0x18], esp
je 0x408451
push 6
call fcn.0040be5c
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], esp
push dword [ebp - 4]
mov eax, 0x11
call fcn.0040be62
cmp dword [ebp - 0x18], esp
je 0x408476
push 6
call fcn.0040be5c
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x40847e
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.0040be4a
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.0040be4a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x417d10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x475cab
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.0046a4b6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x417d92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004683cd
mov eax, dword [eax]
push 0x4b31e0
push eax
call fcn.0045b234
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046a741
test bl, bl
je 0x417d92
push 0x4b31e0
lea ecx, [esp + 0xc]
call fcn.0046aad1
push 0x4b6d64
lea ecx, [esp + 0xc]
call fcn.0046aad1
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 0x417dce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046a741
jmp 0x417e99
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 0x417e52
lea edx, [esp + 0x7c]
push 0x4b6d60
push edx
call fcn.0045b234
add esp, 8
test eax, eax
je 0x417e52
lea eax, [esp + 0x7c]
push 0x4b6d5c
push eax
call fcn.0045b234
add esp, 8
test eax, eax
je 0x417e52
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 0x417de2
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.0046a741
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 0x418690
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 0x4186f2
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 0x418700
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x475d2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4bd210]
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 0x418838
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x418766
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a741
xor eax, eax
jmp 0x4188af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046a87e
push esi
lea ecx, [esp + 0xc]
call fcn.0046ab0d
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 0x41888d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.00418690
test eax, eax
jne 0x41888d
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 SysReAllocString
mov ecx, edi
call fcn.00418690
test eax, eax
jne 0x41888d
lea eax, [esp + 0x14]
push 0x4b6d78
push eax
call fcn.0045c340
mov esi, eax
add esp, 8
test esi, esi
jne 0x41886c
lea ecx, [esp + 0x14]
push 0x4b6d74
push ecx
call fcn.0045c2c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41886c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41886f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046a82e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41877e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a741
xor eax, eax
jmp 0x4188af
mov byte [esi], 0
push 0x4b6d70
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.0046a741
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 0x42b850
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 0x42b8be
cmp si, 0x69
ja 0x42b8be
add esi, 0xffd0
cmp si, 0x11
je 0x42b88e
push 0x11
call edi
test ax, ax
jge 0x42b88e
or esi, 0x2000
cmp si, 0x10
je 0x42b8a3
push 0x10
call edi
test ax, ax
jge 0x42b8a3
or esi, 0x4000
cmp si, 0x12
je 0x42b8b8
push 0x12
call edi
test ax, ax
jge 0x42b8b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42b8cb
mov esi, 0xbd
jmp 0x42b87f
cmp si, 0x6e
jne 0x42b8d8
mov esi, 0xbe
jmp 0x42b87f
cmp si, 0x6f
jne 0x42b879
mov esi, 0xbf
jmp 0x42b87f

Function at 0x42d080
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4cd900]
xor edx, edx
cmp eax, edx
jne 0x42d0a6
xor eax, eax
mov byte [eax + 0x4cd800], al
inc eax
cmp eax, 0x100
jl 0x42d08e
mov dword [0x4cd900], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4cd800
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42d137
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 0x42d10a
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 0x42d0d8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42d1b0
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 0x42d203
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 0x42d1ea
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