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

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x42e5a0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40f88d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x42e4a0]
lea edi, [ecx*4 + 0x42e4a0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40f88d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40f74e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40f75f
push 2
push ebp
push eax
call fcn.00409a50
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40f8be
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40f809
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40f7ba
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40f7a7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40f78a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f8af
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40f805
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40f786
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40f87e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f852
cmp eax, 5
jne 0x40f83b
mov dword [0x42c02c], eax
mov dword [0x42c028], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040c0e0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40f872
cmp byte [ebp], 0x1a
jne 0x40f872
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x42c028], 0x1c
jmp 0x40f897
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x42c028], 9
pop edi
pop esi
pop ebp
mov dword [0x42c02c], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40f805
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f8ef
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40f809
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40f809
Function at 0x411010
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.00412790
mov eax, dword [0x42e5a0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x411172
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x42e4a0]
test byte [edx + ecx*8 + 4], 1
je 0x411172
push 1
push ebp
push ebx
call fcn.00409a50
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41117c
push 2
push ebp
push ebx
call fcn.00409a50
add esp, 0xc
cmp eax, 0xffffffff
je 0x41117c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x411118
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00412710
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4110bf
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040f6e0
add esp, 0xc
cmp eax, 0xffffffff
je 0x4110db
sub esi, eax
test esi, esi
jle 0x4110f1
jmp 0x4110b0
cmp dword [0x42c02c], 5
jne 0x4110ee
mov dword [0x42c028], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00412710
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.00409a50
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x411159
push 0
push ecx
push ebx
call fcn.00409a50
add esp, 0xc
push ebx
call fcn.0040dbf0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x411159
mov dword [0x42c028], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x42c02c], eax
push 0
push edi
push ebx
call fcn.00409a50
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x42c028], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x412410
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4125ce
push 0x3d
push edi
call fcn.00412cb0
mov esi, eax
add esp, 8
test esi, esi
je 0x4125ce
cmp edi, esi
je 0x4125ce
mov dl, byte [esi + 1]
mov ecx, dword [0x42c054]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x42c050]
cmp eax, ecx
jne 0x412467
push eax
call fcn.004126a0
add esp, 4
mov dword [0x42c050], eax
test eax, eax
jne 0x4124e2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41248e
mov eax, dword [0x42c058]
test eax, eax
je 0x41248e
call fcn.00410f90
test eax, eax
je 0x4124dd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x41249a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040c150
add esp, 4
mov dword [0x42c050], eax
test eax, eax
je 0x4125ce
mov dword [eax], 0
mov eax, dword [0x42c058]
test eax, eax
jne 0x4124dd
push 4
call fcn.0040c150
add esp, 4
mov dword [0x42c058], eax
test eax, eax
je 0x4125ce
mov dword [eax], 0
mov eax, dword [0x42c050]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00412620
mov esi, eax
add esp, 8
test esi, esi
jl 0x4125df
cmp dword [ebx], 0
je 0x4125df
test ebp, ebp
je 0x4125d7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.004098e0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x412539
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x412528
lea eax, [esi*4]
push eax
push ebx
call fcn.00412b10
add esp, 8
test eax, eax
je 0x412553
mov dword [0x42c050], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4125c6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040c150
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4125c6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004098e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x412557
test ebp, ebp
jne 0x4125c6
test esi, esi
jge 0x4125e9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00412b10
add esp, 8
test eax, eax
je 0x4125ce
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x42c050], eax
jmp 0x412557
Function at 0x401000
Capabilities:
Create process on windows
Delete file
Extract resource via kernel32 functions
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3d8]
sub esp, 0x458
mov eax, dword [0x40a004]
xor eax, ebp
mov dword [ebp + 0x3d4], eax
push ebx
push esi
mov esi, dword [ebp + 0x3e0]
push edi
push 0x409298
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x3c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp + 0x1cc]
push eax
xor esi, esi
push esi
push 0x4092a0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp + 0x1cc]
push eax
call edi
push str..msi
lea eax, [ebp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
push esi
push 2
push esi
push esi
push 0x40000000
lea eax, [ebp + 0x1cc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push esi
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3c
pop ebx
push ebx
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.00401160
lea eax, [ebp + 0x1cc]
mov dword [ebp - 0x70], eax
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x40111e
cmp dword [ebp - 0x48], esi
je 0x40111e
push 0xffffffffffffffff
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x40111e
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp + 0x1cc]
push eax
call edi
test eax, eax
je 0x401113
mov ecx, dword [ebp + 0x3d4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401147
add ebp, 0x3d8
leave
ret 0x10

Function at 0x401147
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a004]
jne 0x401151
repz ret
jmp fcn.0040138a
Function at 0x4034b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402394
and dword [ebp - 4], 0
cmp dword [0x40b668], 0
mov ebx, eax
jne 0x403564
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x403615
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x403615
push eax
call fcn.00402322
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b668], eax
call esi
push eax
call fcn.00402322
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b66c], eax
call esi
push eax
call fcn.00402322
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b670], eax
call esi
push eax
call fcn.00402322
pop ecx
mov dword [0x40b678], eax
test eax, eax
je 0x403564
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402322
pop ecx
mov dword [0x40b674], eax
mov eax, dword [0x40b674]
cmp eax, ebx
je 0x4035bc
cmp dword [0x40b678], ebx
je 0x4035bc
push eax
call fcn.0040239d
push dword [0x40b678]
mov esi, eax
call fcn.0040239d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4035bc
test edi, edi
je 0x4035bc
call esi
test eax, eax
je 0x4035b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4035b3
test byte [ebp - 0xc], 1
jne 0x4035bc
or dword [ebp + 0x10], 0x200000
jmp 0x4035f5
mov eax, dword [0x40b66c]
cmp eax, ebx
je 0x4035f5
push eax
call fcn.0040239d
pop ecx
test eax, eax
je 0x4035f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4035f5
mov eax, dword [0x40b670]
cmp eax, ebx
je 0x4035f5
push eax
call fcn.0040239d
pop ecx
test eax, eax
je 0x4035f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b668]
call fcn.0040239d
pop ecx
test eax, eax
je 0x403615
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x403617
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405d1c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232d4], 0
push esi
jne 0x405d53
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d2d
mov dword [ecx*4 + 0x4232d0], eax
inc ecx
cmp ecx, 0x100
jl 0x405d28
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405d84
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4232d0]
xor eax, esi
inc ecx
dec edx
jne 0x405d66
pop edi
not eax
pop esi
ret 0xc

