joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4026f0
Capabilities:
Copy file
Create service
Delete file
Get common file path
Persist via windows service

Disassembly:
sub esp, 0x520
lea eax, [esp + 0x120]
push ebx
push ebp
push esi
push edi
push 0x400
push eax
push 0
mov ebp, 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x130]
or ecx, 0xffffffff
xor eax, eax
push 0x104
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x134]
mov cl, 0x65
mov byte [eax - 0xd], 0x77
mov byte [eax - 0xc], 0x64
mov byte [eax - 0xb], cl
mov byte [eax - 0xa], 0x6c
mov byte [eax - 9], 0x6d
mov byte [eax - 8], 0x67
mov byte [eax - 7], 0x72
mov byte [eax - 6], 0x32
mov byte [eax - 5], 0x30
mov byte [eax - 4], 0x2e
mov byte [eax - 3], cl
mov byte [eax - 2], 0x78
mov byte [eax - 1], cl
lea ecx, [esp + 0x30]
push ecx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.driversWDelMgr20.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x2c]
push 0
lea edx, [esp + 0x134]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
jne 0x40280c
push eax
push eax
lea eax, [esp + 0x18]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x520
ret
mov edi, str.filter
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x3c]
push 0
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.WDelMgr20
push str.WDelMgr20
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x4028a6
push 0
lea edx, [esp + 0x14]
push 0
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
xor ebp, ebp
call esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x520
ret
push eax
call esi
push ebx
call esi
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x520
ret
Function at 0x4028c0
Capabilities:
Start service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
call fcn.004029c0
test eax, eax
jne 0x4029ad
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x402919
push eax
push eax
lea eax, [esp + 0x30]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 4
push 0xf0015
push str.NtFsLdf20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x40296b
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
lea edx, [esp + 0x2c]
push esi
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret 4
cmp dword [esp + 0x28], 1
jne 0x402987
lea ecx, [esp + 8]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x4029a1
push eax
jmp 0x402998
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4029a1
push 1
push esi
call fcn.00402200
add esp, 8
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret 4

Function at 0x4029c0
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
jne 0x402a0c
push eax
push eax
lea eax, [esp + 0x10]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
push 0xf0015
push str.NtFsLdf20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x402a32
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x20
ret
lea edx, [esp + 0xc]
push ebx
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edx, dword [esp + 0x14]
xor ebx, ebx
cmp edx, 4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
sete bl
call esi
push edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
add esp, 0x20
ret
Function at 0x402a60
Capabilities:
Set registry value

Disassembly:
sub esp, 0x44
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
je 0x402ae2
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREFinalDataOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
je 0x402ae2
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret 4
lea ecx, [esp + 0xc]
push str.DDOption
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x50]
lea eax, [esp + 0xc]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret 4
Function at 0x402e90
Capabilities:
Set registry value

Disassembly:
sub esp, 0x44
push esi
push edi
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
je 0x402f0c
lea ecx, [esp + 8]
push ecx
push str.SOFTWAREFinalDataOptions
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 8]
push eax
push 0xf003f
push 0
push str.SOFTWAREFinalDataOptions
push 0x80000002
call esi
test eax, eax
jne 0x402fca
mov ecx, dword [esp + 0x50]
lea eax, [ecx - 1]
cmp eax, 8
ja case.default.0x402f1c
jmp dword [eax*4 + 0x402fd4]
lea edx, [esp + 0xc]
push 0x407264
push edx
jmp 0x402f83
lea eax, [esp + 0xc]
push 0x407260
push eax
jmp 0x402f83
push 0x40725c
jmp 0x402f7e
lea edx, [esp + 0xc]
push 0x407258
push edx
jmp 0x402f83
lea eax, [esp + 0xc]
push 0x407254
push eax
jmp 0x402f83
push 0x407250
jmp 0x402f7e
lea edx, [esp + 0xc]
push 0x40724c
push edx
jmp 0x402f83
lea eax, [esp + 0xc]
push 0x407248
push eax
jmp 0x402f83
push str.DataPath
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x54]
lea eax, [esp + 0xc]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret 8
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret 8

Function at 0x403000
Capabilities:
Enumerate files on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x140
lea eax, [esp]
push ebp
push edi
push eax
push ecx
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40302e
pop edi
xor eax, eax
pop ebp
add esp, 0x140
ret 4
push ebx
push esi
mov dl, byte [esp + 0x10]
test dl, 0xb7
je 0x4030ab
mov esi, 0x40726c
lea eax, [esp + 0x3c]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x403066
test cl, cl
je 0x403062
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x403066
add eax, 2
add esi, 2
test cl, cl
jne 0x403042
xor eax, eax
jmp 0x40306b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4030ab
mov esi, 0x407268
lea eax, [esp + 0x3c]
mov bl, byte [eax]
mov cl, bl
cmp bl, byte [esi]
jne 0x40309c
test cl, cl
je 0x403098
mov bl, byte [eax + 1]
mov cl, bl
cmp bl, byte [esi + 1]
jne 0x40309c
add eax, 2
add esi, 2
test cl, cl
jne 0x403078
xor eax, eax
jmp 0x4030a1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4030ab
test dl, 0x10
je 0x4030ab
inc ebp
lea edx, [esp + 0x10]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403030
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
mov eax, ebp
pop edi
pop ebp
add esp, 0x140
ret 4
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4030fc
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x403137
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x40311e
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x40312f
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x403139
inc edi
add eax, 0x28
cmp edi, esi
jb 0x403114
xor eax, eax
pop edi
pop esi
ret

Function at 0x403340
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc edi
push es
cmp ax, bx
jbe 0x403316
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x403310
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x403301
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
inc ebp
mov bl, 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.004030bc
mov bh, 0xd9
scasb al, byte es:[edi]
mov eax, 0x50a8458d
call fcn.004030cc
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.00403081
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4033aa
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx

Function at 0x4033b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.004030bc
wait
fst st(2)
mov word [ebp - 0x17af3fbb], cs
invalid

Function at 0x403414
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x88], eax
call fcn.004030bc
jno 0x403465
inc esp
sal dword [eax - 0x7717ba73], 1
pop ebp
call 0xe99dbc7d
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
arpl sp, di
invalid
Function at 0x403420
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x88], eax
call fcn.004030bc
jno 0x403465
inc esp
sal dword [eax - 0x7717ba73], 1
pop ebp
call 0xe99dbc7d
mov byte [ebp - 0x16], 0x40
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], 0xe9
mov byte [ebp - 0x13], 0xd6
mov byte [ebp - 0x12], 0xcd
mov byte [ebp - 0x11], 0xcb
mov byte [ebp - 0x10], 0xca
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
arpl sp, di
invalid
Function at 0x408d00
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x492a5b
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.004876a8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408d82
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00485582
mov eax, dword [eax]
push 0x948c74
push eax
call fcn.00477734
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00487933
test bl, bl
je 0x408d82
push 0x948c74
lea ecx, [esp + 0xc]
call fcn.00487cc3
push 0x948c80
lea ecx, [esp + 0xc]
call fcn.00487cc3
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 0x408dbe
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00487933
jmp 0x408e89
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 0x408e42
lea edx, [esp + 0x7c]
push 0x948c7c
push edx
call fcn.00477734
add esp, 8
test eax, eax
je 0x408e42
lea eax, [esp + 0x7c]
push 0x948c78
push eax
call fcn.00477734
add esp, 8
test eax, eax
je 0x408e42
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 0x408dd2
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.00487933
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 0x409680
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 0x4096e2
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 0x4096f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x492adb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x958040]
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 0x409828
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409756
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00487933
xor eax, eax
jmp 0x40989f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00487a70
push esi
lea ecx, [esp + 0xc]
call fcn.00487cff
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x948cb4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40987d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00409680
test eax, eax
jne 0x40987d
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 accept
mov ecx, edi
call fcn.00409680
test eax, eax
jne 0x40987d
lea eax, [esp + 0x14]
push 0x948c90
push eax
call fcn.004787d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40985c
lea ecx, [esp + 0x14]
push 0x948c8c
push ecx
call fcn.00478750
mov esi, eax
add esp, 8
test esi, esi
jne 0x40985c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40985f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00487a20
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40976e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00487933
xor eax, eax
jmp 0x40989f
mov byte [esi], 0
push 0x948c88
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.00487933
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 0x41a6e0
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 0x41a74e
cmp si, 0x69
ja 0x41a74e
add esi, 0xffd0
cmp si, 0x11
je 0x41a71e
push 0x11
call edi
test ax, ax
jge 0x41a71e
or esi, 0x2000
cmp si, 0x10
je 0x41a733
push 0x10
call edi
test ax, ax
jge 0x41a733
or esi, 0x4000
cmp si, 0x12
je 0x41a748
push 0x12
call edi
test ax, ax
jge 0x41a748
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41a75b
mov esi, 0xbd
jmp 0x41a70f
cmp si, 0x6e
jne 0x41a768
mov esi, 0xbe
jmp 0x41a70f
cmp si, 0x6f
jne 0x41a709
mov esi, 0xbf
jmp 0x41a70f

Function at 0x41bf60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x9687b8]
xor edx, edx
cmp eax, edx
jne 0x41bf86
xor eax, eax
mov byte [eax + 0x9686b8], al
inc eax
cmp eax, 0x100
jl 0x41bf6e
mov dword [0x9687b8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x9686b8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c017
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 0x41bfea
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 0x41bfb8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41c020
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 0x41c073
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 0x41c05a
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
Function at 0x423100
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x423298
cmp ebp, ebx
jle 0x423298
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42315e
dec eax
or eax, 0xfffffff8
inc eax
je 0x423165
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x423174
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42317b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00487674
add esp, 4
cmp eax, ebx
je 0x42319c
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00487674
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42328e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x423275
mov al, byte [edx]
cmp al, 0xc0
jbe 0x423261
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x423256
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x423264
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x423264
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x423200
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x4231f1
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret