joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4adc60
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4addaa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004ad118
xor eax, eax
push ebp
push 0x4add8d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4adcc5
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4adcc5
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4add77
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4adcd8
call fcn.004047a8
jmp 0x4add94
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4add77
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4add77
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403fc0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4add77
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040d90c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x4addc4
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x529784]
mov dl, 1
mov eax, dword [0x4ac418]
call fcn.0040e248
call fcn.004046fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4add94
mov eax, dword [ebp - 4]
call fcn.004ad124
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4addb1
lea eax, [ebp - 0x28]
call fcn.00404dc8
ret
Function at 0x4b2320
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b234e
mov eax, ebx
call fcn.004b2dd4
cmp dword [ebx + 0x40], 0
je 0x4b2347
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b23bf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b23b1
cmp dword [ebx + 8], 0
je 0x4b2370
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4b2382
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b23b1
cmp dword [ebx + 8], 0
je 0x4b2363
cmp eax, 3
je 0x4b2395
dec eax
jne 0x4b2363
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b2363
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b2363
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b23dd
cmp dword [ebx + 0x14], 0xcc
je 0x4b23dd
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b23e8
pop ebx
ret

Function at 0x4efd04
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4efd5e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004efcf4
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004ed5e4
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004ed0fc
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4efd65
lea eax, [ebp - 4]
call fcn.00404dc8
ret
Function at 0x4f8808
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4f882c
cmp eax, 0
jbe 0x4f8935
jmp 0x4f8832
jle 0x4f8935
mov eax, dword [ebp + 8]
add eax, 0xffffff04
xor ecx, ecx
mov edx, 0xf8
call fcn.004036e4
mov eax, dword [ebp + 8]
lea edx, [eax - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x40
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x40
jne 0x4f8935
mov eax, dword [ebp + 8]
cmp word [eax - 0x13c], 0x5a4d
jne 0x4f8935
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x100]
jne 0x4f8935
mov eax, dword [ebp + 8]
lea edx, [eax - 0xfc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 4
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 4
jne 0x4f8935
mov eax, dword [ebp + 8]
cmp dword [eax - 0xfc], 0x4550
jne 0x4f8935
mov eax, dword [ebp + 8]
lea edx, [eax - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x14
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x14
jne 0x4f8935
mov eax, dword [ebp + 8]
cmp word [eax - 0xf8], 0x14c
jne 0x4f8935
mov eax, dword [ebp + 8]
movzx ecx, word [eax - 0xe8]
mov eax, dword [ebp + 8]
lea edx, [eax - 0xe4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp + 8]
movzx edx, word [edx - 0xe8]
cmp eax, edx
jne 0x4f8935
mov bl, 1
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x4f8f84
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xf6]
test ax, ax
jbe 0x4f9064
mov edx, dword [ebp + 8]
movzx eax, ax
dec eax
test eax, eax
jl 0x4f9062
inc eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
xor edx, edx
test eax, 0x20000000
je 0x4f8ffa
test eax, 0x40000000
je 0x4f8fe6
test eax, 0x80000000
je 0x4f8fe1
or edx, 0x40
jmp 0x4f9021
or edx, 0x20
jmp 0x4f9021
test eax, 0x80000000
je 0x4f8ff5
or edx, 0x80
jmp 0x4f9021
or edx, 0x10
jmp 0x4f9021
test eax, 0x40000000
je 0x4f9012
test eax, 0x80000000
je 0x4f900d
or edx, 4
jmp 0x4f9021
or edx, 2
jmp 0x4f9021
test eax, 0x80000000
je 0x4f901e
or edx, 8
jmp 0x4f9021
or edx, 1
test eax, 0x4000000
je 0x4f902e
or edx, 0x200
mov eax, dword [ebp + 8]
add eax, 0xfffffebc
push eax
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8]
push eax
call sub.KERNEL32.DLL_VirtualProtect
inc ebx
dec dword [ebp - 4]
jne 0x4f8fb4
mov dl, 1
mov eax, edx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4fce18
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405248
xor eax, eax
push ebp
push 0x4fce93
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a648
mov eax, dword [ebp - 8]
call fcn.00405258
push eax
call sub.IMAGEHLP.DLL_MakeSureDirectoryPathExists
push 0
mov eax, dword [ebp - 4]
call fcn.00405258
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00405258
push eax
call sub.KERNEL32.DLL_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fce9a
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404dec
ret
Function at 0x4ff0f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor ebx, ebx
mov byte [ebp - 0x12], 0
xor eax, eax
mov edx, dword [ebp - 0xc]
dec edx
test edx, edx
jl 0x4ff1ce
inc edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
cmp eax, dword [ebp + 8]
jge 0x4ff1ce
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
mov byte [ebp - 0x13], 0xaa
movzx ecx, byte [ebp - 0x10]
add byte [ebp - 0x13], cl
xor dl, byte [ebp - 0x13]
lea ecx, [ebx + 2]
movzx esi, dl
shr esi, cl
mov ecx, esi
or cl, byte [ebp - 0x12]
and cl, 0x3f
mov byte [ebp - 0x11], cl
lea ecx, [ebx + 2]
push ecx
mov ecx, 8
pop esi
sub ecx, esi
movzx edx, dl
shl edx, cl
shr edx, 2
and dl, 0x3f
mov byte [ebp - 0x12], dl
add ebx, 2
cmp ebx, 6
jge 0x4ff186
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
jmp 0x4ff1c2
mov edx, dword [ebp + 8]
dec edx
cmp eax, edx
jge 0x4ff1ae
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
movzx edx, byte [ebp - 0x12]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax + 1], dl
add eax, 2
jmp 0x4ff1bc
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
xor ebx, ebx
mov byte [ebp - 0x12], 0
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x4ff120
test ebx, ebx
jle 0x4ff1e0
movzx edx, byte [ebp - 0x12]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
mov edx, dword [ebp - 8]
mov byte [edx + eax], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4ff1f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, 2
xor eax, eax
xor edi, edi
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0xc]
dec edx
test edx, edx
jl 0x4ff2ac
inc edx
mov dword [ebp - 0x14], edx
xor edx, edx
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx]
sub ecx, 0x3c
js 0x4ff240
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx]
sub cl, 0x3c
mov byte [ebp - 0xd], cl
jmp 0x4ff244
xor edi, edi
jmp 0x4ff2ac
cmp edi, dword [ebp + 8]
jge 0x4ff2ac
lea ecx, [eax + 6]
cmp ecx, 8
jl 0x4ff288
mov ecx, 6
sub ecx, esi
movzx eax, byte [ebp - 0xd]
and al, 0x3f
movzx eax, al
shr eax, cl
or al, byte [ebp - 0xe]
mov cl, 0xaa
mov ebx, edi
add cl, bl
xor al, cl
mov ecx, dword [ebp - 8]
mov byte [ecx + edi], al
inc edi
xor eax, eax
cmp esi, 6
jge 0x4ff281
add esi, 2
jmp 0x4ff288
mov esi, 2
jmp 0x4ff2a2
mov ecx, esi
movzx ebx, byte [ebp - 0xd]
shl bl, cl
and bl, byte [esi + 0x5290e6]
mov byte [ebp - 0xe], bl
mov ecx, 8
sub ecx, esi
add eax, ecx
inc edx
dec dword [ebp - 0x14]
jne 0x4ff225
mov eax, dword [ebp - 8]
mov byte [eax + edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5033dc
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x52914c]
mov eax, dword [eax]
call fcn.00405258
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
mov esi, eax
mov dword [ebx + 0x3bc], esi
push 0
push 0
push 0
push 0xf001f
push esi
call sub.KERNEL32.DLL_MapViewOfFile
mov edi, eax
mov dword [ebx + 0x3c0], edi
test edi, edi
je 0x503431
mov eax, ebx
call fcn.004598b0
mov edx, dword [ebx + 0x3c0]
mov dword [edx], eax
pop edi
pop esi
pop ebx
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Create http request

Disassembly:
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push str.___t_n
push eax
call fcn.0040294d
push str.___t_n
push 0
call fcn.0040294d
mov eax, dword [esp + 0x18]
add esp, 0x10
cmp eax, 3
jge 0x4010e2
mov eax, dword [esp + 0xc]
push str._URL_LocalFile___u_
mov ecx, dword [eax]
push ecx
push str.Usage:
mov ecx, 0x40dc98
call fcn.00401987
mov ecx, eax
call fcn.00401987
mov ecx, eax
call fcn.00401987
push 0x401830
push 0xa
mov ecx, eax
call fcn.00401840
mov ecx, eax
call fcn.00401810
push str._t_URL___ftp:__ftp.domain.com_file.txt
mov ecx, 0x40dc98
call fcn.00401987
push 0x401830
push 0xa
mov ecx, eax
call fcn.00401840
mov ecx, eax
call fcn.00401810
push str._t_or_ftp:__user:password_ftp.domain.com_file.txt
mov ecx, 0x40dc98
call fcn.00401987
push 0x401830
push 0xa
mov ecx, eax
call fcn.00401840
mov ecx, eax
call fcn.00401810
push str._t_LocalFile___c:_temp_file.txt
mov ecx, 0x40dc98
call fcn.00401987
push 0x401830
push 0xa
mov ecx, eax
call fcn.00401840
mov ecx, eax
call fcn.00401810
push str._t___u____use_UI_to_authenticate_with_proxy
jmp 0x40117e
mov edi, dword [esp + 0xc]
cmp eax, 4
jne 0x401132
mov eax, dword [edi + 0xc]
push ebx
push esi
mov esi, 0x40b084
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40111d
test cl, cl
je 0x401119
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40111d
add eax, 2
add esi, 2
test cl, cl
jne 0x4010f5
xor eax, eax
jmp 0x401122
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebx
test eax, eax
jne 0x401132
mov dword [0x40dc88], 1
push 0x400000
push 0
push 0
push 0
push str.Simple_Ftp
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
jne 0x401164
push str.InternetOpen
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00401590
add esp, 8
xor eax, eax
pop edi
ret
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push edx
push eax
call fcn.004011b0
add esp, 0xc
test eax, eax
jne 0x4011a1
push str.GetRemoteFile_failed
mov ecx, 0x40dc98
call fcn.00401987
push 0x401830
push 0xa
mov ecx, eax
call fcn.00401840
mov ecx, eax
call fcn.00401810
xor eax, eax
pop edi
ret
mov eax, 1
pop edi
ret
Function at 0x404c01
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40b710
cmp edx, dword [eax]
je 0x404c23
add eax, 8
inc ecx
cmp eax, 0x40b7a0
jl 0x404c14
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40b710]
jne 0x404d51
mov eax, dword [0x40dd70]
cmp eax, 1
je 0x404d2b
test eax, eax
jne 0x404c54
cmp dword [0x40b3c4], 1
je 0x404d2b
cmp edx, 0xfc
je 0x404d51
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404c8b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407820
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004031a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404cce
lea eax, [ebp - 0x1a4]
push eax
call fcn.004031a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409510
push edi
call fcn.00408160
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407820
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407830
lea eax, [ebp - 0xa0]
push 0x4094f0
push eax
call fcn.00407830
push dword [esi + 0x40b714]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407830
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004080cf
add esp, 0x2c
pop edi
jmp 0x404d51
lea eax, [ebp + 8]
lea esi, [esi + 0x40b714]
push 0
push eax
push dword [esi]
call fcn.004031a0
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 0x40b5f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x486a0b
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.0047b0be
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b672
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00478ede
mov eax, dword [eax]
push 0x49f204
push eax
call fcn.00458a04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047b349
test bl, bl
je 0x40b672
push 0x49f204
lea ecx, [esp + 0xc]
call fcn.0047b6d9
push 0x4a2d6c
lea ecx, [esp + 0xc]
call fcn.0047b6d9
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 0x40b6ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047b349
jmp 0x40b779
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 0x40b732
lea edx, [esp + 0x7c]
push 0x4a2d68
push edx
call fcn.00458a04
add esp, 8
test eax, eax
je 0x40b732
lea eax, [esp + 0x7c]
push 0x4a2d64
push eax
call fcn.00458a04
add esp, 8
test eax, eax
je 0x40b732
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 0x40b6c2
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.0047b349
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 0x40bf70
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 0x40bfd2
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 0x40bfe0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x486a8b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a9990]
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 0x40c118
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40c046
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047b349
xor eax, eax
jmp 0x40c18f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047b486
push esi
lea ecx, [esp + 0xc]
call fcn.0047b715
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 0x40c16d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040bf70
test eax, eax
jne 0x40c16d
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.0040bf70
test eax, eax
jne 0x40c16d
lea eax, [esp + 0x14]
push 0x4a2d80
push eax
call fcn.00459a50
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c14c
lea ecx, [esp + 0x14]
push 0x4a2d7c
push ecx
call fcn.004599d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c14c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40c14f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047b436
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40c05e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047b349
xor eax, eax
jmp 0x40c18f
mov byte [esi], 0
push 0x4a2d78
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.0047b349
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 0x41cbe0
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 0x41cc4e
cmp si, 0x69
ja 0x41cc4e
add esi, 0xffd0
cmp si, 0x11
je 0x41cc1e
push 0x11
call edi
test ax, ax
jge 0x41cc1e
or esi, 0x2000
cmp si, 0x10
je 0x41cc33
push 0x10
call edi
test ax, ax
jge 0x41cc33
or esi, 0x4000
cmp si, 0x12
je 0x41cc48
push 0x12
call edi
test ax, ax
jge 0x41cc48
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41cc5b
mov esi, 0xbd
jmp 0x41cc0f
cmp si, 0x6e
jne 0x41cc68
mov esi, 0xbe
jmp 0x41cc0f
cmp si, 0x6f
jne 0x41cc09
mov esi, 0xbf
jmp 0x41cc0f

Function at 0x41e300
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4bae48]
xor edx, edx
cmp eax, edx
jne 0x41e326
xor eax, eax
mov byte [eax + 0x4bad48], al
inc eax
cmp eax, 0x100
jl 0x41e30e
mov dword [0x4bae48], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4bad48
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e3b7
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 0x41e38a
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 0x41e358
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e430
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 0x41e483
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 0x41e46a
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