Function at 0x1000447d
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push eax
add esp, 4
mov dword [esp - 4], ebx
sub esp, 4
sub esp, 4
mov dword [esp], 0xed35425b
add esp, 4
mov dword [esp - 4], 0x1f536f3a
sub esp, 4
mov dword [esp], esi
nop
nop
push edi
mov eax, eax
mov eax, eax
xor eax, eax
nop
mov esi, dword fs:[eax + 0x30]
push 0xd93e90c0
add esp, 4
nop
mov esi, dword [esi + 0xc]
push eax
add esp, 4
nop
mov esi, dword [esi + 0xc]
nop
lodsd eax, dword [esi]
nop
mov eax, dword [eax]
push ecx
add esp, 4
nop
mov ebx, dword [eax + 0x18]
mov dword [esp - 4], 0x4428158e
nop
mov edi, dword [ebx + 0x3c]
push eax
add esp, 4
mov dword [esp - 4], 0x5b38fdd7
mov edi, dword [ebx + edi + 0x78]
mov dword [esp - 4], 0xb71db3d5
push 0xc89070f5
add esp, 4
mov esi, dword [ebx + edi + 0x20]
push edi
add esp, 4
sub esp, 4
mov dword [esp], 0xbd024971
add esp, 4
add esi, ebx
sub esp, 4
mov dword [esp], 0xbd6db986
add esp, 4
mov edx, dword [ebx + edi + 0x24]
mov dword [esp - 4], 0xac68fcb6
mov dword [esp - 4], 0xec2e5c18
add edx, ebx
push 0x5d068599
add esp, 4
xor ecx, ecx
mov dword [esp - 4], 0x464b5e7e
push ecx
sub dword [esp], 1
pop ecx
nop
mov dword [esp - 4], 0x1e0c4b04
dec ecx
add ecx, 2
sub esp, 4
mov dword [esp], 0x1d3c9e60
add esp, 4
push ebx
add esp, 4
mov eax, dword [esi]
push 0x4ce6d020
add esp, 4
push 0xc332581c
add esp, 4
add esi, 4
cmp word [ebx + eax + 0xb], 0x63
jne 0x10004551
cmp byte [ebx + eax + 1], 0x69
jne 0x10004551
movzx eax, word [edx + ecx*2]
mov esi, dword [ebx + edi + 0x1c]
add esi, ebx
add ebx, dword [esi + eax*4]
push edx
add esp, 4
call fcn.100045a9
Function at 0x40b740
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c4cb
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.00460f17
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b7c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ec8d
mov eax, dword [eax]
push 0x4821c0
push eax
call fcn.00451a64
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004611a2
test bl, bl
je 0x40b7c2
push 0x4821c0
lea ecx, [esp + 0xc]
call fcn.00461532
push 0x485d34
lea ecx, [esp + 0xc]
call fcn.00461532
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 0x40b7fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004611a2
jmp 0x40b8c9
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 0x40b882
lea edx, [esp + 0x7c]
push 0x485d30
push edx
call fcn.00451a64
add esp, 8
test eax, eax
je 0x40b882
lea eax, [esp + 0x7c]
push 0x485d2c
push eax
call fcn.00451a64
add esp, 8
test eax, eax
je 0x40b882
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 0x40b812
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.004611a2
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 0x40c0c0
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 0x40c122
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 0x40c130
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c54b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48c5e8]
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 0x40c268
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c196
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004611a2
xor eax, eax
jmp 0x40c2df
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004612df
push esi
lea ecx, [esp + 0xc]
call fcn.0046156e
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 0x40c2bd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040c0c0
test eax, eax
jne 0x40c2bd
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 closesocket
mov ecx, edi
call fcn.0040c0c0
test eax, eax
jne 0x40c2bd
lea eax, [esp + 0x14]
push 0x485d48
push eax
call fcn.00452aa0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c29c
lea ecx, [esp + 0x14]
push 0x485d44
push ecx
call fcn.00452a20
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c29c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c29f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046128f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c1ae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004611a2
xor eax, eax
jmp 0x40c2df
mov byte [esi], 0
push 0x485d40
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.004611a2
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 0x41db40
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 0x41dbae
cmp si, 0x69
ja 0x41dbae
add esi, 0xffd0
cmp si, 0x11
je 0x41db7e
push 0x11
call edi
test ax, ax
jge 0x41db7e
or esi, 0x2000
cmp si, 0x10
je 0x41db93
push 0x10
call edi
test ax, ax
jge 0x41db93
or esi, 0x4000
cmp si, 0x12
je 0x41dba8
push 0x12
call edi
test ax, ax
jge 0x41dba8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41dbbb
mov esi, 0xbd
jmp 0x41db6f
cmp si, 0x6e
jne 0x41dbc8
mov esi, 0xbe
jmp 0x41db6f
cmp si, 0x6f
jne 0x41db69
mov esi, 0xbf
jmp 0x41db6f

Function at 0x41f2f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49cc60]
xor edx, edx
cmp eax, edx
jne 0x41f316
xor eax, eax
mov byte [eax + 0x49cb60], al
inc eax
cmp eax, 0x100
jl 0x41f2fe
mov dword [0x49cc60], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49cb60
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41f3a7
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 0x41f37a
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 0x41f348
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41f420
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 0x41f473
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 0x41f45a
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