joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402250
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x402280
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x10]
push esi
push edi
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call edi
push ebx
call edi
xor eax, eax
pop edi
test esi, esi
pop esi
pop ebx
sete al
ret

Function at 0x4077b7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ddd8
cmp edx, dword [eax]
je 0x4077d9
add eax, 8
inc ecx
cmp eax, 0x41de68
jl 0x4077ca
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ddd8]
jne 0x407907
mov eax, dword [0x420468]
cmp eax, 1
je 0x4078e1
test eax, eax
jne 0x40780a
cmp dword [0x41d694], 1
je 0x4078e1
cmp edx, 0xfc
je 0x407907
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407841
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407910
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407a00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407884
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407a00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x419b74
push edi
call fcn.00403380
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407910
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407920
lea eax, [ebp - 0xa0]
push 0x419b54
push eax
call fcn.00407920
push dword [esi + 0x41dddc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407920
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00409c59
add esp, 0x2c
pop edi
jmp 0x407907
lea eax, [ebp + 8]
lea esi, [esi + 0x41dddc]
push 0
push eax
push dword [esi]
call fcn.00407a00
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 0x40daf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.00402ec0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40dbbb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x40dbbb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40db6e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40db79
or bh, 8
and edi, 0x8000000
je 0x40db94
mov eax, dword [0x421bfc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x40dbbb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40df90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40dfbb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40dfdf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x40dffa
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x40fb28
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4173a8
call fcn.00403818
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00415f6c
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x40fb67
call fcn.00415f6c
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40fb75
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40fb83
or eax, 0xffffffff
jmp 0x40fc6b
mov ecx, esi
call fcn.0040fa9e
mov dword [ebp - 0x14], eax
call fcn.004108b4
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x40fbba
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x40fbba
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00410868
push dword [ebp - 0x14]
call fcn.004103b6
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0040f82b
cmp eax, edi
je 0x40fc2d
test byte [esi + 0x24], 0x10
je 0x40fbfb
push 4
mov ecx, esi
pop ebx
call fcn.00412956
test ah, 1
je 0x40fbf3
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004123bb
cmp dword [esi + 0x1c], edi
je 0x40fc2d
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041298a
jmp 0x40fc2d
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x40fc41
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x40fc5a
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x40fc5a
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0040fad8
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x412269
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4122ab
call fcn.00415f6c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4122ab
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4122a2
xor eax, eax
jmp 0x4122b3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004122b9
pop edi
pop esi
pop ebx
ret 4
Function at 0x41664e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x41667c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41669a
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004165b4
jmp 0x41669a
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41669a
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004165b4
test edi, edi
mov eax, edi
jne 0x416684
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403b87
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x415168]
jne 0x403b91
repz ret
jmp fcn.00406773

Function at 0x40b1a7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407195
and dword [ebp - 4], 0
cmp dword [0x468888], 0
mov ebx, eax
jne 0x40b258
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b309
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40eb64
push edi
call esi
test eax, eax
je 0x40b309
push eax
call fcn.00407123
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x468888], eax
call esi
push eax
call fcn.00407123
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x46888c], eax
call esi
push eax
call fcn.00407123
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x468890], eax
call esi
push eax
call fcn.00407123
pop ecx
mov dword [0x468898], eax
test eax, eax
je 0x40b258
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407123
pop ecx
mov dword [0x468894], eax
mov eax, dword [0x468894]
cmp eax, ebx
je 0x40b2b0
cmp dword [0x468898], ebx
je 0x40b2b0
push eax
call fcn.0040719e
push dword [0x468898]
mov esi, eax
call fcn.0040719e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2b0
test edi, edi
je 0x40b2b0
call esi
test eax, eax
je 0x40b2a7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b2a7
test byte [ebp - 0xc], 1
jne 0x40b2b0
or dword [ebp + 0x10], 0x200000
jmp 0x40b2e9
mov eax, dword [0x46888c]
cmp eax, ebx
je 0x40b2e9
push eax
call fcn.0040719e
pop ecx
test eax, eax
je 0x40b2e9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b2e9
mov eax, dword [0x468890]
cmp eax, ebx
je 0x40b2e9
push eax
call fcn.0040719e
pop ecx
test eax, eax
je 0x40b2e9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x468888]
call fcn.0040719e
pop ecx
test eax, eax
je 0x40b309
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b30b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
sub esp, 0x10
call dword [sym.imp.user32.dll_GetDesktopWindow]
mov dword [esp + 0xc], 5
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._Control_RunDLLW_16
sub esp, 0x10
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x401160
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop

Function at 0x4011d0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x54
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x401227
xor ecx, ecx
xor edx, edx
jmp 0x401209
cmp ax, 0x5c
jne 0x401290
add edx, 1
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401227
cmp ax, 9
je 0x401215
cmp ax, 0x20
jne 0x4011f0
test ecx, ecx
je 0x40127b
movzx eax, word [ebx + 2]
add ebx, 2
xor edx, edx
test ax, ax
jne 0x401209
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x20], 1
je 0x4012b0
movzx esi, word [ebp - 0x1c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
add ebx, 2
movzx eax, word [ebx]
cmp ax, 9
je 0x401278
cmp ax, 0x20
je 0x401278
jmp 0x401227
cmp ax, 0x22
jne 0x401219
and edx, 1
jne 0x401219
xor ecx, 1
jmp 0x4011fd
mov eax, 1
mov esi, 1
mov word [ebp - 0x1c], ax
jmp 0x401240

Function at 0x1008bc3
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
test dword [eax], ecx
je 0x1008be8
cmp dword [ebp - 0x75], 0xffffffc6
shr eax, 2
push edi
call dword [0x7ec08510]
sub byte [ebx + 0xf], dl
mov dh, 0x11
movzx edx, byte [ecx]
dec eax
inc ecx
movzx ebx, byte [ecx]
shl ebx, 8
sbb ecx, eax
jecxz 0x1008bf4
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
adc byte [ebx], cl
rol dword [ecx + 0xf], cl
mov dh, 0x19
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
test eax, eax
jg 0x1008be1
pop ebx
and esi, 3
pop esi
pop ebx
dec esi
je 0x1008c26
dec esi
je 0x1008c1d
dec esi
jne 0x1008c2b
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, edx
or byte [eax], al
int3
Function at 0x401018
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x167c
call fcn.0044e410
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00449020
xor eax, eax
mov dword [ebp - 0x10], ebx
lea edi, [ebp - 0xc]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x470e78]
add esp, 0xc
mov dword [ebp - 0x58], 0x44
test byte [eax + 0x9066], 1
mov edi, 0x206
je 0x4010d9
push 1
push eax
lea esi, [ebp - 0x1678]
call fcn.00407509
xor eax, eax
push edi
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push ebx
push eax
call fcn.00449020
add esp, 0xc
xor eax, eax
movzx ecx, word [ebp + eax - 0x786]
mov word [ebp + eax - 0x260], cx
inc eax
inc eax
cmp cx, bx
jne 0x401088
push 0x457a20
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x786]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [0x470e78]
test byte [eax + 0x9066], 2
je 0x401158
push 2
push eax
lea esi, [ebp - 0x1678]
call fcn.00407509
xor eax, eax
push edi
mov word [ebp - 0x260], ax
lea eax, [ebp - 0x25e]
push ebx
push eax
call fcn.00449020
add esp, 0xc
xor eax, eax
movzx ecx, word [ebp + eax - 0x786]
mov word [ebp + eax - 0x260], cx
inc eax
inc eax
cmp cx, bx
jne 0x40110c
push 0x457a40
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x786]
push eax
push ebx
push 0x20
push ebx
push ebx
push ebx
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4015b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
call fcn.00403fa1
test eax, eax
jne 0x4015dc
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 0x40160b
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00401ea9
lea eax, [esp]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
mov eax, dword [0x470e78]
add eax, 0xb7c4
push eax
call fcn.004153ee
xor eax, eax
pop ecx
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x4016b9
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x564
push ebx
push esi
push edi
mov edi, 0x104
push edi
lea eax, [ebp - 0x260]
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x364]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x470e78]
test byte [eax + 0x9066], 1
mov edi, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
je 0x401719
lea ecx, [ebp - 0x15c]
push ecx
push esi
add eax, 0x9175
push eax
lea eax, [ebp - 0x364]
push eax
call edi
mov eax, dword [0x470e78]
test byte [eax + 0x9066], 2
je 0x401739
lea ecx, [ebp - 0x15c]
push ecx
push esi
add eax, 0x89dc
push eax
lea eax, [ebp - 0x364]
push eax
call edi
push esi
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push esi
push 0x4000000
push 3
push esi
push 1
push esi
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
lea eax, [ebp - 0x260]
push eax
push ebx
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x564]
push str._s__cleanup__d___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00449020
add esp, 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
lea eax, [ebp - 0x564]
push eax
push esi
mov dword [ebp - 0x58], edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4017f0
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x5c
push dword [ebp + 0xc]
call fcn.0043f200
pop ecx
pop ecx
test eax, eax
je 0x401823
mov byte [eax], 0
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
ret
Function at 0x401ea9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.kernel32
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x457be8
push eax
mov dword [0x470e84], eax
call esi
push str.user32
mov dword [0x470e88], eax
call edi
push str.SetWindowTextW
push eax
mov dword [0x470e8c], eax
call esi
push str.GetWindowTextW
push dword [0x470e8c]
mov dword [0x470e90], eax
call esi
mov dword [0x470e94], eax
xor eax, eax
pop edi
pop esi
cmp dword [0x470e88], eax
je 0x401f1f
mov byte [0x470e77], 1
cmp dword [0x470e90], eax
jne 0x401f24
mov byte [0x470e77], al
push 0x90
push eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x94], 0x94
call fcn.00449020
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 [0x470e77], al
leave
ret

Function at 0x40269b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 0x1c], esi
je 0x4026ba
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push str.BlindCaffineSubstituteFamousCurtainTrickKingTinHalcyonDaysArapaho
call fcn.0041a5a2
add esp, 0xc
push esi
lea eax, [ebp + 0x1c]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4026f0
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
push esi
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ecx
pop ebp
ret

Function at 0x4026fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor edi, edi
push edi
push dword [ebp + 8]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402762
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ebx
push edi
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
mov eax, dword [ebx]
inc eax
push eax
call fcn.0043ed38
pop ecx
push ebx
mov edi, eax
push edi
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
test eax, eax
je 0x402762
test edi, edi
je 0x402760
push edi
call fcn.0043f824
pop ecx
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x14], 0
je 0x402785
test edi, edi
je 0x40278f
push dword [ebx]
push edi
push str.BlindCaffineSubstituteFamousCurtainTrickKingTinHalcyonDaysArapaho
call fcn.0041a5a2
add esp, 0xc
test edi, edi
je 0x40278f
mov eax, dword [ebx]
mov byte [edi + eax], 0
mov eax, edi
pop edi
pop esi
leave
ret