joyce8/EMBER2024-capa huggingface dataset:
Function at 0x21026d14
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 0x1c]
push eax
push 1
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x21026d3c
push str.ControlService
call fcn.2100a4db
xor eax, eax
jmp 0x21026d59
push 0x7530
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.21026d5f
test eax, eax
jne 0x21026d54
xor eax, eax
jmp 0x21026d59
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x21026d5f
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 0x7530
mov dword [ebp - 0x28], eax
cmp dword [0x2105b710], 0
je 0x21026d8d
mov ecx, dword [0x2105b710]
call fcn.2102048f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [ebp - 0x28]
jbe 0x21026db3
push str.__timed_out_waiting_for_service
push str.WaitService
push 0x2729
call fcn.2100a398
add esp, 0xc
xor eax, eax
jmp 0x21026e03
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x21026dc7
jmp 0x21026d8d
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0xc]
jne 0x21026ddc
push 0xfa
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x21026df2
cmp dword [0x2105b710], 0
je 0x21026df0
mov ecx, dword [0x2105b710]
call fcn.2102048f
jmp 0x21026d8d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x21027688
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x210276b2
xor eax, eax
jmp 0x210276cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
neg eax
sbb eax, eax
add eax, 2
mov esp, ebp
pop ebp
ret 8
Function at 0x2102875f
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x320
push edi
mov dword [ebp - 8], 0
mov byte [ebp - 0x110], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0x100
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x210287d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x210287d8
xor eax, eax
jmp 0x210288fd
mov edx, dword [ebp - 8]
push edx
call fcn.2103d925
add esp, 4
mov dword [ebp - 0x318], eax
mov eax, dword [ebp - 0x318]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x2102880a
push str.GetCurrentSid:_could_not_allocate_SID
call fcn.2100a467
xor eax, eax
jmp 0x210288fd
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameA]
test eax, eax
jne 0x21028839
jmp 0x210288fb
cmp dword [ebp - 0x114], 1
je 0x210288c6
cmp dword [ebp - 0x114], 3
jne 0x210288c4
push 0x210569f0
mov ecx, dword [ebp + 8]
push ecx
call fcn.21031f80
add esp, 8
test eax, eax
jne 0x210288c4
lea edx, [ebp - 0x314]
push edx
call fcn.2102b955
test eax, eax
jne 0x21028879
jmp 0x210288f9
mov eax, dword [ebp + 8]
push eax
push str._s
lea ecx, [ebp - 0x314]
push ecx
call fcn.21030110
add esp, 4
lea edx, [ebp + eax - 0x314]
push edx
call fcn.2103021c
add esp, 0xc
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x31c], eax
mov ecx, dword [ebp - 0x31c]
push ecx
call fcn.2103d94e
add esp, 4
mov edx, dword [ebp + 8]
push edx
call fcn.2102875f
jmp 0x210288fd
jmp 0x210288f7
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x210288f2
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x320], eax
mov ecx, dword [ebp - 0x320]
push ecx
call fcn.2103d94e
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
jmp 0x210288fd
jmp 0x210288cd
jmp 0x210288cd
jmp 0x210288cd
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x21028904
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x2105b320], 0
jne 0x2102891d
mov eax, 1
jmp 0x21028a9c
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov byte [ebp - 0x10], 0
mov byte [ebp - 0xf], 0
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xc], 0
mov byte [ebp - 0xb], 5
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 0x20]
push eax
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x2102897d
lea ecx, [ebp - 0x20]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp dword [ebp - 0x20], 0
jne 0x21028988
jmp 0x21028a9a
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 2
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x210289ac
jmp 0x21028a98
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.2103d925
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x210289cc
jmp 0x21028a96
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
push 2
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x210289ed
jmp 0x21028a94
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea edx, [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x21028a16
jmp 0x21028a92
mov dword [ebp - 8], 0
mov dword [ebp - 0x1c], 0
jmp 0x21028a2f
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ecx]
jae 0x21028a5b
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx*8 + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x21028a54
jmp 0x21028a26
mov dword [ebp - 8], 1
cmp dword [ebp - 0x20], 0
je 0x21028a6b
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x14], 0
je 0x21028a7b
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
push ecx
call fcn.2103d94e
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x21028a9c
jmp 0x21028a5b
jmp 0x21028a5b
jmp 0x21028a5b
jmp 0x21028a5b
jmp 0x21028a5b
mov esp, ebp
pop ebp
ret
Function at 0x21029c4a
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
push 1
push 0
push 0
mov edx, dword [ebp - 0x20]
call dword [edx + 8]
test eax, eax
je 0x21029d0c
call fcn.210285b1
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
jmp 0x21029c90
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 4]
jae 0x21029cf0
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0xc], 0
jne 0x21029cb1
jmp 0x21029c87
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x21029cc8
jmp 0x21029c87
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.2100ab40
push eax
call fcn.21030490
add esp, 8
test eax, eax
jne 0x21029cee
mov dword [ebp - 8], 1
jmp 0x21029cf0
jmp 0x21029c87
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.2103d94e
add esp, 4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x20]
call dword [edx + 0xc]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x21029d15
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xffffffff
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x21029d49
jmp 0x21029e73
lea edx, [ebp - 0x1c]
push edx
push 0
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x21029d75
lea eax, [ebp - 0x1c]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp dword [ebp - 0x1c], 0
jne 0x21029d80
jmp 0x21029e71
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 3
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x21029da4
jmp 0x21029e6f
mov eax, dword [ebp - 8]
push eax
call fcn.2103d925
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jne 0x21029dc4
jmp 0x21029e6d
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 3
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x21029de5
jmp 0x21029e6b
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
jmp 0x21029dfe
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx]
jae 0x21029e44
mov eax, dword [ebp - 4]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + eax + 4]
mov dword [ebp - 0x20], edx
push 8
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.21031880
add esp, 0xc
test eax, eax
je 0x21029e30
jmp 0x21029df5
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 8]
and eax, 3
test eax, eax
je 0x21029e44
mov dword [ebp - 0x14], 1
cmp dword [ebp - 0x1c], 0
je 0x21029e54
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
call fcn.2103d94e
add esp, 4
mov eax, dword [ebp - 0x14]
jmp 0x21029e75
jmp 0x21029e44
jmp 0x21029e44
jmp 0x21029e44
jmp 0x21029e44
jmp 0x21029e44
mov esp, ebp
pop ebp
ret 4

