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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1004a00c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x100117f7
xor eax, eax
jmp 0x10011853
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x10011824
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x10011824
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x100118d8
cmp dword [edi + 0x4c], 0
je 0x1001184d
mov ecx, edi
call fcn.10011235
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x10011863
push dword [edi + 0x4c]
push ebx
call fcn.10010a78
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x10011852
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.1000f394
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x10036178]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x1001184d
cmp eax, 1
jle 0x100118ab
cmp eax, 3
jne 0x1001184d
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x1001183f
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x100118c8
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.1001e141
add esp, 0x10
cmp esi, eax
jne 0x1001184d
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x1001184d
mov ax, bx
jmp 0x10011852

Function at 0x10026d86
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10026a49

Function at 0x10026d91
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10026bca
Function at 0x10009a20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030e2a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10046070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x28], esi
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x2c], esi
call fcn.10011610
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x10009ae0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], vtable.std::exception.0
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], str.bad_locale_name
xorps xmm0, xmm0
mov byte [ebp - 0x14], 1
push eax
movq qword [ebp - 0x20], xmm0
call fcn.100137dd
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x10044510
push eax
call fcn.10014fd7
push edi
push esi
call fcn.10011958
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001266f
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a2d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push edi
mov esi, ecx
xor edi, edi
push 2
lea eax, [edi + 1]
push eax
push ecx
mov ecx, esi
call fcn.1000dd00
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a34d
lea ecx, [edi + 1]
push ecx
push ecx
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.1000c830
cmp dword [eax + 0x14], 0x10
jb 0x1000a310
mov eax, dword [eax]
push 0
push eax
call ebx
mov ecx, dword [ebp - 4]
cmp ecx, 0x10
jb 0x1000a2e3
mov eax, dword [ebp - 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x1000a342
test al, 0x1f
jne 0x1000a385
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x1000a385
sub eax, ecx
cmp eax, 4
jb 0x1000a385
cmp eax, 0x23
ja 0x1000a385
mov eax, ecx
push eax
call fcn.10012c24
add esp, 4
jmp 0x1000a2e3
mov eax, dword [esi + 0x10]
push 2
dec eax
push eax
push ecx
mov ecx, esi
call fcn.1000dd00
cmp eax, 0xffffffff
jne 0x1000a36f
push 1
push 0x100419f0
mov ecx, esi
call fcn.10009180
cmp dword [esi + 0x14], 0x10
jb 0x1000a377
mov esi, dword [esi]
push 0
push esi
call ebx
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10017f81
int3
Function at 0x1000ad20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031030
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10046070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.1000b9e0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000ad95
test al, 0x10
jne 0x1000ad95
mov esi, 1
jmp 0x1000ad97
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1000adac
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1000e4a0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x18], 0
cmp eax, 0x10
jb 0x1000ae0a
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x1000ae01
test cl, 0x1f
je 0x1000addd
call fcn.10017f81
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1000ade9
call fcn.10017f81
sub ecx, eax
cmp ecx, 4
jae 0x1000adf5
call fcn.10017f81
cmp ecx, 0x23
jbe 0x1000adff
call fcn.10017f81
mov ecx, eax
push ecx
call fcn.10012c24
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001266f
mov esp, ebp
pop ebp
ret

Function at 0x1000ae30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x1000ae56
test al, 0x10
je 0x1000ae56
mov esi, 1
jmp 0x1000ae58
xor esi, esi
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x1000ae8e
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x1000ae85
test cl, 0x1f
jne 0x1000ae93
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1000ae98
sub ecx, eax
cmp ecx, 4
jb 0x1000ae9d
cmp ecx, 0x23
ja 0x1000aea2
mov ecx, eax
push ecx
call fcn.10012c24
add esp, 4
mov eax, esi
pop esi
pop ebp
ret
call fcn.10017f81
call fcn.10017f81
call fcn.10017f81
call fcn.10017f81
int3

Function at 0x1000aeb0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push esi
cmovae eax, dword [ebp + 8]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea esi, [eax - 1]
mov eax, dword [ebp + 0x1c]
neg esi
sbb esi, esi
cmp eax, 0x10
jb 0x1000af05
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x1000aefc
test cl, 0x1f
jne 0x1000af0b
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1000af10
sub ecx, eax
cmp ecx, 4
jb 0x1000af15
cmp ecx, 0x23
ja 0x1000af1a
mov ecx, eax
push ecx
call fcn.10012c24
add esp, 4
lea eax, [esi + 1]
pop esi
pop ebp
ret
call fcn.10017f81
call fcn.10017f81
call fcn.10017f81
call fcn.10017f81
int3
Function at 0x1000b7b0
Capabilities:
Delete registry key
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031156
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x10046070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], 7
mov dword [ebp - 0x240], eax
mov word [ebp - 0x250], ax
lea edx, [ebp - 0x230]
mov byte [ebp - 4], 1
call fcn.1000b9e0
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0
push eax
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
mov dword [ebp - 0x238], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000b8fe
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.100159a0
add esp, 0xc
mov dword [ebp - 0x234], 0x104
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x234]
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x218]
push ecx
lea ecx, [ebp - 0x238]
push ecx
push 0
push eax
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b8c0
sub ecx, edx
sar ecx, 1
je 0x1000b8f2
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x21c]
cmp eax, 8
jb 0x1000b91c
inc eax
lea ecx, [ebp - 0x230]
push eax
push dword [ebp - 0x230]
call fcn.1000e4a0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001266f
mov esp, ebp
pop ebp
ret
Function at 0x1000ba80
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031190
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x10046070]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
push 0x44
push 0
push eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
call fcn.100159a0
mov eax, dword [ebp - 0x4c]
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x50]
mov dword [eax], 0x44
xor eax, eax
mov word [ebp - 0x48], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], eax
mov word [ebp - 0x30], ax
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.1000b9e0
lea edx, [ebp - 0x30]
mov ecx, edi
call fcn.1000b9e0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, 1
mov edi, eax
mov dword [ebp - 0x54], edi
cmp dword [ebp - 0x18], esi
jle 0x1000bbab
push 1
push 0x10041bb8
lea ecx, [ebp - 0x48]
call fcn.1000db40
mov edx, dword [edi + esi*4]
cmp word [edx], 0
jne 0x1000bb6d
xor eax, eax
jmp 0x1000bb84
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000bb72
sub eax, edi
mov edi, dword [ebp - 0x54]
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.1000db40
mov eax, dword [ebp - 0x18]
dec eax
cmp esi, eax
je 0x1000bbab
push 1
push 0x10041bb8
lea ecx, [ebp - 0x48]
call fcn.1000db40
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x1000bb51
push dword [ebp - 0x4c]
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push dword [ebp - 0x50]
cmovae eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x48]
cmp dword [ebp - 0x34], 8
push eax
cmovae ecx, dword [ebp - 0x48]
push 0
push 0
push 1
push 0
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1000bbe9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000bbeb
xor esi, esi
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x1000bc00
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.1000e4a0
xor eax, eax
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], ax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], 0
cmp eax, 8
jb 0x1000bc29
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.1000e4a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1001266f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1000bc50
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x10046070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
mov dword [ebp - 0x130], pe_nt_image_headers32
push 2
mov dword [ebp - 0x134], esi
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000bc9c
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001266f
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32First]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x1000bd10
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.1001b8b0
add esp, 8
test eax, eax
jne 0x1000bcfe
push dword [ebp - 0x128]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000bcf8
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0x2710
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
mov esi, dword [ebp - 0x134]
lea eax, [ebp - 0x130]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1000bcb4
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001266f
mov esp, ebp
pop ebp
ret
Function at 0x1000e040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031358
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10046070]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000e1ab
cmp byte [ebx + 0x3d], 0
je 0x1000e1ab
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1000e099
xor al, al
jmp 0x1000e1ad
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000dd80
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmp edx, 0x10
lea esi, [ebp - 0x28]
cmovae esi, eax
cmovae edi, eax
mov edx, dword [ecx]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000e103
sub eax, 1
je 0x1000e107
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x1000e15d
xor bl, bl
jmp 0x1000e15f
mov byte [ebx + 0x3d], 0
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x28]
cmp edx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae ecx, eax
sub esi, ecx
je 0x1000e13f
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.1001b1d4
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x1000e0ff
cmp byte [ebx + 0x3d], 0
je 0x1000e15d
test esi, esi
jne 0x1000e0c4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.1000de50
jmp 0x1000e0be
mov bl, 1
cmp edx, 0x10
jb 0x1000e1a7
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x1000e19e
test byte [ebp - 0x28], 0x1f
je 0x1000e17a
call fcn.10017f81
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x1000e186
call fcn.10017f81
sub eax, ecx
cmp eax, 4
jae 0x1000e192
call fcn.10017f81
cmp eax, 0x23
jbe 0x1000e19c
call fcn.10017f81
mov eax, ecx
push eax
call fcn.10012c24
add esp, 4
mov al, bl
jmp 0x1000e1ad
mov al, 1
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.1001266f
mov esp, ebp
pop ebp
ret
Function at 0x1000e710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030f06
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10046070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100128a4
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10011855
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000ef60
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 3
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x1000ef7e
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
push ebx
push 0
push 0
push 0x10041e70
push 0
push 0
push dword [ebp + 0x18]
push 1
push 2
push 0x10
push 4
push str.LocalProtService__Service
push str.LocalProtService
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
mov eax, 2
test ebx, ebx
cmove esi, eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test ebx, ebx
je 0x1000efc4
push ebx
call edi
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1000ff60
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10046070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x24]
push esi
push edi
push 0x1c
push eax
push 0x1000ff20
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x20]
je 0x1001003b
push 0x10041de8
movzx eax, di
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1001003b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1001003b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1001003b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x1001003b
push ebx
call fcn.1001bf3f
add esp, 4
push 0
push 0x22
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x1001003b
cmp edi, 0xffffffff
je 0x1001003b
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push esi
push dword [ebp - 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
test esi, esi
pop esi
setne al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001266f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001266f
mov esp, ebp
pop ebp
ret
Function at 0x10010050
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031642
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x10046070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x164], edx
mov esi, ecx
mov dword [ebp - 0x168], esi
mov dword [ebp - 0x160], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x16c], esi
mov dword [esi + 0x10], 0
jb 0x100100c1
mov eax, dword [esi]
jmp 0x100100c3
mov eax, esi
mov byte [eax], 0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x160], 1
call fcn.100159a0
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add esp, 0xc
push str.GetNativeSystemInfo
push str.kernel32
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10010115
lea ecx, [ebp - 0x138]
push ecx
call eax
jmp 0x10010122
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x138]
cmp ax, 9
je 0x100101bd
cmp ax, 6
je 0x100101bd
push str.GetNativeSystemInfo
push str.kernel32
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001015f
lea ecx, [ebp - 0x15c]
push ecx
call eax
jmp 0x1001016c
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x15c]
cmp ax, 9
je 0x10010208
cmp ax, 6
je 0x10010208
push 0x104
lea eax, [ebp - 0x114]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x114], 0
jne 0x100101ab
xor ecx, ecx
jmp 0x100101f9
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100101b4
jmp 0x100101f7
push 0x104
lea eax, [ebp - 0x114]
push eax
push str.ProgramFiles_x86_
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x114], 0
jne 0x100101e1
xor ecx, ecx
jmp 0x100101f9
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100101f0
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.10008f50
mov ebx, dword [ebp - 0x164]
cmp byte [ebx], 0
jne 0x10010217
xor ecx, ecx
jmp 0x10010229
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10010220
sub ecx, edx
push ecx
push ebx
mov ecx, esi
call fcn.10009180
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1001266f
mov esp, ebp
pop ebp
ret
Function at 0x10010250
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10031678
mov eax, dword fs:[0]
push eax
push ebx
mov eax, dword [0x10046070]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xb
push str.._first.run
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0
call fcn.10009180
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov eax, dword [ebp + 0x1c]
sete bl
cmp eax, 0x10
jb 0x100102ea
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x100102e1
test cl, 0x1f
je 0x100102bd
call fcn.10017f81
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x100102c9
call fcn.10017f81
sub ecx, eax
cmp ecx, 4
jae 0x100102d5
call fcn.10017f81
cmp ecx, 0x23
jbe 0x100102df
call fcn.10017f81
mov ecx, eax
push ecx
call fcn.10012c24
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100247c8
Capabilities:
Read file on windows

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

Function at 0x1002936f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002902f