joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401990
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
sub esp, 0x14c
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push edi
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x18]
mov edx, ecx
mov ecx, 0x50
mov dword [esp + 0x10], edx
add edx, 5
rep stosd dword es:[edi], eax
push edx
call fcn.004033cf
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0xc], ebp
je 0x401b52
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push esi
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x401b48
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x401b41
cmp byte [esp + 0x48], 0x2e
je 0x401b2d
lea edi, [esp + 0x48]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [ecx + edx + 2]
push eax
call fcn.004033cf
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x401b29
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
mov byte [ebp], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebp
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40a2b0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test byte [esp + 0x20], 0x10
je 0x401b10
call fcn.00401990
add esp, 4
jmp 0x401b16
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebp
call fcn.004033a0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x1c]
add esp, 4
jmp 0x401b2d
mov ebp, dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x401a50
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call fcn.004033a0
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop ebp
mov al, 1
pop ebx
add esp, 0x14c
ret
Function at 0x401b70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x800
push ebp
push esi
push edi
lea eax, [esp + 0x40c]
push 0x104
push eax
mov byte [esp + 0x14], 0
mov byte [esp + 0x414], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x40c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x401c04
mov edi, 0x40a2b0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.vpninst_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403443
add esp, 8
cmp eax, 0xffffffff
pop edi
pop esi
pop ebp
je 0x401c55
lea ecx, [esp]
push ecx
call fcn.00401990
add esp, 4
xor eax, eax
add esp, 0x800
ret
Function at 0x401c60
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0xc00
push ebp
push esi
push edi
call fcn.00401b70
mov eax, dword [esp + 0xc18]
push eax
call fcn.00403512
add esp, 4
lea ecx, [esp + 0x80c]
mov ebp, eax
mov byte [esp + 0xc], 0
push 0x104
push ecx
mov byte [esp + 0x414], 0
mov byte [esp + 0x814], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x80c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x401d13
mov edi, 0x40a2b0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.gwinst_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403443
add esp, 8
cmp eax, 0xffffffff
jne 0x401d61
lea ecx, [esp + 0xc]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [esp + 0xc]
push edx
call fcn.00401860
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x410]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.begin_n
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x414]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.compctrl.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00402dd1
add esp, 8
lea eax, [esp + 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x401e1e
push str.ComponentSync_c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
jne 0x401e02
push str.Cant_fine_ComponentSync_function._n
call fcn.00402dd1
add esp, 4
push ebp
push 0xffffffffffffffff
push 1
lea ecx, [esp + 0x18]
push 0
push ecx
call esi
add esp, 0x14
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0xc00
ret 0x10
Function at 0x403443
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403463
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004066a7
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x403484
test byte [esp + 8], 2
je 0x403484
mov dword [0x40cc24], 0xd
mov dword [0x40cc28], 5
jmp 0x40345f
xor eax, eax
ret

Function at 0x407499
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40aa70
cmp edx, dword [eax]
je 0x4074bb
add eax, 8
inc ecx
cmp eax, 0x40ab00
jl 0x4074ac
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40aa70]
jne 0x4075e9
mov eax, dword [0x40cc78]
cmp eax, 1
je 0x4075c3
test eax, eax
jne 0x4074ec
cmp dword [0x40a3b4], 1
je 0x4075c3
cmp edx, 0xfc
je 0x4075e9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407523
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00408400
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407660
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407566
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407660
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409534
push edi
call fcn.00403520
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00408400
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408410
lea eax, [ebp - 0xa0]
push 0x409514
push eax
call fcn.00408410
push dword [esi + 0x40aa74]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408410
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004084f0
add esp, 0x2c
pop edi
jmp 0x4075e9
lea eax, [ebp + 8]
lea esi, [esi + 0x40aa74]
push 0
push eax
push dword [esi]
call fcn.00407660
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x734d7a
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg dword [esp + 0xc], edi
mov eax, 0x343745c0
lea eax, [ebx + edi]
neg edx
sub esp, 0x16
shl dh, 3
jmp fcn.00734a2d
call fcn.00734d37
movsd dword es:[edi], dword [esi]
cmp al, 0xd2
mov ch, 0x44
not byte [ebp + 0xbf89909]
mov dh, 0x35
stosb byte es:[edi], al
cmp byte [edi - 0x56], bl
pop ds
dec ebx
loop 0x734d40
sub esp, 0x14
add esp, 0xb
push word [esp + 2]
lea esp, [esp + 3]
jmp 0x734acc
neg edx
jmp 0x734da0
add ebp, ecx
rol dword [eax], cl
add byte [eax], al
int1
xchg edx, eax
sub esp, 0x12
jns 0x734d09
js 0x734df3
sal byte [edx - 0x20], 1
xchg dword [edx - 0xb], esi
ja 0x734d73
xor byte [ecx - 0x40], 0xea
add eax, 0x20cea7b4
dec byte [ebx + 0x74ff2404]
and al, 0x18
ret 0x1c
xchg dword [esp], edx
call fcn.00734f18

Function at 0x7358ab
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop word [esp + 5]
jmp 0x735895
lea edx, [esi*4]
clc
jno 0x73583d
jo 0x735860
mov ss, word [edi]
xchg edx, esp
adc dword [edx + 0x791e8814], ebp
mov byte [edx - 0x46], cl
and eax, 0xec2fdcb5
aam 0x47
out dx, al

Function at 0x753d18
Capabilities:
Encrypt data using aes

Disassembly:
mov eax, dword [eax*4 + 0x7316c4]
bsr bx, cx
mov bl, byte [esp]
jmp 0x753d56
push esp
bswap edi
jmp 0x753d01
mov edi, edx
mov bx, 0x43ef
bswap ebp
mov bp, word [esp]
jmp 0x753da2
lea esp, [esp + 8]
xor eax, 0x1000000
inc bl
sub esp, 0x14
jmp 0x753d38
mov edi, dword [edi*4 + 0x7316c4]
xchg ebp, ebx
jmp 0x753e2d
and edi, esi
sub esp, 4
mov bp, word [esp + 2]
pop word [esp]
lea esp, [esp + 2]
jmp 0x753d66
shr edi, 8
sub esp, 0x14
mov dword [esp + 9], ebp
jmp 0x753d84
mov edi, edx
lea ebp, [eax + 0x4246bcf9]
clc
add ebp, ebp
jmp 0x753e01
xor eax, edi
mov di, 0x29d1
jmp 0x753e13
mov ebx, dword [ecx + 4]
and eax, 0xff000000
lea ebp, [edi + ebp]
xor eax, edi
jmp 0x753dcc
shr edi, 0x18
clc
mov bp, word [esp]
movzx edi, byte [edi*4 + 0x7316c4]
jmp 0x753dd9
mov edi, edx
cmc
dec bp
mov ebp, 0xa7dac670
jmp 0x753ef5
lea esp, [esp + 0x28]
and edi, 0xff0000
mov ebx, 0xfb9f01e2
btc ebp, ebx
jmp 0x753df2
and edi, esi
Function at 0x401921
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00401ad1
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 0x401a1f
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 0x4019c2
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x401a05
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x4019d9
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4019f4
test al, 0x40
je 0x4019eb
mov ecx, dword [edi + 0x20]
jmp 0x4019f2
test al, 0x80
je 0x401a05
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x401a05
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 0x401991
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40f510
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46dc7b
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.004626f9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f592
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00460610
mov eax, dword [eax]
push 0x4a4210
push eax
call fcn.00453244
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00462984
test bl, bl
je 0x40f592
push 0x4a4210
lea ecx, [esp + 0xc]
call fcn.00462d14
push 0x4a7d84
lea ecx, [esp + 0xc]
call fcn.00462d14
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 0x40f5ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00462984
jmp 0x40f699
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 0x40f652
lea edx, [esp + 0x7c]
push 0x4a7d80
push edx
call fcn.00453244
add esp, 8
test eax, eax
je 0x40f652
lea eax, [esp + 0x7c]
push 0x4a7d7c
push eax
call fcn.00453244
add esp, 8
test eax, eax
je 0x40f652
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 0x40f5e2
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.00462984
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 0x40fe90
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 0x40fef2
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 0x40ff00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46dcfb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ae650]
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 0x410038
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ff66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462984
xor eax, eax
jmp 0x4100af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00462ac1
push esi
lea ecx, [esp + 0xc]
call fcn.00462d50
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4a7dbc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41008d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040fe90
test eax, eax
jne 0x41008d
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.0040fe90
test eax, eax
jne 0x41008d
lea eax, [esp + 0x14]
push 0x4a7d98
push eax
call fcn.00454280
mov esi, eax
add esp, 8
test esi, esi
jne 0x41006c
lea ecx, [esp + 0x14]
push 0x4a7d94
push ecx
call fcn.00454200
mov esi, eax
add esp, 8
test esi, esi
jne 0x41006c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41006f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00462a71
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ff7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462984
xor eax, eax
jmp 0x4100af
mov byte [esi], 0
push 0x4a7d90
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.00462984
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 0x420650
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 0x4206be
cmp si, 0x69
ja 0x4206be
add esi, 0xffd0
cmp si, 0x11
je 0x42068e
push 0x11
call edi
test ax, ax
jge 0x42068e
or esi, 0x2000
cmp si, 0x10
je 0x4206a3
push 0x10
call edi
test ax, ax
jge 0x4206a3
or esi, 0x4000
cmp si, 0x12
je 0x4206b8
push 0x12
call edi
test ax, ax
jge 0x4206b8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4206cb
mov esi, 0xbd
jmp 0x42067f
cmp si, 0x6e
jne 0x4206d8
mov esi, 0xbe
jmp 0x42067f
cmp si, 0x6f
jne 0x420679
mov esi, 0xbf
jmp 0x42067f

Function at 0x421df0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4becd0]
xor edx, edx
cmp eax, edx
jne 0x421e16
xor eax, eax
mov byte [eax + 0x4bebd0], al
inc eax
cmp eax, 0x100
jl 0x421dfe
mov dword [0x4becd0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4bebd0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421ea7
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 0x421e7a
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 0x421e48
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421f20
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 0x421f73
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 0x421f5a
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 0x4289b0
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 0x428b48
cmp ebp, ebx
jle 0x428b48
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 0x428a0e
dec eax
or eax, 0xfffffff8
inc eax
je 0x428a15
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x428a24
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x428a2b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004626c5
add esp, 4
cmp eax, ebx
je 0x428a4c
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.004626c5
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 0x428b3e
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 0x428b25
mov al, byte [edx]
cmp al, 0xc0
jbe 0x428b11
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x428b06
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 0x428b14
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x428b14
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x428ab0
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 0x428aa1
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