joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ccb6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0x10
lea eax, [ebp - 0x10]
push 0
mov esi, ecx
push eax
call fcn.00417010
mov ax, word [ebp + 0xc]
add esp, 0xc
mov word [ebp - 0xe], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0
mov edi, dword [sym.imp.WSOCK32.dll_sendto]
push dword [ebp + 0x14]
mov word [ebp - 0x10], 2
push dword [ebp + 0x10]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x40cd63
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
sub eax, 0x2742
je 0x40cd28
sub eax, 0xf
jne 0x40cd5f
cmp dword [0x422258], 0
jne 0x40cd5f
mov dword [0x422258], 1
jmp 0x40cd5f
mov ecx, esi
call fcn.0040c8a5
cmp eax, 1
jne 0x40cd5f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40cd48
push eax
mov ecx, esi
call fcn.0040c963
cmp eax, 1
jne 0x40cd5f
lea eax, [ebp - 0x10]
push 0x10
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x40cd63
xor eax, eax
jmp 0x40cd66
push 1
pop eax
pop edi
pop esi
leave
ret 0x10

Function at 0x40cda7
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 1
lea eax, [ebp - 0xc]
pop edi
mov dword [ebp - 8], ecx
push eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0xc], 0x10
push dword [ecx + 4]
mov dword [ebp - 0x10], edi
call dword [sym.imp.WSOCK32.dll_accept]
mov esi, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x40ce68
push ebx
mov ebx, dword [sym.imp.WSOCK32.dll_setsockopt]
lea ecx, [ebp - 0x10]
push 4
push ecx
push edi
push 0xffff
push eax
call ebx
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x18], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], edi
movzx eax, word [ebp - 0x1e]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x31c]
test eax, eax
mov dword [ebp - 4], eax
jle 0x40ce3e
lea eax, [ebp - 4]
push 4
push eax
push 0x1001
push 0xffff
push dword [esi + 8]
call ebx
test eax, eax
je 0x40ce3e
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
jmp 0x40ce14
mov ecx, dword [ebp - 8]
push esi
push dword [ebp + 8]
call fcn.0040cf7f
test eax, eax
pop ebx
je 0x40ce5f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov eax, edi
jmp 0x40ce6a
push dword [esi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40ce70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
and dword [esi + 0x14], 0
push 1
pop edi
mov dword [ebp - 8], ecx
push edi
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x40cf77
lea ecx, [ebp - 4]
mov dword [ebp - 4], edi
push ecx
push 0x8004667e
push eax
call dword [sym.imp.WSOCK32.dll_ioctlsocket]
test eax, eax
jne 0x40cf77
push ebx
lea eax, [ebp - 4]
push 4
push eax
mov ebx, 0xffff
push edi
mov edi, dword [sym.imp.WSOCK32.dll_setsockopt]
push ebx
push dword [esi + 8]
call edi
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x31c]
test eax, eax
mov dword [ebp + 0xc], eax
jle 0x40cf02
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1002
push ebx
push dword [esi + 8]
call edi
test eax, eax
je 0x40cf02
mov eax, dword [ebp + 0xc]
cdq
sub eax, edx
sar eax, 1
jmp 0x40cedc
mov ecx, dword [ebp - 8]
push esi
push dword [ebp + 8]
call fcn.0040cf7f
test eax, eax
pop ebx
je 0x40cf6e
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00417010
mov ax, word [esi + 0x10]
add esp, 0xc
mov word [ebp - 0x16], ax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [esi + 8]
mov word [ebp - 0x18], 2
call dword [sym.imp.WSOCK32.dll_connect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x18], eax
jne 0x40cf5d
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x40cf6e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
pop eax
jmp 0x40cf79
push dword [esi + 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
xor eax, eax
pop edi
pop esi
leave
ret 8
Function at 0x40ea71
Capabilities:
Create thread
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x421c]
mov ecx, 0x42158c
cmp dword [eax + 8], edi
jne 0x40ea95
mov ecx, 0x421580
mov eax, dword [eax + 4]
push ebx
push edi
push dword [eax + 8]
lea eax, [ebp - 0x108]
push dword [esi + 0xb0]
push ecx
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esi + 0x421c]
add esp, 0x14
mov eax, dword [eax]
push edi
push edi
mov dword [eax + 0x18], 1
mov eax, dword [esi + 0x421c]
mov ecx, dword [esi + 0x38]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 0xc]
neg eax
sbb eax, eax
lea ebx, [edx + 1]
and eax, 2
mov dword [ecx + 0xc], ebx
lea ebx, [ebp - 0x108]
add eax, 0x60
push ebx
push eax
lea eax, [ebp - 0x508]
push edx
push eax
call fcn.0040c9f1
mov eax, dword [esi + 0x421c]
mov ecx, dword [esi + 0x38]
push dword [eax]
push dword [esi + 0x20]
call fcn.0040cfb3
lea eax, [ebp - 0x508]
push edi
push eax
call fcn.004176d0
pop ecx
push eax
lea eax, [ebp - 0x508]
push eax
mov eax, dword [esi + 0x421c]
mov eax, dword [eax]
push dword [eax + 8]
call dword [sym.imp.WSOCK32.dll_send]
mov ebx, eax
lea eax, [ebp - 0x508]
push eax
call fcn.004176d0
pop ecx
cmp ebx, eax
pop ebx
jl 0x40ec3f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x421c]
mov ecx, dword [ecx]
mov dword [ecx + 0x20], eax
mov eax, dword [esi + 0x421c]
mov eax, dword [eax]
mov ecx, dword [eax + 0x20]
mov dword [eax + 0x1c], ecx
mov eax, dword [esi + 0x421c]
cmp dword [eax + 0x70], edi
jne 0x40eb7d
mov ecx, dword [eax]
mov ecx, dword [ecx + 0x1c]
mov dword [eax + 0x70], ecx
mov eax, dword [esi + 0x421c]
cmp dword [eax + 8], edi
jne 0x40eb93
push dword [eax + 4]
lea ecx, [eax + 0x10]
call fcn.0040ec4b
mov eax, dword [esi + 0x418c]
push dword [eax + 0x318]
call fcn.00416ff4
pop ecx
mov ecx, dword [esi + 0x421c]
mov dword [ecx + 0x50], eax
mov eax, dword [esi + 0x421c]
cmp dword [eax + 8], edi
jne 0x40ec14
mov ecx, dword [eax + 0x28]
or ecx, dword [eax + 0x2c]
jne 0x40ec14
mov ecx, esi
call fcn.0040f306
test eax, eax
je 0x40ebe4
push 1
mov ecx, esi
call fcn.0040edc9
mov eax, dword [esi + 0x421c]
mov dword [eax + 0x7c], 8
jmp 0x40ebf1
mov eax, dword [esi + 0x421c]
mov dword [eax + 0x7c], 9
mov ecx, dword [esi + 0x421c]
mov eax, dword [esi]
push 0x20
mov ecx, dword [ecx]
push dword [ecx + 8]
mov ecx, esi
push 0x483
call dword [eax + 0xa0]
push 1
pop eax
pop edi
pop esi
leave
ret
or dword [eax + 0x58], 0xffffffff
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40eca7
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esi + 0x421c]
mov dword [ecx + 0x58], eax
mov eax, dword [esi + 0x421c]
cmp dword [eax + 0x58], edi
jne 0x40ec0d
push edi
mov ecx, esi
call fcn.0040f8ec
xor eax, eax
jmp 0x40ec10
Function at 0x40f306
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, dword [esi + 0x421c]
cmp dword [eax + 8], edi
lea edx, [eax + 0x184]
jne 0x40f32c
lea edx, [eax + 0x80]
mov ecx, dword [eax + 0x1c]
cmp ecx, edi
je 0x40f337
mov eax, ecx
jmp 0x40f33a
mov eax, dword [eax + 0x20]
push eax
lea eax, [ebp - 0x400]
push edx
push eax
call fcn.0040c01a
add esp, 0xc
cmp eax, 0x104
jl 0x40f363
mov eax, dword [esi]
push edi
push 0x421594
lea ecx, [ebp - 0x400]
push ecx
jmp 0x40f3dd
mov eax, dword [esi + 0x421c]
add eax, 0x10
mov ecx, dword [eax + 0xc]
cmp ecx, edi
je 0x40f377
mov eax, ecx
jmp 0x40f37a
mov eax, dword [eax + 0x10]
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.0040bfe2
pop ecx
test eax, eax
pop ecx
jne 0x40f397
mov eax, dword [esi]
push edi
push 0x4215b0
jmp 0x40f35a
push edi
push 0x80
push 2
push edi
push 3
lea eax, [ebp - 0x400]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi + 0x421c]
mov dword [ecx + 0x54], eax
mov eax, dword [esi + 0x421c]
cmp dword [eax + 0x54], 0xffffffff
jne 0x40f3e9
cmp dword [eax + 8], edi
jne 0x40f3e5
mov eax, dword [esi]
lea ecx, [ebp - 0x400]
push edi
push ecx
push 0x4215a0
mov ecx, esi
call dword [eax + 0x90]
xor eax, eax
jmp 0x40f401
test byte [eax + 0x25], 1
je 0x40f3fe
lea eax, [ebp - 0x400]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 1
pop eax
pop edi
pop esi
leave
ret
Function at 0x40f405
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
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x421c]
mov edi, dword [ecx + 0x40]
mov ebx, dword [ecx + 0x28]
sub edi, dword [ecx + 0x48]
sub ebx, dword [ecx + 0x40]
mov eax, dword [ecx + 0x2c]
sbb eax, dword [ecx + 0x44]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x418c]
mov eax, dword [eax + 0x318]
sub eax, edi
cdq
cmp dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
jl 0x40f44e
jg 0x40f448
cmp ebx, eax
jbe 0x40f44e
mov ebx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ecx + 0x50]
push 0
add eax, edi
push ebx
push eax
mov eax, dword [ecx]
push dword [eax + 8]
call dword [sym.imp.WSOCK32.dll_recv]
mov ebx, eax
test ebx, ebx
jle 0x40f567
mov eax, dword [esi + 0x421c]
cmp dword [eax + 0x54], 0xffffffff
jne 0x40f487
mov ecx, esi
call fcn.0040f306
test eax, eax
je 0x40f567
mov ecx, dword [esi + 0x421c]
mov eax, ebx
cdq
add edi, ebx
mov ebx, edx
mov edx, dword [ecx + 0x40]
mov dword [ebp - 0x10], eax
add edx, eax
mov eax, dword [ecx + 0x44]
adc eax, ebx
cmp eax, dword [ecx + 0x2c]
jg 0x40f4bb
jl 0x40f4ad
cmp edx, dword [ecx + 0x28]
jae 0x40f4bb
mov eax, dword [esi + 0x418c]
cmp dword [eax + 0x318], edi
jne 0x40f4e7
lea eax, [ebp - 4]
push 0
push eax
push edi
push dword [ecx + 0x50]
push dword [ecx + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x40f551
cmp edi, dword [ebp - 4]
jne 0x40f551
mov ecx, dword [esi + 0x421c]
mov eax, edi
cdq
add dword [ecx + 0x48], eax
adc dword [ecx + 0x4c], edx
mov eax, dword [esi + 0x421c]
mov ecx, dword [ebp - 0x10]
add dword [eax + 0x40], ecx
adc dword [eax + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0x421c]
mov edx, eax
mov ecx, dword [ecx]
sub edx, dword [ecx + 0x20]
cmp edx, 0x3e8
jb 0x40f527
mov dword [ecx + 0x20], eax
mov eax, dword [esi]
push 0
push 0
push 0x470
mov ecx, esi
call dword [eax + 0xa0]
mov esi, dword [esi + 0x421c]
mov eax, dword [esi + 0x44]
cmp eax, dword [esi + 0x2c]
jl 0x40f54c
jg 0x40f53f
mov eax, dword [esi + 0x40]
cmp eax, dword [esi + 0x28]
jb 0x40f54c
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
add eax, 8
mov dword [esi + 0x7c], eax
push 1
pop eax
jmp 0x40f569
mov eax, dword [esi]
push 0
push 0x42085c
push 0x4215c0
mov ecx, esi
call dword [eax + 0x90]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4159a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x4159cb
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x415a27
push 0x140
push 0
push esi
call fcn.00417010
add esp, 0xc
push 0
push 0x2000000
push 3
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x415a2c
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x415a2c
lea eax, [ebp - 0x34]
push 0x1c
push eax
push esi
call fcn.00417070
add esp, 0xc
push 1
pop eax
jmp 0x415a41
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov eax, ecx
pop edi
pop esi
leave
ret

Function at 0x416642
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call fcn.004176d0
pop ecx
inc eax
push eax
mov eax, dword [esi + 4]
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop esi
inc eax
ret 8

Function at 0x4166a3
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
mov eax, dword [ecx + 4]
push dword [esp + 0xc]
push 3
push 0
push dword [esp + 0x14]
push dword [ecx + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
inc eax
ret 0xc
Function at 0x419e3d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x421f98
cmp edx, dword [eax]
je 0x419e5f
add eax, 8
inc ecx
cmp eax, 0x422028
jl 0x419e50
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x421f98]
jne 0x419f8d
mov eax, dword [0x4222b8]
cmp eax, 1
je 0x419f67
test eax, eax
jne 0x419e90
cmp dword [0x421cd4], 1
je 0x419f67
cmp edx, 0xfc
je 0x419f8d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x419ec7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00417440
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004176d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x419f0a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004176d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41ce18
push edi
call fcn.004182d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00417440
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00417450
lea eax, [ebp - 0xa0]
push 0x41cdf8
push eax
call fcn.00417450
push dword [esi + 0x421f9c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00417450
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041a4fb
add esp, 0x2c
pop edi
jmp 0x419f8d
lea eax, [ebp + 8]
lea esi, [esi + 0x421f9c]
push 0
push eax
push dword [esi]
call fcn.004176d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402122
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.00450720
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402167
push ebx
call fcn.0044fd2d
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402192
push 6
call fcn.0044fd33
add esp, 4
push 0x80000101
push 0
push 0x5c
push 1
mov ebx, 0x140
call fcn.00450530
add esp, 0x10
mov dword [ebp - 8], eax
push dword [ebp - 8]
push dword [ebp - 4]
mov ecx, 2
call fcn.004017f3
add esp, 8
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4021d9
push ebx
call fcn.0044fd2d
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x4021e1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4021f2
push ebx
call fcn.0044fd2d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret

Function at 0x4021f7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x402224
push 6
call fcn.0044fd33
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x40223b
mov eax, 1
jmp 0x402245
mov eax, 0
jmp 0x402245
mov esp, ebp
pop ebp
ret 4

Function at 0x402302
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x40232f
push 6
call fcn.0044fd33
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402346
mov eax, 1
jmp 0x402350
mov eax, 0
jmp 0x402350
mov esp, ebp
pop ebp
ret 4

Function at 0x402356
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402392
push 6
call fcn.0044fd33
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4023a9
mov eax, 1
jmp 0x4023b3
mov eax, 0
jmp 0x4023b3
mov esp, ebp
pop ebp
ret 8

Function at 0x4026bd
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4026ea
push 6
call fcn.0044fd33
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402701
mov eax, 1
jmp 0x40270b
mov eax, 0
jmp 0x40270b
mov esp, ebp
pop ebp
ret 4
Function at 0x402711
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.00450720
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x402756
push ebx
call fcn.0044fd2d
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0x200
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x402781
push 6
call fcn.0044fd33
add esp, 4
push 0x80000101
push 0
push 0x5c
push 1
mov ebx, 0x140
call fcn.00450530
add esp, 0x10
mov dword [ebp - 8], eax
push reloc.WSOCK32.dll_bind
push 0
push 0
push 0
push 0
push 0
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4027c7
mov eax, 0x488335
push eax
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4027db
mov eax, 0x488335
push eax
push 4
mov ebx, 0x14c
call fcn.004509c0
add esp, 0x34
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x402801
push ebx
call fcn.0044fd2d
add esp, 4
push 0x80000301
push 0
push dword [ebp - 0xc]
push reloc.WSOCK32.dll_connect
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40281e
mov eax, 0x488335
push eax
push 2
mov ebx, 0x134
call fcn.00450a70
add esp, 0x1c
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
jmp 0x40283c
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40284d
push ebx
call fcn.0044fd2d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x404995
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
call fcn.00404b20
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4049e4
push ebx
call fcn.0044fd2d
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x404b1a
call fcn.00404db3
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x404b1a
mov eax, str.B4DBA4C1DCC07018456EBDD0D2F72132E7B6A364CC8BE892D2CB4530126DF581B9F3B7C570CE3E00DAE3ACD0BAB37B553B19C8CCB58FB99566484C79DCEFD1DEDFD2643C481EBBFBC6D1CAD17C054111B885DE88A190081C2742DE8ED1C8DC9E60282047AB96
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00403e31
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404a24
push ebx
call fcn.0044fd2d
add esp, 4
push 0x30
mov eax, 0x4888e7
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call fcn.00404139
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404a51
push ebx
call fcn.0044fd2d
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x404a61
push ebx
call fcn.0044fd2d
add esp, 4
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404a8d
push 6
call fcn.0044fd33
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404ab2
push 6
call fcn.0044fd33
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jl 0x404af8
mov eax, dword [ebp - 0xc]
xor ecx, ecx
inc ecx
push ecx
push eax
cmp ecx, eax
jg 0x404af5
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404af1
push 6
call fcn.0044fd33
add esp, 4
pop eax
pop ecx
jmp 0x404ac4
add esp, 8
mov dword [ebp - 0x10], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x404b1a
push 6
call fcn.0044fd33
add esp, 4
mov esp, ebp
pop ebp
ret 4
Function at 0x406f4d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.00450720
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x406f92
push ebx
call fcn.0044fd2d
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x200
push dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
push dword [ebx]
mov ebx, dword [ebp + 0x10]
push dword [ebx]
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x406fd1
push 6
call fcn.0044fd33
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x406fff
mov eax, dword [ebp - 4]
test eax, eax
je 0x406ffa
push eax
mov ebx, eax
call fcn.00401594
inc eax
push eax
call fcn.0044fd27
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x407022
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebx]
test eax, eax
je 0x40701d
push eax
mov ebx, eax
call fcn.00401594
inc eax
push eax
call fcn.0044fd27
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x407022
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x407033
push ebx
call fcn.0044fd2d
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x14