Function at 0x2102a540
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret

Function at 0x2102a560
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov esp, ebp
pop ebp
ret
Function at 0x2102b1bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov byte [eax], 0
lea ecx, [ebp - 0xc]
push ecx
push 0x20019
push 0
push str.Environment
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x2102b1f2
xor eax, eax
jmp 0x2102b229
mov dword [ebp - 8], 0x100
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esp, ebp
pop ebp
ret 8

Function at 0x2102b81b
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x21049015
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
cmp dword [0x2105b324], 0
je 0x2102b857
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
jmp 0x2102b8f2
lea ecx, [ebp - 0x44]
call fcn.210233b0
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x44]
push ecx
call fcn.2102352e
add esp, 0xc
test eax, eax
jne 0x2102b899
mov dword [ebp - 0x4c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.21023435
mov eax, dword [ebp - 0x4c]
jmp 0x2102b8f2
lea ecx, [ebp - 0x44]
call fcn.2102427b
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
je 0x2102b8c2
mov edx, dword [ebp - 0x48]
push edx
lea ecx, [ebp - 0x44]
call fcn.2100d190
push eax
call fcn.2102b81b
test eax, eax
je 0x2102b8c2
jmp 0x2102b899
lea ecx, [ebp - 0x44]
call fcn.210236e0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.21023435
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8

Function at 0x2102b902
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
call fcn.21030fbc
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x2102b92b
push str._tcsdup_failed
call fcn.2100a467
xor eax, eax
jmp 0x2102b94f
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.21030ed3
add esp, 4
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x2102b955
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x10
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov eax, dword [ebp + 8]
push eax
call fcn.21030110
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x2102b986
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], 0x100
mov eax, dword [ebp + 8]
mov byte [eax], 0
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov eax, dword [ebp + 8]
push eax
call fcn.21030110
add esp, 4
mov esp, ebp
pop ebp
ret 4

