joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3b41554b
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x3b4316b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [section..data]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.3b413bb5
mov dword [ebp - 0x14], eax
cmp dword [0x3b435300], esi
jne 0x3b41563e
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x3b4155cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x3b41571e
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x3b41571e
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x3b41571e
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x3b435300], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x3b435304], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x3b435308], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x3b435310], eax
test eax, eax
je 0x3b41563b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x3b43530c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x3b415663
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x3b415656
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x3b415678
push 4
pop eax
jmp 0x3b415720
cmp dword [ebp - 0x14], esi
je 0x3b415678
push dword [0x3b435300]
call dword [0x3b431004]
push 3
jmp 0x3b41565d
mov eax, dword [0x3b43530c]
mov ebx, dword [0x3b431004]
cmp eax, edi
je 0x3b4156d6
cmp dword [0x3b435310], edi
je 0x3b4156d6
push eax
call ebx
push dword [0x3b435310]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x3b4156d6
test eax, eax
je 0x3b4156d6
call ecx
test eax, eax
je 0x3b4156cb
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x3b4156cb
test byte [ebp - 8], 1
jne 0x3b4156d6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x3b415706
mov eax, dword [0x3b435304]
cmp eax, edi
je 0x3b415703
push eax
call ebx
test eax, eax
je 0x3b415703
call eax
mov esi, eax
test esi, esi
je 0x3b415703
mov eax, dword [0x3b435308]
cmp eax, edi
je 0x3b415703
push eax
call ebx
test eax, eax
je 0x3b415703
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x3b435300]
call ebx
test eax, eax
je 0x3b41571e
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x3b415720
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3b40e58c
mov esp, ebp
pop ebp
ret
Function at 0x401220
Capabilities:
Create thread
Delete file
Get common file path
Terminate process

Disassembly:
sub esp, 0x220
push ebx
push ebp
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x12d]
mov byte [esp + 0x12c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x12c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
call fcn.004018d0
lea ecx, [esp + 0x12c]
push 0
push ecx
lea ecx, [esp + 0x18]
jmp loc.00402000

Function at 0x4014f0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40151e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, esi
pop esi
ret

Function at 0x401570
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x214
lea eax, [esp]
mov dword [esp], 0
push eax
push 0xf003f
push 0
push 0x4011c0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401662
mov ecx, dword [0x4011b0]
mov eax, dword [0x4011b8]
mov edx, dword [0x4011b4]
mov dword [esp + 0xc], ecx
mov cx, word [0x4011bc]
push edi
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], cx
mov ecx, 0x3d
xor eax, eax
lea edi, [esp + 0x1e]
mov dword [esp + 0x14], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0xc]
lea eax, [esp + 0x114]
push edx
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
lea edx, [esp + 0x1c]
push 0
push edx
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x401656
mov edx, dword [esp + 0x21c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov edx, dword [esp + 0xc]
push 1
lea ecx, [esp + 0x1c]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
add esp, 0x214
ret
Function at 0x10009a20
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003054a
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10044070]
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.10010d70
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.10012f1d
add esp, 8
mov dword [ebp - 0x24], vtable.std::runtime_error.0
lea eax, [ebp - 0x24]
push 0x10043338
push eax
call fcn.10014717
push edi
push esi
call fcn.100110b9
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.10011dd0
mov esp, ebp
pop ebp
ret 4

Function at 0x1000a2b0
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.1000d520
mov edi, eax
cmp edi, 0xffffffff
je 0x1000a32d
lea ecx, [edi + 1]
push ecx
push ecx
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.1000c050
cmp dword [eax + 0x14], 0x10
jb 0x1000a2f0
mov eax, dword [eax]
push 0
push eax
call ebx
mov ecx, dword [ebp - 4]
cmp ecx, 0x10
jb 0x1000a2c3
mov eax, dword [ebp - 0x18]
inc ecx
cmp ecx, 0x1000
jb 0x1000a322
test al, 0x1f
jne 0x1000a365
mov ecx, dword [eax - 4]
cmp ecx, eax
jae 0x1000a365
sub eax, ecx
cmp eax, 4
jb 0x1000a365
cmp eax, 0x23
ja 0x1000a365
mov eax, ecx
push eax
call fcn.10012368
add esp, 4
jmp 0x1000a2c3
mov eax, dword [esi + 0x10]
push 2
dec eax
push eax
push ecx
mov ecx, esi
call fcn.1000d520
cmp eax, 0xffffffff
jne 0x1000a34f
push 1
push 0x100409c0
mov ecx, esi
call fcn.10009180
cmp dword [esi + 0x14], 0x10
jb 0x1000a357
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.100176e1
int3
Function at 0x1000a6d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030690
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x10044070]
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.1000b200
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 0x1000a745
test al, 0x10
jne 0x1000a745
mov esi, 1
jmp 0x1000a747
xor esi, esi
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x1000a75c
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.1000dcc0
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 0x1000a7ba
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x1000a7b1
test cl, 0x1f
je 0x1000a78d
call fcn.100176e1
mov eax, dword [ecx - 4]
cmp eax, ecx
jb 0x1000a799
call fcn.100176e1
sub ecx, eax
cmp ecx, 4
jae 0x1000a7a5
call fcn.100176e1
cmp ecx, 0x23
jbe 0x1000a7af
call fcn.100176e1
mov ecx, eax
push ecx
call fcn.10012368
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.10011dd0
mov esp, ebp
pop ebp
ret

Function at 0x1000a7e0
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 0x1000a806
test al, 0x10
je 0x1000a806
mov esi, 1
jmp 0x1000a808
xor esi, esi
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x1000a83e
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x1000a835
test cl, 0x1f
jne 0x1000a843
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1000a848
sub ecx, eax
cmp ecx, 4
jb 0x1000a84d
cmp ecx, 0x23
ja 0x1000a852
mov ecx, eax
push ecx
call fcn.10012368
add esp, 4
mov eax, esi
pop esi
pop ebp
ret
call fcn.100176e1
call fcn.100176e1
call fcn.100176e1
call fcn.100176e1
int3

