joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024ed
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push eax
push 0x402454
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
ret

Function at 0x406012
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x406033
jl 0x40602a
test edi, edi
jne 0x406033
xor eax, eax
xor edx, edx
jmp 0x4060f4
cmp dword [ebx + 0x38], 0
je 0x406048
push eax
push edi
push dword [ebp + 8]
call fcn.004060fa
jmp 0x4060f4
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40608f
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40608f
cmp eax, edi
jb 0x406069
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00408fa0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x406095
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4060e9
mov ecx, ebx
call fcn.004058a8
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4060d4
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00411131
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4060e9
jmp 0x4060a7
test edx, edx
je 0x4060e9
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00411131
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x408d86
Capabilities:
Parse pe header

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

Function at 0x4167c7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429bb8
push 0x429bb0
push str.FlsAlloc
push 0x1e
call fcn.00416634
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4167fb
push dword [ebp + 8]
mov ecx, esi
call dword [0x426144]
call esi
jmp 0x416801
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x416845
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429bc8
push 0x429bc0
push str.FlsGetValue
push 0x20
call fcn.00416634
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41687c
push dword [ebp + 8]
mov ecx, esi
call dword [0x426144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41a477
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a119

Function at 0x41a482
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a2a8

Function at 0x41a87c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408ef0
mov eax, dword [0x431040]
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.004183b6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41a8be
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41aa1a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425120
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 + 0x47ce88]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041ba4c
mov ecx, dword [esi*4 + 0x47ce88]
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 0x41aa13
cmp eax, dword [edi + ecx + 0x24]
jne 0x41aa13
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 0x41aa13
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041ba4c
add esp, 0x14
test edx, edx
jl 0x41aa13
jg 0x41a989
test eax, eax
jb 0x41aa13
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41aa13
jl 0x41a9a3
cmp dword [ebp - 0x1008], eax
ja 0x41aa13
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41a9c1
test ebx, ebx
je 0x41a9fa
cmp ecx, edi
jae 0x41a9fa
mov al, byte [ecx]
cmp al, 0xd
jne 0x41a9db
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41a9e7
cmp byte [ecx + 1], 0xa
jne 0x41a9e7
inc ecx
jmp 0x41a9e7
movzx eax, al
movsx eax, byte [eax + 0x431310]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41a9c1
cmp edx, ebx
jne 0x41a9c1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41aa18
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00408148
leave
ret
Function at 0x41aeea
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 + 0x47ce88]
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 0x41af2a
cmp byte [ebx], 0xa
jne 0x41af2a
or byte [eax + edi + 0x28], 4
jmp 0x41af2f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41b02d
mov al, byte [edx]
cmp al, 0x1a
je 0x41b00f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41af5e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41af83
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41af8d
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 0x41af40
jmp 0x41b02d
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 0x41b00a
cmp dword [ebp - 0xc], 0
je 0x41b00a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x47ce88]
test byte [eax + edi + 0x28], 0x48
je 0x41afe4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41afcf
mov byte [esi], dl
jmp 0x41afe0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x47ce88]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41b02d
cmp byte [ebp - 1], 0xa
jne 0x41aff3
cmp esi, ebx
jne 0x41aff3
mov byte [esi], 0xa
jmp 0x41b02c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041ba6a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41b02d
mov byte [esi], 0xd
jmp 0x41b02c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x47ce88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b029
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b02d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41b036
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 + 0x47ce88]
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 0x41b079
cmp word [esi], dx
jne 0x41b079
or byte [edi + eax + 0x28], 4
jmp 0x41b07e
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 0x41b1d1
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 0x41b1b1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41b0c0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41b0f6
cmp eax, edx
jae 0x41b102
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 0x41b098
jmp 0x41b1d1
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 0x41b1ad
cmp dword [ebp - 0x14], 0
je 0x41b1ad
mov eax, dword [ebx*4 + 0x47ce88]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41b185
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41b14e
mov word [esi], cx
jmp 0x41b181
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x47ce88]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x47ce88]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x47ce88]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41b1d1
pop ebx
cmp word [ebp - 4], bx
jne 0x41b196
cmp esi, dword [ebp + 0xc]
jne 0x41b196
mov word [esi], bx
jmp 0x41b1ce
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041ba6a
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41b1d1
push 0xd
jmp 0x41b1ca
mov ecx, dword [ebx*4 + 0x47ce88]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41b1c8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41b1d1
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 0x41dcae
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 0x41dd4b
push ebx
push esi
call fcn.0041dc77
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.0041c8fc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41dcf8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd4a
push edi
push eax
call fcn.00417454
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41dd18
call fcn.00416359
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd49
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041c8fc
add esp, 0x20
test eax, eax
jne 0x41dd37
push edi
call fcn.00416359
jmp 0x41dd3f
push ebx
call fcn.00416359
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 0x424f20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x424f4d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x424f4d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40c1a4
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x4122e4], 0
jne 0x40c225
cmp dword [0x412304], 0
jne 0x40c1d4
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x412304], eax
test eax, eax
jne 0x40c1d4
push str.GetEnvironmentStrings_failed
call fcn.0040b214
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x412304]
jmp 0x40c1e8
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040512c
pop ecx
mov edi, eax
test eax, eax
jne 0x40c1e0
lea edi, [ebp + 1]
push edi
call fcn.00404260
pop ecx
mov ebx, eax
mov dword [0x4122e8], ebx
test ebx, ebx
jne 0x40c212
xor eax, eax
jmp 0x40c2e8
push edi
mov edx, dword [0x412304]
push edx
push ebx
call fcn.00404fdc
add esp, 0xc
jmp 0x40c245
xor esi, esi
mov ebx, dword [0x4122e4]
jmp 0x40c23f
push eax
call fcn.0040512c
pop ecx
test eax, eax
jne 0x40c23b
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40c22f
lea ebx, [esi + 4]
push 4
mov dword [0x4122ec], ebx
inc ebx
push ebx
call fcn.00404060
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x40c268
xor eax, eax
jmp 0x40c2e8
cmp dword [0x4122e4], 0
jne 0x40c299
xor esi, esi
mov ebx, dword [0x4122e8]
mov eax, dword [esp]
mov ebp, eax
jmp 0x40c28a
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040512c
pop ecx
mov edi, eax
test eax, eax
jne 0x40c280
jmp 0x40c2ca
xor esi, esi
mov ebx, dword [0x4122e4]
mov eax, dword [esp]
mov edi, eax
jmp 0x40c2c4
push eax
call fcn.0040512c
pop ecx
test eax, eax
je 0x40c2b9
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40c2bd
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40c2a8
mov eax, dword [0x4122e4]
test eax, eax
je 0x40c2da
push eax
call fcn.00404270
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x4122e4], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x405ed0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423c82
mov eax, dword fs:[0]
push eax
sub esp, 0x270
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x215], dl
mov edi, ecx
mov dword [ebp - 0x21c], 0
test edi, edi
jne 0x405f23
mov dword [ebp - 0x21c], 1
jmp 0x4060cf
push ecx
mov ebx, esp
push 0xc
call fcn.0040ccea
mov esi, eax
add esp, 4
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x405f76
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x405f78
push 0x8007000e
call fcn.0040bdd0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
test esi, esi
jne 0x405f8f
push 0x8007000e
call fcn.0040bdd0
call fcn.00403ae0
add esp, 4
mov esi, eax
mov edx, esi
mov ecx, str.hideWaitCommand:
call fcn.00404c60
test esi, esi
je 0x405fb2
push esi
call fcn.004131f1
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405fb7
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 0x10]
push eax
push 2
call fcn.00413311
mov esi, eax
add esp, 8
test esi, esi
jne 0x406036
mov edx, str.Memory_allocate_fail
mov ecx, 0x4299e8
call fcn.00405050
push 0x200
lea eax, [ebp - 0x214]
push esi
push eax
call fcn.0040f380
add esp, 0xc
lea eax, [ebp - 0x214]
push str.Tool.cpp
push 0x84f
push str.Safe_at__d_lines_in__s
push 0x200
push eax
call fcn.0040111f
add esp, 0x14
lea edx, [ebp - 0x214]
mov ecx, str._Safe_Line_
call fcn.00405050
jmp 0x4060cf
lea eax, [ebp - 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
cmp byte [ebp - 0x215], 0
mov ecx, 0x429eac
mov eax, str.cmd__c__s
push edi
cmove eax, ecx
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x27c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp + 8]
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x21c], 0
je 0x4060c6
mov edx, edi
call fcn.00405310
mov edx, dword [ebp - 0x21c]
call fcn.004051c0
push esi
call fcn.004131f1
add esp, 4
mov edx, 0x4299e8
mov ecx, str.hideWaitCommand_finish
call fcn.00404c60
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040cad5
mov esp, ebp
pop ebp
ret
Function at 0x406100
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x423cc2
mov eax, dword fs:[0]
push eax
sub esp, 0x464
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test edi, edi
jne 0x406193
push 0x200
lea eax, [ebp - 0x210]
push edi
push eax
call fcn.0040f380
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x889
push str.Tool.cpp
push str.inputCommand
push str.Parameter__s_is_null_at__s__d
push 0x200
push eax
call fcn.0040111f
add esp, 0x18
lea edx, [ebp - 0x210]
mov ecx, 0x4299e8
call fcn.00405440
jmp 0x40630b
push ecx
mov ebx, esp
push 0xc
call fcn.0040ccea
mov esi, eax
add esp, 4
mov dword [ebp - 0x414], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4061e6
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x4061e8
push 0x8007000e
call fcn.0040bdd0
xor esi, esi
mov dword [ebp - 4], 0xffffffff
mov dword [ebx], esi
test esi, esi
jne 0x4061ff
push 0x8007000e
call fcn.0040bdd0
call fcn.00403ae0
add esp, 4
mov esi, eax
mov edx, esi
mov ecx, str.hideNOWaitCommand:
call fcn.00404c60
test esi, esi
je 0x406222
push esi
call fcn.004131f1
add esp, 4
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406227
sub ecx, edx
sar ecx, 1
lea eax, [ecx + 1]
push eax
push 2
call fcn.00413311
mov esi, eax
add esp, 8
test esi, esi
jne 0x4062a3
mov edx, str.Memory_allocate_fail
mov ecx, 0x4299e8
call fcn.00405050
push 0x200
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.0040f380
add esp, 0xc
lea eax, [ebp - 0x410]
push str.Tool.cpp
push 0x890
push str.Safe_at__d_lines_in__s
push 0x200
push eax
call fcn.0040111f
add esp, 0x14
lea edx, [ebp - 0x410]
mov ecx, str._Safe_Line_
call fcn.00405050
jmp 0x40630b
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4062b0
sub ecx, edx
sar ecx, 1
push edi
push 0x429eac
lea eax, [ecx + 1]
push eax
push esi
call fcn.00401090
add esp, 0x10
mov dword [ebp - 0x420], 0xffffffff
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x470]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push esi
call fcn.004131f1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040cad5
mov esp, ebp
pop ebp
ret
Function at 0x406330
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x1424
call fcn.0040d810
mov eax, dword [0x42e024]
xor eax, esp
mov dword [esp + 0x141c], eax
push ebx
push ebp
push esi
push edi
push 0x208
lea eax, [esp + 0x1224]
xor bl, bl
push 0
push eax
mov ebp, ecx
mov byte [esp + 0x23], bl
call fcn.0040f380
add esp, 0xc
mov dword [esp + 0x1c], 0
test ebp, ebp
jne 0x4063ce
push 0x200
lea eax, [esp + 0x1024]
push ebp
push eax
call fcn.0040f380
add esp, 0xc
lea ecx, [esp + 0x1020]
push 0x8b5
push str.Tool.cpp
push str.processName
push str.Parameter__s_is_null_at__s__d
push 0x200
push ecx
call fcn.0040111f
add esp, 0x18
lea edx, [esp + 0x1020]
mov ecx, 0x4299e8
call fcn.00405440
mov al, bl
jmp 0x406477
lea eax, [esp + 0x18]
push eax
push 0x1000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x4063fa
mov edx, str.EnumProcesses_fail
mov ecx, 0x4299e8
call fcn.00405050
mov al, bl
jmp 0x406477
mov ebx, dword [esp + 0x18]
xor esi, esi
shr ebx, 2
test ebx, ebx
je 0x406473
mov eax, dword [esp + esi*4 + 0x20]
test eax, eax
je 0x40646e
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x40646e
lea eax, [esp + 0x18]
push eax
push 4
lea eax, [esp + 0x24]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x406452
push 0x104
lea eax, [esp + 0x1224]
push eax
push dword [esp + 0x24]
push edi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1220]
push ebp
push eax
call fcn.004134ce
add esp, 8
test eax, eax
je 0x406490
inc esi
cmp esi, ebx
jb 0x406407
mov al, byte [esp + 0x17]
mov ecx, dword [esp + 0x142c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040cad5
add esp, 0x1424
ret
mov al, 1
jmp 0x406477

Function at 0x406d50
Capabilities:
Get session user name

Disassembly:
sub esp, 0x210
mov eax, dword [0x42e024]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x200
push 2
mov dword [esp + 0xc], 0x200
call fcn.00413311
mov esi, eax
add esp, 8
test esi, esi
jne 0x406de8
mov edx, str.Memory_allocate_fail
mov ecx, 0x4299e8
call fcn.00405050
push 0x200
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0040f380
push str.Tool.cpp
push 0x93b
push str.Safe_at__d_lines_in__s
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.0040111f
add esp, 0x20
lea edx, [esp + 8]
mov ecx, str._Safe_Line_
call fcn.00405050
mov eax, esi
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0040cad5
add esp, 0x210
ret
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
jne 0x406dd0
push esi
call fcn.004131f1
mov ecx, dword [esp + 0x210]
add esp, 4
xor eax, eax
pop esi
xor ecx, esp
call fcn.0040cad5
add esp, 0x210
ret
Function at 0x406e20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x42e024]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
push 0x105
push 2
call fcn.00413311
mov esi, eax
add esp, 8
test esi, esi
jne 0x406eb3
mov edx, str.Memory_allocate_fail
mov ecx, 0x4299e8
call fcn.00405050
push 0x200
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0040f380
add esp, 0xc
lea eax, [esp + 8]
push str.Tool.cpp
push 0x949
push str.Safe_at__d_lines_in__s
push 0x200
push eax
call fcn.0040111f
add esp, 0x14
lea edx, [esp + 8]
mov ecx, str._Safe_Line_
call fcn.00405050
mov eax, esi
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0040cad5
add esp, 0x210
ret
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x406edf
push str.Tool.cpp
push 0x94b
push str.getUserTempPath
push str._ERROR___s_extract_user_temp_folder_fail_at_line__d_in__s_n
call fcn.00403680
add esp, 0x10
mov eax, esi
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.0040cad5
add esp, 0x210
ret