joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027eb1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10027e2d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10028029
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10028029
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10027fd8
jg 0x10027f0a
test eax, eax
je 0x10027fce
push 1
push 0x1000
call fcn.10018b5e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10027f30
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10027fc5
push 0x8000
push ebx
call fcn.10027d5e
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10027f5c
jg 0x10027f57
cmp ecx, 0x1000
jb 0x10027f5c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001ad90
add esp, 0x10
cmp eax, 0xffffffff
je 0x10027fa1
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10027f57
jl 0x10027f88
test ecx, ecx
jne 0x10027f49
push dword [ebp - 0xc]
push ebx
call fcn.10027d5e
push esi
call fcn.10018bbb
add esp, 0xc
xor edi, edi
jmp 0x1002803a
cmp byte [edi + 0x24], 0
je 0x10027fb8
cmp dword [edi + 0x20], 5
jne 0x10027fb8
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10027fc3
mov edi, dword [edi + 0x18]
jmp 0x10027fc5
xor edi, edi
push esi
call fcn.10018bbb
pop ecx
jmp 0x1002803a
test ecx, ecx
jg 0x10027f9a
jl 0x10027fd8
test eax, eax
jae 0x10027f9a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001c52e
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10027ffb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10027f9a
jmp 0x10028032
push ebx
call fcn.10023d83
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10027f9a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x1002803a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x10028037
mov edi, dword [edi + 0x18]
jmp 0x1002803a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001c52e
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10028a30
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10028a5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10028a5d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4029d1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402a10
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402a10
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402a10
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402a10
cmp dword [ecx + 0x74], 0xe
jbe 0x402a10
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401070
Capabilities:
Access peb ldr_data

Disassembly:
push esi
xor eax, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
pop esi
ret

Function at 0x401158
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x4011a0
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x401192
mov eax, dword [ebx]
push 0xffffffffffffffff
push 0xffffffffffffffff
add eax, edi
push eax
push dword [ebp + 8]
call fcn.0040109e
add esp, 0x10
test eax, eax
je 0x4011a6
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x401176
xor eax, eax
pop esi
pop ebx
leave
ret
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x4011a2

Function at 0x4011c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x401050]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x24], 0xfafff1d2
mov dword [ebp - 0x20], 0xecfcf7d2
mov dword [ebp - 0x1c], 0xdbe7ecff
mov word [ebp - 0x18], 0xdfe6
mov byte [ebp - 0x16], 0
mov dword [ebp - 0x14], 0xceeafbd9
mov dword [ebp - 0x10], 0xdffdf1ec
mov dword [ebp - 0xc], 0xfbecfafa
mov word [ebp - 8], 0xeded
mov byte [ebp - 6], 0
call fcn.00401070
mov edi, eax
xor eax, eax
xor byte [ebp + eax - 0x14], 0x9e
inc eax
cmp eax, 0xe
jb 0x401218
xor eax, eax
xor byte [ebp + eax - 0x24], 0x9e
inc eax
cmp eax, 0xe
jb 0x401225
lea eax, [ebp - 0x14]
push eax
call fcn.00401158
mov dword [0x403014], eax
lea eax, [ebp - 0x24]
push eax
call fcn.00401158
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x403018], eax
pop edi
call fcn.00402d9a
leave
ret
Function at 0x40125b
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x401050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp + 0x14]
push esi
push edi
mov dword [ebp - 0x410], eax
xor edi, edi
xor eax, eax
mov dword [ebp + eax*4 - 0x404], eax
inc eax
cmp eax, 0x100
jl 0x40128a
xor ecx, ecx
xor edx, edx
mov eax, ecx
div dword [ebp - 0x410]
lea esi, [ebp + ecx*4 - 0x404]
movzx eax, byte [edx + ebx]
add eax, dword [esi]
add edi, eax
and edi, 0x800000ff
jns 0x4012c4
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esi]
mov byte [ebp - 0x405], al
lea eax, [ebp + edi*4 - 0x404]
mov edx, dword [eax]
mov dword [esi], edx
movzx edx, byte [ebp - 0x405]
inc ecx
mov dword [eax], edx
cmp ecx, 0x100
jl 0x40129b
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x401360
add ecx, 0x1a
and ecx, 0x800000ff
jns 0x401303
dec ecx
or ecx, 0xffffff00
inc ecx
lea eax, [ebp + ecx*4 - 0x404]
mov edx, dword [eax]
add edi, edx
and edi, 0x800000ff
jns 0x40131e
dec edi
or edi, 0xffffff00
inc edi
lea esi, [ebp + edi*4 - 0x404]
mov byte [ebp - 0x405], dl
mov edx, dword [esi]
mov dword [eax], edx
movzx edx, byte [ebp - 0x405]
mov dword [esi], edx
mov eax, dword [eax]
mov esi, dword [ebp - 0x40c]
add eax, edx
and eax, 0x800000ff
jns 0x401350
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax*4 - 0x404]
xor byte [esi + ebx], al
inc ebx
cmp ebx, dword [ebp + 0x10]
jb 0x4012f0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402d9a
leave
ret
Function at 0x402d9a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x401050]
jne 0x402da4
repz ret
jmp fcn.00402e73
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403161
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x403161
lcall 0x5de5, 0x8b10c483
jmp loc.00791034
Function at 0x40114a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464008]
jne 0x401154
repz ret
jmp fcn.00402059

Function at 0x412a93
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.0040a6f2
and dword [ebp - 4], 0
cmp dword [0x466d78], 0
mov ebx, eax
jne 0x412b44
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x412bf5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x412bf5
push eax
call fcn.0040a680
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x466d78], eax
call esi
push eax
call fcn.0040a680
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x466d7c], eax
call esi
push eax
call fcn.0040a680
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x466d80], eax
call esi
push eax
call fcn.0040a680
pop ecx
mov dword [0x466d88], eax
test eax, eax
je 0x412b44
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040a680
pop ecx
mov dword [0x466d84], eax
mov eax, dword [0x466d84]
cmp eax, ebx
je 0x412b9c
cmp dword [0x466d88], ebx
je 0x412b9c
push eax
call fcn.0040a6fb
push dword [0x466d88]
mov esi, eax
call fcn.0040a6fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x412b9c
test edi, edi
je 0x412b9c
call esi
test eax, eax
je 0x412b93
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412b93
test byte [ebp - 0xc], 1
jne 0x412b9c
or dword [ebp + 0x10], 0x200000
jmp 0x412bd5
mov eax, dword [0x466d7c]
cmp eax, ebx
je 0x412bd5
push eax
call fcn.0040a6fb
pop ecx
test eax, eax
je 0x412bd5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x412bd5
mov eax, dword [0x466d80]
cmp eax, ebx
je 0x412bd5
push eax
call fcn.0040a6fb
pop ecx
test eax, eax
je 0x412bd5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x466d78]
call fcn.0040a6fb
pop ecx
test eax, eax
je 0x412bf5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412bf7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x456b80
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov dword [esp], 0x20
add dword [esp], 0x20
mov al, 0x65
mov byte [0x466e69], al
mov byte [0x466e6c], al
mov al, 0x6c
push 0x466e68
mov byte [0x466e68], 0x6b
mov byte [0x466e6a], 0x72
mov byte [0x466e6b], 0x6e
mov byte [0x466e6d], al
mov byte [0x466e6e], 0x33
mov byte [0x466e6f], 0x32
mov byte [0x466e70], 0x2e
mov byte [0x466e71], 0x64
mov byte [0x466e72], al
mov byte [0x466e73], al
mov byte [0x466e74], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [0x468650]
mov edx, dword [0x467368]
lea eax, [esp + 4]
push eax
push 0x40
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 8
ret
Function at 0x456e20
Capabilities:
Clear file content
Create pipe

Disassembly:
mov eax, dword [0x468650]
sub esp, 0xc
push ebx
mov ebx, dword [0x467368]
push edi
mov edi, eax
cmp eax, 0x5dd
jne 0x456e41
push 0
call dword [sym.imp.KERNEL32.dll_LocalHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push ecx
call fcn.00456d10
add esp, 4
cmp dword [0x468650], 0x2f
jne 0x456eb8
xor eax, eax
xor edx, edx
mov word [esp + 0x12], ax
xor ecx, ecx
mov word [esp + 0xa], dx
lea eax, [esp + 8]
push eax
mov word [esp + 0xc], cx
mov ecx, dword [esp + 0xc]
push ecx
mov word [esp + 0x18], dx
mov edx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputW]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.xamasu
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
call fcn.00456d80
cmp dword [0x468650], 0x568
pop edi
pop ebx
jne 0x456ed3
push 0
call dword [sym.imp.KERNEL32.dll_GlobalDeleteAtom]
add esp, 0xc
ret
Function at 0x404619
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41742c]
jne 0x404623
repz ret
jmp fcn.00408a2c

Function at 0x40fc8c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41742c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004084d3
and dword [ebp - 0x14], 0
cmp dword [0x419268], 0
mov dword [ebp - 0x18], eax
jne 0x40fd3f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fde7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fde7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x419268], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41926c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x419270], eax
call edi
push eax
call esi
mov dword [0x419278], eax
test eax, eax
je 0x40fd3f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x419274], eax
mov eax, dword [0x419274]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fd98
cmp dword [0x419278], ecx
je 0x40fd98
push eax
call esi
push dword [0x419278]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fd98
test ebx, ebx
je 0x40fd98
call edi
test eax, eax
je 0x40fd8f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fd8f
test byte [ebp - 8], 1
jne 0x40fd98
or dword [ebp + 0x10], 0x200000
jmp 0x40fdcb
mov eax, dword [0x41926c]
cmp eax, dword [ebp - 0x18]
je 0x40fdcb
push eax
call esi
test eax, eax
je 0x40fdcb
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fdcb
mov eax, dword [0x419270]
cmp eax, dword [ebp - 0x18]
je 0x40fdcb
push eax
call esi
test eax, eax
je 0x40fdcb
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x419268]
call esi
test eax, eax
je 0x40fde7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fde9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404619
leave
ret
Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40601c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]

Function at 0x40124c
Capabilities:
Terminate process

Disassembly:
add esp, 4
push 0
push 0
push 0x406028
push 0x406024
push 0x406020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x406028]
push dword [0x406024]
push dword [0x406020]
mov dword [0x406014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret

Function at 0x40129c
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x10], 0
cmp dword [0x4267a4], edi
je 0x4013c4
invalid
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x1c], 0x12
cmp dword [ebp - 0x18], 0
je 0x401544
nop
nop
nop
sub dword [esp + 4], 0x10
jmp 0x400401
lea eax, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.004016e1
add esp, 8
mov edi, eax
cmp edi, dword [ebp - 0x18]
jle 0x40157e
lea eax, [ebp - 0xa0]
push eax
mov eax, dword [0x406190]
add eax, dword [ebp - 0x18]
push eax
push 0x406194
call fcn.0040221c
add esp, 0xc
xor eax, eax
pop edi
leave
ret

Function at 0x414deb
Capabilities:
Encode data using xor

Disassembly:
xor dword [esi], ebx
add esi, 4
cmp esi, edx
jne fcn.00414deb
or eax, ecx
ret
Function at 0x411780
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48b90b
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.00480089
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x411802
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047da4a
mov eax, dword [eax]
push 0x4cccd0
push eax
call fcn.0046fd94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00480314
test bl, bl
je 0x411802
push 0x4cccd0
lea ecx, [esp + 0xc]
call fcn.004806a4
push 0x4cccdc
lea ecx, [esp + 0xc]
call fcn.004806a4
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 0x41183e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00480314
jmp 0x411909
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 0x4118c2
lea edx, [esp + 0x7c]
push 0x4cccd8
push edx
call fcn.0046fd94
add esp, 8
test eax, eax
je 0x4118c2
lea eax, [esp + 0x7c]
push 0x4cccd4
push eax
call fcn.0046fd94
add esp, 8
test eax, eax
je 0x4118c2
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 0x411852
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.00480314
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 0x412100
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 0x412162
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 0x412170
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48b98b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d6990]
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 0x4122a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4121d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00480314
xor eax, eax
jmp 0x41231f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00480451
push esi
lea ecx, [esp + 0xc]
call fcn.004806e0
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4ccd10
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4122fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00412100
test eax, eax
jne 0x4122fd
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.00412100
test eax, eax
jne 0x4122fd
lea eax, [esp + 0x14]
push 0x4cccec
push eax
call fcn.00470e10
mov esi, eax
add esp, 8
test esi, esi
jne 0x4122dc
lea ecx, [esp + 0x14]
push 0x4ccce8
push ecx
call fcn.00470d90
mov esi, eax
add esp, 8
test esi, esi
jne 0x4122dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4122df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00480401
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4121ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00480314
xor eax, eax
jmp 0x41231f
mov byte [esi], 0
push 0x4ccce4
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.00480314
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