joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405ad6
Capabilities:
Delete file
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
mov esi, 0x410084
push edi
push esi
push dword [ebp + 0xc]
call sub.MSVCRT.dll_fopen
pop ecx
mov edi, eax
pop ecx
push 1
test edi, edi
pop ebx
jne 0x405b2f
mov edi, dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test bl, al
je 0x405b11
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405b2b
push esi
push edi
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x405b2f
xor eax, eax
jmp 0x405ba4
mov eax, dword [ebp + 0x10]
mov esi, 0x400
mov dword [ebp + 0x10], eax
push dword [ebp + 8]
cmp eax, esi
jle 0x405b6f
push esi
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_fread
push edi
mov dword [ebp - 4], eax
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_fwrite
mov eax, dword [ebp + 0x10]
add esp, 0x20
sub eax, dword [ebp - 4]
mov dword [ebp + 0x10], eax
jmp 0x405b3a
push dword [ebp + 0x10]
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_fread
push edi
push eax
lea eax, [ebp - 0x404]
push ebx
push eax
call sub.MSVCRT.dll_fwrite
push edi
call sub.MSVCRT.dll_fclose
add esp, 0x24
push 0x26
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x406028
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
push ebx
push esi
push edi
lea eax, [ebp - 0x2a4]
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push str._s.dll
push eax
call sub.MSVCRT.dll_sprintf
mov ecx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 0x2a4]
push dword [ebp + 0xc]
push eax
call fcn.00405beb
lea eax, [ebp - 0x9c]
mov dword [ebp - 0x9c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov ebx, str.SoftwareMicrosoftWindowsCurrentVersion_s
mov esi, 0x20006
mov edi, closesocket
je 0x4060c8
xor eax, eax
cmp dword [ebp - 0x8c], 1
sete al
test eax, eax
je 0x4060c8
push str.RunServices
lea eax, [ebp - 0x1a0]
push ebx
push eax
call sub.MSVCRT.dll_sprintf
mov ecx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1a0]
push esi
push eax
push edi
call fcn.0040615a
test eax, eax
je 0x406115
push 0x4104f8
lea eax, [ebp - 0x1a0]
push ebx
push eax
call sub.MSVCRT.dll_sprintf
mov ecx, dword [ebp - 8]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1a0]
push esi
push eax
push edi
call fcn.0040615a
test eax, eax
je 0x406115
mov ecx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1a0]
push esi
push eax
push closesocket
call fcn.0040615a
mov esi, eax
test esi, esi
jne 0x406148
cmp dword [ebp + 0x10], 0
jne 0x406129
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x406146
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push dword [ebp + 8]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4072f3
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
mov eax, 0x408984
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x2f4
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], esp
push eax
push ecx
mov ecx, ebx
call fcn.004074e7
lea eax, [ebp - 0x300]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x407338
xor eax, eax
jmp 0x407471
lea eax, [ebp - 0x170]
xor edi, edi
push 0x100
push eax
mov dword [ebp - 4], edi
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x407364
lea eax, [ebp - 0x20]
push 0x40c778
push eax
mov dword [ebp - 0x20], edi
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x170]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
cmp esi, edi
jne 0x407388
lea eax, [ebp - 0x1c]
push 0x40c778
push eax
mov dword [ebp - 0x1c], edi
call sub.MSVCRT.dll__CxxThrowException
cmp word [esi + 0xa], 4
je 0x4073a0
lea eax, [ebp - 0x18]
push 0x40c778
push eax
mov dword [ebp - 0x18], edi
call sub.MSVCRT.dll__CxxThrowException
mov al, byte [0x410e6c]
push 0xf
mov byte [ebp - 0x70], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x6f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 0
lea eax, [eax + edi*4]
je 0x40744f
movsx ecx, word [esi + 0xa]
push ecx
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memcpy
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
lea eax, [ebp - 0x70]
push str._d._d._d._d
push eax
call sub.MSVCRT.dll_sprintf
mov al, byte [ebp + 0xb]
add esp, 0x24
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
push 0
call fcn.004047cd
lea eax, [ebp - 0x70]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404e51
lea eax, [ebp - 0x30]
mov ecx, ebx
push eax
mov byte [ebp - 4], 1
call fcn.004074d6
and byte [ebp - 4], 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004047cd
inc edi
jmp 0x4073b7
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebx + 4]
test ecx, ecx
jne 0x407460
xor eax, eax
jmp 0x407468
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 4
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x407f9c
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
jne 0x408034
lea eax, [esi + 0xc]
push eax
call fcn.0040454b
pop ecx
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [ebp + 8]
mov word [ebp - 0xe], ax
movsx eax, byte [edi]
push eax
call sub.MSVCRT.dll_isalpha
pop ecx
test eax, eax
push edi
je 0x407ff9
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x407ff0
mov eax, 0x81
jmp 0x408036
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x407fff
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0
push 1
pop edi
mov dword [ebp - 0xc], eax
push edi
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [esi + 8], eax
je 0x40802a
lea ecx, [ebp - 0x10]
push 0x10
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x408031
mov eax, 0x82
jmp 0x408036
mov dword [esi + 4], edi
xor eax, eax
pop edi
pop esi
leave
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
push dword [ebp + 8]
call sub.MSVCRT.dll_strlen
mov esi, eax
pop ecx
test esi, esi
mov ebx, esi
jbe 0x4080d3
mov eax, 0x3e8
cmp esi, eax
jae 0x4080b6
mov eax, esi
push 0
push eax
mov eax, ebx
sub eax, esi
add eax, dword [ebp + 8]
push eax
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4080da
sub esi, eax
jne 0x4080ab
pop edi
pop esi
pop ebx
pop ebp
ret 4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x40c778
push eax
call sub.MSVCRT.dll__CxxThrowException

Function at 0x4080f1
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0
mov edi, ecx
push 0x3e8
push esi
push dword [edi + 8]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x408128
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push 0x40c778
push eax
call sub.MSVCRT.dll__CxxThrowException
and byte [eax + esi], 0
push esi
mov ecx, edi
call fcn.00408174
test eax, eax
je 0x40816c
push esi
mov ecx, edi
call fcn.00408255
push 3
push 0x410b4c
push esi
call sub.MSVCRT.dll__mbsnbcmp
add esp, 0xc
neg eax
sbb eax, eax
push 0x40c778
and al, 0xfe
add eax, 0x85
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call sub.MSVCRT.dll__CxxThrowException
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
Function at 0x4082bc
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
mov eax, 0x4089c8
call sub.MSVCRT.dll__EH_prolog
sub esp, 0x220
push ebx
push esi
push edi
push 0x410088
push dword [ebp + 8]
mov dword [ebp - 0x10], ecx
call sub.MSVCRT.dll_fopen
mov ebx, eax
xor edi, edi
pop ecx
cmp ebx, edi
pop ecx
je 0x408321
push 2
push edi
push ebx
call sub.MSVCRT.dll_fseek
push ebx
call sub.MSVCRT.dll_ftell
mov esi, eax
add esp, 0x10
cmp esi, 1
jl 0x408321
push edi
push edi
push ebx
call sub.MSVCRT.dll_fseek
push esi
call sub.MSVCRT.dll_malloc
add esp, 0x10
cmp eax, edi
mov dword [ebp + 8], eax
jne 0x408328
push ebx
call sub.MSVCRT.dll_fclose
pop ecx
xor eax, eax
jmp 0x40844d
push dword [ebp + 0xc]
lea eax, [ebp - 0x22c]
push dword [ebp + 0xc]
push str.______NextPart_000_01C19920.83032BC0
push str._r_n_r_n___s_r_nContent_Type:_application_octet_stream__r_n_tname__s__r_nContent_Transfer_Encoding:_base64_r_nContent_Disposition:_attachment__r_n_tfilename__s__r_n_r_n
push eax
call sub.MSVCRT.dll_sprintf
mov ecx, dword [ebp - 0x10]
add esp, 0x14
lea eax, [ebp - 0x22c]
push eax
call fcn.00408092
lea ecx, [ebp - 0x2c]
call fcn.00404000
mov dword [ebp - 4], edi
mov edi, esi
test esi, esi
jle 0x408390
mov eax, 0x3e8
cmp edi, eax
jge 0x408372
mov eax, edi
push ebx
push eax
mov eax, dword [ebp + 8]
push 1
sub eax, edi
add eax, esi
push eax
call sub.MSVCRT.dll_fread
add esp, 0x10
test eax, eax
je 0x408390
sub edi, eax
test edi, edi
jg 0x408367
push ebx
call sub.MSVCRT.dll_fclose
pop ecx
push esi
lea ecx, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.0040416f
push 0x400
push dword [ebp + 8]
call sub.MSVCRT.dll_realloc
pop ecx
xor esi, esi
pop ecx
mov edi, eax
lea ecx, [ebp - 0x2c]
mov dword [ebp + 0xc], esi
call fcn.0040406e
cmp eax, esi
mov dword [ebp + 8], eax
jle 0x40842b
mov ebx, dword [ebp + 8]
cmp dword [ebp + 0xc], ebx
jge 0x40840d
sub ebx, dword [ebp + 0xc]
cmp ebx, 0x4a
jl 0x4083db
push 0x4a
pop ebx
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00404066
add eax, dword [ebp + 0xc]
push eax
lea eax, [esi + edi]
push eax
call sub.MSVCRT.dll_memcpy
add dword [ebp + 0xc], ebx
lea esi, [esi + ebx + 2]
add esp, 0xc
cmp esi, 0x39c
mov byte [esi + edi - 2], 0xd
mov byte [esi + edi - 1], 0xa
jl 0x4083c8
mov eax, dword [ebp - 0x10]
push 0
push esi
push edi
push dword [eax + 8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
je 0x40842b
mov eax, dword [ebp + 0xc]
xor esi, esi
cmp eax, dword [ebp + 8]
jl 0x4083c8
push edi
call sub.MSVCRT.dll_free
pop ecx
xor eax, eax
mov ecx, dword [ebp + 8]
cmp dword [ebp + 0xc], ecx
lea ecx, [ebp - 0x2c]
sete al
or dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.00404033
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x40a530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4a62c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x104
push 0
push eax
mov dword [ebp - 0x210], esi
call fcn.00455240
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00455240
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 1
push 0x486510
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea ecx, [ebp - 0x108]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
lea edx, [ecx + 1]
mov byte [esi], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a5c0
sub ecx, edx
lea eax, [ebp - 0x108]
push ecx
push eax
mov ecx, esi
call fcn.0040d860
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00447113
mov esp, ebp
pop ebp
ret 4
Function at 0x40afb0
Capabilities:
Check if file exists
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47df86
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x4a62c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00455240
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x218]
push eax
call ebx
mov esi, dword [ebp + 8]
test esi, esi
je 0x40b031
lea eax, [ebp - 0x218]
push eax
call ebx
sub esi, 1
jne 0x40b023
push str.NetBridge.dll
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
call fcn.0040aed0
mov ecx, eax
test ecx, ecx
je 0x40b193
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x21c]
call fcn.00408bc0
test al, al
jne 0x40b0a8
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b086
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040b820
mov esi, dword [ebp - 0x21c]
push esi
mov dword [ebp - 4], 1
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40b0c4
mov bl, 1
jmp 0x40b0d2
push esi
call fcn.00430020
add esp, 4
test eax, eax
sete bl
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40b0f1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
jne 0x40b173
cmp dword [edi], 0
jne 0x40b15a
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi], eax
test eax, eax
je 0x40b173
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.HttpInit
push eax
call esi
push str.HttpUninit
push dword [edi]
mov dword [edi + 4], eax
call esi
push str.zlib_uncompress
push dword [edi]
mov dword [edi + 8], eax
call esi
push str.zlib_compress
push dword [edi]
mov dword [edi + 0x10], eax
call esi
push str.zlib_compressBound
push dword [edi]
mov dword [edi + 0x14], eax
call esi
mov dword [edi + 0x18], eax
mov eax, dword [edi + 4]
test eax, eax
je 0x40b15a
call eax
mov dword [edi + 0xc], eax
cmp dword [edi + 8], 0
je 0x40b173
cmp dword [edi + 4], 0
je 0x40b173
cmp dword [edi + 0xc], 0
je 0x40b173
mov eax, 1
jmp 0x40b175
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447113
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00406bd0
int3
Function at 0x40b4b0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e000
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x4a62c4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [ebp - 0x28]
push eax
call fcn.0040a530
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40b515
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esi + 0x2c]
call fcn.00411490
mov ecx, esi
call fcn.00406e20
cmp byte [esi], 0
jne 0x40b68f
mov ecx, esi
call fcn.004072b0
cmp byte [esi], 0
jne 0x40b68f
mov ecx, esi
call fcn.00406fe0
cmp byte [esi], 0
jne 0x40b68f
mov ecx, esi
call fcn.00408870
cmp byte [esi], 0
jne 0x40b68f
mov ecx, esi
call fcn.00408f80
cmp byte [esi], 0
jne 0x40b68f
mov ecx, esi
call fcn.00409240
cmp byte [esi], 0
jne 0x40b68f
mov ecx, esi
call fcn.00406bf0
cmp byte [esi], 0
jne 0x40b68f
mov ecx, esi
call fcn.00408450
cmp byte [esi + 8], 0
je 0x40b68f
cmp byte [esi], 0
jne 0x40b68f
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0xffffffff
push eax
push str.UEFISecureBootEnabled
push str.SYSTEMCurrentControlSetControlSecureBootState
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0042f620
xor eax, eax
mov dword [ebp - 0x30], 0
add esp, 0x10
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov byte [ebp - 4], 1
test eax, eax
jne 0x40b5f4
push 9
lea edi, [eax + 1]
push str.Supported
jmp 0x40b60d
cmp eax, 1
jne 0x40b604
push 7
mov edi, eax
push str.Enabled
jmp 0x40b60d
push 0x17
xor edi, edi
push str.Disabled___Not_Detected
lea ecx, [ebp - 0x40]
call fcn.0040d950
sub esp, 0x18
lea eax, [ebp - 0x40]
mov ecx, esp
push eax
call fcn.00404b90
push edi
push 9
mov ecx, esi
call fcn.0040b1a0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0
cmp edx, 8
jb 0x40b66b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40b661
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6f5
push edx
push ecx
call fcn.00446e66
add esp, 8
cmp byte [esi], 0
jne 0x40b68f
mov ecx, esi
call fcn.00409560
cmp byte [esi], 0
jne 0x40b68f
mov ecx, esi
call fcn.00408cf0
cmp byte [esi], 0
jne 0x40b68f
mov ecx, esi
call fcn.004074b0
lea ecx, [esi + 0x2c]
call fcn.004115e0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40b6d9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40b6cf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b6fa
push edx
push ecx
call fcn.00446e66
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00447113
mov esp, ebp
pop ebp
ret
call fcn.00458349
call fcn.00458349
int3
Function at 0x40bb90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp + 8], 0
mov dword [esi + 0x28], eax
mov al, byte [ebp + 0xc]
mov byte [esi + 8], al
lea eax, [ebp + 8]
push eax
push 0
push esi
push 0x40bdf0
push 0
push 0
mov byte [esi], 0
call fcn.00462081
add esp, 0x18
mov dword [esi + 0x24], eax
mov al, 1
pop esi
pop ebp
ret 8

Function at 0x40be20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40be79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40be79
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40be6a
cmp esi, edx
jae 0x40be79
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40be58
cmp esi, edx
jae 0x40be79
cmp word [esi], 0
je 0x40be79
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40bf90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x4a62c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x40c031
cmp byte [esi + 0x3d], 0
je 0x40c031
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40bfe7
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40bff9
sub eax, 1
je 0x40bffd
sub eax, 2
je 0x40c031
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447113
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40c01a
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00461abe
add esp, 0x10
cmp edi, eax
jne 0x40bfe7
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447113
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.00447113
mov esp, ebp
pop ebp
ret
Function at 0x40ca90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e120
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a62c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.0042f5b0
mov edi, eax
add esp, 4
test edi, edi
je 0x40cb3b
push 1
mov dword [ebp - 4], 0
call fcn.00426f2e
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ebc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4a62c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x40ebf0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447113
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ec2c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x40ec2c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447113
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x40ed11
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x40ec54
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40ec87
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004611db
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447113
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40ed11
cmp eax, 1
jle 0x40ece4
cmp eax, 3
jne 0x40ed11
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.004035e0
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00447113
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40ed01
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00461abe
add esp, 0x10
cmp edi, eax
jne 0x40ed11
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x40ec17
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447113
mov esp, ebp
pop ebp
ret 4