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

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
test eax, eax
je 0x610c7597
inc eax
je 0x610c75c0
cmp byte [ebx + 0xd], 0
jne 0x610c75f0
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_ReadFile
sub esp, 0x14
test eax, eax
je 0x610c7613
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygserver_transport_pipes.cc
mov eax, str._hPipe
mov dword [esp + 8], eax
mov eax, 0xd7
mov dword [esp + 4], eax
call sym.___assert
mov eax, dword [ebx + 8]
inc eax
jne 0x610c7554
nop
lea esi, [esi]
mov dword [esp], str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygserver_transport_pipes.cc
mov eax, str._hPipe___INVALID_HANDLE_VALUE
mov ecx, 0xd8
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
call sym.___assert
cmp byte [ebx + 0xd], 0
je 0x610c755e
nop
lea esi, [esi]
mov dword [esp], str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygserver_transport_pipes.cc
mov edx, str.__is_listening_endpoint
mov eax, 0xd9
mov dword [esp + 8], edx
mov dword [esp + 4], eax
call sym.___assert
jmp 0x610c755e
movzx eax, byte [0x6110c854]
test al, 1
jne 0x610c7643
test al, 1
jne 0x610c767c
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x16
mov dword [eax], 0x16
mov ebx, dword [ebp - 4]
mov eax, 0xffffffff
leave
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x10], eax
mov eax, str.error_reading_from_pipe___lu_
mov dword [esp + 0xc], eax
mov eax, str.virtual_ssize_t_transport_layer_pipes::read_void__size_t_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
movzx eax, byte [0x6110c854]
jmp 0x610c761e
mov dword [esp], 0x6110c854
mov eax, 0x16
mov ebx, 0xdf
mov dword [esp + 0x18], eax
mov eax, str.int___set_errno_const_char__int__int_
mov ecx, str.virtual_ssize_t_transport_layer_pipes::read_void__size_t_
mov dword [esp + 8], eax
mov edx, str._s:_d_val__d
mov eax, 0x40
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610c7622
Function at 0x610c76d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 8]
test eax, eax
je 0x610c7727
inc eax
je 0x610c7750
cmp byte [ebx + 0xd], 0
jne 0x610c7780
xor eax, eax
mov dword [esp + 0x10], eax
lea eax, [ebp - 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call sub.KERNEL32.dll_WriteFile
sub esp, 0x14
test eax, eax
je 0x610c77a3
mov eax, dword [ebp - 8]
mov ebx, dword [ebp - 4]
leave
ret
mov dword [esp], str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygserver_transport_pipes.cc
mov eax, str._hPipe
mov dword [esp + 8], eax
mov eax, 0xeb
mov dword [esp + 4], eax
call sym.___assert
mov eax, dword [ebx + 8]
inc eax
jne 0x610c76e4
nop
lea esi, [esi]
mov dword [esp], str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygserver_transport_pipes.cc
mov ecx, str._hPipe___INVALID_HANDLE_VALUE
mov edx, 0xec
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
call sym.___assert
cmp byte [ebx + 0xd], 0
je 0x610c76ee
nop
lea esi, [esi]
mov dword [esp], str._ext_build_netrel_src_cygwin_1.5.25_7_winsup_cygserver_transport_pipes.cc
mov eax, str.__is_listening_endpoint
mov dword [esp + 8], eax
mov eax, 0xed
mov dword [esp + 4], eax
call sym.___assert
jmp 0x610c76ee
movzx eax, byte [0x6110c854]
test al, 1
jne 0x610c77d3
test al, 1
jne 0x610c780c
call sym.cygwin1.dll___errno
mov edx, dword [sym.cygwin1.dll__impure_ptr]
mov dword [edx], 0x16
mov dword [eax], 0x16
mov ebx, dword [ebp - 4]
mov eax, 0xffffffff
leave
ret
call sub.KERNEL32.dll_GetLastError
mov dword [esp + 0x10], eax
mov eax, str.error_writing_to_pipe__error___lu
mov dword [esp + 0xc], eax
mov eax, str.virtual_ssize_t_transport_layer_pipes::write_void__size_t_
mov dword [esp + 8], eax
mov eax, 0x40
mov dword [esp + 4], eax
mov dword [esp], 0x6110c854
call method.strace.prntf_unsigned_int__char_const__char_const__..._
movzx eax, byte [0x6110c854]
jmp 0x610c77ae
mov dword [esp], 0x6110c854
mov eax, str._s:_d_val__d
mov ebx, 0x16
mov dword [esp + 0xc], eax
mov eax, str.int___set_errno_const_char__int__int_
mov ecx, 0xf3
mov dword [esp + 8], eax
mov edx, str.virtual_ssize_t_transport_layer_pipes::write_void__size_t_
mov eax, 0x40
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 4], eax
call method.strace.prntf_unsigned_int__char_const__char_const__..._
jmp 0x610c77b2
Function at 0x40190b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x20c
mov eax, dword [0x425040]
xor eax, esp
mov dword [esp + 0x204], eax
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
xor edx, edx
mov byte [esp + ecx + 0x10], cl
push 0x2b
mov eax, ecx
pop esi
div esi
mov al, byte [edx + 0x4734b0]
mov byte [esp + ecx + 0x110], al
inc ecx
cmp ecx, ebp
jl 0x40192c
mov esi, edi
mov ebx, edi
mov dl, byte [esp + esi + 0x10]
movzx eax, byte [esp + esi + 0x110]
add ebx, eax
movzx ecx, dl
add ebx, ecx
and ebx, 0x800000ff
jns 0x401972
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + esi + 0x10], al
inc esi
mov byte [esp + ebx + 0x10], dl
cmp esi, ebp
jl 0x40194f
mov ebx, edi
mov ebp, edi
inc edi
and edi, 0x800000ff
jns 0x401998
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x10]
movzx esi, cl
add ebx, esi
and ebx, 0x800000ff
jns 0x4019b1
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [esp + ebx + 0x10]
mov byte [esp + edi + 0x10], al
mov byte [esp + ebx + 0x10], cl
call fcn.00401f03
push eax
call fcn.004020c6
movzx eax, byte [esp + edi + 0x14]
add eax, esi
movzx eax, al
pop ecx
mov al, byte [esp + eax + 0x10]
xor byte [ebp + section..Right], al
inc ebp
cmp ebp, 0x4c000
jl 0x401987
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004047e0
add esp, 0x20c
ret

Function at 0x401c18
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x425040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x422e88
lea ecx, [ebp - 0x1c]
call fcn.00401d07
push 0xc
call fcn.004047f3
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.004019ff
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x473000
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push 0x401bdd
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push ecx
push ecx
call fcn.0040190b
pop ecx
pop ecx
mov edx, 0x473000
add edx, 0x188
mov esi, section..Right
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.00401d94
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004047e0
leave
ret

Function at 0x404f90
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x404fcf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404fcf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404fcf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404fcf
cmp dword [ecx + 0x74], 0xe
jbe 0x404fcf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40f809
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41f290
push 0x41f288
push 0x41db24
push 0x1e
call fcn.0040f676
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f83d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41c144]
call esi
jmp 0x40f843
call dword [sym.imp.KERNEL32.DLL_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41152c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041139d

Function at 0x411926
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405310
mov eax, dword [0x425040]
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.00410592
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x411968
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x411ac4
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041b0c0
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 + 0x426980]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00412920
mov ecx, dword [esi*4 + 0x426980]
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 0x411abd
cmp eax, dword [edi + ecx + 0x24]
jne 0x411abd
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 0x411abd
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412920
add esp, 0x14
test edx, edx
jl 0x411abd
jg 0x411a33
test eax, eax
jb 0x411abd
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411abd
jl 0x411a4d
cmp dword [ebp - 0x1008], eax
ja 0x411abd
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x411a6b
test ebx, ebx
je 0x411aa4
cmp ecx, edi
jae 0x411aa4
mov al, byte [ecx]
cmp al, 0xd
jne 0x411a85
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411a91
cmp byte [ecx + 1], 0xa
jne 0x411a91
inc ecx
jmp 0x411a91
movzx eax, al
movsx eax, byte [eax + 0x425310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x411a6b
cmp edx, ebx
jne 0x411a6b
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411ac2
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004047e0
leave
ret
Function at 0x411dbb
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 + 0x426980]
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 0x411dfb
cmp byte [ebx], 0xa
jne 0x411dfb
or byte [eax + edi + 0x28], 4
jmp 0x411e00
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x411efe
mov al, byte [edx]
cmp al, 0x1a
je 0x411ee0
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x411e2f
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x411e54
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x411e5e
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 0x411e11
jmp 0x411efe
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 0x411edb
cmp dword [ebp - 0xc], 0
je 0x411edb
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x426980]
test byte [eax + edi + 0x28], 0x48
je 0x411eb5
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x411ea0
mov byte [esi], dl
jmp 0x411eb1
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x426980]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411efe
cmp byte [ebp - 1], 0xa
jne 0x411ec4
cmp esi, ebx
jne 0x411ec4
mov byte [esi], 0xa
jmp 0x411efd
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041293e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411efe
mov byte [esi], 0xd
jmp 0x411efd
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x426980]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411efa
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411efe
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411f0a
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 + 0x426980]
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 0x411f4d
cmp word [esi], dx
jne 0x411f4d
or byte [edi + eax + 0x28], 4
jmp 0x411f52
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 0x4120a5
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 0x412085
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x411f94
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x411fca
cmp eax, edx
jae 0x411fd6
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 0x411f6c
jmp 0x4120a5
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 0x412081
cmp dword [ebp - 0x14], 0
je 0x412081
mov eax, dword [ebx*4 + 0x426980]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x412059
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x412022
mov word [esi], cx
jmp 0x412055
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x426980]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x426980]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x426980]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4120a5
pop ebx
cmp word [ebp - 4], bx
jne 0x41206a
cmp esi, dword [ebp + 0xc]
jne 0x41206a
mov word [esi], bx
jmp 0x4120a2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041293e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4120a5
push 0xd
jmp 0x41209e
mov ecx, dword [ebx*4 + 0x426980]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41209c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4120a5
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 0x41541c
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 0x4154b9
push ebx
push esi
call fcn.004153e5
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.00414067
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415466
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4154b8
push edi
push eax
call fcn.0040fb5f
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415486
call fcn.0040eb82
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4154b7
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00414067
add esp, 0x20
test eax, eax
jne 0x4154a5
push edi
call fcn.0040eb82
jmp 0x4154ad
push ebx
call fcn.0040eb82
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 0x41b080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b0ad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b0ad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x401c66
pop dword [ebp - 0x24]
mov eax, 0xa815391
sub eax, 0xa41372b
sub dword [ebp - 0x24], eax
mov dword [ebp - 0x34], 0xc0de78e5
add dword [ebp - 0x34], 0x8d73cc66
mov dword [ebp - 0x30], 0x9b56b159
add dword [ebp - 0x30], 0x96dc9aec
mov dword [ebp - 0x2c], 0x69448bec
sub dword [ebp - 0x2c], 0x1cf847be
mov dword [ebp - 0x28], 0x2bb292a6
add dword [ebp - 0x28], 0xd44d6d5a
lea eax, [ebp - 0x34]
push eax
mov eax, 0xe4343800
sub eax, 0xe3f407ac
add eax, dword [ebp - 0x24]
call dword [eax]
mov dword [ebp - 0x34], 0xdee8448e
add dword [ebp - 0x34], 0x958a24c8
mov dword [ebp - 0x30], 0x74826bd5
sub dword [ebp - 0x30], 0x33160a60
mov dword [ebp - 0x2c], 0xbd3e43be
sub dword [ebp - 0x2c], 0x59ced752
mov dword [ebp - 0x28], 0x73a727a4
sub dword [ebp - 0x28], 0x73a727a4
lea ebx, [ebp - 0x34]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x24]
call dword [eax]
push 0x40
push 0x1000
push 0x36f76
push 0
call eax
mov ecx, 0x614ed35e
sub ecx, 0x614e896d
xor edi, edi
add edi, eax
mov edx, 0xeab83afd
add edx, 0x15883503
add edx, dword [ebp - 0x24]
mov esi, 0x365068e3
xor dword [ebp - 0x14], ebx
mov ebx, dword [edx]
mov dword [ebp - 0xc], 0xa09784f7
xor ebx, esi
xor dword [ebp - 0x14], 0x4b681135
mov dword [edi], ebx
xor dword [ebp - 0xc], 0x315da524
add edi, 4
add edx, 4
loop 0x401d7f
add eax, 0x813fe9ce
sub eax, 0x813ecf37
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x296feed9
add ecx, 0xd6d01127
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x401000
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
mov ebx, ecx
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x4010d7
push 4
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x4010e7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
push pe_nt_image_headers32
lea eax, [ebp - 0x204]
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x4010d6
push 0xf01ff
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4010d3
lea eax, [ebp - 0x220]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4010d0
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call edi
push ebx
call edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401319
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00401319
mov esp, ebp
pop ebp
ret

Function at 0x401230
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x28
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
xorps xmm0, xmm0
push 0xc0
movaps xmmword [esp + 0x14], xmm0
call fcn.00401327
mov dword [esp + 0x14], eax
mov edi, eax
add esp, 4
mov dword [esp + 0x24], 0x5f
mov dword [esp + 0x20], 0x5a
mov ecx, 0x2d
mov esi, 0x413d88
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov word [eax + 0xb4], cx
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
push 0x40
cmovae eax, dword [esp + 0x14]
push 0x413d40
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [esp + 0x24]
cmp ecx, 8
jb 0x4012df
mov edx, dword [esp + 0x10]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4012d5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4012fb
push ecx
push edx
call fcn.00401357
add esp, 8
mov ecx, 0x413e40
call fcn.00401000
mov ecx, 0x413e44
call fcn.00401000
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
call fcn.004044dc
int3

Function at 0x401bc4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c03
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c03
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c03
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c03
cmp dword [ecx + 0x74], 0xe
jbe 0x401c03
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret