joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bdca
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ae90
mov eax, dword [0x46e700]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041953a
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41be0c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41bf68
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040a2e0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x470db8]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041c1f0
mov ecx, dword [esi*4 + 0x470db8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41bf61
cmp eax, dword [edi + ecx + 0x24]
jne 0x41bf61
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bf61
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041c1f0
add esp, 0x14
test edx, edx
jl 0x41bf61
jg 0x41bed7
test eax, eax
jb 0x41bf61
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41bf61
jl 0x41bef1
cmp dword [ebp - 0x1008], eax
ja 0x41bf61
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41bf0f
test ebx, ebx
je 0x41bf48
cmp ecx, edi
jae 0x41bf48
mov al, byte [ecx]
cmp al, 0xd
jne 0x41bf29
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41bf35
cmp byte [ecx + 1], 0xa
jne 0x41bf35
inc ecx
jmp 0x41bf35
movzx eax, al
movsx eax, byte [eax + 0x46f030]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41bf0f
cmp edx, ebx
jne 0x41bf0f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41bf66
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040a2cc
leave
ret
Function at 0x41edbd
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41ee5a
push ebx
push esi
call fcn.0041ed86
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041da0b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41ee07
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ee59
push edi
push eax
call fcn.004185d8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41ee27
call fcn.0041772b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41ee58
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041da0b
add esp, 0x20
test eax, eax
jne 0x41ee46
push edi
call fcn.0041772b
jmp 0x41ee4e
push ebx
call fcn.0041772b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x4239a6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x470db8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4239e6
cmp byte [ebx], 0xa
jne 0x4239e6
or byte [eax + edi + 0x28], 4
jmp 0x4239eb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x423ae9
mov al, byte [edx]
cmp al, 0x1a
je 0x423acb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x423a1a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x423a3f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x423a49
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4239fc
jmp 0x423ae9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423ac6
cmp dword [ebp - 0xc], 0
je 0x423ac6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x470db8]
test byte [eax + edi + 0x28], 0x48
je 0x423aa0
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x423a8b
mov byte [esi], dl
jmp 0x423a9c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x470db8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x423ae9
cmp byte [ebp - 1], 0xa
jne 0x423aaf
cmp esi, ebx
jne 0x423aaf
mov byte [esi], 0xa
jmp 0x423ae8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041c20e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x423ae9
mov byte [esi], 0xd
jmp 0x423ae8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x470db8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423ae5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423ae9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x423af2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x470db8]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x423b35
cmp word [esi], dx
jne 0x423b35
or byte [edi + eax + 0x28], 4
jmp 0x423b3a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x423c8d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x423c6d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x423b7c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x423bb2
cmp eax, edx
jae 0x423bbe
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x423b54
jmp 0x423c8d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423c69
cmp dword [ebp - 0x14], 0
je 0x423c69
mov eax, dword [ebx*4 + 0x470db8]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x423c41
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x423c0a
mov word [esi], cx
jmp 0x423c3d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x470db8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x470db8]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x470db8]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x423c8d
pop ebx
cmp word [ebp - 4], bx
jne 0x423c52
cmp esi, dword [ebp + 0xc]
jne 0x423c52
mov word [esi], bx
jmp 0x423c8a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041c20e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x423c8d
push 0xd
jmp 0x423c86
mov ecx, dword [ebx*4 + 0x470db8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x423c84
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x423c8d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4266a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4266cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4266cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401270
Capabilities:
Contain obfuscated stackstrings
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x404004]
xor eax, ebp
mov dword [ebp - 4], eax
push str.Welcome_to_The_CyberSecurity_Password_Manager__n_n
mov dword [ebp - 0xc], 0x4c303042
mov byte [ebp - 8], 0
mov word [ebp - 0xa8], 0x3549
mov byte [ebp - 0xa6], 0
mov dword [ebp - 0x14], 0x30723735
mov word [ebp - 0x10], 0x364e
mov byte [ebp - 0xe], 0
call fcn.00401010
push 0x403234
lea eax, [ebp - 0xac]
push str.License.dat
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
add esp, 0x10
test eax, eax
je 0x4012f3
push str.Failed_To_Find_License.dat_n
call fcn.00401010
push str.Please_Ensure_The_License_File_Exists__n
call fcn.00401010
add esp, 8
jmp 0x4013e2
push dword [ebp - 0xac]
lea eax, [ebp - 0xa4]
push 0x64
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
lea eax, [ebp - 0xa4]
push eax
push str.Provided_Key:__s_n_n
call fcn.00401010
add esp, 0x14
lea ecx, [ebp - 0xa4]
call fcn.00401040
test eax, eax
je 0x4013c6
mov al, byte [0x4031d0]
movups xmm0, xmmword [str.Heres_The_Acess_Code_:]
mov byte [ebp - 0x28], al
lea eax, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x40], xmm0
push str._s_n_n
movq xmm0, qword [0x4031c8]
mov dword [ebp - 0x24], 0x636c6557
mov dword [ebp - 0x20], 0x20656d6f
mov dword [ebp - 0x1c], 0x494d4441
mov word [ebp - 0x18], 0x214e
mov byte [ebp - 0x16], 0
movq qword [ebp - 0x30], xmm0
call fcn.00401010
lea eax, [ebp - 0x40]
push eax
push 0x4031dc
call fcn.00401010
push str.flag
call fcn.00401010
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0xc]
push eax
push str._s__s__s
call fcn.00401010
push str._UwU
call fcn.00401010
push 0x4031fc
call fcn.00401010
add esp, 0x2c
jmp 0x4013d3
push str.Unauthorized__n
call fcn.00401010
add esp, 4
push dword [ebp - 0xac]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
push str.pause
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
call fcn.00401400
mov esp, ebp
pop ebp
ret

Function at 0x401c05
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c44
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c44
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c44
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c44
cmp dword [ecx + 0x74], 0xe
jbe 0x401c44
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40bc30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40bd3c
test eax, eax
je 0x40bd3c
push esi
push edi
mov ecx, 0x10
mov esi, 0x426ff0
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x40bd23
lea edi, [eax + 4]
jmp 0x40bc87
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x40bc9c
mov dword [ebp - 4], 2
jmp 0x40bcbd
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x40bcb3
mov dword [ebp - 4], 1
jmp 0x40bcbd
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x40bd33
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x40bcf6
mov byte [ecx], 0x3d
jmp 0x40bd02
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x40bd0d
mov byte [ecx], 0x3d
jmp 0x40bd13
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x40bc84
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431ca0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0x402e96
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c
push ebx
push esi
push edi
mov dword [ebp - 8], esp
mov dword [ebp - 4], 0x4017a8
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x2c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 7
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x60], ebx
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x4c], 2
call fcn.0040b148
mov esi, dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
mov edi, eax
call esi
lea eax, [ebp - 0x30]
push eax
push 0xf00ff
push edi
call fcn.0040b238
call esi
lea ecx, [ebp - 0x54]
lea edx, [ebp - 0x60]
push ecx
push 0x40cec0
push edx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push ebx
call fcn.0040b198
call esi
lea ecx, [ebp - 0x60]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
push ecx
lea edx, [ebp - 0x58]
push 0x1c
push edx
push ebx
push eax
call fcn.0040b1e8
mov edi, eax
call esi
xor ecx, ecx
cmp edi, ebx
setne cl
neg ecx
mov dword [ebp - 0x5c], ecx
push 0x431d77
jmp 0x431d76
ret
Function at 0x411458
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.0041140c
test al, al
jne 0x411479
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4114c5
xor eax, eax
push ebp
push 0x4114b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f68
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4114bc
lea eax, [ebp - 0xc]
call fcn.00411448
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x411704
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x41170c
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x4117f9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.0040ecf8
mov edx, dword [ebp - 8]
mov ecx, 0x411814
xor eax, eax
call fcn.004115e8
push 0
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x4117c7
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0xb7
je 0x411726
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x2f
call fcn.00411210
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.004084bc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0040f2a0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x60
call fcn.004111e0
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x406f50]
call fcn.0040c1fc
call fcn.004040b0
jmp 0x411726
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00404edc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x411800
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404ed4
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404ed4
ret

Function at 0x411828
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x417d90]
cmp dword [eax], 2
jne 0x411890
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x41184b
xor eax, eax
jmp 0x41189f
lea eax, [esp + 8]
push eax
push 0x4118a4
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError
test eax, eax
je 0x411890
xor eax, eax
jmp 0x41189f
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x4118cc
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x411926
inc esi
xor edi, edi
cmp edi, 1
jne 0x4118f2
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x411900
cmp edi, 1
jle 0x411900
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.00411458
test eax, eax
jne 0x411926
call sub.kernel32.dll_GetLastError
cmp eax, 2
je 0x411926
call sub.kernel32.dll_GetLastError
cmp eax, 3
je 0x411926
inc edi
dec esi
jne 0x4118e2
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x415164
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x415239
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x415254
push ebx
push 0x415264
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00405380
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00403270
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404f68
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4151e4
mov al, 0x62
call fcn.00414d40
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.00415138
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4151ed
call fcn.00415138
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x415240
lea eax, [ebp - 4]
call fcn.00404ecc
ret
Function at 0x415354
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41541f
jmp 0x415413
cmp dword [esi + 0x10], 0x1000
jne 0x4153ff
test byte [esi + 0x15], 1
jne 0x4153ff
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4153b0
cmp ebp, 2
je 0x4153b0
cmp ebp, 0x10
je 0x4153b0
cmp ebp, 0x20
jne 0x4153cc
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4153cc
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4153dd
mov eax, dword [esi]
add eax, ebx
call fcn.0041534c
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4153d0
cmp byte [esp + 4], 0
je 0x4153ff
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery_1
test eax, eax
je 0x41541f
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x415385
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401362
Capabilities:
Get file size
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push 0x4c
lea eax, [ebp - 0x4c]
push eax
call sub.kernel32.dll_RtlZeroMemory
mov dword [ebp - 0x4c], 0x4c
push dword [0x404008]
pop dword [ebp - 0x48]
mov dword [ebp - 0x40], str.PE_Files
mov dword [ebp - 0x30], 0x404010
mov dword [ebp - 0x2c], 0x104
mov dword [ebp - 0x18], 0x1800
lea eax, [ebp - 0x4c]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
or eax, eax
jne 0x4013b1
jmp 0x401493
push 0
push 0x20
push 3
push 0
push 3
push 0x80000000
push 0x404010
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401493
mov dword [ebp - 0x50], eax
push 0
push eax
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 0x54], eax
or eax, eax
je 0x401493
push 0
push 0
push 0
push 2
push 0
push dword [ebp - 0x50]
call sub.kernel32.dll_CreateFileMappingA
or eax, eax
je 0x40148b
mov dword [ebp - 0x58], eax
push 0
push 0
push 0
push 4
push eax
call sub.kernel32.dll_MapViewOfFile
or eax, eax
je 0x401483
mov dword [ebp - 0x5c], eax
push 0x40145a
push 0x401014
push dword fs:[0]
mov dword fs:[0], esp
mov esi, dword [ebp - 0x5c]
cmp word [esi], 0x5a4d
je 0x40143f
jmp 0x40145a
add esi, dword [esi + 0x3c]
cmp dword [esi], 0x4550
je 0x40144c
jmp 0x40145a
push dword [ebp - 0x54]
push esi
push dword [ebp - 0x5c]
call fcn.00401138
jmp 0x401471
push 0
push str.PE_Files
push 0x4030bb
push dword [0x404008]
call sub.user32.dll_MessageBoxA
pop dword fs:[0]
add esp, 0xc
push dword [ebp - 0x5c]
call sub.kernel32.dll_UnmapViewOfFile
push dword [ebp - 0x58]
call sub.kernel32.dll_CloseHandle
push dword [ebp - 0x50]
call sub.kernel32.dll_CloseHandle
leave
ret