joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x40371c
cmp byte [esi + 0x3d], 0
je 0x40371c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40370a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4036d1
sub eax, 1
je 0x4036d5
sub eax, 2
jne 0x40370a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d00
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x4036f3
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40370a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d00
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407d00
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00407d00
mov esp, ebp
pop ebp
ret
Function at 0x406c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push esi
mov esi, dword [ebp + 0xc]
test eax, eax
jg 0x406c21
jl 0x406c17
test esi, esi
jne 0x406c21
pop esi
xor eax, eax
xor edx, edx
pop ebx
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x406c38
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
pop ebp
ret 0xc
push edi
mov edi, esi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const]
test eax, eax
je 0x406c6e
cmp eax, dword [ebp + 0xc]
mov ecx, ebx
cmovb esi, eax
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const]
push esi
push eax
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [ebp + 8], esi
add esp, 0xc
mov ecx, ebx
sub edi, esi
push esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int_]
cmp dword [ebx + 0x4c], 0
mov esi, dword [ebp + 8]
je 0x406cdd
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const]
lea ecx, [ebx + 0x3c]
cmp eax, ecx
jne 0x406c96
push dword [ebx + 0x54]
mov eax, dword [ebx + 0x50]
mov ecx, ebx
push eax
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char___char___char__]
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, edi
cmp edi, 0xfff
jbe 0x406ccb
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x406cdd
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x406ca5
test ecx, ecx
je 0x406cdd
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
pop ebp
ret 0xc
Function at 0x406cf0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x406d15
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], edi
call dword [sym.imp.MSVCP140.dll_protected:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const]
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x406d80
jg 0x406d3b
test esi, esi
je 0x406d80
test ecx, ecx
jl 0x406dba
jg 0x406d45
test eax, eax
je 0x406dba
cmp edi, ecx
jg 0x406d55
jl 0x406d4f
cmp esi, eax
jae 0x406d55
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
push dword [ebp + 0x10]
push dword [ebp + 8]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp + 0x10]
add esp, 0xc
add dword [ebp + 8], eax
mov ecx, ebx
sub esi, eax
sbb edi, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int_]
mov eax, dword [ebp + 8]
test edi, edi
jl 0x406da7
jg 0x406d8d
test esi, esi
je 0x406da7
mov ecx, dword [ebx + 0x4c]
test ecx, ecx
je 0x406da7
push ecx
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 8]
jmp 0x406d8d
Function at 0x40718a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4071b1
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4071b4
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.00407166
pop esi
leave
ret 8

Function at 0x408928
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x4014ae
call sym._WSAGetLastError_0
mov ebx, eax
call sym._showServerTime
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str._ssend___failed:_error__d_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._fprintf
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x401fc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
lea esi, [ebp + 0xc]
mov ebx, dword [sym.imp.msvcrt.dll__iob]
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov dword [esp + 8], esi
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._vfprintf
call sym._abort

Function at 0x402014
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, eax
mov esi, edx
test ecx, ecx
jne 0x402030
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [ebp - 0x3c], ecx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
mov ecx, dword [ebp - 0x3c]
je 0x4020e0
mov eax, dword [ebp - 0x24]
cmp eax, 0x40
je 0x4020d4
cmp eax, 4
je 0x4020d4
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x3c]
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
cmp eax, 0x40
mov edx, dword [ebp - 0x40]
je 0x402025
cmp eax, 4
je 0x402025
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov edi, ebx
rep movsb byte es:[edi], byte [esi]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
leave
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call dbg.__report_error
Function at 0x401000
Capabilities:
Create service

Disassembly:
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
mov ecx, dword [esp + 0x10]
push 0
push 0
push eax
mov eax, dword [esp + 0x20]
push 1
push 3
push 0x10
push 0xf01ff
push eax
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
jne 0x401030
ret
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
ret

Function at 0x401040
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
mov ebx, eax
mov eax, dword [0x40968c]
test eax, eax
je 0x40105f
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
test eax, eax
mov dword [0x40968c], eax
jne 0x401083
pop esi
pop ebx
add esp, 0x1c
ret
push ebp
push edi
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x4010a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x4010e1
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov edi, 1
mov eax, dword [0x40968c]
lea edx, [esp + 0x10]
push edx
push eax
call ebp
test eax, eax
je 0x4010e1
mov eax, dword [esp + 0x14]
cmp eax, 4
je 0x4010e3
cmp eax, 1
je 0x4010e1
call esi
sub eax, ebx
cmp eax, 0xea60
jbe 0x4010ac
push 0x41d
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x40968c]
mov esi, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
mov dword [0x40968c], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x401120
Capabilities:
Stop service

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub esp, 0x1c
push esi
push 0xf01ff
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x401144
pop esi
add esp, 0x1c
ret
lea edx, [esp + 4]
push edi
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x1c
ret

Function at 0x4012f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push str.BINRES
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401311
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x408088
push ecx
mov edi, eax
call fcn.004027ff
mov esi, eax
add esp, 8
test esi, esi
jne 0x40134e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.004026d5
push esi
call fcn.0040267f
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4013b0
Capabilities:
Connect network resource

Disassembly:
sub esp, 0x128
push esi
mov esi, dword [esp + 0x134]
mov byte [esp + 7], 0
cmp byte [esi], 0
jne 0x4013d2
xor al, al
pop esi
add esp, 0x128
ret
mov eax, dword [esp + 0x130]
push edi
push eax
lea ecx, [esp + 0x30]
push str._sIPC_
push ecx
call fcn.004025fc
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
add esp, 0xc
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x13c]
lea edx, [esp + 0xb]
mov dword [esp + 0x1c], edx
push 0
mov dword [esp + 0x14], eax
push esi
lea edx, [esp + 0x14]
lea eax, [esp + 0x34]
push ecx
push edx
mov dword [esp + 0x28], 3
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], 0
call sub.MPR.dll_WNetAddConnection2A
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
add esp, 0x128
ret

Function at 0x401450
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
push esi
mov esi, dword [esp + 0x10c]
push eax
push esi
call fcn.00401260
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0xc]
push ecx
push esi
push str._sADMIN_System32_s
push edx
call fcn.004025fc
add esp, 0x18
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call fcn.00401370
add esp, 4
pop esi
add esp, 0x104
ret
Function at 0x401650
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40168a
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov al, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0040291c
mov ebp, dword [esp + 0x1c]
add esp, 4
test ebp, ebp
mov ebx, eax
je 0x401755
cmp byte [ebp], 0
je 0x401755
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 0x3b
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00402860
add esp, 8
test eax, eax
je 0x4016e0
mov byte [eax], 0
mov edi, 0x408158
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401765
push 0x3b
push ebp
call fcn.00402860
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x401755
inc ebp
jne 0x4016a5
push ebx
call fcn.00402812
add esp, 4
xor al, al
pop edi
pop esi
pop ebp
pop ebx
ret
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00402812
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4024a0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x108
push esi
push str._nPsExec_v1.11___execute_processes_remotely_n
call fcn.0040264e
push str.Copyright__C__2001_Mark_Russinovich_n
call fcn.0040264e
push str.www.sysinternals.com_n_n
call fcn.0040264e
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jb 0x4024ed
push str.PsExec_requires_Windows_NT_or_Windows_2000._n_n
call fcn.0040264e
add esp, 4
or eax, 0xffffffff
pop esi
add esp, 0x108
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp byte [esp + 0xc], 0x22
jne 0x402538
lea edi, [esp + 0xd]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0xd], al
lea ecx, [esp + 8]
push ecx
push 0x409b80
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov eax, dword [esp + 8]
pop edi
test eax, eax
je 0x40255a
mov byte [eax], 0
mov edx, dword [esp + 0x114]
mov eax, dword [esp + 0x110]
push edx
push eax
call fcn.00401ff0
add esp, 8
test al, al
jne 0x40257d
push 0xffffffffffffffff
call fcn.00402be2
mov al, byte [0x409794]
test al, al
je 0x4025d4
mov al, byte [0x40989c]
test al, al
jne 0x4025d4
push str.Password:
call fcn.0040264e
push 0x408ae0
call fcn.004029ef
add esp, 8
xor esi, esi
call fcn.00406d36
cmp al, 0xd
je 0x4025c0
mov byte [esi + 0x409a60], al
inc esi
cmp esi, 0x103
jb 0x4025a8
push 0x408378
mov byte [esi + 0x409a60], 0
call fcn.0040264e
add esp, 4
call fcn.00401830
pop esi
add esp, 0x108
ret
Function at 0x4052b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408df8
cmp edx, dword [eax]
je 0x4052db
add eax, 8
inc ecx
cmp eax, 0x408e88
jl 0x4052cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408df8]
jne 0x405409
mov eax, dword [0x4098fc]
cmp eax, 1
je 0x4053e3
test eax, eax
jne 0x40530c
cmp dword [0x408d44], 1
je 0x4053e3
cmp edx, 0xfc
je 0x405409
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405343
lea eax, [ebp - 0x1a4]
push 0x40749c
push eax
call fcn.00405f70
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405510
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405386
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405510
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407498
push edi
call fcn.004064d0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x40747c
push eax
call fcn.00405f70
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00405f80
lea eax, [ebp - 0xa0]
push 0x407478
push eax
call fcn.00405f80
push dword [esi + 0x408dfc]
lea eax, [ebp - 0xa0]
push eax
call fcn.00405f80
push 0x12010
lea eax, [ebp - 0xa0]
push 0x407450
push eax
call fcn.00406440
add esp, 0x2c
pop edi
jmp 0x405409
lea eax, [ebp + 8]
lea esi, [esi + 0x408dfc]
push 0
push eax
push dword [esi]
call fcn.00405510
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 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x4058bd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x4058cc
pop dword [ebp - 0x30]
mov eax, 0x4058cc
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0xd8a59b7b
add dword [ebp - 0x40], 0x75aca9d0
mov dword [ebp - 0x3c], 0x4e042aa2
sub dword [ebp - 0x3c], 0x1bd0de5d
mov dword [ebp - 0x38], 0xd82a1653
sub dword [ebp - 0x38], 0x8bddd225
mov dword [ebp - 0x34], 0xf145f5aa
add dword [ebp - 0x34], 0xeba0a56
lea eax, [ebp - 0x40]
push eax
mov eax, 0xf28c58e8
sub eax, 0xf24b8894
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0xb825a43b
sub dword [ebp - 0x40], 0x43b33ae5
mov dword [ebp - 0x3c], 0x39b85cd7
add dword [ebp - 0x3c], 0x7b4049e
mov dword [ebp - 0x38], 0x4de6a5c3
sub dword [ebp - 0x38], 0xea773957
mov dword [ebp - 0x34], 0xb58e419c
sub dword [ebp - 0x34], 0xb58e419c
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0x363ad23b
add eax, 0xca05fe11
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x3bb4c
push 0
call eax
mov ecx, 0x50a3
xor edx, edx
add edx, eax
mov esi, 0x41b000
add esi, dword [ebp - 0x30]
mov ebx, 0xb1c30288
sub ebx, 0x3975a989
add dword [ebp - 0x10], 0x349917b6
mov edi, dword [esi]
sub dword [ebp - 0x1c], edx
add edi, ebx
add dword [ebp - 0x24], 0x3b28dc36
mov dword [edx], edi
xor dword [ebp - 4], 0x8bd0d40b
add edx, 4
add esi, 0x5148780c
add esi, 0xaeb787f8
loop 0x4059df
add eax, 0x98341287
add eax, 0x67cd22d8
xor ebx, ebx
add ebx, eax
add eax, 0x81f674f2
add eax, 0x7e098b13
mov ecx, 0x7e163491
sub ecx, 0x7dd63491
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x401da0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x401dc8
xor al, al
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
push 5
push eax
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x401dc2
push ebx
push esi
mov esi, dword [ebp - 4]
test esi, esi
jne 0x401df6
xor eax, eax
jmp 0x401e0f
mov eax, esi
lea edx, [eax + 2]
jmp 0x401e00
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401e00
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 8]
push esi
push ecx
mov ebx, eax
call fcn.00416d10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4027d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x450398]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
xor ecx, ecx
push 0x208
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x21c], eax
mov dword [ebp - 0x218], eax
mov word [ebp - 0x214], ax
push ecx
lea edx, [ebp - 0x20e]
mov eax, 0x14
push edx
mov dword [ebp - 0x230], 0
mov word [ebp - 0x220], ax
mov word [ebp - 0x210], cx
call fcn.00429770
mov eax, dword [ebp + 8]
mov eax, dword [eax]
lea edx, [ebp - 0x210]
add esp, 0xc
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402851
lea edx, [ebp - 0x230]
lea ecx, [ebp - 0x210]
push edx
mov dword [ebp - 0x228], ecx
mov dword [ebp - 0x224], 0
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004267a3
mov esp, ebp
pop ebp
ret