joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401047
Capabilities:
Read file on windows

Disassembly:
push str.Please_input_PE_file_path_relative_path_:
call fcn.00401324
push 0x32
push 0x4040f0
call fcn.0040135c
push 0
push 0x20
push 3
push 0
push 1
push 0x80000000
push 0x4040f0
call sub.kernel32.dll_CreateFileA
mov dword [0x404122], eax
push 0
push 0
push 0
push dword [0x404122]
call sub.kernel32.dll_SetFilePointer
push 0
push 0
push 0xf3c
push 0x403129
push dword [0x404122]
call sub.kernel32.dll_ReadFile
mov esi, 0x403129
push str.IMAGE_DOS_HEADER:
call fcn.00401324
push 0x403127
call fcn.00401324
mov eax, 0
push str.
call fcn.00401324
push str.e_magic:
call fcn.00401324
mov ax, word [esi]
mov dword [0x404126], esi
push 4
push eax
push str.00000000
call section..text
push 0x403127
call fcn.00401324
add esi, 0x3c
push str.
call fcn.00401324
push str.e_lfanew:
call fcn.00401324
mov eax, dword [esi]
push 0
push eax
push str.00000000
call section..text
add eax, dword [0x404126]
mov esi, eax
push 0x403127
call fcn.00401324
push str.IMAGE_NT_HEADER:
call fcn.00401324
push 0x403127
call fcn.00401324
push str.
call fcn.00401324
push str.Signature:
call fcn.00401324
mov eax, dword [esi]
push 0
push eax
push str.00000000
call section..text
push 0x403127
call fcn.00401324
push str.IMAGE_FILE_HEADE:
call fcn.00401324
push 0x403127
call fcn.00401324
add esi, 6
push str.
call fcn.00401324
push str.NumberOfSections:
call fcn.00401324
mov eax, 0
mov ax, word [esi]
push 4
push eax
push str.00000000
call section..text
push 0x403127
call fcn.00401324
add esi, 2
push str.
call fcn.00401324
push str.TimeDateStamp:
call fcn.00401324
mov eax, dword [esi]
push 0
push eax
push str.00000000
call section..text
push 0x403127
call fcn.00401324
add esi, 0xe
push str.
call fcn.00401324
push str.Characteristic:
call fcn.00401324
mov eax, 0
mov ax, word [esi]
push 4
push eax
push str.00000000
call section..text
push 0x403127
call fcn.00401324
push str.IMAGE_OPTIONAL_HEADER:
call fcn.00401324
push 0x403127
call fcn.00401324
add esi, 0x12
push str.
call fcn.00401324
push str.AddressOfEntryPoint:
call fcn.00401324
mov eax, dword [esi]
push 0
push eax
push str.00000000
call section..text
push 0x403127
call fcn.00401324
add esi, 0xc
push str.
call fcn.00401324
push str.ImageBase:
call fcn.00401324
mov eax, dword [esi]
push 0
push eax
push str.00000000
call section..text
push 0x403127
call fcn.00401324
add esi, 4
push str.
call fcn.00401324
push str.SectionAligment:
call fcn.00401324
mov eax, dword [esi]
push 0
push eax
push str.00000000
call section..text
push 0x403127
call fcn.00401324
add esi, 4
push str.
call fcn.00401324
push str.FileAligment:
call fcn.00401324
mov eax, dword [esi]
push 0
push eax
push str.00000000
call section..text
push 0x403127
call fcn.00401324
push dword [0x404122]
call 0x401306
push 0
call sub.kernel32.dll_ExitProcess
jmp dword [sym.imp.kernel32.dll_CloseHandle]
Function at 0x401324
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.004013b0
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x40135c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push 7
push dword [ebp - 4]
call sub.kernel32.dll_SetConsoleMode
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
mov edx, dword [ebp + 8]
sub edx, 1
add edx, 1
cmp byte [edx], 0
je 0x4013a0
cmp byte [edx], 0xd
jne 0x401390
mov byte [edx], 0
mov eax, dword [ebp - 8]
sub eax, 2
leave
ret 8

Function at 0xb80ef2
Capabilities:
Encode data using xor

Disassembly:
mov eax, 3
pushfd
pushal
push dword [esp]
pushfd
lea esp, [esp + 0x30]
jb 0xb80f19
xor al, bl
rcr al, 1
rol eax, 0xa
lea eax, [ebx - 0x62ac1895]
mov eax, 6
Function at 0x4017ab
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [0x4f3cd5], 0x4d29ac2
push 0
mov ebx, 0x108
call fcn.004154a0
add esp, 4
mov dword [ebp - 8], eax
push 0x80000301
push 0
push 4
push 0x80000004
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4017f9
mov eax, 0x423240
push eax
push 2
mov ebx, 0x138
call fcn.00415540
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40181f
push ebx
call fcn.0041514d
add esp, 4
push 0x80000004
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x401832
mov eax, 0x423240
push eax
push 1
mov ebx, 0x154
call fcn.004155b0
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x401858
push ebx
call fcn.0041514d
add esp, 4
push 0x423249
push dword [ebp - 0x10]
call fcn.0040170e
add esp, 8
cmp eax, 0
mov eax, 0
sete al
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x401886
push ebx
call fcn.0041514d
add esp, 4
cmp dword [ebp - 0x14], 0
je 0x401985
push 0x80000004
push 0
push 0x42324e
push 1
mov ebx, 0x158
call fcn.00415630
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4018dd
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4018f0
push ebx
call fcn.0041514d
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push 0
push 0
push 6
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40192c
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 3
mov eax, 0x423257
test eax, eax
je 0x401943
add eax, 8
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_RtlMoveMemory]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x401963
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 8], esp
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x401985
push 6
call fcn.00415153
add esp, 4
call fcn.00401998
mov eax, 0
jmp 0x401994
mov esp, ebp
pop ebp
ret
Function at 0x403c7f
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 0
push 0x404179
call dword [sym.imp.USER32.dll_EnumWindows]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x403cb1
push 6
call fcn.00415153
add esp, 4
mov eax, dword [0x4f3ce9]
push eax
mov ebx, eax
call fcn.0040103f
pop eax
sub ebx, eax
push ecx
push ebx
push eax
shl ecx, 2
add ecx, ebx
push ecx
call fcn.00415147
add esp, 4
pop esi
mov edi, eax
pop ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
pop ecx
test ecx, ecx
je 0x403d4d
push eax
lodsd eax, dword [esi]
push esi
push edi
push ecx
push eax
push 0x14
call fcn.00415147
add esp, 4
pop esi
mov edi, eax
push eax
mov ecx, 3
rep movsd dword es:[edi], dword [esi]
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x403d1e
push eax
mov ebx, eax
call fcn.004019e3
inc eax
push eax
call fcn.00415147
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
lodsd eax, dword [esi]
push esi
push edi
test eax, eax
je 0x403d3d
push eax
mov ebx, eax
call fcn.004019e3
inc eax
push eax
call fcn.00415147
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
stosd dword es:[edi], eax
pop eax
pop ecx
pop edi
pop esi
stosd dword es:[edi], eax
dec ecx
jne 0x403ce5
pop eax
push eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x403d6e
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403d6a
imul eax, dword [ebx]
jmp 0x403d5f
mov ecx, eax
test ecx, ecx
je 0x403db1
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403d8c
push ebx
call fcn.0041514d
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403da0
push ebx
call fcn.0041514d
add esp, 4
pop ebx
call fcn.0041514d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403d74
call fcn.0041514d
add esp, 4
pop eax
mov ebx, dword [ebp + 8]
mov dword [ebx], eax
mov ebx, dword [0x4f3ce9]
push ebx
mov ecx, dword [ebx]
add ebx, 4
test ecx, ecx
je 0x403de0
mov eax, dword [ebx]
add ebx, 4
dec ecx
je 0x403ddc
imul eax, dword [ebx]
jmp 0x403dd1
mov ecx, eax
test ecx, ecx
je 0x403e23
push ecx
push ebx
mov ebx, dword [ebx]
push ebx
add ebx, 0xc
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403dfe
push ebx
call fcn.0041514d
add esp, 4
pop ebx
add ebx, 4
push ebx
mov ebx, dword [ebx]
test ebx, ebx
je 0x403e12
push ebx
call fcn.0041514d
add esp, 4
pop ebx
call fcn.0041514d
add esp, 4
pop ebx
add ebx, 4
pop ecx
dec ecx
jne 0x403de6
call fcn.0041514d
add esp, 4
mov eax, 0x423241
mov dword [0x4f3ce9], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
call fcn.004031b0
jmp 0x403e44
mov esp, ebp
pop ebp
ret 4
Function at 0x404198
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4041d6
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4041f8
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 1
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404225
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 8], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetActiveWindow]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x404247
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 8], esp
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x404266
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_AttachThreadInput]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404293
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 8], esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4042b5
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
mov eax, 0
setne al
jmp 0x4042c9
mov esp, ebp
pop ebp
ret 4
Function at 0x407434
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40746f
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00415f30
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4074d2
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00416260
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x4074f6
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00415f30
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x407559
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00416260
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x40757d
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.00415f30
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4075e0
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.00416260
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x4075e8
mov esp, ebp
pop ebp
ret
Function at 0x40b583
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40b5c9
push 6
call fcn.00415153
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fadd qword [0x4f306a]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
call fcn.004019bc
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x184
call fcn.00415cd0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b61c
push ebx
call fcn.0041514d
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextA]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40b655
push 6
call fcn.00415153
add esp, 4
mov eax, dword [ebp - 8]
test eax, eax
je 0x40b671
push eax
mov ebx, eax
call fcn.004019e3
inc eax
push eax
call fcn.00415147
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40b676
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b687
push ebx
call fcn.0041514d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x415800
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x415892
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x415884
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x41587c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x415845
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x408410
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ecdb
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.00461941
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408492
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045f3f7
mov eax, dword [eax]
push 0x5871d0
push eax
call fcn.00452154
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00461bcc
test bl, bl
je 0x408492
push 0x5871d0
lea ecx, [esp + 0xc]
call fcn.00461fa8
push 0x58ad3c
lea ecx, [esp + 0xc]
call fcn.00461fa8
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 0x4084ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00461bcc
jmp 0x408599
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 0x408552
lea edx, [esp + 0x7c]
push 0x58ad38
push edx
call fcn.00452154
add esp, 8
test eax, eax
je 0x408552
lea eax, [esp + 0x7c]
push 0x58ad34
push eax
call fcn.00452154
add esp, 8
test eax, eax
je 0x408552
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 0x4084e2
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.00461bcc
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 0x408d90
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 0x408df2
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 0x408e00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46ed5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x591c80]
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 0x408f38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408e66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461bcc
xor eax, eax
jmp 0x408faf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00461d55
push esi
lea ecx, [esp + 0xc]
call fcn.00461fe4
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 0x408f8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00408d90
test eax, eax
jne 0x408f8d
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.00408d90
test eax, eax
jne 0x408f8d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00453230
mov esi, eax
add esp, 8
test esi, esi
jne 0x408f6c
lea ecx, [esp + 0x14]
push 0x58ad4c
push ecx
call fcn.004531b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408f6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x408f6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00461d05
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x408e7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00461bcc
xor eax, eax
jmp 0x408faf
mov byte [esi], 0
push 0x58ad48
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.00461bcc
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 0x419b10
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 0x419b7e
cmp si, 0x69
ja 0x419b7e
add esi, 0xffd0
cmp si, 0x11
je 0x419b4e
push 0x11
call edi
test ax, ax
jge 0x419b4e
or esi, 0x2000
cmp si, 0x10
je 0x419b63
push 0x10
call edi
test ax, ax
jge 0x419b63
or esi, 0x4000
cmp si, 0x12
je 0x419b78
push 0x12
call edi
test ax, ax
jge 0x419b78
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x419b8b
mov esi, 0xbd
jmp 0x419b3f
cmp si, 0x6e
jne 0x419b98
mov esi, 0xbe
jmp 0x419b3f
cmp si, 0x6f
jne 0x419b39
mov esi, 0xbf
jmp 0x419b3f

Function at 0x41b1f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5a29f8]
xor edx, edx
cmp eax, edx
jne 0x41b216
xor eax, eax
mov byte [eax + 0x5a28f8], al
inc eax
cmp eax, 0x100
jl 0x41b1fe
mov dword [0x5a29f8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5a28f8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41b2a7
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 0x41b27a
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 0x41b248
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41b320
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 0x41b373
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 0x41b35a
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