joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459c9d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, ecx
call edi
sub eax, dword [esi + 0x6c]
cmp eax, 0x7530
jbe 0x459cd5
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x68]
mov dword [esi + 0x54], eax
mov dword [esi + 0x5c], ecx
mov ecx, dword [esi + 0x64]
xor eax, eax
mov dword [esi + 0x60], eax
mov dword [esi + 0x68], eax
mov dword [esi + 0x58], ecx
mov dword [esi + 0x64], eax
call edi
mov dword [esi + 0x6c], eax
mov edi, dword [esi + 0x5c]
test edi, edi
jne 0x459ce1
mov eax, dword [esi + 0x54]
jmp 0x459d2a
push ebx
push ebp
push 0xa
xor eax, eax
pop ecx
xor ebp, ebp
test eax, eax
jne 0x459d28
or eax, 0xffffffff
xor edx, edx
div ecx
mov ebx, dword [esi + 0x54]
cmp ebx, eax
jbe 0x459d06
shr ebx, 1
shr edi, 1
mov dword [esi + 0x54], ebx
mov dword [esi + 0x5c], edi
mov eax, dword [esi + 0x54]
mov edi, dword [esi + 0x5c]
imul eax, ecx
xor edx, edx
div edi
xor edx, edx
imul eax, eax, 0x3e8
div ecx
lea ecx, [ecx + ecx*4]
inc ebp
shl ecx, 1
cmp ebp, 3
jb 0x459cea
pop ebp
pop ebx
pop edi
pop esi
ret

Function at 0x45a29a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push ebx
push eax
mov ebx, ecx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
test eax, eax
mov dword [ebp - 4], eax
je 0x45a2ec
push eax
call fcn.0045bd3b
pop ecx
mov dword [ebx + 0x40], eax
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x45a2ec
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4821b8
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x45a2f0
xor al, al
jmp 0x45a351
push esi
push edi
mov edi, ebx
lea eax, [ebx + 4]
neg edi
sbb edi, edi
mov esi, dword [ebp - 0xc]
push 0xd
and edi, eax
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueA
pop edi
pop esi
test eax, eax
je 0x45a34f
mov eax, dword [ebp - 4]
shr eax, 2
mov dword [ebx + 0x3c], eax
shl eax, 2
push eax
call fcn.0045bd3b
mov dword [ebx + 0x38], eax
xor eax, eax
cmp dword [ebx + 0x3c], eax
pop ecx
jbe 0x45a34f
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov edx, dword [edx + eax*4]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 0x3c]
jb 0x45a33d
mov al, 1
pop ebx
leave
ret 4
Function at 0x45a3f7
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file
Read .ini file

Disassembly:
mov eax, 0x46b8a7
call fcn.0045bbb8
sub esp, 0x1dc
and dword [ebp - 0x10], 0
push ebx
push esi
push edi
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.004497d2
test al, 0x10
pop ecx
je 0x45a572
push 1
lea eax, [ebp + 8]
pop edi
push 0x4832b0
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0042a4e9
add esp, 0xc
lea ecx, [ebp - 0x1e8]
mov byte [ebp - 4], 1
push ecx
mov ecx, eax
call fcn.00417390
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 3
call fcn.0040be30
mov ebx, dword [sym.imp.KERNEL32.dll_FindClose]
cmp esi, 0xffffffff
je 0x45a51d
test edi, edi
je 0x45a516
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x1bc]
push 0x4832ac
push eax
call edi
test eax, eax
je 0x45a501
lea eax, [ebp - 0x1bc]
push 0x4832a8
push eax
call edi
test eax, eax
je 0x45a501
lea eax, [ebp - 0x11]
push 0
push eax
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x46cb90
mov dword [ebp - 0x20], 0x46cb88
call fcn.00417129
sub esp, 0x28
lea ecx, [ebp - 0x40]
mov eax, esp
mov dword [ebp - 0x18], esp
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 4
call fcn.0042a47f
add esp, 0xc
call fcn.0045a3f7
add esp, 0x28
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.0040be30
lea eax, [ebp - 0x1e8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov edi, eax
jmp 0x45a47b
push esi
call ebx
or dword [ebp - 0x10], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00417390
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x45a54c
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0x60]
call fcn.004192bd
lea eax, [ebp - 0x60]
push 0x473f90
push eax
call fcn.0045bd01
cmp dword [ebp - 0x10], 0xffffffff
je 0x45a557
push dword [ebp - 0x10]
call ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0040be30
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea ecx, [ebp + 8]
call fcn.00417390
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x45a557
lea eax, [ebp + 8]
push 1
push eax
lea ecx, [ebp - 0xa8]
call fcn.004192bd
lea eax, [ebp - 0xa8]
push 0x473f90
push eax
call fcn.0045bd01
Function at 0x45b2fc
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor ebx, ebx
push eax
push ebx
push 8
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45b366
call esi
cmp eax, 0x3f0
jne 0x45b356
lea eax, [ebp - 0xc]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x45b362
mov al, 1
jmp 0x45b421
cmp eax, ebx
je 0x45b3d5
lea eax, [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
jne 0x45b3d5
call esi
cmp eax, 0x7a
jne 0x45b3d5
push dword [ebp - 8]
call fcn.0045bd3b
mov esi, eax
pop ecx
lea eax, [ebp - 8]
cmp esi, ebx
push eax
push dword [ebp - 8]
setne byte [ebp - 0x24]
push esi
push 2
push dword [ebp - 0xc]
call edi
test eax, eax
je 0x45b3c9
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea eax, [ebp - 0x1c]
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x45b3d9
cmp byte [ebp - 0x24], bl
je 0x45b3d5
push esi
call fcn.00453cf2
pop ecx
xor al, al
jmp 0x45b421
xor edi, edi
cmp dword [esi], ebx
mov byte [ebp - 1], bl
jbe 0x45b409
lea eax, [esi + 4]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x45b405
add dword [ebp - 0x10], 8
inc edi
cmp edi, dword [esi]
jb 0x45b3e8
jmp 0x45b409
mov byte [ebp - 1], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [ebp - 0x24], bl
je 0x45b41e
push esi
call fcn.00453cf2
pop ecx
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x460436
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x485a48
cmp edx, dword [eax]
je 0x460458
add eax, 8
inc ecx
cmp eax, 0x485ad8
jl 0x460449
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x485a48]
jne 0x460586
mov eax, dword [0x49c0ec]
cmp eax, 1
je 0x460560
test eax, eax
jne 0x460489
cmp dword [0x485304], 1
je 0x460560
cmp edx, 0xfc
je 0x460586
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4604c0
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0045e3e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0045c3c0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x460503
lea eax, [ebp - 0x1a4]
push eax
call fcn.0045c3c0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46e9b8
push edi
call fcn.00460cb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0045e3e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0045e3f0
lea eax, [ebp - 0xa0]
push 0x46e998
push eax
call fcn.0045e3f0
push dword [esi + 0x485a4c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0045e3f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00461297
add esp, 0x2c
pop edi
jmp 0x460586
lea eax, [ebp + 8]
lea esi, [esi + 0x485a4c]
push 0
push eax
push dword [esi]
call fcn.0045c3c0
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]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x403f49
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403f49
lcall 0x5de5, 0x8b10c483
jmp loc.007a4658
Function at 0x628730
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x143000]
push edi
jmp 0x62874a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x628751
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x628740
mov eax, 1
add ebx, ebx
jne 0x628763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x628774
jne 0x628793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x628793
dec eax
add ebx, ebx
jne 0x628780
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x628758
add ebx, ebx
jne 0x62878f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x6287e5
xor ecx, ecx
sub eax, 3
jb 0x6287ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x62881a
sar eax, 1
mov ebp, eax
jmp 0x6287b6
add ebx, ebx
jne 0x6287b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x628784
inc ecx
add ebx, ebx
jne 0x6287c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x628784
add ebx, ebx
jne 0x6287d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x6287c6
jne 0x6287e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x6287c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x628804
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x6287f6
jmp 0x628746
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x628804
add edi, ecx
jmp 0x628746
pop esi
mov edi, esi
mov ecx, 3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x628822
cmp byte [edi], 0x44
jne 0x628822
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x628827
lea edi, [esi + 0x225000]
mov eax, dword [edi]
or eax, eax
je 0x62889f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x22b368]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x22b4a8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x628854
mov ecx, edi
jns 0x628883
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x22b4ac]
or eax, eax
je 0x628899
mov dword [ebx], eax
add ebx, 4
jmp 0x628871
call dword [esi + 0x22b4bc]
mov ebp, dword [esi + 0x22b4b0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x6288d3
sub esp, 0xffffff80
jmp 0x4a7608
Function at 0x4036b4
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00403864
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4037b2
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x403755
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x403798
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x40376c
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x403787
test al, 0x40
je 0x40377e
mov ecx, dword [edi + 0x20]
jmp 0x403785
test al, 0x80
je 0x403798
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x403798
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x403724
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x403c7b
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 8
call fcn.0040c07c
add esp, 4
mov dword [ebp - 8], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0
push 0
push 0
push 0x80000004
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folderscookies
push 0x80000301
push 0
push 3
push 3
mov ebx, 0x40dff0
call fcn.0040c088
add esp, 0x28
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403cf1
push ebx
call fcn.0040c082
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0x80000301
push 0
push 1
push 0x80000004
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x403d14
mov eax, 0x4948b1
push eax
push 2
mov ebx, 0x40c630
call fcn.0040c088
add esp, 0x1c
mov dword [ebp - 0xc], eax
push 0x4aa4b4
push dword [ebp - 0xc]
call fcn.004010e1
add esp, 8
cmp eax, 0
mov eax, 0
setne al
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403d58
push ebx
call fcn.0040c082
add esp, 4
cmp dword [ebp - 0x10], 0
je 0x403d92
push 0x4aa4b4
push dword [ebp - 4]
mov ecx, 2
call fcn.00401a4e
add esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403d8e
push ebx
call fcn.0040c082
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0x80000004
push 0
push str.Scripting.FileSystemObject
push 0x10030
push 0
push dword [ebp - 8]
push 3
mov ebx, 0x40eb00
call fcn.0040c088
add esp, 0x28
push 0x4aa4d1
push dword [ebp - 4]
mov ecx, 2
call fcn.00401a4e
add esp, 8
mov dword [ebp - 0xc], eax
push 0x80000002
push 0
push 1
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x403df7
mov eax, 0x4948b1
push eax
push 0x80000004
push 0
push str.DeleteFile
push 0x10030
push 0
push dword [ebp - 8]
push 4
mov ebx, 0x40e980
call fcn.0040c088
add esp, 0x34
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x403e30
push ebx
call fcn.0040c082
add esp, 4
push 0x10030
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x40eaf0
call fcn.0040c088
add esp, 0x10
push 0
push 0
push 0
push 0x80000301
push 0
push 0
push 0x80000004
push 0
push 0x4aa4e0
push 3
mov ebx, 0x40e0e0
call fcn.0040c088
add esp, 0x28
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x403e8c
push ebx
call fcn.0040c082
add esp, 4
mov ebx, dword [ebp - 8]
push ebx
push 0x10030
push 0
push ebx
push 1
mov ebx, 0x40eaf0
call fcn.0040c088
add esp, 0x10
call fcn.0040c082
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x4193b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48c2db
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.00480794
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x419432
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047de90
mov eax, dword [eax]
push 0x4e6224
push eax
call fcn.004700c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00480a1f
test bl, bl
je 0x419432
push 0x4e6224
lea ecx, [esp + 0xc]
call fcn.00480daf
push 0x4e9dac
lea ecx, [esp + 0xc]
call fcn.00480daf
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 0x41946e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00480a1f
jmp 0x419539
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 0x4194f2
lea edx, [esp + 0x7c]
push 0x4e9da8
push edx
call fcn.004700c4
add esp, 8
test eax, eax
je 0x4194f2
lea eax, [esp + 0x7c]
push 0x4e9da4
push eax
call fcn.004700c4
add esp, 8
test eax, eax
je 0x4194f2
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 0x419482
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.00480a1f
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 0x419d30
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 0x419d92
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 0x419da0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48c35b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4f2190]
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 0x419ed8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x419e06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00480a1f
xor eax, eax
jmp 0x419f4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00480b5c
push esi
lea ecx, [esp + 0xc]
call fcn.00480deb
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4e9de4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x419f2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00419d30
test eax, eax
jne 0x419f2d
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 0x80000000
mov ecx, edi
call fcn.00419d30
test eax, eax
jne 0x419f2d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.004711d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x419f0c
lea ecx, [esp + 0x14]
push 0x4e9dbc
push ecx
call fcn.00471150
mov esi, eax
add esp, 8
test esi, esi
jne 0x419f0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x419f0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00480b0c
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x419e1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00480a1f
xor eax, eax
jmp 0x419f4f
mov byte [esi], 0
push 0x4e9db8
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.00480a1f
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 0x42d9f0
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 0x42da5e
cmp si, 0x69
ja 0x42da5e
add esi, 0xffd0
cmp si, 0x11
je 0x42da2e
push 0x11
call edi
test ax, ax
jge 0x42da2e
or esi, 0x2000
cmp si, 0x10
je 0x42da43
push 0x10
call edi
test ax, ax
jge 0x42da43
or esi, 0x4000
cmp si, 0x12
je 0x42da58
push 0x12
call edi
test ax, ax
jge 0x42da58
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42da6b
mov esi, 0xbd
jmp 0x42da1f
cmp si, 0x6e
jne 0x42da78
mov esi, 0xbe
jmp 0x42da1f
cmp si, 0x6f
jne 0x42da19
mov esi, 0xbf
jmp 0x42da1f

Function at 0x42f2b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5029a8]
xor edx, edx
cmp eax, edx
jne 0x42f2d6
xor eax, eax
mov byte [eax + 0x5028a8], al
inc eax
cmp eax, 0x100
jl 0x42f2be
mov dword [0x5029a8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5028a8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42f367
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 0x42f33a
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 0x42f308
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42f3e0
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 0x42f433
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 0x42f41a
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