joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033ab
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x4790ab
call fcn.0045c5c4
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [esi + 0x28], ebx
mov eax, dword [0x4a94a4]
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x24], ebx
mov dword [ebp - 4], 1
jne 0x403401
push ebx
push ebx
push ebx
push ebx
push 0xf003f
push ebx
call fcn.004027bf
test eax, eax
jne 0x403401
push ebx
push ebx
push ebx
push ebx
push 9
push ebx
mov ecx, esi
call fcn.004027bf
test eax, eax
je 0x4034bb
push edi
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
mov eax, 0x12c
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0046c86c
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov edi, 0xffff
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
and ecx, edi
cmp ecx, 0xea
jne 0x40348d
push ebx
lea ecx, [ebp - 0x10]
call fcn.0046c8bb
mov ecx, esi
call fcn.0040323d
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x14]
inc eax
push ebx
push ecx
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
call fcn.0046c86c
push eax
push dword [ebp + 0xc]
push dword [esi + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov ecx, eax
and eax, edi
or eax, 0x80070000
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [esi + 0x28], ecx
cmp dword [esi + 0x28], ebx
pop edi
lea ecx, [ebp - 0x10]
jl 0x4034b5
push 0xffffffffffffffff
call fcn.0046c8bb
mov eax, dword [ebp - 0x10]
cmp dword [eax - 8], ebx
jne 0x4034bb
push dword [0x486864]
lea ecx, [ebp - 0x10]
call fcn.0046c5c5
jmp 0x4034bb
push ebx
call fcn.0046c8bb
cmp dword [esi + 0x28], ebx
mov ecx, dword [ebp + 8]
jl 0x4034d5
lea eax, [ebp - 0x10]
push eax
call fcn.0046c1fd
mov dword [ebp - 0x18], 1
jmp 0x4034e6
push 0x4acd28
call fcn.0046c4f6
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], bl
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x403e93
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x403ea9
call fcn.00403f23
test eax, eax
je 0x403f1b
cmp dword [ebp + 0x10], 0
lea edi, [esi + 0xc]
mov ecx, edi
je 0x403eb9
push dword [ebp + 0x10]
jmp 0x403ebc
push dword [ebp + 0xc]
call fcn.0046c5c5
push 0xf003f
call fcn.004042d7
test eax, eax
pop ecx
je 0x403f1b
push dword [ebp + 0x34]
mov edi, dword [edi]
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 8]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push dword [0x4acd44]
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
xor ecx, ecx
mov dword [esi + 4], eax
test eax, eax
setne cl
push ecx
mov ecx, esi
call fcn.0040427e
test eax, eax
je 0x403f1b
xor eax, eax
inc eax
jmp 0x403f1d
xor eax, eax
pop edi
pop esi
pop ebp
ret 0x30
Function at 0x403f7c
Capabilities:
Start service

Disassembly:
push esi
push 0x10
mov esi, ecx
call fcn.0040429a
test eax, eax
je 0x403fac
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push eax
mov ecx, esi
call fcn.0040427e
test eax, eax
je 0x403fac
xor eax, eax
inc eax
jmp 0x403fae
xor eax, eax
pop esi
ret 8

Function at 0x403fb2
Capabilities:
Pause service

Disassembly:
sub esp, 0x1c
push esi
push 0x40
mov esi, ecx
call fcn.0040429a
test eax, eax
je 0x403fe4
lea eax, [esp + 4]
push eax
push 2
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040427e
test eax, eax
je 0x403fe4
xor eax, eax
inc eax
jmp 0x403fe6
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x403feb
Capabilities:
Continue service

Disassembly:
sub esp, 0x1c
push esi
push 0x40
mov esi, ecx
call fcn.0040429a
test eax, eax
je 0x40401d
lea eax, [esp + 4]
push eax
push 3
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040427e
test eax, eax
je 0x40401d
xor eax, eax
inc eax
jmp 0x40401f
xor eax, eax
pop esi
add esp, 0x1c
ret

Function at 0x404024
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push esi
push 0x20
mov esi, ecx
call fcn.0040429a
test eax, eax
je 0x404056
lea eax, [esp + 4]
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
push eax
mov ecx, esi
call fcn.0040427e
test eax, eax
je 0x404056
xor eax, eax
inc eax
jmp 0x404058
xor eax, eax
pop esi
add esp, 0x1c
ret
Function at 0x404c74
Capabilities:
Initialize winsock library

Disassembly:
mov eax, 0x4793e0
call fcn.0045c5c4
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
or dword [esi + 0x1cc], 0xffffffff
inc eax
or dword [esi + 0x1e0], 0xffffffff
mov dword [esi + 0x38], eax
mov dword [esi + 0x1f8], eax
mov eax, 0x7530
xor ebx, ebx
mov dword [esi + 0x200], eax
mov dword [esi + 0x204], eax
lea eax, [esi + 0x3c]
mov dword [ebp - 4], ebx
push eax
push 0x101
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], 2
mov dword [esi + 0x1f4], ebx
mov dword [esi + 0x1fc], ebx
mov dword [esi], vtable.CUT_WSClient.0
mov byte [esi + 0x10], bl
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x404cf6
mov dword [esi + 0x1f8], ebx
push dword [esi + 0x204]
mov ecx, esi
call fcn.00405975
push dword [esi + 0x200]
mov ecx, esi
call fcn.004059b8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x404e34
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1cc]
cmp dword [edi], 0xffffffff
je 0x404e51
push 0x10
jmp 0x404fe1
push dword [ebp + 0xc]
call fcn.00405e76
cmp eax, 1
push 0x1e
lea eax, [esi + 0x10]
je 0x404e79
push eax
mov ecx, esi
push dword [ebp + 0xc]
call fcn.00405dee
test eax, eax
je 0x404e83
push 0x64
jmp 0x404fdf
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x14]
mov dword [esi + 0x38], eax
lea eax, [esi + 0x1d0]
push 0x10
push 0
push eax
mov dword [esi + 0x34], ebx
call fcn.0045c6e0
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.dll_htons
mov word [esi + 0x1d2], ax
lea eax, [esi + 0x10]
push eax
mov word [esi + 0x1d0], bx
call sub.WSOCK32.dll_inet_addr
push 0
mov dword [esi + 0x1d4], eax
push dword [ebp + 0x18]
mov eax, dword [esi]
mov ecx, esi
push ebx
push edi
call dword [eax + 0x2c]
cmp eax, 1
jne 0x404ee1
push 0x11
jmp 0x404fdf
cmp dword [ebp + 0x10], 0
jl 0x404ef0
push 1
mov ecx, esi
call fcn.004059f4
push 0x10
lea eax, [esi + 0x1d0]
pop ebx
push ebx
push eax
push dword [edi]
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x404fa6
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x404f96
cmp dword [ebp + 0x10], 0
jl 0x404f47
mov eax, dword [esi]
push 0
push dword [ebp + 0x10]
mov ecx, esi
call dword [eax + 0x60]
test eax, eax
mov ecx, esi
je 0x404f40
mov eax, dword [esi]
push dword [edi]
call dword [eax + 8]
or dword [edi], 0xffffffff
push 5
jmp 0x404fdf
push 0
call fcn.004059f4
push dword [esi + 0x204]
mov ecx, esi
call fcn.00405975
push dword [esi + 0x200]
mov ecx, esi
call fcn.004059b8
mov ax, word [esi + 0x1d2]
push eax
call sub.WSOCK32.dll_ntohs
movzx eax, ax
mov dword [esi + 4], eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp + 0x10], ebx
push dword [edi]
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0xe]
call sub.WSOCK32.dll_ntohs
movzx eax, ax
mov dword [esi + 8], eax
jmp 0x404fc0
mov eax, dword [esi]
push dword [edi]
mov ecx, esi
call dword [eax + 8]
or dword [edi], 0xffffffff
push 0x13
jmp 0x404fdf
push dword [esi + 0x204]
mov ecx, esi
call fcn.00405975
push dword [esi + 0x200]
mov ecx, esi
call fcn.004059b8
push dword [ebp + 0xc]
mov eax, dword [esi]
mov ecx, esi
push dword [edi]
call dword [eax + 4]
mov ebx, eax
test ebx, ebx
je 0x404fde
mov eax, dword [esi]
push dword [edi]
mov ecx, esi
call dword [eax + 8]
or dword [edi], 0xffffffff
push ebx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x88]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x404ff0
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1cc]
cmp dword [edi], 0xffffffff
je 0x40500d
push 0x10
jmp 0x405121
push 0x1e
lea eax, [esi + 0x10]
push dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
mov edx, dword [esi]
push 0
push eax
push ebx
push edi
mov ecx, esi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], eax
call dword [edx + 0x2c]
cmp eax, 1
jne 0x405040
push 0x11
jmp 0x405121
push 0x10
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0045c6e0
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.dll_htons
push dword [ebp + 0x10]
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], bx
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [edi]
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x405084
push 0x12
jmp 0x405121
lea ebx, [esi + 0x1d0]
push 0x10
push 0
push ebx
call fcn.0045c6e0
add esp, 0xc
push dword [ebp + 0xc]
call sub.WSOCK32.dll_htons
push dword [ebp + 0x14]
mov word [esi + 0x1d2], ax
mov ax, word [ebp + 0x18]
mov word [ebx], ax
call sub.WSOCK32.dll_inet_addr
push 0x10
push ebx
push dword [edi]
mov dword [esi + 0x1d4], eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x4050ce
push 0x13
jmp 0x405121
mov ax, word [esi + 0x1d2]
push eax
call sub.WSOCK32.dll_ntohs
movzx eax, ax
mov dword [esi + 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 4], 0x10
push dword [edi]
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0x22]
call sub.WSOCK32.dll_ntohs
push dword [esi + 0x204]
mov ecx, esi
movzx eax, ax
mov dword [esi + 8], eax
call fcn.00405975
push dword [esi + 0x200]
mov ecx, esi
call fcn.004059b8
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x88]
pop edi
pop esi
pop ebx
leave
ret 0x18
Function at 0x405132
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1cc]
cmp dword [edi], 0xffffffff
je 0x40514e
push 0x10
jmp 0x405224
push 0x1e
lea eax, [esi + 0x10]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edx, dword [esi]
push 2
pop eax
mov ecx, esi
push 0
push eax
push eax
push edi
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
call dword [edx + 0x2c]
cmp eax, 1
jne 0x40517e
push 0x11
jmp 0x405224
push 0x10
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.0045c6e0
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.dll_htons
cmp dword [ebp + 0x14], 0
mov word [ebp - 0xe], ax
mov ax, word [esi + 0x34]
mov word [ebp - 0x10], ax
jne 0x4051b1
push 0
call sub.WSOCK32.dll_htonl
jmp 0x4051b9
push dword [ebp + 0x14]
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
push dword [edi]
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4051de
mov eax, dword [esi]
push dword [edi]
mov ecx, esi
call dword [eax + 8]
or dword [edi], 0xffffffff
push 0x12
jmp 0x405224
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0x10
push eax
lea eax, [ebp - 0x20]
push eax
push dword [edi]
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0x1e]
call sub.WSOCK32.dll_ntohs
push dword [esi + 0x204]
mov ecx, esi
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
call fcn.00405975
push dword [esi + 0x200]
mov ecx, esi
call fcn.004059b8
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x88]
pop edi
pop esi
leave
ret 0x10

