joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4182e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
or ebp, 0xffffffff
jmp 0x418302
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x418309
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4182f8
mov eax, 1
add ebx, ebx
jne 0x41831b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x418310
jne 0x41832c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x418310
xor ecx, ecx
sub eax, 3
jb 0x418340
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4183b2
mov ebp, eax
add ebx, ebx
jne 0x41834b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x418358
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41837c
inc ecx
add ebx, ebx
jne 0x418368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41835d
jne 0x418379
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41835d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41839c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41838d
jmp 0x4182fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41839c
add edi, ecx
jmp 0x4182fe
pop esi
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x418404
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18060]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x180d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4183b9
mov ecx, edi
jns 0x4183e8
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 + 0x180dc]
or eax, eax
je 0x4183fe
mov dword [ebx], eax
add ebx, 4
jmp 0x4183d6
call dword [esi + 0x180e0]
popal
jmp 0x4028c4
Function at 0x4189a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push 0xa
push 0x4a9704
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x418a4a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x418a4a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418a4a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x418a4a
push 0x44
call fcn.00492108
add esp, 4
test eax, eax
je 0x418a14
mov esi, eax
call fcn.00417150
mov ecx, eax
jmp 0x418a16
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.00474e10
mov ecx, dword [0x4ccfe0]
inc dword [0x4cc478]
mov dword [0x4cb4e8], ecx
mov eax, 3
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
push edx
push str.Could_not_extract_script_from_EXE.
mov ecx, 0x4cc518
call fcn.00430c90
pop esi
add esp, 0x10
ret 8
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x446e7f02
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x3f7b1672
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x5817f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x124000]
push edi
jmp 0x58180a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x581811
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x581800
mov eax, 1
add ebx, ebx
jne 0x581823
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x581834
jne 0x581853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x581853
dec eax
add ebx, ebx
jne 0x581840
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x581818
add ebx, ebx
jne 0x58184f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5818a5
xor ecx, ecx
sub eax, 3
jb 0x58186b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5818da
sar eax, 1
mov ebp, eax
jmp 0x581876
add ebx, ebx
jne 0x581876
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x581844
inc ecx
add ebx, ebx
jne 0x581884
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x581844
add ebx, ebx
jne 0x581891
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x581886
jne 0x5818a2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x581886
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5818c4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5818b6
jmp 0x581806
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5818c4
add edi, ecx
jmp 0x581806
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5818e2
cmp byte [edi], 0x11
jne 0x5818e2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
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 0x5818e7
lea edi, [esi + 0x17a000]
mov eax, dword [edi]
or eax, eax
je 0x58195f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x21d748]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x21d8c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x581914
mov ecx, edi
jns 0x581943
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 + 0x21d8c8]
or eax, eax
je 0x581959
mov dword [ebx], eax
add ebx, 4
jmp 0x581931
call dword [esi + 0x21d8d8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x581990
cmp al, 0xef
ja 0x581983
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x581965
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x581972
mov ebp, dword [esi + 0x21d8cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5819c4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x4038a0
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0x120
mov eax, dword [0x41f050]
xor eax, esp
mov dword [esp + 0x11c], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov ecx, 0x111
lea eax, [esp + 8]
lea esp, [esp]
mov byte [eax], 0
inc eax
sub ecx, 1
jne 0x4038d0
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0xc], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x40390c
xor eax, eax
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004089ca
add esp, 0x120
ret
lea edx, [esp]
push edx
lea eax, [esp + 0x1c]
push eax
mov dword [esp + 8], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x4038f5
push esi
lea ecx, [esp + 0xc]
push edi
push ecx
call fcn.00404480
lea edx, [esp + 0x24]
push edx
mov ecx, edx
call fcn.00404480
add esp, 8
mov esi, 0x420ae8
xor edi, edi
lea esp, [esp]
lea ecx, [esi - 0x10]
lea eax, [esp + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403977
test dl, dl
je 0x403973
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403977
add eax, 2
add ecx, 2
test dl, dl
jne 0x403957
xor eax, eax
jmp 0x40397c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4039af
mov ecx, esi
lea eax, [esp + 0x20]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4039a6
test dl, dl
je 0x4039a2
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4039a6
add eax, 2
add ecx, 2
test dl, dl
jne 0x403986
xor eax, eax
jmp 0x4039ab
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4039dc
add edi, 0x111
add esi, 0x111
cmp edi, 0xfff
jb 0x403950
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004089ca
add esp, 0x120
ret
mov ecx, dword [esp + 0x124]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.004089ca
add esp, 0x120
ret

Function at 0x403ba0
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
jne 0x403ba7
xor eax, eax
ret
test ecx, ecx
jbe 0x403ba4
not eax
push esi
mov edi, edi
movzx esi, byte [edx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x420098]
dec ecx
inc edx
test ecx, ecx
jne 0x403bb0
pop esi
not eax
ret
Function at 0x403bd0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
push ebp
mov ebp, dword [esp + 0x10]
test edx, edx
jne 0x403be1
pop ebp
ret
push edi
mov edi, dword [esp + 0x10]
test edi, edi
jbe 0x403bfb
test ebp, ebp
je 0x403bfb
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x403bfb
cmp dword [ecx], 4
jae 0x403c00
pop edi
xor eax, eax
pop ebp
ret
push ebx
push esi
mov esi, edi
shr esi, 0xf
mov ebx, esi
shl ebx, 0xf
mov ecx, edi
sub ecx, ebx
test esi, esi
jbe 0x403c65
mov ebx, edx
mov edx, esi
jmp 0x403c20
mov esi, 0x8000
mov edi, ebx
test ebx, ebx
jne 0x403c2f
xor eax, eax
jmp 0x403c52
not eax
movzx ebp, byte [edi]
xor ebp, eax
and ebp, 0xff
shr eax, 8
xor eax, dword [ebp*4 + 0x420098]
dec esi
inc edi
test esi, esi
jne 0x403c31
mov ebp, dword [esp + 0x1c]
not eax
add ebx, 0x8000
sub edx, 1
jne 0x403c20
mov edx, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
pop esi
pop ebx
test ecx, ecx
jbe 0x403c74
sub edx, ecx
add edx, edi
call fcn.00403ba0
mov ecx, eax
shr ecx, 0x18
mov byte [ebp], cl
mov edx, eax
shr edx, 0x10
mov ecx, eax
mov byte [ebp + 1], dl
mov edx, dword [esp + 0x18]
shr ecx, 8
mov byte [ebp + 3], al
mov byte [ebp + 2], cl
pop edi
mov dword [edx], 4
mov eax, 1
pop ebp
ret

Function at 0x403d40
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x24]
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], esi
cmp edi, esi
jne 0x403d6b
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x14
ret
cmp ebx, esi
jbe 0x403d62
cmp dword [esp + 0x28], esi
je 0x403d62
cmp ebp, esi
je 0x403d62
push 0xf0000000
push 0x18
push esi
push esi
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x403e06
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push esi
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x403e06
mov ecx, dword [esp + 0xc]
push esi
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x403e06
mov ecx, dword [esp + 0xc]
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push esi
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x20]
push eax
push 4
push ecx
mov dword [esp + 0x28], 4
call edi
test eax, eax
je 0x403e06
mov edx, dword [esp + 0x18]
cmp edx, dword [ebp]
ja 0x403e06
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0xc]
push esi
push ebp
push eax
push 2
push ecx
call edi
mov edi, 1
test eax, eax
jne 0x403e08
mov edi, esi
mov eax, dword [esp + 0xc]
cmp eax, esi
je 0x403e17
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x10]
cmp eax, esi
je 0x403e27
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x14
ret
Function at 0x40302e
Capabilities:
Create process on windows

Disassembly:
push 0x80
mov eax, 0x47c746
call fcn.0047a6f9
mov edi, ecx
mov dword [ebp - 0x14], edi
xor esi, esi
mov dword [ebp - 4], esi
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x10], esi
push dword [edx + 0x20]
push dword [edx + 0x1c]
push dword [edx + 0x18]
push dword [edx + 0x14]
push dword [edx + 0x10]
push dword [edx + 0xc]
push dword [edx + 8]
push dword [edx + 4]
push dword [edx]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4030a5
push ecx
push ecx
mov ecx, esp
push str.CreateProcess__
call fcn.00411bd1
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push eax
lea ecx, [ebp - 0x8c]
call fcn.004024a8
push 0x4c31b0
lea eax, [ebp - 0x8c]
push eax
call fcn.0046b639
xor ecx, ecx
mov eax, 0x4a8500
mov dword [edi], eax
mov byte [edi + 4], cl
mov dword [edi + 8], ecx
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], cl
mov dword [edi + 0x14], ecx
mov byte [ebp - 4], 2
mov dword [edi + 0x18], ecx
mov dword [edi + 0x1c], ecx
mov dword [ebp - 4], ecx
mov ecx, edi
push ebx
push dword [ebp - 0x28]
mov dword [ebp - 0x10], ebx
call fcn.0041005b
push ebx
push dword [ebp - 0x24]
lea ecx, [edi + 0xc]
call fcn.0041005b
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [edi + 0x1c], eax
mov eax, edi
call fcn.0047a6c2
ret
Function at 0x404b5b
Capabilities:
Move file

Disassembly:
push 0x70
mov eax, 0x47d0ee
call fcn.0047a6f9
mov edi, ecx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
push 0x49a260
mov dword [ebp - 0x10], eax
call fcn.004123fa
and dword [ebp - 4], 0
mov eax, dword [ebp + 0xc]
mov ecx, eax
mov edx, dword [ebp + 8]
test eax, eax
je 0x404bdd
lea esi, [eax - 1]
lea esi, [edx + esi*2]
cmp word [esi], 0x2e
je 0x404ba8
sub esi, 2
sub ecx, 1
jne 0x404b98
jmp 0x404bdd
lea esi, [ecx - 1]
test esi, esi
je 0x404bdd
cmp ecx, eax
je 0x404bdd
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
push esi
lea eax, [ebp - 0x24]
mov dword [ebp - 0x10], esi
push eax
mov dword [ebp - 0x1c], edx
call fcn.00417030
push dword [ebp - 0x18]
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x1c]
call fcn.00416670
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push eax
push edx
lea ecx, [ebp - 0x3c]
call fcn.0040fdea
xor ebx, ebx
inc ebx
mov byte [ebp - 4], bl
lea edx, [ebp - 0x4c]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00412433
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov ecx, edi
push eax
call fcn.00410eea
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call fcn.004100f5
xor esi, esi
cmp dword [edi + 8], 0
mov dword [ebp - 0x18], esi
je 0x404c27
mov ecx, dword [edi + 4]
jmp 0x404c2c
mov ecx, 0x4ca5a8
cmp dword [ebp - 0x34], 0
mov eax, 0x4ca5a8
push 0
cmovne eax, dword [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x404cea
cmp esi, 0x3e8
jae 0x404ce8
push ecx
push eax
call fcn.0046c6eb
push 0
push eax
push 0x10
pop edx
lea ecx, [ebp - 0x7c]
call fcn.00401efa
mov esi, eax
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6c]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00411a58
mov byte [ebp - 4], 8
mov edx, eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.00411a06
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x4c]
push ecx
mov edx, eax
lea ecx, [ebp - 0x2c]
call fcn.00411a06
add esp, 0x20
mov byte [ebp - 4], 0xa
mov ecx, edi
push eax
call fcn.00410eea
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x2c]
call fcn.004100f5
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x5c]
call fcn.004100f5
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x6c]
call fcn.004100f5
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x7c]
call fcn.004100f5
mov esi, dword [ebp - 0x18]
inc esi
jmp 0x404c19
xor bl, bl
mov byte [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
mov ecx, eax
call fcn.004100f5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.004100f5
mov al, bl
call fcn.0047a6c2
ret
Function at 0x404d13
Capabilities:
Create directory

Disassembly:
push 0x50
mov eax, 0x47d159
call fcn.0047a6f9
mov esi, ecx
push ecx
push ecx
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [eax], 0x49a270
mov dword [eax + 4], 9
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00431650
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, esi
push eax
call fcn.00410eea
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004100f5
mov edi, ebx
cmp dword [esi + 8], ebx
je 0x404d68
mov eax, dword [esi + 4]
jmp 0x404d6d
mov eax, 0x4ca5a8
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404e33
cmp edi, 0x3e8
jae 0x404e2f
push ecx
push ebx
call fcn.0046c6eb
push ebx
push eax
push 0x10
pop edx
lea ecx, [ebp - 0x5c]
call fcn.00401efa
mov dword [ebp - 4], 2
mov edx, str.Trash.
push eax
lea ecx, [ebp - 0x4c]
call fcn.0041248a
mov byte [ebp - 4], 3
mov edx, eax
push 0x49a260
lea ecx, [ebp - 0x3c]
call fcn.004124dc
add esp, 0x18
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
call fcn.0041011a
lea ecx, [ebp - 0x2c]
push dword [eax + 4]
push dword [eax]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00431650
add esp, 0x10
mov byte [ebp - 4], 5
mov ecx, esi
push eax
call fcn.00410eea
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2c]
call fcn.004100f5
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x3c]
call fcn.004100f5
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.004100f5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.004100f5
inc edi
jmp 0x404d5e
xor al, al
jmp 0x404e35
mov al, 1
call fcn.0047a6c2
ret
Function at 0x405c47
Capabilities:
Start service

Disassembly:
push 0xe0
mov eax, 0x47d6dc
call fcn.0047a72d
push 1
xor ebx, ebx
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x405c9c
push ecx
push ecx
mov ecx, esp
push 0x49a5f0
call fcn.00411bd1
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push eax
lea ecx, [ebp - 0xec]
call fcn.004024a8
push 0x4c31b0
lea eax, [ebp - 0xec]
push eax
call fcn.0046b639
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x70], esp
mov dword [ebp - 0x74], eax
mov dword [eax + 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 1
mov esi, vtable.std::_Func_base_void___.0
mov dword [eax], esi
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x6c]
mov dword [eax], vtable.std::_Func_impl_class__lambda_9d7a26aaa25dba09c368905cb508c7f1___class_std::allocator_int___void___.0
mov dword [eax + 4], ecx
mov byte [ebp - 4], bl
mov dword [eax + 0x24], eax
mov dword [ebp - 4], 3
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00401d36
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x88]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040fdea
mov byte [ebp - 4], 5
cmp dword [eax + 8], ebx
je 0x405d0d
mov eax, dword [eax + 4]
jmp 0x405d12
mov eax, 0x4ca5a8
push 0x10
push eax
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 4
lea eax, [ebp - 0x88]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 4
mov ecx, eax
call fcn.004100f5
cmp dword [ebp - 0x68], 0
je 0x405c69
sub esp, 0x28
mov eax, esp
mov dword [ebp - 0x64], esp
mov dword [ebp - 0x78], eax
mov dword [eax + 0x24], ebx
mov byte [ebp - 4], 8
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 9
mov dword [eax], esi
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x68]
mov dword [eax], vtable.std::_Func_impl_class__lambda_928fca0a7c6c6b6cc95350a38652450f___class_std::allocator_int___void___.0
mov dword [eax + 4], ecx
mov byte [ebp - 4], 8
mov dword [eax + 0x24], eax
mov byte [ebp - 4], 0xb
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.00401d36
mov byte [ebp - 4], 0xc
push ebx
push ebx
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x405dae
push ecx
push ecx
mov ecx, esp
push str.StartService__
call fcn.00411b68
jmp 0x405c77
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x38]
call fcn.00401d87
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00401d87
call fcn.0047a6d7
ret