joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d827
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push ebx
push esi
push edi
mov esi, dword [eax]
mov ebx, dword [eax + 0xa4]
mov dword [ebp - 0x18], eax
call fcn.0040ab70
push edx
push eax
call fcn.0040ab70
push edx
push eax
call fcn.0040ab92
mov ecx, 0x3e8
cdq
idiv ecx
mov ecx, dword [esi + 0x9c]
add esp, 0x10
test ecx, ecx
jne 0x40d879
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x40d893
sub ecx, eax
test ecx, ecx
jg 0x40d893
push str.Timed_out_before_server_could_connect_to_us
push esi
call fcn.00401832
pop ecx
pop ecx
push 0x1c
jmp 0x40d93e
push 0x3c
test ecx, ecx
pop eax
cmovne eax, ecx
or edx, 0xffffffff
imul eax, eax, 0x3e8
mov ecx, ebx
push eax
call fcn.0040abb3
pop ecx
cmp eax, 0xffffffff
je 0x40d92f
test eax, eax
je 0x40d928
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x10
push eax
lea eax, [ebp - 0x14]
or edi, 0xffffffff
push eax
push ebx
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x40d8e4
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
cmp edi, 0xffffffff
jne 0x40d8f7
push str.Error_accept__ing_server_connect
jmp 0x40d934
push str.Connection_accepted_from_server_n
push esi
call fcn.004017c3
mov eax, dword [ebp - 0x18]
pop ecx
pop ecx
mov dword [ebp - 0x18], 1
mov dword [eax + 0xa4], edi
lea eax, [ebp - 0x18]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
xor eax, eax
jmp 0x40d93f
push str.Timeout_while_waiting_for_server_connect
jmp 0x40d934
push str.Error_while_waiting_for_server_connect
push esi
call fcn.00401832
pop ecx
pop ecx
push 0x1e
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x40ef4f
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, edx
mov dword [ebp - 4], 0x64
mov eax, ebx
cdq
idiv dword [ebp - 4]
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [edi]
cmp eax, 2
je 0x40ef83
push str.Couldnt_set_desired_mode
push ecx
call fcn.00401832
pop ecx
pop ecx
push 0x11
pop eax
jmp 0x40efd7
cmp ebx, 0xc8
je 0x40ef9a
push ebx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ecx
call fcn.004017c3
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x10
jne 0x40efab
mov ecx, edi
call fcn.0040e51a
jmp 0x40efd3
cmp eax, 0x11
jne 0x40efb9
mov ecx, edi
call fcn.0040e55a
jmp 0x40efd3
cmp eax, 0x12
jne 0x40efc2
push 0xa
jmp 0x40efc9
cmp eax, 0x13
jne 0x40efd5
push 0xb
mov dl, 1
mov ecx, edi
call fcn.0040e80a
pop ecx
mov esi, eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4116b4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x198]
mov esi, ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4116ee
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00401832
add esp, 0xc
jmp 0x411716
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x411709
shr eax, 8
test al, al
jne 0x411709
xor eax, eax
jmp 0x411719
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00401832
pop ecx
pop ecx
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f225b
mov esp, ebp
pop ebp
ret

Function at 0x411f89
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x918
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
push esi
mov dword [ebp - 0x90c], eax
push edi
mov esi, dword [eax + 0x16c]
mov ecx, dword [eax]
mov dword [ebp - 0x910], ecx
mov eax, dword [esi + 0x1ab0]
sub eax, dword [esi + 0x1aac]
add eax, 2
push eax
lea eax, [esi + 0x18ac]
push eax
push 0x3c
pop edx
call fcn.00411b7b
mov eax, dword [esi + 0x1aac]
pop ecx
pop ecx
movzx ecx, byte [eax]
inc eax
mov dword [esi + 0x1aac], eax
cmp ecx, 0x18
je 0x4120ef
cmp ecx, 0x23
je 0x4120cd
cmp ecx, 0x27
jne 0x412165
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.00402c98
mov esi, dword [esi + 0x18a8]
add esp, 0x1c
push 4
pop edi
jmp 0x41209c
push dword [esi]
call fcn.004f95a0
inc eax
add eax, edi
mov dword [ebp - 0x914], eax
pop ecx
cmp eax, 0x7fa
jae 0x412099
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x108]
push eax
push str._127_____127s
push dword [esi]
call fcn.004f7ccc
lea eax, [ebp - 0x88]
push eax
push 1
lea eax, [ebp - 0x108]
push eax
push 0
mov eax, 0x800
sub eax, edi
push str._c_s_c_s
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.00402c98
mov edi, dword [ebp - 0x914]
add esp, 0x2c
mov esi, dword [esi + 4]
test esi, esi
jne 0x412031
push 0xf0
push 0xff
mov eax, 0x800
sub eax, edi
push 0x55a490
push eax
lea eax, [ebp - 0x908]
add eax, edi
push eax
call fcn.00402c98
add esp, 0x14
add edi, 2
jmp 0x41212e
add esi, 0x1828
push esi
call fcn.004f95a0
pop ecx
push 0xf0
lea edi, [eax + 6]
mov eax, 0xff
push eax
push esi
push 0
push 0x23
jmp 0x41210f
add esi, 0x1808
push esi
call fcn.004f95a0
pop ecx
push 0xf0
lea edi, [eax + 6]
mov eax, 0xff
push eax
push esi
push 0
push 0x18
push 0xfa
push eax
push str._c_c_c_c_s_c_c
lea eax, [ebp - 0x908]
push 0x800
push eax
call fcn.00402c98
add esp, 0x28
push 0
push edi
lea eax, [ebp - 0x908]
push eax
mov eax, dword [ebp - 0x90c]
push dword [eax + 0xa0]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, dword [ebp - 0x910]
lea eax, [edi - 2]
push eax
lea eax, [ebp - 0x906]
push eax
push 0x3e
pop edx
call fcn.00411b7b
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x412a9a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov esi, str.netascii
push 3
mov eax, dword [edi + 0xc]
mov ebx, dword [eax]
mov ecx, dword [eax + 0x50]
mov eax, str.octet
mov dword [ebp - 4], ecx
pop ecx
cmp byte [ebx + 0x18c], 0
cmove esi, eax
mov dword [ebp - 8], esi
sub edx, 0
je 0x412b54
sub edx, ecx
je 0x412b25
dec edx
je 0x412af6
dec edx
je 0x412b66
dec edx
je 0x412b54
push str.tftp_send_first:_internal_error_n
push ebx
call fcn.00401832
pop ecx
pop ecx
jmp 0x412c4e
push str.Connected_for_transmit
push 0x5575bc
push ebx
call fcn.004017c3
add esp, 0xc
mov dword [edi], 2
mov ecx, edi
call fcn.0041296b
push 4
pop edx
mov ecx, edi
call fcn.00412dca
jmp 0x412c4e
push str.Connected_for_receive
push 0x5575bc
push ebx
call fcn.004017c3
add esp, 0xc
mov dword [edi], 1
mov ecx, edi
call fcn.0041296b
push 3
pop edx
mov ecx, edi
call fcn.00412c55
jmp 0x412c4e
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x1c]
jle 0x412b6d
mov dword [edi + 8], 9
mov dword [edi], ecx
jmp 0x412c4e
cmp byte [ebx + 0x199], 0
je 0x412bcd
push 2
call dword [sym.imp.WS2_32.dll_htons]
push dword [ebp - 4]
mov word [edi + 0x268], ax
call fcn.004f95a0
pop ecx
mov ecx, dword [ebp - 4]
mov edx, eax
call fcn.0041456c
mov dword [ebp - 4], eax
lea ecx, [edi + 0x26c]
mov eax, dword [edi + 0xc]
mov dword [eax + 0x1fc], ecx
mov ecx, dword [ebx + 0xa8]
mov eax, ecx
mov edx, dword [ebx + 0xac]
and eax, edx
cmp eax, 0xffffffff
je 0x412bdc
push edx
push ecx
mov ecx, ebx
call fcn.0041368e
add esp, 8
jmp 0x412bdc
push 1
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0x268], ax
push 0
push esi
mov esi, dword [ebp - 4]
lea eax, [edi + 0x26a]
push 0
push esi
push str._s_c_s_c
push eax
call fcn.00402e04
push esi
call fcn.004f95a0
add esp, 0x1c
mov esi, eax
push dword [ebp - 8]
call fcn.004f95a0
pop ecx
lea ecx, [eax + 4]
mov eax, dword [edi + 0xc]
add ecx, esi
mov eax, dword [eax + 0x10]
push dword [eax + 0x10]
push dword [eax + 0x14]
lea eax, [edi + 0x268]
push 0
push ecx
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x412c4e
call fcn.004fa255
push dword [eax]
call fcn.004f9b48
pop ecx
push eax
push 0x5575bc
push ebx
call fcn.00401832
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412c55
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
push 3
pop edi
mov eax, dword [ebx + 0xc]
mov esi, dword [eax]
mov dword [ebp - 4], esi
sub edx, edi
je 0x412ce9
dec edx
dec edx
je 0x412c9e
dec edx
je 0x412c7b
push str.tftp_rx:_internal_error
jmp 0x412cd6
inc dword [ebx + 0x14]
push dword [ebx + 0x14]
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push esi
call fcn.004017c3
mov eax, dword [ebx + 0x14]
add esp, 0xc
cmp eax, dword [ebx + 0x1c]
jle 0x412ca5
mov dword [ebx + 8], 8
mov dword [ebx], edi
jmp 0x412dab
push dword [ebx + 0x58]
lea eax, [ebx + 0x48]
push eax
push 0
push 4
lea eax, [ebx + 0x268]
push eax
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x412dab
call fcn.004fa255
push dword [eax]
call fcn.004f9b48
pop ecx
push eax
push 0x5575bc
push esi
call fcn.00401832
add esp, 0xc
jmp 0x412dab
movzx eax, word [ebx + 0x66]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edi, ax
movzx eax, word [ebx + 0x30]
inc eax
cmp eax, edi
je 0x412d33
push edi
push str.Received_unexpected_DATA_packet_block__d_n
push esi
call fcn.004017c3
add esp, 0xc
inc dword [ebx + 0x14]
mov eax, dword [ebx + 0x14]
cmp eax, dword [ebx + 0x1c]
jle 0x412d33
movzx eax, word [ebx + 0x30]
inc eax
push eax
push str.tftp_rx:_giving_up_waiting_for_block__d_n
push esi
call fcn.00401832
add esp, 0xc
jmp 0x412dc3
and dword [ebx + 0x14], 0
mov esi, dword [sym.imp.WS2_32.dll_htons]
mov word [ebx + 0x30], di
lea edi, [ebx + 0x268]
push 4
call esi
mov word [edi], ax
movzx eax, word [ebx + 0x30]
push eax
call esi
push dword [ebx + 0x58]
mov word [ebx + 0x26a], ax
lea eax, [ebx + 0x48]
push eax
push 0
push 4
push edi
push dword [ebx + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x412d96
call fcn.004fa255
push dword [eax]
call fcn.004f9b48
mov esi, dword [ebp - 4]
pop ecx
push eax
push 0x5575bc
push esi
call fcn.00401832
add esp, 0xc
jmp 0x412d99
mov esi, dword [ebp - 4]
xor eax, eax
inc eax
cmp dword [ebx + 0x5c], 0x204
push 3
pop ecx
cmovl eax, ecx
mov dword [ebx], eax
movzx eax, word [ebx + 0x30]
cdq
shld edx, eax, 9
shl eax, 9
mov dword [esi + 0x1f8], eax
mov dword [esi + 0x1fc], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412dca
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0xc]
mov ebx, dword [eax]
sub edx, 4
je 0x412e26
dec edx
je 0x412e0c
dec edx
je 0x412de9
push str.tftp_tx:_internal_error
jmp 0x412efb
inc dword [edi + 0x14]
push dword [edi + 0x14]
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.004017c3
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, dword [edi + 0x1c]
jle 0x412e17
mov dword [edi + 8], 8
mov dword [edi], 3
jmp 0x412f09
push dword [edi + 0x58]
lea eax, [edi + 0x48]
push eax
mov eax, dword [edi + 0x60]
jmp 0x412ed3
movzx eax, word [edi + 0x66]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx edx, word [edi + 0x30]
movzx eax, ax
mov ecx, edx
cmp eax, ecx
je 0x412e7a
push ecx
push eax
push str.Received_ACK_for_block__d__expecting__d_n
push ebx
call fcn.004017c3
add esp, 0x10
inc dword [edi + 0x14]
mov eax, dword [edi + 0x14]
cmp eax, dword [edi + 0x1c]
jle 0x412f21
movzx eax, word [edi + 0x30]
push eax
push str.tftp_tx:_giving_up_waiting_for_block__d_ack
push 0x5575bc
push ebx
call fcn.00401832
add esp, 0x10
jmp 0x412f21
and dword [edi + 0x14], 0
lea eax, [edx + 1]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 3
mov word [edi + 0x30], ax
call esi
mov word [edi + 0x268], ax
movzx eax, word [edi + 0x30]
push eax
call esi
cmp word [edi + 0x30], 1
mov edx, 0x200
mov word [edi + 0x26a], ax
jbe 0x412ebd
cmp dword [edi + 0x60], edx
jge 0x412ebd
mov dword [edi], 3
jmp 0x412f21
mov ecx, dword [edi + 0xc]
lea esi, [edi + 0x60]
push esi
call fcn.004072b8
pop ecx
push dword [edi + 0x58]
lea eax, [edi + 0x48]
push eax
mov eax, dword [esi]
push 0
add eax, 4
push eax
lea eax, [edi + 0x268]
push eax
push dword [edi + 0x10]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x412f09
call fcn.004fa255
push dword [eax]
call fcn.004f9b48
pop ecx
push eax
push 0x5575bc
push ebx
call fcn.00401832
add esp, 0xc
movzx eax, word [edi + 0x30]
cdq
shld edx, eax, 9
shl eax, 9
mov dword [ebx + 0x200], eax
mov dword [ebx + 0x204], edx
pop edi
pop esi
pop ebx
ret
Function at 0x4140bf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
push esi
push edi
push 0x5c
mov eax, dword [ebx + 0x16c]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
push dword [eax]
call fcn.004f8490
mov ebx, dword [ebx]
xorps xmm0, xmm0
mov dword [ebp - 0x18], eax
pop ecx
pop ecx
lea eax, [ebx + 0x2f4]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
movlpd qword [ebp - 0x10], xmm0
call fcn.0040ab70
mov ecx, dword [ebx + 0x80]
mov edi, edx
mov edx, dword [ebp - 8]
mov esi, eax
mov dword [edx + 0x200], ecx
mov eax, dword [ebx + 0x28]
mov dword [edx + 0x204], eax
lea eax, [ebx + 0x2f4]
mov dword [edx + 0x1fc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x414136
push 0x25
pop eax
jmp 0x414230
cmp byte [eax + 1], 0
je 0x41412e
mov eax, dword [ebp - 4]
push 0x55aa28
push dword [eax]
call fcn.004f7325
mov dword [ebp - 0x18], eax
pop ecx
pop ecx
test eax, eax
jne 0x41416b
mov eax, dword [ebp - 4]
push dword [eax]
push str.Cant_open__s_for_writing
push ebx
call fcn.00401832
add esp, 0xc
push 0x17
jmp 0x414130
mov ecx, dword [ebx + 0xa8]
mov eax, dword [ebx + 0xac]
cmp ecx, 0xffffffff
jne 0x414180
cmp eax, ecx
je 0x41418c
push eax
push ecx
mov ecx, ebx
call fcn.0041368e
add esp, 8
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
mov edx, 0x4000
call fcn.004072b8
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x414225
cmp dword [ebp - 4], eax
jbe 0x414215
push dword [ebp - 0x18]
push dword [ebp - 4]
push 1
push dword [ebp - 0x1c]
call fcn.004f8eac
add esp, 0x10
cmp eax, dword [ebp - 4]
jne 0x414210
mov ecx, dword [ebp - 0xc]
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
adc eax, ebx
mov dword [ebp - 0xc], ecx
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x200], ecx
mov ecx, dword [ebp - 8]
mov dword [ebx + 0x204], eax
call fcn.004136bf
test eax, eax
jne 0x41420c
push edi
push esi
mov ecx, ebx
call fcn.00414ddd
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x414198
jmp 0x414225
push 0x2a
jmp 0x414212
push 0x37
pop ebx
jmp 0x414225
mov ecx, dword [ebp - 8]
call fcn.004136bf
push 0x2a
test eax, eax
pop ecx
cmovne ebx, ecx
push dword [ebp - 0x18]
call fcn.004f719e
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415b53
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x583d10]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x54], 0
and dword [ebp - 0x58], 0
push esi
push edi
mov esi, edx
mov dword [ebp - 0x68], 0x67452301
push esi
mov edi, ecx
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
call fcn.004f95a0
push eax
mov edx, esi
lea ecx, [ebp - 0x68]
call fcn.00415374
push 8
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0xc]
call fcn.00415b1d
mov edx, dword [ebp - 0x58]
push 0x38
pop ecx
shr edx, 3
and edx, 0x3f
push 0x78
sub ecx, edx
pop eax
sub eax, edx
cmp edx, 0x38
mov edx, 0x550aa0
cmovb eax, ecx
lea ecx, [ebp - 0x68]
push eax
call fcn.00415374
push 8
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x68]
call fcn.00415374
push 0x10
lea edx, [ebp - 0x68]
mov ecx, edi
call fcn.00415b1d
push 0x58
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.004f2e30
mov ecx, dword [ebp - 4]
add esp, 0x24
xor ecx, ebp
pop edi
pop esi
call fcn.004f225b
mov esp, ebp
pop ebp
ret
Function at 0x416442
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 8], 0
jne 0x41646e
mov eax, dword [esi]
push 0x55aea8
push dword [eax + 8]
call fcn.004f7325
mov dword [esi + 8], eax
pop ecx
pop ecx
test eax, eax
jne 0x41646e
or eax, 0xffffffff
jmp 0x41649b
push dword [esi + 8]
push dword [ebp + 8]
push 1
push edi
call fcn.004f7712
mov edi, eax
add esp, 0x10
cmp edi, dword [ebp + 8]
je 0x416499
push dword [esi + 8]
call fcn.004f719e
and dword [esi + 8], 0
pop ecx
mov ecx, dword [esi]
mov ecx, dword [ecx]
mov dword [esi], ecx
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x416ed0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.004f5c90
mov eax, dword [0x583d10]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x417017
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x416fa4
cmp word [esp + 0x10], ax
jne 0x416f68
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00417b50
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416f70
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00417b50
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x417012
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x416ff7
cmp eax, 0x400
ja 0x416ff7
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00417390
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret 8

Function at 0x417060
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x417080
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41b8d0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x583d10]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x41b90f
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x41b929
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x41b98b
lea ecx, [esp + 0x28]
call fcn.0042b890
mov edx, ecx
mov ecx, esi
call fcn.0041bd70
test al, al
je 0x41b974
cmp byte [esp + 0x30], bl
je 0x41b974
cmp dword [esi + 0x14], 8
jb 0x41b954
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x41b97e
mov eax, dword [esi]
jmp 0x41b980
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x41b913
xor eax, eax
push 0x208
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.004f2e30
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41b9ad
mov esi, dword [esi]
lea ecx, [esp + 0x50]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x41b9b1
mov word [esp + 0x24], ax
xorps xmm0, xmm0
mov dword [esp + 8], 0
lea eax, [esp + 0x50]
movq qword [esp + 0x1c], xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x10], eax
mov eax, 0x414
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
test bl, bl
jne 0x41ba06
mov eax, 0x1494
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x41b8f9
test eax, eax
je 0x41ba47
cmp eax, 2
je 0x41ba47
cmp eax, 0x402
je 0x41ba47
cmp eax, 0x7c
je 0x41ba47
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
mov eax, 1
pop esi
pop ebx
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret

Function at 0x41ba60
Capabilities:
Move file

Disassembly:
push esi
mov esi, edx
push edi
mov edi, ecx
cmp dword [esi + 0x14], 8
jb 0x41ba70
mov eax, dword [esi]
jmp 0x41ba72
mov eax, esi
cmp dword [edi + 0x14], 8
jb 0x41ba7a
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x41ba8b
mov al, 1
pop edi
pop esi
ret
cmp dword [edi + 0x14], 8
jb 0x41ba93
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x41ba9b
mov esi, dword [esi]
push 0
push 0
push 2
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
pop edi
setne al
pop esi
ret

Function at 0x41bac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41bace
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x41bae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x41baee
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41bb02
shr eax, 4
and eax, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x41bb10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x583d10]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x41bc1d
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x41bb62
xor ecx, ecx
jmp 0x41bb7f
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bb70
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.004195a0
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x41bb9a
mov ecx, dword [eax]
jmp 0x41bb9c
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.004195a0
lea ecx, [esp + 8]
call fcn.00419fa0
lea eax, [esp + 8]
cmp esi, eax
je 0x41bbca
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00417a30
cmp dword [esp + 0x1c], 8
jb 0x41bbdd
push dword [esp + 8]
call fcn.004b217d
add esp, 4
xor eax, eax
mov dword [esp + 0x1c], 7
cmp dword [esp + 0x34], 8
mov dword [esp + 0x18], 0
mov word [esp + 8], ax
jb 0x41bc07
push dword [esp + 0x20]
call fcn.004b217d
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.004f225b
mov esp, ebp
pop ebp
ret