Function at 0x405234
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
push 0x10
lea edi, [esi + 0x1e0]
cmp dword [edi], 0xffffffff
jne 0x405300
lea ebx, [esi + 0x1e4]
push 0
push ebx
call fcn.0045c6e0
add esp, 0xc
push dword [ebp + 8]
call sub.WSOCK32.dll_htons
push dword [esi + 0x30]
mov ecx, dword [ebp + 0x14]
mov word [esi + 0x1e6], ax
mov ax, word [ebp + 0x10]
mov edx, dword [esi]
mov word [ebx], ax
movsx eax, ax
push 1
mov dword [esi + 0x1e8], ecx
push eax
push edi
mov ecx, esi
call dword [edx + 0x2c]
cmp eax, 1
jne 0x40529a
push 0x11
jmp 0x405300
push 0x10
push ebx
push dword [edi]
call sub.WSOCK32.dll_bind
cmp eax, 0xffffffff
jne 0x4052ad
push 0x12
jmp 0x405300
push dword [ebp + 0xc]
push dword [edi]
call sub.WSOCK32.dll_listen
cmp eax, 0xffffffff
mov ecx, esi
jne 0x4052c2
push 0x17
jmp 0x405302
push dword [esi + 0x204]
call fcn.00405975
push dword [esi + 0x200]
mov ecx, esi
call fcn.004059b8
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [edi]
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0x12]
call sub.WSOCK32.dll_ntohs
movzx eax, ax
mov dword [esi + 0xc], eax
push 0
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x88]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405311
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
push 0x10
or edi, 0xffffffff
mov eax, dword [esi + 0x1cc]
pop ebx
cmp eax, edi
mov dword [ebp - 4], ebx
je 0x405352
cmp dword [esi + 0x38], 1
jne 0x405341
mov edx, dword [esi]
push 2
push eax
call dword [edx + 0xc]
cmp eax, edi
je 0x405372
mov eax, dword [esi]
push dword [esi + 0x1cc]
mov ecx, esi
call dword [eax + 8]
cmp eax, edi
je 0x405372
lea eax, [ebp - 4]
push eax
lea eax, [esi + 0x1d0]
push eax
push dword [esi + 0x1e0]
call sub.WSOCK32.dll_accept
cmp eax, edi
mov dword [esi + 0x1cc], eax
jne 0x405380
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x88]
jmp 0x4053dc
push dword [esi + 0x1d4]
lea edi, [esi + 0x10]
call sub.WSOCK32.dll_inet_ntoa
push eax
push edi
call fcn.0045d4a0
mov ax, word [esi + 0x1d2]
pop ecx
pop ecx
push eax
call sub.WSOCK32.dll_ntohs
movzx eax, ax
mov dword [esi + 4], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 8], ebx
push dword [esi + 0x1cc]
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0x16]
call sub.WSOCK32.dll_ntohs
movzx eax, ax
push edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push dword [esi + 0x1cc]
mov ecx, esi
call dword [eax + 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4053e1
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
mov dword [ebp - 0x10c], 1
mov eax, dword [esi + 0x1e0]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x10c]
push 0
push eax
push 0xffffffffffffffff
call sub.WSOCK32.dll_select
cmp eax, 1
mov eax, dword [esi]
mov ecx, esi
je 0x405430
push 1
jmp 0x405432
push 0
call dword [eax + 0x88]
pop esi
leave
ret 4

Function at 0x405777
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], 1
mov eax, dword [esi + 0x1cc]
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10c]
push 0
push eax
push 0
push 0xffffffffffffffff
call sub.WSOCK32.dll_select
cmp eax, 1
mov eax, dword [esi]
mov ecx, esi
je 0x4057c8
push 1
jmp 0x4057ca
push 0
call dword [eax + 0x88]
pop esi
leave
ret 8
Function at 0x4057d5
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1cc], 0xffffffff
jne 0x4057e5
push 0xf
jmp 0x405848
push edi
lea edi, [esi + 0x1d0]
push 0x10
push 0
push edi
call fcn.0045c6e0
mov ax, word [esi + 4]
add esp, 0xc
push eax
call sub.WSOCK32.dll_htons
mov word [esi + 0x1d2], ax
mov ax, word [esi + 0x34]
mov word [edi], ax
lea eax, [esi + 0x10]
push eax
call sub.WSOCK32.dll_inet_addr
push 0x10
push edi
mov edi, dword [esp + 0x18]
push 0
mov dword [esi + 0x1d4], eax
push dword [edi]
push dword [esp + 0x1c]
push dword [esi + 0x1cc]
call sub.WSOCK32.dll_sendto
mov dword [edi], eax
cmp eax, 0xffffffff
pop edi
je 0x405846
push 0
jmp 0x405848
push 0x16
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x88]
pop esi
ret 8

Function at 0x405dee
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov ebx, ecx
call edi
jmp 0x405e0b
cmp byte [eax + esi], 0x40
je 0x405e11
dec eax
test eax, eax
jg 0x405e04
jmp 0x405e12
inc eax
add eax, esi
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x405e48
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov cl, byte [eax]
mov byte [ebp + 8], cl
mov cl, byte [eax + 1]
mov byte [ebp + 9], cl
mov cl, byte [eax + 2]
mov al, byte [eax + 3]
mov byte [ebp + 0xa], cl
mov byte [ebp + 0xb], al
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_ntoa
mov esi, eax
test esi, esi
jne 0x405e4c
push 7
jmp 0x405e65
push esi
call edi
inc eax
cmp eax, dword [ebp + 0x10]
jle 0x405e59
push 0x23
jmp 0x405e65
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x88]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x406695
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 4], 0xffffffff
je 0x4066ce
cmp dword [esi + 8], 0
je 0x4066b1
mov eax, dword [esi]
push 2
push 0
call dword [eax + 0x14]
lea eax, [ebp - 4]
push 0
push eax
and dword [ebp - 4], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4066d3
or eax, 0xffffffff
jmp 0x4066d6
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x406c9b
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4794dc
call fcn.0045c5c4
push ecx
mov eax, dword [0x4a94a4]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
lea ebx, [esi + 4]
mov dword [ebx], eax
mov eax, dword [0x4a94a4]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [esi + 8], eax
mov eax, dword [0x4a94a4]
mov dword [esi + 0x2c], eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00409182
mov ecx, ebx
mov byte [ebp - 4], 3
mov dword [esi], vtable.CIRCopyFiles.0
call fcn.0046c413
lea ecx, [esi + 8]
call fcn.0046c413
lea ecx, [esi + 0x2c]
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x20], edi
call fcn.0046c413
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x28], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x40791d
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
mov eax, 0x479664
call fcn.0045c5c4
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
xor eax, eax
inc eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407a4c
test al, 6
je 0x407954
cmp dword [esi + 0x1c], 0
je 0x407975
push 0
push dword [ebp + 0xc]
call fcn.0045de34
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ecx
test eax, eax
pop ecx
mov ebx, 0x80
jne 0x4079c8
cmp dword [esi + 0x10], 0
jne 0x407993
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0046c1fd
mov ecx, esi
call fcn.00408183
sub dword [esi + 0x48], eax
jmp 0x407a50
push ebx
push dword [ebp + 0xc]
call edi
test eax, eax
je 0x4079aa
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4079c8
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0046c1fd
mov ecx, esi
call fcn.00408183
sub dword [esi + 0x48], eax
jmp 0x407a4c
push ecx
lea eax, [ebp + 0xc]
mov ecx, esp
mov dword [ebp - 0x14], esp
push eax
call fcn.0046c1fd
push ecx
lea eax, [ebp + 8]
mov ecx, esp
mov dword [ebp - 0x18], esp
push eax
mov byte [ebp - 4], 2
call fcn.0046c1fd
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00407d1b
test eax, eax
je 0x407a4c
cmp dword [esi + 0x14], 0
je 0x407a50
push ebx
push dword [ebp + 8]
call edi
test eax, eax
je 0x407a35
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
test eax, eax
mov dword [ebp - 0x18], esp
mov ecx, esp
jne 0x407a23
push str.Failed_to_delete_file_after_copy
jmp 0x407a40
lea eax, [ebp + 8]
push eax
call fcn.0046c1fd
mov ecx, esi
call fcn.004081f7
jmp 0x407a50
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.Failed_to_set_source_file_attribute_to_normal_durign_move
call fcn.0046c4f6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
and dword [ebp - 0x10], 0
and byte [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.0046c488
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x407b9b
Capabilities:
Create directory
Set current directory

Disassembly:
mov eax, 0x4796cc
call fcn.0045c5c4
sub esp, 0x108
push ebx
push esi
push edi
mov esi, 0x49f918
xor ebx, ebx
push esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], 1
call fcn.00469ed4
push esi
lea ecx, [ebp + 8]
call fcn.0046c818
mov eax, dword [ebp + 8]
push 0x104
push ebx
mov edi, dword [eax - 8]
lea eax, [ebp - 0x114]
push eax
call fcn.0045c6e0
add esp, 0xc
cmp edi, 2
jle 0x407c44
mov eax, dword [ebp + 8]
cmp byte [eax + 1], 0x3a
jne 0x407c44
xor esi, esi
cmp edi, ebx
jle 0x407c47
cmp dword [ebp - 0x10], ebx
je 0x407c47
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x5c
mov byte [ebp + esi - 0x114], al
jne 0x407c3d
cmp esi, 2
je 0x407c3d
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x407c3d
lea eax, [ebp - 0x114]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 0x10], eax
inc esi
cmp esi, edi
jl 0x407c00
jmp 0x407c47
mov dword [ebp - 0x10], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4081f7
Capabilities:
Delete directory

Disassembly:
mov eax, 0x47979c
call fcn.0045c5c4
sub esp, 0xc
push esi
mov eax, dword [0x4a94a4]
and dword [ebp - 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
lea esi, [ecx + 4]
push 0x5c
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00469b19
cmp eax, 0xffffffff
je 0x40825b
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00469aa1
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0046c575
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046c488
push 0x49f918
lea ecx, [ebp - 0x14]
call fcn.00469ed4
push 0x5c
lea ecx, [ebp + 8]
call fcn.00469b19
cmp eax, 0xffffffff
pop esi
je 0x4082bb
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
call fcn.00469aa1
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.0046c575
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.0046c488
push 0
push dword [ebp - 0x10]
call fcn.0045de34
pop ecx
test eax, eax
pop ecx
jne 0x4082bb
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.0045cd55
pop ecx
test eax, eax
pop ecx
je 0x4082bb
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0046c488
and byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0046c488
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.0046c488
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret 4