joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411660
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x425536
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x42c2e4]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x1c], ecx
mov dword [esp + 0x10], ecx
mov edx, 0xf
mov dword [eax + 0x44], edx
mov dword [eax + 0x40], ecx
mov byte [eax + 0x30], cl
mov byte [esp + 0x10], 1
mov dword [eax + 0x60], edx
mov dword [eax + 0x5c], ecx
mov byte [eax + 0x4c], cl
mov byte [esp + 0x10], 2
mov dword [eax + 0x7c], edx
mov dword [eax + 0x78], ecx
mov byte [eax + 0x68], cl
mov byte [esp + 0x10], 3
mov dword [eax + 0x9c], edx
mov dword [eax + 0x98], ecx
mov byte [eax + 0x88], cl
mov byte [esp + 0x10], 4
mov dword [eax + 0xb8], edx
mov dword [eax + 0xb4], ecx
mov byte [eax + 0xa4], cl
mov byte [esp + 0x10], 5
mov dword [eax + 0xd4], edx
mov dword [eax + 0xd0], ecx
mov byte [eax + 0xc0], cl
mov byte [esp + 0x10], 6
mov dword [eax + 0xdc], ecx
mov dword [eax + 0xe0], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax], ecx
mov dword [esp + 0x10], 0xffffffff
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

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

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x411a4a
test al, 0x10
je 0x411a4a
mov eax, 1
ret
xor eax, eax
ret
Function at 0x4121f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42c2e4]
jne 0x412203
repz ret
jmp fcn.00414794

Function at 0x416f27
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42c608]
je 0x416f42
inc edi
cmp edi, 0x17
jb 0x416f33
cmp edi, 0x17
jae 0x4170c2
push ebp
push 3
call fcn.0041d3e9
cmp eax, 1
pop ecx
je 0x41708e
push 3
call fcn.0041d3e9
test eax, eax
pop ecx
jne 0x416f76
cmp dword [0x42c330], 1
je 0x41708e
cmp ebx, 0xfc
je 0x4170c1
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x449cc0
push ebp
call fcn.004128b7
add esp, 0xc
test eax, eax
je 0x416fac
push esi
push esi
push esi
push esi
push esi
call fcn.00417bc8
add esp, 0x14
push 0x104
mov esi, 0x449cd9
push esi
push 0
mov byte [0x449ddd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416ff0
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004128b7
add esp, 0xc
test eax, eax
je 0x416ff0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00417bc8
add esp, 0x14
push esi
call fcn.004146a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x417035
push esi
call fcn.004146a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x449fd4
push 0x4273cc
sub ecx, eax
push ecx
push eax
call fcn.0041d336
add esp, 0x14
test eax, eax
je 0x417035
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00417bc8
add esp, 0x14
jmp 0x417037
xor esi, esi
push 0x4273c8
push ebx
push ebp
call fcn.0041291c
add esp, 0xc
test eax, eax
je 0x417057
push esi
push esi
push esi
push esi
push esi
call fcn.00417bc8
add esp, 0x14
push dword [edi*8 + 0x42c60c]
push ebx
push ebp
call fcn.0041291c
add esp, 0xc
test eax, eax
je 0x417079
push esi
push esi
push esi
push esi
push esi
call fcn.00417bc8
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041d179
add esp, 0xc
jmp 0x4170c1
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x4170c1
cmp ebp, 0xffffffff
je 0x4170c1
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42c60c]
push dword [esi]
call fcn.004146a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41d179
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004156f6
xor ebx, ebx
cmp dword [0x44a224], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x41d24f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41d32f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x427694
push edi
call esi
cmp eax, ebx
je 0x41d32f
push eax
call fcn.00415688
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44a224], eax
call esi
push eax
call fcn.00415688
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44a228], eax
call esi
push eax
call fcn.00415688
mov dword [0x44a22c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00416cb4
test eax, eax
pop ecx
pop ecx
je 0x41d21d
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417bc8
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x41d24f
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00415688
cmp eax, ebx
pop ecx
mov dword [0x44a234], eax
je 0x41d24f
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415688
pop ecx
mov dword [0x44a230], eax
mov eax, dword [0x44a230]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x41d2d4
cmp dword [0x44a234], ecx
je 0x41d2d4
push eax
call fcn.004156ff
push dword [0x44a234]
mov esi, eax
call fcn.004156ff
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x41d2d4
cmp edi, ebx
je 0x41d2d4
call esi
cmp eax, ebx
je 0x41d2a1
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41d2a1
test byte [ebp - 0x18], 1
jne 0x41d2d4
lea eax, [ebp - 0x10]
push eax
call fcn.00416ceb
test eax, eax
pop ecx
je 0x41d2bc
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00417bc8
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41d2cb
or dword [ebp + 0x10], 0x200000
jmp 0x41d30f
or dword [ebp + 0x10], 0x40000
jmp 0x41d30f
mov eax, dword [0x44a228]
cmp eax, dword [ebp - 8]
je 0x41d30f
push eax
call fcn.004156ff
cmp eax, ebx
pop ecx
je 0x41d30f
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41d30f
mov eax, dword [0x44a22c]
cmp eax, dword [ebp - 8]
je 0x41d30f
push eax
call fcn.004156ff
cmp eax, ebx
pop ecx
je 0x41d30f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44a224]
call fcn.004156ff
cmp eax, ebx
pop ecx
je 0x41d32f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41d331
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.qmpJQplM
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x409152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409148
mov eax, 1
add ebx, ebx
jne 0x40916b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x409160
jne 0x40917c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x409160
xor ecx, ecx
sub eax, 3
jb 0x409190
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409202
mov ebp, eax
add ebx, ebx
jne 0x40919b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4091a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4091cc
inc ecx
add ebx, ebx
jne 0x4091b8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4091ad
jne 0x4091c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4091ad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4091ec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4091dd
jmp 0x40914e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4091ec
add edi, ecx
jmp 0x40914e
pop esi
mov edi, esi
mov ecx, 5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40920a
cmp byte [edi], 0
jne 0x40920a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40920f
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x40927e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa10c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa164]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40923c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xa16c]
or eax, eax
je 0x409278
mov dword [ebx], eax
add ebx, 4
jmp 0x409259
call dword [esi + 0xa168]
mov ebp, dword [esi + 0xa170]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4092b2
sub esp, 0xffffff80
jmp 0x40124f

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x4034db
pop dword [ebp - 0x2c]
mov eax, 0x851d43c3
sub eax, 0x84dd0ee8
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x659cf3b5
sub dword [ebp - 0x3c], 0x174aae6a
mov dword [ebp - 0x38], 0xe8cc2f24
sub dword [ebp - 0x38], 0xb698e2df
mov dword [ebp - 0x34], 0x4fbeb
add dword [ebp - 0x34], 0x4c474843
mov dword [ebp - 0x30], 0xfefe1b50
add dword [ebp - 0x30], 0x101e4b0
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xcb1fac69
sub dword [ebp - 0x3c], 0x56ad4313
mov dword [ebp - 0x38], 0x5db4933e
sub dword [ebp - 0x38], 0x1c4831c9
mov dword [ebp - 0x34], 0xc6bfa1b5
add dword [ebp - 0x34], 0x9cafcab7
mov dword [ebp - 0x30], 0xb4885d3b
add dword [ebp - 0x30], 0x4b77a2c5
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x10b2de1f
add eax, 0xef8d6231
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3b2e4
push 0
call eax
mov ecx, 0x5cc3f40a
sub ecx, 0x5cc39adc
xor esi, esi
add esi, eax
mov edx, 0x408400
add edx, dword [ebp - 0x2c]
mov edi, 0xf3bef70d
sub edi, 0x16c98d8b
sub dword [ebp - 0x28], 0xf14361f
mov ebx, dword [edx]
xor dword [ebp - 4], 0x7e2b4b2c
add ebx, edi
mov dword [esi], ebx
add esi, 0x93248c4
sub esi, 0x93248c0
add edx, 0x9230c22
sub edx, 0x9230c1e
loop 0x4035f4
add eax, 0xd36f8f8e
sub eax, 0xd36e3803
mov ebx, eax
add eax, 0x8fbb3bef
sub eax, 0x8fbb3bea
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x40236f
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, dword [ebp + 0x10]
test eax, eax
jle 0x4023b0
push ebx
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x402389
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x4023ce
dec esi
je 0x4023c5
dec esi
jne 0x4023d3
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
movzx edx, byte [ecx]
shl edx, 8
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4063fa
Capabilities:
Create http request
Create thread

Disassembly:
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
push ebx
push ebx
push ebx
push ebx
push str.VIP_TRACKING
mov dword [edi + 8], ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
push ebx
push ebx
push ebx
push ebx
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
lea ecx, [edi + 4]
mov esi, eax
push ecx
push ebx
push esi
push 0x4064a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push esi
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x40694c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
push edi
mov edi, ecx
test ebx, ebx
je 0x4069a0
test edi, edi
je 0x4069a4
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406964
sub ecx, edx
je 0x4069a0
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406974
sub ecx, edx
je 0x4069a0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.Attempting_to_send
call esi
push ebx
call esi
push str._to_URL:
call esi
push edi
call esi
push 0x480934
call esi
test edi, edi
jne 0x4069df
mov esi, dword [0x4ae254]
test esi, esi
je 0x406a0e
xor edi, edi
push edi
push edi
push 0x12
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call fcn.0043d685
pop ecx
mov dword [0x4ae254], edi
jmp 0x406a0e
cmp dword [0x4ae254], 0
jne 0x406a04
push 0x10
call fcn.0043d6b0
pop ecx
test eax, eax
je 0x4069fd
mov ecx, eax
call fcn.004063fa
jmp 0x4069ff
xor eax, eax
mov dword [0x4ae254], eax
push dword [ebp + 8]
push ebx
push edi
call fcn.00406446
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x408db7
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, ecx
xor ebx, ebx
push 0x100
lea eax, [edi + 8]
mov dword [edi + 0x108], ebx
lea esi, [edi + 0x120]
mov byte [eax], bl
push eax
mov dword [edi + 4], ebx
mov dword [edi], ebx
mov byte [edi + 0x10c], 1
mov byte [edi + 0x124], 1
mov dword [esi], ebx
mov dword [edi + 0x11c], ebx
call fcn.0043e29a
mov eax, dword [ebp + 0xc]
push 8
push 8
mov dword [edi + 0x108], eax
call fcn.0043e307
add esp, 0x14
mov dword [edi + 0x114], eax
push eax
call dword [sym.imp.KERNEL32.dll_InitializeSListHead]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push ebx
push edi
push 0x408ff0
push ebx
push ebx
mov dword [edi + 0x11c], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x118], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x408e4d
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov ecx, edx
push esi
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408e59
sub ecx, esi
pop esi
je 0x408e9d
mov al, byte [edx + ecx - 1]
cmp al, 0x2e
je 0x408e7d
cmp al, 0x78
je 0x408e7d
cmp al, 0x58
je 0x408e7d
cmp al, 0x30
jl 0x408e80
cmp al, 0x39
jg 0x408e80
dec ecx
jne 0x408e65
test ecx, ecx
je 0x408e9d
push edx
call dword [sym.imp.WSOCK32.dll_gethostbyname]
test eax, eax
je 0x408e98
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x408ea4
or eax, 0xffffffff
jmp 0x408ea4
push edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
pop ebp
ret 4
Function at 0x40a6e8
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, ecx
xor edi, edi
push edi
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x480c60
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
push str.GetSecurityInfo
push ebx
call esi
push str.SetSecurityInfo
push ebx
mov dword [ebp - 8], eax
call esi
push 0x480c9c
mov edi, eax
push ebx
mov dword [ebp - 0x24], edi
call esi
push str.AllocateAndInitializeSid
push ebx
mov dword [ebp - 4], eax
call esi
cmp dword [ebp - 8], 0
mov dword [ebp - 0x20], eax
je 0x40a85f
test edi, edi
je 0x40a85f
cmp dword [ebp - 4], 0
je 0x40a85f
test eax, eax
je 0x40a85f
xor edi, edi
push edi
push 0x2000000
push 3
push edi
push edi
push 0x60000
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40a85f
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], edi
push eax
push edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
push edi
push edi
push 4
push 1
push esi
call dword [ebp - 8]
cmp dword [ebp - 0x1c], edi
jne 0x40a7b4
cmp dword [ebp - 0xc], edi
jne 0x40a84f
xor ecx, ecx
mov word [ebp - 0x18], 0x500
lea eax, [ebp - 4]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], ecx
push eax
call dword [ebp - 0x20]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
xor ecx, ecx
mov dword [ebp - 0x28], eax
inc ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x40], ecx
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x10000000
push eax
xor edi, edi
mov dword [ebp - 0x3c], 3
push ecx
mov dword [ebp - 0x2c], 2
mov dword [ebp - 0x30], edi
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov eax, dword [ebp - 8]
test eax, eax
je 0x40a837
push edi
push eax
push edi
push edi
push 4
push 1
push esi
call dword [ebp - 0x24]
mov eax, dword [ebp - 8]
cmp dword [ebp - 4], edi
je 0x40a848
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a9d4
Capabilities:
Hash data using rshash

Disassembly:
push esi
push edi
mov esi, edx
mov edi, 0xf8c9
xor edx, edx
jmp 0x40a9f0
imul edx, edi
movsx eax, al
imul edi, edi, 0x5c6b7
add edx, eax
inc ecx
mov al, byte [ecx]
test al, al
jne 0x40a9e1
test esi, esi
je 0x40aa00
mov eax, edx
xor edx, edx
div esi
pop edi
mov eax, edx
pop esi
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40b919
xor eax, eax
ret
shr eax, 4
not eax
and eax, 1
ret
Function at 0x40d2ba
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
call fcn.0041026f
test eax, eax
jne 0x40d2e6
push 0x30
push str.Cannot_start_install
push str.There_is_a_problem_with_the_install_program.
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40d33f
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.0040dbe5
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
mov eax, dword [0x4ae264]
add eax, 0xd851
push eax
call fcn.004217ed
mov edx, dword [0x4ae264]
pop ecx
lea ecx, [edx + 0xa4d8]
cmp byte [ecx], 0
jne 0x40d32d
cmp dword [edx + 0xa5d7], 0
je 0x40d33c
mov edx, dword [edx + 0xa5d7]
push ecx
push ecx
call fcn.00407301
pop ecx
pop ecx
xor eax, eax
inc eax
mov esp, ebp
pop ebp
ret

Function at 0x40d3f1
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x560
lea eax, [ebp - 0x25c]
push ebx
push esi
push edi
mov esi, 0x104
xor ebx, ebx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x360]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x4ae264]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test byte [eax + 0xaf68], 1
je 0x40d451
lea ecx, [ebp - 0x158]
add eax, 0xb07b
push ecx
push ebx
push eax
lea eax, [ebp - 0x360]
push eax
call esi
mov eax, dword [0x4ae264]
test byte [eax + 0xaf68], 2
je 0x40d471
lea ecx, [ebp - 0x158]
add eax, 0xa8de
push ecx
push ebx
push eax
lea eax, [ebp - 0x360]
push eax
call esi
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push ebx
push 0x4000000
push 3
push ebx
push 1
push ebx
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
lea eax, [ebp - 0x25c]
push eax
push edi
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x560]
push str._s__cleanup__d___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x54]
push 0
push eax
call fcn.00443c10
add esp, 0x20
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x10]
xor ecx, ecx
push eax
lea eax, [ebp - 0x54]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
push ecx
lea eax, [ebp - 0x560]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d52a
Capabilities:
Delete directory
Delete file

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, edx
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5c
push edi
call fcn.0043d730
pop ecx
pop ecx
test eax, eax
je 0x40d558
mov byte [eax], 0
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
ret
Function at 0x40dbe5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x481cac
push eax
mov dword [0x4ae27c], eax
call edi
push str.user32
mov dword [0x4ae288], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.SetWindowTextW
push eax
mov dword [0x4ae284], eax
call edi
push str.GetWindowTextW
push dword [0x4ae284]
mov dword [0x4ae274], eax
call edi
cmp dword [0x4ae288], 0
mov dword [0x4ae268], eax
pop edi
je 0x40dc5b
cmp dword [0x4ae274], 0
mov byte [0x4ae270], 1
jne 0x40dc62
mov byte [0x4ae270], 0
push 0x90
lea eax, [ebp - 0x90]
mov dword [ebp - 0x94], 0x94
push 0
push eax
call fcn.00443c10
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x90], 5
sbb al, al
inc al
mov byte [0x4ae270], al
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
xor ebx, ebx
lea eax, [ebp - 0x103]
push 0x103
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.00443c10
add esp, 0xc
lea edx, [ebp - 0x104]
push ebx
push ecx
call fcn.0040b8b5
push ecx
lea ecx, [ebp - 0x104]
call fcn.0040b922
pop ecx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e186
mov ebx, eax
and ebx, 0x10
xor eax, eax
test ebx, ebx
pop ebx
setg al
mov esp, ebp
pop ebp
ret