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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x10]
mov ebx, dword [eax]
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffd
cmp eax, 4
ja case.0x43363d.4
jmp dword [eax*4 + 0x43383c]
lea eax, [edi + 0x15c]
push eax
call fcn.00432d10
movzx ecx, ax
add esp, 4
movzx eax, word [edi + 0x40]
inc eax
movzx eax, ax
cmp eax, ecx
je 0x433679
push eax
push ecx
push str.Received_unexpected_DATA_packet_block__d__expecting_block__d_n
push ebx
call fcn.00423a70
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
mov word [edi + 0x40], cx
push 4
push esi
mov dword [edi + 0x18], 0
call fcn.00432d70
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00432d50
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4337af
mov eax, dword [edi + 0x154]
xor ecx, ecx
add eax, 4
cmp dword [edi + 0x14c], eax
lea eax, [edi + 0x38]
push eax
setl cl
lea ecx, [ecx*2 + 1]
mov dword [edi], ecx
call fcn.0044b85d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
lea esi, [edi + 0x160]
push 4
push esi
mov word [edi + 0x40], ax
mov dword [edi + 0x18], eax
call fcn.00432d70
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00432d50
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
js 0x4337af
lea eax, [edi + 0x38]
mov dword [edi], 1
push eax
call fcn.0044b85d
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
movzx eax, word [edi + 0x40]
inc dword [edi + 0x18]
inc eax
push dword [edi + 0x18]
movzx eax, ax
push eax
push str.Timeout_waiting_for_block__d_ACK.__Retries___d_n
push ebx
call fcn.00423a70
mov eax, dword [edi + 0x18]
add esp, 0x10
cmp eax, dword [edi + 0x20]
jle 0x43378b
mov dword [edi + 8], 0xffffff9d
xor eax, eax
mov dword [edi], 3
pop edi
pop esi
pop ebx
pop ebp
ret
push dword [edi + 0x148]
lea eax, [edi + 0xc8]
push eax
push 0
push 4
push dword [edi + 0x160]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jns 0x433815
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push dword [edi + 0x10]
call fcn.004282b0
push eax
push 0x45de88
push ebx
call fcn.004239d0
add esp, 0x14
mov eax, 0x37
pop edi
pop esi
pop ebx
pop ebp
ret
lea esi, [edi + 0x160]
push 5
push esi
call fcn.00432d70
movzx eax, word [edi + 0x40]
push eax
push esi
call fcn.00432d50
add esp, 0x10
lea eax, [edi + 0xc8]
push dword [edi + 0x148]
push eax
push 0
push 4
push dword [esi]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_sendto]
mov dword [edi], 3
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push str.tftp_rx:_internal_error
push 0x45de88
push ebx
call fcn.004239d0
add esp, 0xc
mov eax, 0x47
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x433d00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x433d12
jmp dword [edx*4 + 0x433d68]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00433850
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00433620
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.00433f10
push str.TFTP_finished
push 0x45d6bc
push eax
call fcn.00423a70
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x45de88
push eax
call fcn.004239d0
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x435800
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x615b00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, dword [eax]
or ebx, 0xffffffff
mov edi, dword [eax + 0x134]
push 1
push 0
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 0x10
call fcn.004242c0
mov ecx, eax
add esp, 0xc
test ecx, ecx
js 0x435875
nop
mov eax, 0x3e8
cmp ecx, eax
cmovl eax, ecx
push eax
push 0xffffffffffffffff
push edi
call fcn.00430b00
add esp, 0xc
cmp eax, 0xffffffff
je 0x435929
test eax, eax
jne 0x435899
push 1
push eax
push esi
call fcn.004242c0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jns 0x435840
push str.Timeout_while_waiting_for_server_connect
push esi
call fcn.004239d0
add esp, 8
mov eax, 0x1c
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418160
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x4358c4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
mov edi, dword [ebp - 0x1c]
push edi
call fcn.00423fc0
add esp, 8
cmp ebx, 0xffffffff
jne 0x4358fa
push str.Error_accept__ing_server_connect
push esi
call fcn.004239d0
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418160
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push esi
call fcn.00423a70
push 1
push ebx
mov dword [edi + 0x134], ebx
call fcn.0043cd60
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418160
mov esp, ebp
pop ebp
ret
push str.Error_while_waiting_for_server_connect
push esi
call fcn.004239d0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
mov eax, 0x1e
pop edi
pop esi
pop ebx
call fcn.00418160
mov esp, ebp
pop ebp
ret

Function at 0x437bf0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x437c1f
push str.Couldnt_set_desired_mode
push edx
call fcn.004239d0
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x437c36
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.00423a70
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x437c4d
push edi
call fcn.00437730
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x437c61
push edi
call fcn.00437220
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x437c75
push edi
call fcn.00437690
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x437c85
push edi
call fcn.00437710
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x43ae40
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043adc0
Function at 0x43dfd0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x43ec80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x615b14]
mov edi, eax
add esp, 4
test edi, edi
jne 0x43ecad
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x43ecf4
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x43ecfa
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x43ed5b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop word [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x43ed20
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x43ed87
mov eax, dword [esi + 4]
push 1
push 0x463764
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x463765
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x43ed60
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x43edb0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x43ede3
push 0x2e
push edi
call fcn.00442b10
add esp, 8
test eax, eax
je 0x43ede1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x43f7e0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x615b00]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.004421a0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x43f852
cmp dword [ebp - 0x118], 2
jg 0x43f852
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418160
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00418160
mov esp, ebp
pop ebp
ret

Function at 0x43f8b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x43f8dc
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x43f8cd
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x43f910
cmp dword [esi + 8], 0
jne 0x43f900
push 0x46390c
push dword [eax + 8]
call fcn.00446071
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x43f900
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.0044baf7
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x43f932
mov eax, dword [esi + 8]
test eax, eax
je 0x43f92c
push eax
call fcn.00445dde
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x451d99
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00451a59

Function at 0x454e21
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00454ca0

Function at 0x4010b9
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
call 0x4010b9
pop ecx
push 0x8b04c483
inc ebp
or al, 0x8b
dec ebp
or byte [ebx + 0x4598d10], cl
mov dword [ecx], edx
mov edi, dword [eax]
lea esi, [eax + 4]
mov dword [ebp + 0xc], ebx
xor ecx, ecx
sub ebx, esi
mov eax, dword [esi]
add esi, 4
mov edx, eax
sub eax, ecx
xor edx, edi
add eax, edi
mov edi, ecx
mov dword [ebx + esi - 4], edx
imul edi, ecx
xor eax, edi
inc ecx
cmp ecx, 7
mov edi, eax
jl 0x4010d5
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0x4e4e4f4b
je 0x401107
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
jmp 0x40110b
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x401156
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
call 0x401156
push 0x8b04c483
inc ebp
or byte [ebp + 0x5e0375c0], al
pop ebp
ret
Function at 0x401b20
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
xor ebx, ebx
push eax
push 0xf003f
push ebx
push ecx
push 0x80000002
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], 0x104
mov dword [esp + 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b9c
mov esi, dword [esp + 0x124]
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401ba8
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x110
ret

Function at 0x401bd0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x168
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
xor ecx, ecx
mov dword [esp + 4], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x1c], ecx
lea edi, [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, 0x11
mov dword [esp + 0x10], eax
lea edx, [esp + 0x68]
rep stosd dword es:[edi], eax
mov eax, dword [0x40dce8]
push 0x104
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, str.autorun.exe
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x68]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x68]
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x68]
mov byte [edx + ecx], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov eax, 0x104
sub eax, ecx
lea ecx, [esp + 0x68]
push eax
push str.setup.exe
push ecx
call fcn.00404572
mov eax, dword [0x40d050]
add esp, 0xc
test eax, eax
pop edi
mov eax, 0x40ddfc
jne 0x401c85
mov eax, str._noautoload
push eax
lea edx, [esp + 4]
push 0x40d2b4
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
lea edx, [esp]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
lea eax, [esp + 0x84]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
add esp, 0x168
ret
Function at 0x40822d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40d628
cmp edx, dword [eax]
je 0x40824f
add eax, 8
inc ecx
cmp eax, 0x40d6b8
jl 0x408240
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40d628]
jne 0x40837d
mov eax, dword [0x40de10]
cmp eax, 1
je 0x408357
test eax, eax
jne 0x408280
cmp dword [0x40d444], 1
je 0x408357
cmp edx, 0xfc
je 0x40837d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4082b7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407500
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405530
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4082fa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405530
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40b614
push edi
call fcn.00405dc0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407500
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407510
lea eax, [ebp - 0xa0]
push 0x40b5f4
push eax
call fcn.00407510
push dword [esi + 0x40d62c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407510
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040977d
add esp, 0x2c
pop edi
jmp 0x40837d
lea eax, [ebp + 8]
lea esi, [esi + 0x40d62c]
push 0
push eax
push dword [esi]
call fcn.00405530
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 0x4078ff
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x477138]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.0043a680
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call esi
test eax, eax
jne 0x407956
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x407964
cmp dword [ebp - 0x7c], 6
jb 0x407964
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x407966
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0043a3c0
add ebp, 0xa0
leave
ret
Function at 0x407d2d
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
push 0x24
mov eax, 0x458c53
call fcn.0043a3cf
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
push esi
push esi
push 3
push esi
push esi
push esi
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], esi
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
lea eax, [ebp - 0x14]
push eax
push 0x469c60
xor edi, edi
inc edi
push edi
push esi
push 0x469d30
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, esi
jl 0x407ec1
cmp dword [ebp - 0x14], esi
je 0x407ece
call fcn.004078ff
test eax, eax
lea ecx, [ebp - 0x30]
je 0x407daa
push str.ROOTSecurityCenter2
call fcn.00407a68
mov dword [ebp - 4], esi
jmp 0x407db7
push str.ROOTSecurityCenter
call fcn.00407a68
mov dword [ebp - 4], edi
mov eax, dword [eax]
cmp eax, esi
je 0x407dc1
mov ecx, dword [eax]
jmp 0x407dc3
xor ecx, ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
lea edi, [ebp - 0x10]
push edi
push esi
push esi
push esi
push esi
push esi
push esi
push ecx
push eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
mov edi, eax
je 0x407de9
call fcn.00407bbb
cmp edi, esi
jl 0x407ec1
cmp dword [ebp - 0x10], esi
je 0x407ec1
push esi
push esi
push 3
push 3
push esi
push esi
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
cmp eax, esi
jl 0x407ec1
push str.SELECT__FROM_AntiVirusProduct
lea ecx, [ebp - 0x24]
call fcn.00407a1b
mov edi, eax
push 0x45d6f0
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 2
call fcn.00407a1b
mov ecx, dword [edi]
cmp ecx, esi
mov byte [ebp - 4], 3
je 0x407e46
mov ecx, dword [ecx]
jmp 0x407e48
xor ecx, ecx
mov eax, dword [eax]
cmp eax, esi
je 0x407e52
mov edx, dword [eax]
jmp 0x407e54
xor edx, edx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
lea ebx, [ebp - 0x1c]
push ebx
push esi
push 0x30
push ecx
push edx
push eax
call dword [edi + 0x50]
mov ecx, dword [ebp - 0x20]
cmp ecx, esi
mov edi, eax
je 0x407e77
call fcn.00407bbb
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x24]
or dword [ebp - 4], 0xffffffff
cmp ecx, esi
je 0x407e8a
call fcn.00407bbb
mov dword [ebp - 0x24], esi
cmp edi, esi
jl 0x407ec1
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x407ec1
mov ecx, dword [eax]
lea edx, [ebp - 0x28]
push edx
lea edx, [ebp - 0x18]
push edx
xor edi, edi
inc edi
push edi
push 0xffffffffffffffff
push eax
call dword [ecx + 0x10]
test eax, eax
jl 0x407ec1
cmp dword [ebp - 0x28], esi
je 0x407ec1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x14]
cmp eax, esi
je 0x407ece
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x10]
cmp eax, esi
mov dword [ebp - 0x14], esi
je 0x407ede
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
cmp eax, esi
mov dword [ebp - 0x10], esi
je 0x407eee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
call fcn.0043a4a7
ret
Function at 0x408a41
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x477138]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x45d844
push eax
call fcn.00416840
push 0x45d840
push esi
mov edi, eax
call fcn.0043d47a
add esp, 0x10
test edi, edi
mov ebx, eax
je 0x408ad1
test ebx, ebx
je 0x408ad1
mov esi, 0x80
push esi
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00416330
add esp, 0xc
jmp 0x408abb
push ebx
push eax
lea eax, [ebp - 0x84]
push 1
push eax
call fcn.0043d334
push esi
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00416330
add esp, 0x1c
test eax, eax
jg 0x408a9a
push edi
call fcn.00415aa0
push ebx
call fcn.0043d159
pop ecx
pop ecx
xor eax, eax
jmp 0x408ad4
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043a3c0
leave
ret

Function at 0x408ae3
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
lea ebp, [esp - 0x7f4]
sub esp, 0x874
mov eax, dword [0x477138]
xor eax, ebp
mov dword [ebp + 0x7f0], eax
push ebx
mov ebx, dword [ebp + 0x7fc]
push esi
push edi
mov esi, 0x206
xor edi, edi
push esi
lea eax, [ebp + 0x1da]
push edi
push eax
mov dword [ebp - 0x7c], ebx
mov word [ebp + 0x1d8], di
call fcn.0043a680
push 0x250
lea eax, [ebp - 0x78]
push edi
push eax
call fcn.0043a680
push ebx
lea eax, [ebp + 0x1d8]
push str._s.
push eax
call fcn.00408a2b
add esp, 0x24
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x1d8]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x80], eax
je 0x408c46
mov edi, 0x45d854
lea eax, [ebp - 0x78]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
neg ebx
lea eax, [ebp - 0x4c]
sbb bl, bl
push 0x45d850
push eax
inc bl
call fcn.0043d48d
test eax, eax
pop ecx
pop ecx
je 0x408c35
lea eax, [ebp - 0x4c]
push 0x45d848
push eax
call fcn.0043d48d
test eax, eax
pop ecx
pop ecx
je 0x408c35
and word [ebp + 0x3e0], 0
push esi
lea eax, [ebp + 0x3e2]
push 0
push eax
call fcn.0043a680
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp + 0x3e0]
push eax
call fcn.0043cc36
and word [ebp + 0x5e8], 0
add esp, 0x14
push esi
lea eax, [ebp + 0x5ea]
push 0
push eax
call fcn.0043a680
test byte [ebp - 0x78], 0x10
lea eax, [ebp + 0x3e0]
push eax
push dword [ebp - 0x7c]
lea eax, [ebp + 0x5e8]
push edi
push eax
je 0x408c20
call fcn.00408a2b
lea eax, [ebp + 0x5e8]
push eax
call fcn.00408ae3
add esp, 0x20
jmp 0x408c35
call fcn.00408a2b
add esp, 0x1c
lea eax, [ebp + 0x5e8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test bl, bl
je 0x408b6c
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp + 0x7f0]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0043a3c0
add ebp, 0x7f4
leave
ret