Function at 0x2102b9b7
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x2102b9d2
mov eax, 1
jmp 0x2102b9f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x2102b9e9
cmp dword [ebp - 4], 0x35
je 0x2102b9e9
jmp 0x2102b9eb
jmp 0x2102b9f2
mov eax, 1
jmp 0x2102b9f4
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x2102ce9c
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1ac
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
cmp dword [ebp + 0x10], 0
je 0x2102cec5
mov edx, dword [ebp + 0x10]
mov word [edx], 0
cmp dword [ebp + 0x14], 0
je 0x2102ced3
mov eax, dword [ebp + 0x14]
mov word [eax], 0
push 0x94
push 0
lea ecx, [ebp - 0x98]
push ecx
call fcn.210300b0
add esp, 0xc
mov dword [ebp - 0x98], 0x94
lea edx, [ebp - 0x98]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x2102cf09
jmp 0x2102d0b9
push 0x104
lea eax, [ebp - 0x1a0]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x1a0]
push ecx
push str.user32.dll
lea edx, [ebp - 0x1a0]
push edx
call fcn.2100ac73
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x9c]
push ecx
push 0
push 0
lea edx, [ebp - 0x1a0]
push edx
call fcn.2102c8c5
mov eax, dword [ebp - 0x9c]
and eax, 0xffff
test eax, eax
jne 0x2102cf70
mov ecx, dword [ebp - 4]
and ecx, 0xffff
test ecx, ecx
je 0x2102cf90
mov edx, dword [ebp - 0x9c]
and edx, 0xffff
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 4]
and eax, 0xffff
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x88]
mov dword [ebp - 0x1a4], ecx
cmp dword [ebp - 0x1a4], 1
je 0x2102cfb3
cmp dword [ebp - 0x1a4], 2
je 0x2102d011
jmp 0x2102d091
cmp dword [ebp - 0x94], 4
jae 0x2102cfc7
mov edx, dword [ebp + 8]
mov dword [edx], 1
jmp 0x2102d00c
cmp dword [ebp - 0x94], 4
jne 0x2102d003
cmp dword [ebp - 0x90], 0
jne 0x2102cfe4
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x2102d001
cmp dword [ebp - 0x90], 0x5a
jae 0x2102cff8
mov ecx, dword [ebp + 8]
mov dword [ecx], 2
jmp 0x2102d001
mov edx, dword [ebp + 8]
mov dword [edx], 3
jmp 0x2102d00c
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x2102d093
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x1a8], ecx
cmp dword [ebp - 0x1a8], 0
jb 0x2102d086
cmp dword [ebp - 0x1a8], 4
jbe 0x2102d03a
cmp dword [ebp - 0x1a8], 5
je 0x2102d045
jmp 0x2102d086
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
jmp 0x2102d08f
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x2102d065
cmp dword [ebp - 0x1ac], 1
je 0x2102d070
jmp 0x2102d07b
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 2
jmp 0x2102d084
mov edx, dword [ebp + 0xc]
mov dword [edx], 3
jmp 0x2102d084
mov eax, dword [ebp + 0xc]
mov dword [eax], 4
jmp 0x2102d08f
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 4
jmp 0x2102d093
jmp 0x2102d0b9
cmp dword [ebp + 0x10], 0
je 0x2102d0a6
mov edx, dword [ebp + 0x10]
mov ax, word [ebp - 0x94]
mov word [edx], ax
cmp dword [ebp + 0x14], 0
je 0x2102d0b9
mov ecx, dword [ebp + 0x14]
mov dx, word [ebp - 0x90]
mov word [ecx], dx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x2102da78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x14], 0xbb8
mov eax, dword [ebp + 8]
push eax
call fcn.21030fbc
add esp, 4
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
jne 0x2102dab1
cmp dword [ebp + 0x18], 0
jne 0x2102daaa
push str.could_not_allocate_buffer_for_CreateProcess
call fcn.2100a467
xor eax, eax
jmp 0x2102dba9
push 0x44
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.210300b0
add esp, 0xc
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov dx, word [ebp + 0xc]
mov word [ebp - 0x28], dx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x10]
sub ecx, 1
mov dword [ebp + 0x10], ecx
test eax, eax
je 0x2102db8b
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x5c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x2102db74
mov edx, dword [ebp - 0x5c]
push edx
call fcn.21030ed3
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x2102db63
push 0
push 0
push 0
call fcn.2102dd2d
test eax, eax
jne 0x2102db3c
jmp 0x2102db63
push 0x4ff
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x10]
push ecx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 1
je 0x2102db61
mov dword [ebp + 0x14], 0
jmp 0x2102db25
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x2102dba9
cmp dword [ebp + 0x10], 0
jne 0x2102db7c
jmp 0x2102db8b
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x2102dad7
cmp dword [ebp + 0x18], 0
jne 0x2102db9b
push str.CreateProcess
call fcn.2100a4db
mov ecx, dword [ebp - 0x5c]
push ecx
call fcn.21030ed3
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret 0x14

Function at 0x2102e69e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea ecx, [ebp - 4]
call fcn.21002b63
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0
je 0x2102e6d2
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov dword [ebp - 0xc], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push 0
push 0
mov edx, dword [ebp + 8]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, 0x20
cmp ecx, eax
sbb edx, edx
neg edx
mov dword [ebp - 8], edx
cmp dword [ebp + 0xc], 0
je 0x2102e70b
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
lea ecx, [ebp - 4]
call fcn.21002ba2
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8
Function at 0x21038c1b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x2105a158
cmp edx, dword [eax]
je 0x21038c3d
add eax, 8
inc ecx
cmp eax, 0x2105a1e8
jl 0x21038c2e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x2105a158]
jne 0x21038d6b
mov eax, dword [0x2105d814]
cmp eax, 1
je 0x21038d45
test eax, eax
jne 0x21038c6e
cmp dword [0x210576d4], 1
je 0x21038d45
cmp edx, 0xfc
je 0x21038d6b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x21038ca5
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.2102ffc0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.21030110
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x21038ce8
lea eax, [ebp - 0x1a4]
push eax
call fcn.21030110
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x2104c7ec
push edi
call fcn.21039db0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.2102ffc0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.2102ffd0
lea eax, [ebp - 0xa0]
push 0x2104c7cc
push eax
call fcn.2102ffd0
push dword [esi + 0x2105a15c]
lea eax, [ebp - 0xa0]
push eax
call fcn.2102ffd0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.2103b76c
add esp, 0x2c
pop edi
jmp 0x21038d6b
lea eax, [ebp + 8]
lea esi, [esi + 0x2105a15c]
push 0
push eax
push dword [esi]
call fcn.21030110
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret