joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404978
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push 0x174
mov eax, 0x42b066
call fcn.00407549
mov esi, dword [ebp + 8]
push esi
call fcn.0040c310
pop ecx
cmp eax, 4
jb 0x404af8
push esi
lea ecx, [ebp - 0x40]
call fcn.0040273f
and dword [ebp - 4], 0
mov edi, str..
push edi
call fcn.0040c310
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.00404828
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x180]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4049f3
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.FindFirstFile___s_
jmp 0x404adc
push esi
lea ecx, [ebp - 0x28]
call fcn.0040273f
push 0x42c698
mov byte [ebp - 4], 1
call fcn.0040c310
pop ecx
push eax
push 0x42c698
lea ecx, [ebp - 0x28]
call fcn.00404828
lea eax, [ebp - 0x154]
push eax
call fcn.0040c310
pop ecx
push eax
lea eax, [ebp - 0x154]
push eax
lea ecx, [ebp - 0x28]
call fcn.00404828
test byte [ebp - 0x180], 0x14
je 0x404a8d
lea eax, [ebp - 0x154]
push 0x42c69c
push eax
call fcn.00416730
pop ecx
pop ecx
test eax, eax
je 0x404aa2
lea eax, [ebp - 0x154]
push 0x42c6a0
push eax
call fcn.00416730
pop ecx
pop ecx
test eax, eax
je 0x404aa2
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Unexpected_directory_in_error_cleanup___s_
push str.Stub
call fcn.004010e7
add esp, 0xc
jmp 0x404aa2
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0040185f
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.004046ab
lea eax, [ebp - 0x180]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4049f3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x404af0
push esi
push str.RemoveDirectory___s_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Stub
call fcn.0040167c
add esp, 0x10
lea ecx, [ebp - 0x40]
call fcn.004046ab
call fcn.004074f8
ret
Function at 0x404be4
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa48
mov eax, dword [0x43c3ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, 0x43d458
push ebx
call fcn.0040c310
push eax
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.0040c3a0
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebp + eax - 0x109], 0x5c
je 0x404c3e
push 0x42c698
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x908]
push str._s.
push eax
call fcn.00401c36
add esp, 0xc
lea eax, [ebp - 0xa48]
push eax
lea eax, [ebp - 0x908]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404c7e
push str.FindFirstFile_failed
jmp 0x404d3b
test byte [ebp - 0xa48], 0x14
lea eax, [ebp - 0xa1c]
je 0x404cb1
push 0x42c69c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x404d0e
push 0x42c6a0
lea eax, [ebp - 0xa1c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
jmp 0x404d0e
push eax
lea eax, [ebp - 0x108]
push eax
push 0x42c340
lea eax, [ebp - 0x508]
push 0x400
push eax
call fcn.00401bba
add esp, 0x14
lea eax, [ebp - 0x508]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x508]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x404d0e
lea eax, [ebp - 0x508]
push eax
push str.Unable_to_delete_file__s
push str.Stub
call fcn.00401100
add esp, 0xc
lea eax, [ebp - 0xa48]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x404c7e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x404d47
push str.Unable_to_delete_temp_directory
push str.Stub
call fcn.00401100
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040748a
leave
ret
Function at 0x4062b7
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x2711
call fcn.004074d6
mov edi, eax
test edi, edi
push 0x8e
setne bl
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00405780
add esp, 0xc
test edi, edi
je 0x406377
push esi
push dword [ebp + 8]
mov esi, 0x2710
push esi
push 1
push edi
call fcn.004149ef
add esp, 0x10
mov dword [ebp - 8], eax
cmp eax, esi
jne 0x40634a
push dword [ebp + 0xc]
push esi
push 1
push edi
call fcn.00414f9f
mov esi, eax
cmp esi, 0x2710
push 0x97
sete bl
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00405780
push dword [ebp + 8]
push 0x2710
push 1
push edi
call fcn.004149ef
add esp, 0x28
cmp esi, dword [ebp - 8]
mov esi, 0x2710
je 0x4062ff
mov dword [ebp - 8], eax
pop esi
test bl, bl
je 0x406377
push dword [ebp + 0xc]
push eax
push 1
push edi
call fcn.00414f9f
cmp eax, dword [ebp - 8]
push 0x9e
sete bl
mov byte [ebp - 4], bl
push dword [ebp - 4]
call fcn.00405780
add esp, 0x18
cmp dword [ebp + 0xc], 0
je 0x406386
push dword [ebp + 0xc]
call fcn.004146b7
pop ecx
cmp dword [ebp + 8], 0
je 0x406395
push dword [ebp + 8]
call fcn.004146b7
pop ecx
test bl, bl
je 0x4063b9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00406b20
mov bl, al
mov byte [ebp - 4], bl
push 0x11c
push dword [ebp - 4]
call fcn.00405780
add esp, 0x10
test edi, edi
je 0x4063c4
push edi
call fcn.004074df
pop ecx
pop edi
mov al, bl
pop ebx
leave
ret

Function at 0x406596
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x400
push 1
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call fcn.00415002
pop ecx
pop ecx
push edi
mov esi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push str.MsiInstaller
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
test edi, edi
je 0x4065fb
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], str.Trellix_Agent_installation_failed_because_this_operating_system_is_not_supported._Installation_action_invoked_from_:__2
push eax
push ebx
push 2
push ebx
push 0x2dbc
push ebx
push 1
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
push esi
call fcn.0041500d
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406607
Capabilities:
Access the windows event log

Disassembly:
push 0x30
mov eax, 0x42b1e1
call fcn.00407549
mov eax, dword [ebp + 0x18]
lea ecx, [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x20], 0xf
cmp dword [ebp + 0x1c], 8
lea esi, [ebp + 8]
mov dword [ebp - 4], ebx
cmovae ecx, dword [ebp + 8]
cmovae esi, dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
lea edi, [ecx + eax*2]
mov dword [ebp - 0x14], ebx
mov eax, edi
mov dword [ebp - 0x34], ebx
sub eax, esi
mov dword [ebp - 0x24], ebx
sar eax, 1
lea ecx, [ebp - 0x34]
push eax
call fcn.004059e3
mov byte [ebp - 0x38], bl
lea ecx, [ebp - 0x34]
push dword [ebp - 0x38]
push edi
push esi
call fcn.00401f2e
push str.MsiInstaller
push ebx
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x4066b2
cmp dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x1c]
push ebx
push eax
push ebx
push 3
push ebx
push 0x2dbc
push ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], str.Trellix_Agent_installation_failed_because_it_detected_the_following_products_as_incompatible_with_this_version_:__2___3
cmovae ecx, dword [ebp - 0x34]
push 1
push esi
mov dword [ebp - 0x18], str.MAR_____1000
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, dword [ebp - 0x20]
cmp eax, 0x10
jb 0x4066e9
mov ecx, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
cmp eax, 0x1000
jb 0x4066e0
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004037ee
mov eax, dword [ebp - 0x3c]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
push eax
push ecx
call fcn.004074c8
pop ecx
pop ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 0xf
mov byte [ebp - 0x34], bl
call fcn.004046d1
call fcn.004074f8
ret

Function at 0x41ed60
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ebd6
Function at 0x10001510
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.100016c0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x100015dd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000155a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10007004]
ja 0x1000155a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000152a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10001580
jmp 0x100015dd
cmp dword [ebp - 0x14], 0x10000
jne 0x100015c3
cmp dword [ebp - 0x18], 0x10000
jb 0x100015c3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x100015b6
mov eax, dword [ebp - 8]
jmp 0x100015df
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100015d8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.100016c0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000152a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100015f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.100016f0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100016b5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x10001635
mov eax, dword [ebp - 4]
cmp eax, dword [0x10007004]
ja 0x10001635
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x10001605
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000165b
jmp 0x100016b5
cmp dword [ebp - 0x14], 0x10000
jne 0x1000169e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000169e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10001691
mov eax, dword [ebp - 8]
jmp 0x100016b7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x100016b0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.100016f0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x10001605
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10001720
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10001b10
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100070b4], 0
jne 0x1000175d
cmp dword [0x100070b0], 0
je 0x1000175d
mov eax, dword [0x100070b0]
mov dword [0x100070b4], eax
cmp dword [0x100070b4], 0
je 0x100017da
mov ecx, dword [0x100070b4]
cmp dword [ecx + 8], 0
je 0x100017da
mov edx, dword [0x100070b4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x100017da
mov ecx, dword [0x100070b4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x100017da
mov eax, dword [0x100070b4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x100017a9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x100017b0
xor eax, eax
jmp 0x100018f9
mov ecx, dword [0x100070b4]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x100018f9
mov edx, dword [0x100070b0]
mov dword [0x100070b4], edx
jmp 0x100017f6
mov eax, dword [0x100070b4]
mov ecx, dword [eax + 4]
mov dword [0x100070b4], ecx
cmp dword [0x100070b4], 0
je 0x10001836
cmp dword [0x100070b4], 0
je 0x10001834
mov edx, dword [0x100070b4]
cmp dword [edx + 8], 0
je 0x10001834
mov eax, dword [0x100070b4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x10001834
mov edx, dword [0x100070b4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x10001834
jmp 0x1000178e
jmp 0x100017e8
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.10001900
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x100018f7
mov eax, dword [ebp - 0x18]
mov dword [0x100070b4], eax
mov ecx, dword [0x100070b4]
mov dword [ecx], 0x52727464
mov edx, dword [0x100070b4]
mov dword [edx + 8], 0
mov eax, dword [0x100070b4]
mov ecx, dword [0x100070b0]
mov dword [eax + 4], ecx
mov edx, dword [0x100070b4]
mov dword [0x100070b0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100070b4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x100018c7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x100018e7
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x100018be
mov eax, dword [0x100070b4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000178e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x402440
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x264]
mov dword [ebp - 8], 1
push eax
mov eax, dword [ebp - 4]
dec eax
push ebx
neg eax
sbb eax, eax
push ebx
and al, 0xeb
mov word [ebp - 0x264], bx
add eax, 0x17
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x402553
lea ecx, [ebp - 0x264]
call fcn.00401402
mov edx, dword [0x408150]
lea ecx, [ebp - 0x264]
call fcn.00401369
cmp dword [ebp - 4], ebx
je 0x4024b6
lea ecx, [ebp - 0x264]
call fcn.00402080
lea ecx, [ebp - 0x264]
call fcn.00401402
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edi, edi
lea esi, [ebp + eax*2 - 0x264]
cmp edi, ebx
mov edx, str.7_Zip_File_Manager.lnk
je 0x4024e5
mov edx, str.7_Zip_Help.lnk
mov ecx, esi
call fcn.004012cc
lea eax, [ebp - 0x4bc]
push 0x40a44c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp edi, ebx
mov edx, str.7zFM.exe
je 0x40250c
mov edx, str.7_zip.chm
lea ecx, [ebp - 0x4bc]
call fcn.00401369
cmp dword [ebp - 4], ebx
jne 0x40252b
lea eax, [ebp - 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x402543
lea edx, [ebp - 0x4bc]
lea ecx, [ebp - 0x264]
call fcn.00402565
test eax, eax
je 0x402543
mov dword [ebp - 8], ebx
inc edi
cmp edi, 2
jb 0x4024d7
cmp dword [ebp - 4], ebx
je 0x402553
cmp dword [ebp - 8], ebx
jne 0x402560
inc dword [ebp - 4]
cmp dword [ebp - 4], 3
jb 0x402454
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404b05
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push esi
push edi
xor esi, esi
mov edx, 0x40a8e0
mov ecx, 0x40ace0
push 8
mov eax, esi
pop edi
mov ebx, eax
and ebx, 1
neg ebx
and ebx, 0xedb88320
shr eax, 1
xor eax, ebx
dec edi
jne 0x404b19
mov dword [edx], eax
add edx, 4
inc esi
cmp edx, ecx
jb 0x404b14
pop edi
pop esi
pop ebx
mov eax, dword [ecx - 0x400]
mov edx, eax
and edx, 0xff
shr eax, 8
mov edx, dword [edx*4 + 0x40a8e0]
xor edx, eax
mov dword [ecx], edx
add ecx, 4
cmp ecx, 0x40c8e0
jb 0x404b3a
mov eax, 0x404b71
mov dword [0x40c8e0], eax
mov dword [0x40a8d4], eax
ret

Function at 0x404cdc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
and dword [esi], 0
test edi, edi
je 0x404d35
mov eax, 0x400000
cmp edi, eax
ja 0x404cff
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x404d2d
test ecx, ecx
je 0x404d35
test edi, edi
jbe 0x404d35
jmp 0x404cf4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404d37
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404d3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 4], edx
mov ebx, ecx
mov edi, dword [esi]
and dword [esi], 0
test edi, edi
je 0x404d97
mov eax, 0x400000
cmp edi, eax
ja 0x404d61
mov eax, edi
lea ecx, [ebp + 8]
push 0
and dword [ebp + 8], 0
push ecx
push eax
push dword [ebp - 4]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [ebp - 4], ecx
add dword [esi], ecx
sub edi, ecx
test eax, eax
je 0x404d8f
test ecx, ecx
je 0x404d97
test edi, edi
jbe 0x404d97
jmp 0x404d56
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x404d99
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x405a23
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d0
push esi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x405a63
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405a63
push 0xc00
call eax
test eax, eax
jne 0x405af0
lea eax, [ebp - 0x2d0]
push 0x106
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405af0
cmp eax, 0x104
ja 0x405af0
cmp word [ebp + eax*2 - 0x2d2], 0x5c
je 0x405a96
mov word [ebp + eax*2 - 0x2d0], 0x5c
inc eax
mov esi, dword [str.userenv]
cmp byte [esi], 0
je 0x405af0
push edi
lea edi, [ebp + eax*2 - 0x2d0]
mov eax, edi
mov cl, byte [esi]
inc esi
test cl, cl
je 0x405abd
movzx cx, cl
mov word [eax], cx
inc eax
inc eax
jmp 0x405aab
and word [eax + 8], 0
mov word [eax], 0x2e
mov word [eax + 2], 0x64
mov word [eax + 4], 0x6c
mov word [eax + 6], 0x6c
push 8
lea eax, [ebp - 0x2d0]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x405aa9
pop edi
pop esi
leave
ret
Function at 0x40b860
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
call fcn.0045d110
mov esi, dword [esi + 4]
cmp esi, 0xffffffff
jne 0x40b882
mov ebx, 0x2719
jmp 0x40b8bc
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
push dword [ebp + 8]
push 4
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0045d110
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
test edi, edi
jne 0x40b8c9
xor ebx, ebx
call fcn.0045d110
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
test ebx, ebx
jne 0x40b8d6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, str.set_option
lea ecx, [esp + 0x10]
call fcn.0041a130
int3

Function at 0x411b70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x47ff20
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x49b950]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x18], ebx
lea eax, [ebx + 0xc]
push eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x30], 1
mov dword [esp + 0x48], 0
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x411ca6
call fcn.0045d110
cmp dword [esi], 0xffffffff
je 0x411c32
push 0
push 0
lea eax, [ebx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
mov dword [esp + 0x14], eax
test eax, eax
je 0x411c32
mov edi, dword [esi]
lea ebx, [eax + 0x18]
push ebx
mov dword [esp + 0x38], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x38], 1
mov byte [esp + 0x48], 1
call fcn.0045d110
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x1c]
push eax
push edi
mov dword [esp + 0x24], 0x3e3
call fcn.0041a5a0
push ebx
mov byte [esp + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x24], 0
call fcn.0045d110
mov ecx, dword [esi]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push 1
lea edx, [esi + 4]
call fcn.0041a690
mov dword [esi], 0xffffffff
mov byte [esi + 4], 0
mov edi, dword [esi + 0xc]
add esp, 8
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
test edi, edi
je 0x411c9b
lea eax, [edi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x411c9b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lea eax, [edi + 8]
or edx, 0xffffffff
lock xadd dword [eax], edx
jne 0x411c9b
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x411bc8
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret