joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40204f
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0xc
push ebp
push esi
push edi
mov esi, 0x208
push esi
xor edi, edi
push edi
push 0x410a70
call fcn.0040bbf0
push esi
push edi
push 0x410660
call fcn.0040bbf0
push esi
push edi
push 0x410458
call fcn.0040bbf0
push esi
push edi
push 0x410868
call fcn.0040bbf0
push esi
push edi
push 0x410250
call fcn.0040bbf0
push esi
push edi
mov ebp, 0x410048
push ebp
call fcn.0040bbf0
add esp, 0x48
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [esp + 0x14], eax
xor eax, eax
inc eax
cmp dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
jle 0x4021a0
mov edi, dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push 3
lea esi, [eax + ecx*4]
push 0x40e6c4
push dword [esi]
call edi
test eax, eax
jne 0x402105
mov dword [0x410c78], 1
jmp 0x40218d
push 3
push 0x40e6bc
push dword [esi]
call edi
test eax, eax
jne 0x402121
mov eax, dword [esi]
add eax, 6
push eax
push 0x410a70
jmp 0x40218b
push 3
push 0x40e6b4
push dword [esi]
call edi
test eax, eax
jne 0x402139
mov eax, dword [esi]
add eax, 6
push eax
push ebp
jmp 0x40218b
push 3
push 0x40e6ac
push dword [esi]
call edi
test eax, eax
jne 0x402155
mov eax, dword [esi]
add eax, 6
push eax
push 0x410868
jmp 0x40218b
push 3
push 0x40e6a4
push dword [esi]
call edi
test eax, eax
jne 0x402171
mov eax, dword [esi]
add eax, 6
push eax
push 0x410660
jmp 0x40218b
push 3
push 0x40e69c
push dword [esi]
call edi
test eax, eax
jne 0x40218d
mov eax, dword [esi]
add eax, 6
push eax
push 0x410250
call ebx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x14]
jl 0x4020dc
pop ebx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x410a70
push str.TargetDir
call fcn.00401548
push ebp
push str.InstallPath
call fcn.00401548
push 0x410868
push str.TargetFileName
call fcn.00401548
push 0x410660
push str.Commandline
call fcn.00401548
push 0x410250
push 0x40e620
call fcn.00401548
add esp, 0x28
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x4021fb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, 0x104
push edi
mov esi, 0x410458
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.RPCRT4.dll_UuidCreate]
test eax, eax
je 0x40223e
xor eax, eax
jmp 0x402278
push edi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push esi
call section..text
push esi
push 0x40e6cc
call fcn.00401548
xor eax, eax
add esp, 0xc
inc eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040bbdc
leave
ret
Function at 0x402be6
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8

Function at 0x402c3c
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
mov ebx, ecx
jne 0x402c52
push 0x80004005
call fcn.00401f78
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x402c55
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x4031ad
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x198]
sub esp, 0x218
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp + 0x194], eax
mov eax, dword [ebp + 0x1a0]
push ebx
push esi
push edi
push 0x2001f
mov ebx, ecx
push eax
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
call fcn.004015f9
mov edi, eax
cmp edi, esi
je 0x403215
lea ecx, [ebp - 0x70]
call fcn.004015e2
mov eax, edi
mov ecx, dword [ebp + 0x194]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbdc
add ebp, 0x198
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x40322d
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x70]
call fcn.004031ad
cmp eax, esi
jne 0x403260
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call edi
test eax, eax
je 0x40321d
lea ecx, [ebp - 0x70]
call fcn.004015e2
push dword [ebp - 0x78]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004015e2
mov eax, esi
jmp 0x4031fb
Function at 0x4048b0
Capabilities:
Create thread

Disassembly:
sub esp, 0x210
mov eax, dword [0x410014]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
push 0x104
lea eax, [esp + 0x18]
push eax
xor ebp, ebp
mov edi, ecx
push ebp
push 0x410458
mov dword [edi + 0x40], ebp
call fcn.0040169c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
je 0x404906
lea eax, [esp + 0x14]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x3e9
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x10], eax
push 0x104
lea eax, [esp + 0x18]
push eax
push 1
push 0x410458
call fcn.0040169c
add esp, 0x10
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
je 0x40494d
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0x104
lea eax, [esp + 0x18]
push eax
push 2
push 0x410458
call fcn.0040169c
add esp, 0x10
push 0x3ea
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x14]
push eax
call ebx
test eax, eax
je 0x404991
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push ebp
mov ecx, esi
call fcn.004041f4
mov eax, dword [0x410d30]
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push ebp
push 0xc
mov dword [esp + 0x18], eax
call ebx
push eax
push 0xb
call ebx
push eax
push 1
push 0xca
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push 1
push 0x80
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x410d30]
push ebp
push 0x32
mov dword [esp + 0x18], eax
call ebx
push eax
push 0x31
call ebx
push eax
push 1
push 0xca
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_LoadImageW]
push eax
push ebp
push 0x80
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov ecx, 0x410c7c
call fcn.0040486b
mov ebx, eax
lea eax, [edi + 0x20]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 4]
call fcn.00404593
lea eax, [edi + 0x24]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0x10]
call fcn.00404593
push dword [esi]
lea ecx, [edi + 0x28]
call fcn.00404605
push 0x3e8
push dword [esi]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x64
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
call fcn.0040419a
push ebp
push ebp
push edi
push 0x4027ef
push ebp
push ebp
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x44], eax
pop edi
xor eax, eax
pop esi
inc eax
pop ebp
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
call fcn.0040bbdc
add esp, 0x210
ret 0x10
Function at 0x405348
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp + 0x39c], eax
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3a8]
push esi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x3b0]
push edi
mov esi, ecx
mov dword [ebp - 0x74], eax
call dword [section..data]
xor edi, edi
push 2
push edi
push ebx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x68], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x78], ebx
jne 0x4053b3
call fcn.00402abd
mov esi, eax
jmp 0x40547f
push dword [ebp - 0x74]
push dword [ebp - 0x6c]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x4053d0
call fcn.00402abd
jmp 0x405474
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
mov dword [ebp - 0x6c], eax
je 0x4053c6
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x405429
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x405400
lea ecx, [ebp - 0x68]
call fcn.0040315e
mov esi, 0x8007000e
lea ecx, [ebp - 0x70]
call fcn.00403098
mov ecx, dword [ebp + 0x39c]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bbdc
add ebp, 0x3a0
leave
ret 0x10
push eax
lea ecx, [ebp - 0x68]
call fcn.004036b2
mov ebx, dword [ebp - 0x68]
cmp ebx, edi
jne 0x405440
mov esi, 0x8007000e
jmp 0x405476
call dword [section..data]
push esi
push ebx
push esi
push dword [ebp - 0x6c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x4053c6
mov ecx, dword [ebp - 0x68]
push dword [ebp + 0x3b4]
mov word [ecx + eax*2], di
push dword [ebp - 0x68]
lea ecx, [ebp - 0x80]
call fcn.004046d6
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x64]
cmp dword [ebp - 0x68], eax
je 0x405405
lea ecx, [ebp - 0x68]
call fcn.0040315e
jmp 0x405405

Function at 0x405c9d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x410d1c], 0
push esi
jne 0x405c10
call fcn.00405b3b
test eax, eax
je 0x405c53
mov eax, dword [0x410d1c]
cmp eax, 1
jne 0x405c31
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x405c53
pop esi
ret
push eax
call dword [0x410d24]
test eax, eax
jne 0x405c9b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x405c57
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x410d1c]
call dword [0x410d24]
mov edi, eax
test edi, edi
je 0x405c7e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x405c9a
lea edi, [esi + 0xff0]
push esi
push dword [0x410d1c]
call dword [0x410d20]
add esi, 0x10
cmp esi, edi
jb 0x405c84
mov eax, esi
pop edi
pop esi
ret
jmp 0x405bfd
Function at 0x405dd1
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x410014]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00405d66
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040bbf0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x405e20
cmp dword [ebp - 0x1c], 5
jb 0x405e38
jmp 0x405e34
cmp dword [ebp - 0x10], 1
jne 0x405e38
cmp dword [ebp - 0x1c], 4
ja 0x405e34
jne 0x405e38
cmp dword [ebp - 0x18], 0
jbe 0x405e38
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40ebdc
call fcn.00402004
test eax, eax
jge 0x405e59
mov byte [0x410cb8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040bbdc
add ebp, 0x78
leave
ret

Function at 0x4063d0
Capabilities:
Create directory

Disassembly:
sub esp, 0x200
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
mov esi, dword [esp + 0x20c]
cmp word [esi], 0
je 0x406428
push edi
lea edi, [esp + 0xc]
sub edi, esi
mov ax, word [esi]
cmp ax, 0x5c
je 0x406401
cmp ax, 0x2f
jne 0x406411
cmp word [esi - 2], 0x3a
je 0x406411
lea eax, [esp + 0xc]
push 0
push eax
call ebx
mov cx, word [esi]
mov word [edi + esi], cx
add esi, 2
cmp word [esi], 0
mov word [edi + esi], 0
jne 0x4063f2
pop edi
lea edx, [esp + 8]
push 0
push edx
call ebx
pop esi
pop ebx
test eax, eax
jne 0x40644d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40644d
xor eax, eax
add esp, 0x200
ret
mov eax, 1
add esp, 0x200
ret

Function at 0x408ae0
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, dword [edi]
test esi, esi
je 0x408b4d
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
mov dword [edi], 0
cmp esi, 0x400000
mov eax, 0x400000
ja 0x408b0b
mov eax, esi
mov edx, dword [ebp]
lea ecx, [esp + 0x1c]
push 0
push ecx
push eax
push ebx
push edx
mov dword [esp + 0x30], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi]
add ebx, ecx
sub esi, ecx
add edx, ecx
test eax, eax
mov dword [edi], edx
je 0x408b42
test ecx, ecx
je 0x408b4d
test esi, esi
jbe 0x408b4d
jmp 0x408afc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x408e90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
push edi
xor esi, esi
mov edx, 0x411180
mov eax, esi
mov ecx, 8
mov edi, eax
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr eax, 1
xor eax, edi
dec ecx
jne 0x408ea0
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, 0x411580
jb 0x408e99
pop edi
pop esi
ret
Function at 0x408ed0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, ecx
test esi, esi
mov ecx, edx
jbe 0x408efd
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x411180]
xor eax, edx
inc ecx
dec esi
jne 0x408ede
pop ebx
pop esi
ret 4

Function at 0x40bbdc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410014]
jne 0x40bbe6
repz ret
jmp fcn.0040c844
Function at 0x4019b4
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401b64
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 0x401ab2
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 0x401a55
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401a98
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401a6c
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x401a87
test al, 0x40
je 0x401a7e
mov ecx, dword [edi + 0x20]
jmp 0x401a85
test al, 0x80
je 0x401a98
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401a98
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 0x401a24
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x409440
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x475ecb
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.004686d0
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4094c2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004660f7
mov eax, dword [eax]
push 0x4ae1e0
push eax
call fcn.004584a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046895b
test bl, bl
je 0x4094c2
push 0x4ae1e0
lea ecx, [esp + 0xc]
call fcn.00468d37
push 0x4b1d40
lea ecx, [esp + 0xc]
call fcn.00468d37
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 0x4094fe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046895b
jmp 0x4095c9
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 0x409582
lea edx, [esp + 0x7c]
push 0x4b1d3c
push edx
call fcn.004584a4
add esp, 8
test eax, eax
je 0x409582
lea eax, [esp + 0x7c]
push 0x4b1d38
push eax
call fcn.004584a4
add esp, 8
test eax, eax
je 0x409582
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 0x409512
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.0046895b
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 0x409dc0
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 0x409e22
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 0x409e30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x475f4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b91e4]
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 0x409f68
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409e96
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046895b
xor eax, eax
jmp 0x409fdf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00468ae4
push esi
lea ecx, [esp + 0xc]
call fcn.00468d73
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 0x409fbd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocStringLen
call fcn.00409dc0
test eax, eax
jne 0x409fbd
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 SysReAllocStringLen
mov ecx, edi
call fcn.00409dc0
test eax, eax
jne 0x409fbd
lea eax, [esp + 0x14]
push 0x4b1d54
push eax
call fcn.00459580
mov esi, eax
add esp, 8
test esi, esi
jne 0x409f9c
lea ecx, [esp + 0x14]
push 0x4b1d50
push ecx
call fcn.00459500
mov esi, eax
add esp, 8
test esi, esi
jne 0x409f9c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409f9f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00468a94
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409eae
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046895b
xor eax, eax
jmp 0x409fdf
mov byte [esi], 0
push 0x4b1d4c
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.0046895b
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 0x41a450
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 0x41a4be
cmp si, 0x69
ja 0x41a4be
add esi, 0xffd0
cmp si, 0x11
je 0x41a48e
push 0x11
call edi
test ax, ax
jge 0x41a48e
or esi, 0x2000
cmp si, 0x10
je 0x41a4a3
push 0x10
call edi
test ax, ax
jge 0x41a4a3
or esi, 0x4000
cmp si, 0x12
je 0x41a4b8
push 0x12
call edi
test ax, ax
jge 0x41a4b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a4cb
mov esi, 0xbd
jmp 0x41a47f
cmp si, 0x6e
jne 0x41a4d8
mov esi, 0xbe
jmp 0x41a47f
cmp si, 0x6f
jne 0x41a479
mov esi, 0xbf
jmp 0x41a47f

Function at 0x41bb70
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4ca000]
xor edx, edx
cmp eax, edx
jne 0x41bb96
xor eax, eax
mov byte [eax + 0x4c9f00], al
inc eax
cmp eax, 0x100
jl 0x41bb7e
mov dword [0x4ca000], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4c9f00
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41bc27
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 0x41bbfa
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 0x41bbc8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41bca0
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 0x41bcf3
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 0x41bcda
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