joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e14e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x544320]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b12e0
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4e1571
lea eax, [ebp - 0x14]
push eax
call fcn.004e0ef0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4e1547
mov ecx, dword [esi + 0x800]
push 0
call fcn.0046f820
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f048a
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.0046f820
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f048a
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4e1680
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x544320]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
push esi
push dword [ebp + 0x18]
mov esi, ecx
sub esp, 0x10
mov eax, esp
movdqu xmmword [eax], xmm0
call fcn.004b3a60
mov ecx, dword [esi + 0x800]
test ecx, ecx
je 0x4e1719
lea eax, [ebp - 0x14]
push eax
call fcn.004e0ef0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsRectEmpty]
test eax, eax
je 0x4e16ef
mov ecx, dword [esi + 0x800]
push 0
call fcn.0046f820
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004f048a
mov esp, ebp
pop ebp
ret 0x14
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
sub eax, edx
mov ecx, dword [ebp - 0x14]
push 0x54
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [esi + 0x800]
push 0
call fcn.0046f820
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004f048a
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4e5270
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.004a8a00
mov edi, eax
add esp, 8
test edi, edi
jne 0x4e5314
push eax
push 0x80
push 3
push eax
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4e5309
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
test eax, eax
je 0x4e5309
push eax
mov dword [ebp + 8], edi
call fcn.004f035a
add esp, 4
mov edi, eax
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp - 4]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
je 0x4e5305
push edi
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
test edi, edi
jne 0x4e5317
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 4]
push eax
push edi
mov ecx, ebx
call fcn.004e5340
push edi
mov esi, eax
call sub.MSVCR120.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4ecdf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
and edi, 7
je 0x4ece17
cmp eax, edi
jge 0x4ece0f
push esi
call fcn.004e8c60
add esp, 4
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4ece40
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4ece23
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x4ece5c
mov edi, dword [esi + 4]
mov eax, dword [esi]
cmp eax, edi
jb 0x4ece4d
xor dl, dl
jmp 0x4ece52
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4ece43
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x4ece91
pop edi
pop esi
mov dword [ebp + 8], str.zlib_corrupt
pop ebp
jmp fcn.004e8b70
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4ecea9
pop edi
pop esi
mov dword [ebp + 8], str.read_past_buffer
pop ebp
jmp fcn.004e8b70
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4ecec7
push edi
push ecx
push esi
call fcn.004f0070
add esp, 0xc
test eax, eax
jne 0x4ecec7
pop edi
pop esi
pop ebp
ret
push edi
push dword [esi]
push dword [esi + 0x10]
call sub.MSVCR120.dll_memcpy
add dword [esi], edi
add esp, 0xc
add dword [esi + 0x10], edi
mov eax, 1
pop edi
pop esi
pop ebp
ret
Function at 0xd37db0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5e4000]
lea eax, [edi + 0x735120]
push dword [eax]
mov dword [eax], 0x54345012
push eax
push edi
or ebp, 0xffffffff
jmp 0xd37de2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xd37de9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xd37dd8
mov eax, 1
add ebx, ebx
jne 0xd37dfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xd37df0
jne 0xd37e0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd37df0
xor ecx, ecx
sub eax, 3
jb 0xd37e20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xd37e92
mov ebp, eax
add ebx, ebx
jne 0xd37e2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0xd37e38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0xd37e5c
inc ecx
add ebx, ebx
jne 0xd37e48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xd37e3d
jne 0xd37e59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xd37e3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xd37e7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xd37e6d
jmp 0xd37dde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xd37e7c
add edi, ecx
jmp 0xd37dde
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x2add6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xd37e9e
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xd37ea3
lea edi, [esi + 0x933000]
mov eax, dword [edi]
or eax, eax
je 0xd37f14
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x93cec4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x93d08c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xd37ec9
mov ecx, edi
jns 0xd37ef8
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x93d094]
or eax, eax
je 0xd37f0e
mov dword [ebx], eax
add ebx, 4
jmp 0xd37ee6
call dword [esi + 0x93d090]
mov ebp, dword [esi + 0x93d098]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0xd37f48
sub esp, 0xffffff80
jmp 0x404008
Function at 0x4010c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x450059
push eax
mov eax, 0x1004
mov dword fs:[0], esp
call fcn.00445360
push esi
xor eax, eax
mov dword [ebp - 4], 0
push 0xffe
mov dword [ebp - 0x10], 0
push eax
mov word [ebp - 0x1010], ax
lea eax, [ebp - 0x100e]
push eax
mov esi, ecx
call fcn.0043da70
add esp, 0xc
push dword [esi + 0x34]
lea eax, [ebp - 0x1010]
push 0x800
push eax
push 0x457cf0
push dword [ebp + 0xc]
push str.Product
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov dword [esi + 0x30], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x1010]
push eax
mov ecx, esi
call fcn.00401c50
push 0x457cd0
mov dword [ebp - 4], 0
push 0x457cd4
mov ecx, esi
mov dword [ebp - 0x10], 1
call fcn.004012e0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401180
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x450648
push eax
mov dword fs:[0], esp
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp + 8]
call fcn.00401c50
push 0x457cd4
push 0x457cd0
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.004012e0
push dword [esi + 0x34]
push dword [ebp + 8]
push dword [ebp + 0xc]
push str.Product
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov edi, eax
mov dword [esi + 0x30], edi
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
or edx, 0xffffffff
lea ecx, [esi + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4011ff
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401a89
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ac4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401ac0
lea ebx, [ebx]
cmp esi, edx
jae 0x401ac4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x401ab0
cmp esi, edx
jb 0x401acb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x402530
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push ebx
push esi
push edi
jmp 0x402540
mov edx, eax
and edx, 1
dec edx
not edx
and edx, 0xedb88320
mov ecx, eax
shr ecx, 1
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov edx, ecx
and edx, 1
dec edx
shr ecx, 1
not edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, 0xedb88320
shr edx, 1
xor ecx, edx
mov dword [eax*4 + 0x46b6c0], ecx
inc eax
cmp eax, 0x100
jb 0x402540
cmp eax, 0x800
jae 0x402613
lea esp, [esp]
mov edx, dword [eax*4 + 0x46b2c0]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x46b6c0]
inc eax
mov dword [eax*4 + 0x46b6bc], edx
cmp eax, 0x800
jb 0x4025f0
lea ecx, [ebp - 0x20]
mov dword [0x46a4f4], 0x4026d0
call fcn.00406270
test eax, eax
je 0x4026c8
mov edi, dword [ebp - 0x10]
mov esi, edi
shr esi, 8
shr edi, 4
and esi, 0xff00f
and edi, 0xf00f
xor ecx, ecx
mov eax, 0x467140
xor edx, edx
lea ecx, [ecx]
mov ebx, dword [ebp - 0x1c]
cmp dword [eax - 8], ebx
jne 0x402667
mov ebx, dword [ebp - 0x18]
cmp dword [eax - 4], ebx
mov ebx, dword [ebp - 0x14]
jne 0x402667
cmp dword [eax], ebx
je 0x402676
add edx, 0xc
inc ecx
add eax, 0xc
cmp edx, 0x24
jb 0x402650
or ecx, 0xffffffff
sub ecx, 0
je 0x4026af
dec ecx
je 0x40269e
dec ecx
jne 0x4026c8
cmp esi, 6
jb 0x4026c8
jne 0x4026be
cmp edi, 0xf
jb 0x4026c8
mov dword [0x46a4f4], 0x402770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 5
jb 0x4026c8
jne 0x4026be
cmp edi, 6
jb 0x4026c8
cmp edi, 0xa
jmp 0x4026bc
cmp esi, 6
jb 0x4026c8
jne 0x4026be
cmp edi, 0x100c
je 0x4026c8
mov dword [0x46a4f4], 0x402770
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4031b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 4], ecx
test esi, esi
je 0x40320f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
push eax
mov eax, esi
cmp esi, 0x400000
cmova eax, edx
push eax
push ebx
push dword [ecx]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x403218
test ecx, ecx
je 0x40320f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x4031d0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403230
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, edx
mov esi, dword [edi]
mov dword [ebp - 4], ecx
test esi, esi
je 0x40328f
mov dword [edi], 0
mov edx, 0x400000
push 0
lea eax, [ebp + 8]
push eax
mov eax, esi
cmp esi, 0x400000
cmova eax, edx
push eax
push ebx
push dword [ecx]
mov dword [ebp + 8], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x403298
test ecx, ecx
je 0x40328f
mov ecx, dword [ebp - 4]
mov edx, 0x400000
test esi, esi
jne 0x403250
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4060d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
push ebx
mov eax, dword [eax]
push esi
mov esi, ecx
xor ebx, ebx
and eax, 7
mov dword [ebp - 4], esi
cmp edx, 5
jae 0x4060f4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
add dword [ebp + 8], 5
push edi
add edx, 0xfffffffc
or edi, 0xffffffff
add edx, esi
mov dword [ebp - 8], edx
add esi, ebx
mov dword [ebp - 0xc], esi
cmp esi, edx
jae 0x406122
lea ecx, [ecx]
mov cl, byte [esi]
and cl, 0xfe
cmp cl, 0xe8
je 0x40611f
inc esi
cmp esi, edx
jb 0x406110
mov dword [ebp - 0xc], esi
mov ebx, esi
sub ebx, dword [ebp - 4]
mov ecx, ebx
sub ecx, edi
cmp esi, edx
jae 0x406247
cmp ecx, 3
jbe 0x40613c
xor eax, eax
jmp 0x40617a
dec ecx
shl eax, cl
and eax, 7
je 0x40617a
movzx ecx, byte [eax + 0x457d48]
mov edx, esi
sub edx, ecx
cmp byte [eax + 0x457d40], 0
mov cl, byte [edx + 4]
je 0x406164
test cl, cl
je 0x406164
cmp cl, 0xff
jne 0x406177
mov edx, dword [ebp - 8]
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
mov edi, ebx
or eax, 1
inc ebx
jmp 0x406104
mov edx, dword [ebp - 8]
mov cl, byte [esi + 4]
mov edi, ebx
mov dword [ebp - 0x18], edi
test cl, cl
je 0x40619c
cmp cl, 0xff
je 0x40619c
mov esi, dword [ebp - 4]
and eax, 3
add eax, eax
or eax, 1
inc ebx
jmp 0x406104
movzx edi, cl
movzx ecx, byte [esi + 3]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 2]
shl edi, 8
or edi, ecx
movzx ecx, byte [esi + 1]
mov esi, dword [ebp + 8]
shl edi, 8
or edi, ecx
lea ecx, [ecx]
cmp dword [ebp + 0x10], 0
je 0x4061cd
lea edx, [edi + ebx]
add edx, esi
jmp 0x4061d3
mov edx, edi
sub edx, ebx
sub edx, esi
test eax, eax
je 0x406211
movzx edi, byte [eax + 0x457d48]
shl edi, 3
mov ecx, 0x18
sub ecx, edi
mov dword [ebp - 0x14], edi
mov edi, edx
shr edi, cl
mov ecx, edi
mov dword [ebp - 0x10], edi
test cl, cl
je 0x4061fd
cmp cl, 0xff
jne 0x406211
mov ecx, 0x20
sub ecx, dword [ebp - 0x14]
mov edi, 1
shl edi, cl
dec edi
xor edi, edx
jmp 0x4061c0
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x18]
mov ecx, edx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, edx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, edx
shr ecx, 8
mov byte [esi + 1], dl
mov edx, dword [ebp - 8]
mov byte [esi + 2], cl
mov esi, dword [ebp - 4]
add ebx, 5
jmp 0x406104
pop edi
cmp ecx, 3
jbe 0x40625c
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov dword [ecx], eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
shl eax, cl
mov ecx, dword [ebp + 0xc]
pop esi
and eax, 7
mov dword [ecx], eax
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408060
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov ebx, edx
mov esi, ecx
mov byte [ebp - 0x110], 0
call fcn.0043da70
lea ecx, [ebp - 0x110]
add esp, 0xc
sub ecx, esi
mov al, byte [esi]
mov byte [ecx + esi], al
lea esi, [esi + 1]
test al, al
jne 0x408095
lea edi, [ebp - 0x110]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x4080a8
mov ax, word [0x457f50]
push ecx
mov edx, ebx
lea ecx, [ebp - 8]
mov word [edi], ax
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00407fa0
mov ebx, dword [ebp - 8]
mov edx, ebx
add esp, 4
mov esi, edx
mov edi, edi
mov al, byte [edx]
inc edx
test al, al
jne 0x4080e0
lea edi, [ebp - 0x110]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4080f0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
push 0x467164
rep movsb byte es:[edi], byte [esi]
call dword [0x467168]
add esp, 8
lea eax, [ebp - 0x110]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x408131
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408610
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, edx
mov esi, ecx
test edi, edi
je 0x408708
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 4]
push eax
push 0x452788
push 1
push 0
push 0x452798
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x408708
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
mov ecx, dword [eax]
push edx
push 0x4527a8
push eax
call dword [ecx]
test eax, eax
js 0x4086ff
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
test esi, esi
jne 0x408679
push dword [0x4690c0]
jmp 0x40867a
push esi
push eax
call dword [ecx + 0x50]
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x40868f
mov eax, dword [ebp - 4]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x4086a0
mov eax, dword [ebp - 4]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push 1
mov ecx, dword [eax]
push eax
call dword [ecx + 0x3c]
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x4086bc
mov eax, dword [ebp - 4]
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp + 8]
test eax, eax
je 0x4086db
push eax
push edi
lea eax, [ebp - 0x210]
push str._s_s
push eax
call fcn.0043c396
add esp, 0x10
jmp 0x408757
push 0x5c
test esi, esi
je 0x4086e4
push esi
jmp 0x4086ea
push dword [0x4690c0]
call fcn.0043c453
add esp, 8
test eax, eax
jne 0x408710
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push eax
push edi
lea eax, [ebp - 0x210]
push str._s_s
push eax
call fcn.0043c396
lea ecx, [ebp - 0x210]
add esp, 0x10
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408730
sub ecx, edx
sar ecx, 1
mov eax, 0x6b
mov dword [ebp + ecx*2 - 0x216], 0x6e006c
mov word [ebp + ecx*2 - 0x212], ax
mov edx, dword [ebp + 0x24]
test edx, edx
je 0x408771
mov esi, dword [edx]
test esi, esi
je 0x408771
push dword [edx + 4]
mov eax, dword [ebp - 4]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 8]
push 1
mov ecx, dword [eax]
lea edx, [ebp - 0x210]
push edx
push eax
call dword [ecx + 0x18]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ecx]
mov esi, eax
call dword [edx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
test esi, esi
pop edi
setns al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4087b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4087d1
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x10]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
mov esp, ebp
pop ebp
ret
Function at 0x408820
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x194
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x467190
mov dword [0x46a058], eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor eax, eax
push 0x18e
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.0043da70
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.004087b0
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x40887c
xor ecx, ecx
jmp 0x408890
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408881
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, 0x46a0a8
call fcn.00401ea0
push 0x18
call fcn.0043b619
mov esi, eax
add esp, 4
test esi, esi
je 0x4088e8
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [section..data]
mov ecx, section..data
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 8], eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
jmp 0x4088ea
xor esi, esi
push ebx
mov dword [0x46a018], esi
call fcn.0040f340
mov edi, dword [0x46a018]
push 0x38
cmp byte [edi], 0
je 0x408920
call fcn.0043b619
mov esi, eax
add esp, 4
test esi, esi
je 0x40893d
mov ecx, esi
call fcn.0040c200
mov dword [esi], vtable.CSilentInstall2.0
jmp 0x40893f
call fcn.0043b619
mov esi, eax
add esp, 4
test esi, esi
je 0x40893d
mov ecx, esi
call fcn.0040c200
mov dword [esi], vtable.CUIInstaller2.0
jmp 0x40893f
xor esi, esi
mov ecx, esi
mov dword [edi + 0x10], esi
test ecx, ecx
je 0x4089b9
mov eax, dword [ecx]
mov eax, dword [eax + 4]
call eax
test al, al
je 0x4089b9
mov ecx, dword [0x46a018]
cmp byte [ecx], 0
jne 0x4089b4
push 0x20
call fcn.0043b619
mov esi, eax
add esp, 4
test esi, esi
je 0x4089b9
push ecx
push ebx
push dword [ebp + 8]
mov dword [esi + 0xc], 1
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov ecx, esi
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi], vtable.CInstallUIThread.0
call fcn.00417820
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
jmp 0x4089b9
call fcn.0040f420
mov esi, dword [0x46a018]
test esi, esi
je 0x4089d3
mov ecx, esi
call fcn.0040f010
push esi
call fcn.0043b158
add esp, 4
mov dword [0x46a018], 0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [0x46a05c]
test eax, eax
je 0x4089fd
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x46a05c], 0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10