Function at 0x1000a860
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 0x1000a8b5
mov ecx, dword [ebp + 8]
inc eax
cmp eax, 0x1000
jb 0x1000a8ac
test cl, 0x1f
jne 0x1000a8bb
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x1000a8c0
sub ecx, eax
cmp ecx, 4
jb 0x1000a8c5
cmp ecx, 0x23
ja 0x1000a8ca
mov ecx, eax
push ecx
call fcn.10012368
add esp, 4
lea eax, [esi + 1]
pop esi
pop ebp
ret
call fcn.100176e1
call fcn.100176e1
call fcn.100176e1
call fcn.100176e1
int3
Function at 0x1000b2a0
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 0x100307b0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
mov eax, dword [0x10044070]
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.100150e0
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.1000b200
lea edx, [ebp - 0x30]
mov ecx, edi
call fcn.1000b200
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 0x1000b3cb
push 1
push 0x10040b78
lea ecx, [ebp - 0x48]
call fcn.1000d360
mov edx, dword [edi + esi*4]
cmp word [edx], 0
jne 0x1000b38d
xor eax, eax
jmp 0x1000b3a4
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1000b392
sub eax, edi
mov edi, dword [ebp - 0x54]
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x48]
call fcn.1000d360
mov eax, dword [ebp - 0x18]
dec eax
cmp esi, eax
je 0x1000b3cb
push 1
push 0x10040b78
lea ecx, [ebp - 0x48]
call fcn.1000d360
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x1000b371
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 0x1000b409
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1000b40b
xor esi, esi
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x1000b420
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.1000dcc0
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 0x1000b449
inc eax
lea ecx, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
call fcn.1000dcc0
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.10011dd0
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x1000b470
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x10044070]
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 0x1000b4bc
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10011dd0
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 0x1000b530
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.1001afe3
add esp, 8
test eax, eax
jne 0x1000b51e
push dword [ebp - 0x128]
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1000b518
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 0x1000b4d4
push edi
call ebx
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10011dd0
mov esp, ebp
pop ebp
ret
Function at 0x1000d860
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030978
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10044070]
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 0x1000d9cb
cmp byte [ebx + 0x3d], 0
je 0x1000d9cb
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1000d8b9
xor al, al
jmp 0x1000d9cd
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.1000d5a0
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 0x1000d923
sub eax, 1
je 0x1000d927
mov edx, dword [ebp - 0x14]
sub eax, 2
mov eax, dword [ebp - 0x28]
je 0x1000d97d
xor bl, bl
jmp 0x1000d97f
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 0x1000d95f
push dword [ebx + 0x4c]
cmp edx, 0x10
lea ecx, [ebp - 0x28]
push esi
cmovae ecx, eax
push 1
push ecx
call fcn.1001a94f
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
mov eax, dword [ebp - 0x28]
jne 0x1000d91f
cmp byte [ebx + 0x3d], 0
je 0x1000d97d
test esi, esi
jne 0x1000d8e4
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.1000d670
jmp 0x1000d8de
mov bl, 1
cmp edx, 0x10
jb 0x1000d9c7
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x1000d9be
test byte [ebp - 0x28], 0x1f
je 0x1000d99a
call fcn.100176e1
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x1000d9a6
call fcn.100176e1
sub eax, ecx
cmp eax, 4
jae 0x1000d9b2
call fcn.100176e1
cmp eax, 0x23
jbe 0x1000d9bc
call fcn.100176e1
mov eax, ecx
push eax
call fcn.10012368
add esp, 4
mov al, bl
jmp 0x1000d9cd
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.10011dd0
mov esp, ebp
pop ebp
ret
Function at 0x1000df30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030626
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x10044070]
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.10012005
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.10010fb6
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 0x1000e780
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 0x1000e79e
pop edi
lea eax, [esi + 1]
pop esi
pop ebp
ret
push ebx
push 0
push 0
push 0x10040dd0
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 0x1000e7e4
push ebx
call edi
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x1000f5f0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10044070]
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 0x1000f5b0
mov edi, edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov esi, eax
neg esi
sbb esi, esi
and esi, dword [ebp - 0x20]
je 0x1000f6cb
push 0x10040d34
movzx eax, di
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x1000f6cb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000f6cb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x28], eax
test eax, eax
je 0x1000f6cb
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x1000f6cb
push ebx
call fcn.1001b672
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 0x1000f6cb
cmp edi, 0xffffffff
je 0x1000f6cb
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.10011dd0
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.10011dd0
mov esp, ebp
pop ebp
ret
Function at 0x1000f6e0
Capabilities:
Get system information on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10030c62
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x10044070]
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 0x1000f751
mov eax, dword [esi]
jmp 0x1000f753
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.100150e0
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 0x1000f7a5
lea ecx, [ebp - 0x138]
push ecx
call eax
jmp 0x1000f7b2
lea eax, [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x138]
cmp ax, 9
je 0x1000f84d
cmp ax, 6
je 0x1000f84d
push str.GetNativeSystemInfo
push str.kernel32
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000f7ef
lea ecx, [ebp - 0x15c]
push ecx
call eax
jmp 0x1000f7fc
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x15c]
cmp ax, 9
je 0x1000f898
cmp ax, 6
je 0x1000f898
push 0x104
lea eax, [ebp - 0x114]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp byte [ebp - 0x114], 0
jne 0x1000f83b
xor ecx, ecx
jmp 0x1000f889
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f844
jmp 0x1000f887
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 0x1000f871
xor ecx, ecx
jmp 0x1000f889
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f880
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 0x1000f8a7
xor ecx, ecx
jmp 0x1000f8b9
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000f8b0
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.10011dd0
mov esp, ebp
pop ebp
ret