joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1037b18
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1081400], 0
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x620], ebx
mov dword [ebp - 0x624], 1
jne 0x1037d0d
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
test eax, eax
je 0x1037cfc
push edi
mov edi, 0x1003710
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01034cee
test eax, eax
jl 0x1037bb2
lea eax, [ebp - 0x414]
push eax
call fcn.01056f43
test eax, eax
jne 0x1037bb2
push esi
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1037bb2
push edi
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.01034cee
lea eax, [ebp - 0x414]
push eax
call fcn.01056f43
test eax, eax
je 0x1037cfb
push esi
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x1037cfb
push 0x103
lea eax, [ebp - 0x20c]
push eax
push eax
call fcn.01059158
lea eax, [ebp - 0x20c]
push eax
call fcn.01056bba
push 0x1002b70
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
test eax, eax
jl 0x1037cfb
lea eax, [ebp - 0x20c]
push eax
call fcn.01056f43
test eax, eax
je 0x1037cfb
push 0xff
lea eax, [ebp - 0x61c]
push eax
push 0xaa
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1037cfb
mov eax, dword [0x1081414]
mov ecx, dword [0x107f528]
shl eax, 5
mov eax, dword [eax + ecx + 0x1c]
push eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x630], eax
call ebx
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
mov edi, 0x402
push edi
push dword [ebp - 0x620]
mov dword [ebp - 0x62c], eax
call esi
test eax, eax
mov dword [ebp - 0x628], eax
jne 0x1037caa
push edi
push dword [ebp - 0x620]
call ebx
push eax
call esi
mov dword [ebp - 0x628], eax
push 0x28
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
je 0x1037cf4
push 0
push dword [ebp - 0x62c]
lea ecx, [ebp - 0x20c]
push dword [ebp - 0x630]
push ecx
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x61c]
push ecx
push dword [ebp - 0x628]
mov ecx, eax
push edi
push dword [ebp - 0x620]
call fcn.0104597a
mov dword [0x1081400], eax
jmp 0x1037cfb
and dword [0x1081400], 0
pop edi
cmp dword [0x1081400], 0
pop esi
jne 0x1037d0d
and dword [ebp - 0x624], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x624]
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret 4
Function at 0x103cd86
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x214]
push eax
push edi
push 0x20006
push 1
push edi
push edi
push 0x1004238
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x103ce6b
push ebx
lea eax, [ebp - 0x210]
push eax
push 3
push edi
push 0x10041d8
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jne 0x103ce62
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.010590be
test eax, eax
je 0x103ce5a
push 0x10041ac
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
test eax, eax
jl 0x103ce5a
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x103ce2c
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 1
push edi
push 0x1004184
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x214]
call ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret

Function at 0x104078a
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x107f528]
push ebx
mov ebx, 0x107f3c0
cmp eax, ebx
jne 0x10407d5
cmp dword [0x10813f8], 0xd2af9
je 0x10408be
call fcn.010347ed
test eax, eax
je 0x10408ad
call fcn.01034843
jmp 0x10408be
cmp eax, 0x107f200
jne 0x10407fc
cmp dword [0x10813f8], 0xd2af9
je 0x10407f2
mov dword [0x10813dc], 1
call fcn.01032e20
jmp 0x10408be
push esi
push edi
mov edi, 0xd2af8
cmp dword [0x10813f8], edi
jne 0x1040835
push 0x104
lea eax, [ebp - 0x20c]
push eax
call fcn.010590be
test eax, eax
je 0x1040835
push 0xffff
push 1
lea eax, [ebp - 0x20c]
push eax
push 0
call fcn.0105ab51
cmp dword [0x10813f8], 0
jl 0x1040864
cmp dword [0x107f528], section..data
jne 0x1040864
cmp dword [0x1081460], 0
jne 0x104085f
call fcn.010368a8
call fcn.010367d0
jmp 0x1040864
call fcn.010368a8
cmp dword [0x107f528], ebx
mov esi, 0xd2af9
je 0x104088e
mov eax, dword [0x10813f8]
cmp eax, esi
jne 0x1040881
call fcn.01035207
jmp 0x104088e
test eax, eax
jge 0x1040889
cmp eax, edi
jne 0x104088e
call fcn.010352d1
mov eax, dword [0x10813f8]
pop edi
cmp eax, esi
pop esi
je 0x10408b9
cmp eax, 0xc00d2afb
je 0x10408b9
test eax, eax
jl 0x10408be
cmp dword [0x10813d0], 0
jne 0x10408be
mov dword [0x10813dc], 1
jmp 0x10408be
call fcn.0103cd86
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret
Function at 0x1041cc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
push esi
push esi
push esi
push 4
mov dword [ebp - 0x208], esi
call fcn.0105989e
test eax, eax
je 0x1041d7d
push edi
lea eax, [ebp - 0x208]
push eax
xor edi, edi
inc edi
push edi
push esi
push 0x1004b50
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1041d7a
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push 0x1004b34
push dword [ebp - 0x208]
mov dword [ebp - 0x210], 0x200
mov dword [ebp - 0x20c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1041d6e
cmp dword [ebp - 0x20c], edi
jne 0x1041d6e
lea eax, [ebp - 0x204]
push 0x1004b28
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
je 0x1041d6e
mov esi, edi
push dword [ebp - 0x208]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret

Function at 0x1041f63
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x424
push esi
push edi
mov esi, 0x80004005
je 0x1041fc2
cmp dword [ebp + 8], 0x466
je 0x1041fc2
cmp dword [ebp + 8], 0x427
je 0x1041fa6
push 0x1004c3c
push 2
call fcn.0105e573
xor edi, edi
push edi
push edi
push edi
push 6
call fcn.0105989e
neg eax
sbb eax, eax
and eax, 0x87
add eax, 0xc1
jmp 0x1041fda
xor edi, edi
push edi
push edi
push edi
push 6
call fcn.0105989e
neg eax
sbb eax, eax
and eax, 0x1f
add eax, 0xc0
push 0x100
lea ecx, [ebp - 0x204]
push ecx
push eax
push dword [0x1081390]
call dword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
je 0x1042038
push 7
lea eax, [ebp - 0x204]
push 0x1004c2c
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x1042038
push 0xa
push edi
push edi
lea eax, [ebp - 0x204]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb esi, esi
and esi, 0x7fffbffb
add esi, 0x80004005
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 4
Function at 0x104218f
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0xffffffffffffffff
xor edi, edi
push 0x1004cb8
mov dword [ebp - 8], edi
call fcn.0107a7d6
mov ebx, eax
cmp ebx, edi
jl 0x104233d
lea ecx, [ebp - 0x30]
call fcn.0107a032
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], 0x7fff
call fcn.0107a032
push dword [ebp - 0x10]
lea ecx, [ebp - 0x24]
call fcn.0107a78e
mov ebx, eax
cmp ebx, edi
jge 0x10421f4
lea ecx, [ebp - 0x24]
call fcn.0107a784
lea ecx, [ebp - 0x30]
call fcn.0107a784
jmp 0x104233d
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x24]
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x1042225
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jne 0x1042215
push 0x57
pop eax
cmp eax, edi
jle 0x1042221
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x10421df
push esi
push 0x44
pop esi
push esi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x1042243
mov ebx, 0x8007000e
jmp 0x104231c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x24]
mov dword [ebp - 0xc], edi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x14], esi
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call esi
test ebx, ebx
jne 0x104228b
cmp eax, 0x7a
je 0x104228b
test eax, eax
jle 0x1042284
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
jmp 0x104231c
lea ecx, [ebp - 0x3c]
call fcn.0107a032
mov eax, dword [ebp - 0xc]
inc eax
push eax
lea ecx, [ebp - 0x3c]
call fcn.0107a78e
mov ebx, eax
test ebx, ebx
jl 0x1042314
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp - 0x24]
push 0
call edi
mov edi, eax
call esi
test edi, edi
jne 0x10422d7
test eax, eax
jle 0x1042312
and eax, 0xffff
or eax, 0x80070000
jmp 0x1042312
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
test eax, eax
jne 0x10422f2
call esi
test eax, eax
jne 0x10422c9
push 0x57
pop eax
jmp 0x10422c7
push 0xffffffffffffffff
push dword [ebp - 8]
lea ecx, [ebp - 0x30]
call fcn.0107a7d6
mov ebx, eax
test ebx, ebx
jl 0x1042314
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x30]
call fcn.0107a9a4
mov ebx, eax
lea ecx, [ebp - 0x3c]
call fcn.0107a784
lea ecx, [ebp - 0x24]
call fcn.0107a784
lea ecx, [ebp - 0x30]
call fcn.0107a784
xor edi, edi
cmp dword [ebp - 4], edi
pop esi
je 0x104233d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], edi
je 0x104234b
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x1042358
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 8]
push eax
push 1
xor edi, edi
push edi
push 0x1004d98
push SysReAllocString
mov dword [ebp - 8], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10423ea
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1004d5c
push dword [ebp - 8]
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x10423b7
cmp dword [ebp - 4], 1
jne 0x10423b7
and dword [0x1081cac], 0xfffffffe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x1004d18
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
pop esi
pop ebx
jne 0x10423e1
cmp dword [ebp - 4], 1
jne 0x10423e1
and dword [0x1081cac], 0xfffffffd
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret
Function at 0x104358f
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], ebx
call fcn.0107ad29
lea eax, [ebp - 0x1c]
push eax
call fcn.0104218f
test eax, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jl 0x10435f2
lea eax, [ebp - 4]
push eax
push 3
push ebx
push dword [ebp - 0x1c]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10435f2
push 0x1004ab0
push dword [ebp - 4]
call esi
push 0x1004acc
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], ebx
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 3
push ebx
push ebx
push ebx
push 0x1001bd0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1043717
push edi
push 4
pop edi
push 0x1004ab0
push dword [ebp - 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
call esi
push 0x1004acc
push dword [ebp - 4]
call esi
push 0x1004a48
push dword [ebp - 4]
call esi
cmp dword [0x1081cb8], ebx
jne 0x104364e
mov dword [0x1081cbc], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x1004a68
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x104367f
cmp dword [ebp - 8], edi
jne 0x104367f
mov eax, dword [ebp - 0xc]
mov dword [0x1081cac], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x1004b0c
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x10436b7
cmp dword [ebp - 8], edi
jne 0x10436a9
mov al, byte [ebp - 0xc]
and al, 1
jmp 0x10436b2
cmp dword [ebp - 8], 3
jne 0x10436b7
mov al, byte [ebp - 0xc]
mov byte [0x1081cb0], al
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x1004a8c
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x10436e2
cmp dword [ebp - 8], edi
jne 0x10436e2
mov eax, dword [ebp - 0xc]
mov dword [0x1081cb4], eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push 0x1004af4
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call esi
test eax, eax
jne 0x104370d
cmp dword [ebp - 8], edi
jne 0x104370d
mov eax, dword [ebp - 0xc]
mov dword [0x1081cc0], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
push dword [0x1081cc8]
push 0x1004c98
call fcn.01057b5d
push dword [0x107fa68]
push 0x1004c70
call fcn.01057b5d
lea ecx, [ebp - 0x1c]
call fcn.0107a784
pop esi
pop ebx
leave
ret

Function at 0x1043748
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
call fcn.01042119
call fcn.0104358f
call fcn.01042358
jmp fcn.01042f84
Function at 0x1043761
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x104
push esi
push 1
lea eax, [ebp - 0x20c]
push eax
xor edi, edi
call fcn.01059beb
test eax, eax
je 0x10438df
lea eax, [ebp - 0x20c]
push eax
call fcn.01056bba
push 0x10046ec
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.01034cee
test eax, eax
jl 0x10438df
lea eax, [ebp - 0x20c]
push eax
call fcn.01056f43
test eax, eax
je 0x10438df
push esi
lea eax, [ebp - 0x20c]
push eax
push eax
call fcn.01059240
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x210], esi
je 0x10438ca
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x10437f7
sub eax, edx
sar eax, 1
push ebx
lea edi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
mov ebx, eax
test ebx, ebx
pop ecx
je 0x10438b2
push esi
push edi
push ebx
call fcn.01034c79
test eax, eax
jl 0x10438ab
push ebx
call dword [sym.imp.msvcrt.dll__wcslwr]
mov edi, dword [sym.imp.msvcrt.dll_wcsstr]
mov dword [esp], 0x1004f80
push ebx
call edi
test eax, eax
pop ecx
pop ecx
je 0x1043867
add eax, 0x1a
cmp word [eax], 0x22
jne 0x104385e
inc eax
inc eax
sub eax, ebx
sar eax, 1
lea esi, [esi + eax*2]
jmp 0x10438ab
push 0x1004f6c
push ebx
call edi
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10438a9
add esi, 0x12
push 0x10046ec
push esi
call edi
test eax, eax
pop ecx
pop ecx
je 0x104389a
mov ecx, dword [ebp - 0x210]
sub eax, ebx
add eax, 0x18
sar eax, 1
lea esi, [ecx + eax*2]
jmp 0x10438ab
mov eax, dword [ebp - 0x210]
sub esi, ebx
sar esi, 1
lea esi, [eax + esi*2]
jmp 0x10438ab
xor esi, esi
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
push 0xa
xor eax, eax
push eax
push esi
lea ecx, [ebp - 0x20c]
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebx
jmp 0x10438dd
push 0xa
push edi
push edi
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov edi, eax
mov ecx, dword [ebp - 4]
push 0x20
pop eax
cmp eax, edi
sbb eax, eax
pop edi
xor ecx, ebp
neg eax
pop esi
call fcn.01047417
leave
ret
Function at 0x1045674
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0xc]
xor ebx, ebx
cmp edi, ebx
jne 0x104568e
xor eax, eax
jmp 0x10456ca
push 0x3c
lea eax, [ebp - 0x3c]
push ebx
push eax
call sub.msvcrt.dll_memset
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x28], eax
add esp, 0xc
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1045b51
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x1081d10], esi
jne 0x1045bc3
push 0x105
lea eax, [ebp - 0x210]
push eax
mov dword [0x1081d10], 1
call fcn.010590be
test eax, eax
je 0x1045bc3
lea eax, [ebp - 0x210]
push eax
call fcn.01056f43
test eax, eax
je 0x1045bc3
cmp dword [ebp + 8], esi
push 0xa
lea eax, [ebp - 0x210]
push esi
je 0x1045bb5
push 0x1005260
jmp 0x1045bba
push 0x1005244
push eax
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.01047417
leave
ret 4
Function at 0x1046b67
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1046bdd
push esi
lea eax, [ebp - 0x414]
push eax
call fcn.010590be
test eax, eax
je 0x1046bdd
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x1005818
lea eax, [ebp - 0x61c]
push esi
push eax
call fcn.01034d76
add esp, 0x14
test eax, eax
jl 0x1046bdd
lea eax, [ebp - 0x61c]
push eax
push 0x10040a0
call fcn.0105aa51
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
pop esi
call fcn.01047417
leave
ret

Function at 0x1046c8c
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 0x3c], eax
je 0x1046ced
lea eax, [esi + 0x40]
push eax
push edi
push esi
push 0x1046c70
push edi
push edi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, edi
mov dword [esi + 8], eax
je 0x1046cdc
cmp dword [ebp + 8], edi
jne 0x1046cdc
push 0x32
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1046cca
mov eax, dword [esi + 0x3c]
cmp eax, edi
je 0x1046ced
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3c], edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x10478f0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1047903
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10478ff
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x1047930
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x104796f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x1047965
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x1047971
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x1047955
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10481f8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x107fa78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
lea eax, [ebp - 0x118]
push eax
xor bl, bl
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x1048244
cmp dword [ebp - 0x108], 2
jne 0x1048242
cmp dword [ebp - 0x114], 6
jb 0x1048242
mov bl, al
jmp 0x1048244
xor bl, bl
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.01047417
leave
ret
Function at 0x1048258
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x104828f
mov eax, dword [ebp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1048269
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
ret 0xc