joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c4d0
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0
jne 0x40c55f
push 0x635c24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x18], eax
test eax, eax
je 0x40c55f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcessModules
push eax
call esi
push str.EnumProcesses
push dword [edi + 0x18]
mov dword [edi + 8], eax
call esi
push str.GetModuleBaseNameW
push dword [edi + 0x18]
mov dword [edi], eax
call esi
push str.GetModuleFileNameExW
push dword [edi + 0x18]
mov dword [edi + 4], eax
call esi
push str.GetProcessImageFileNameW
push dword [edi + 0x18]
mov dword [edi + 0xc], eax
call esi
cmp dword [edi], 0
mov dword [edi + 0x10], eax
pop esi
je 0x40c55a
cmp dword [edi + 4], 0
je 0x40c55a
cmp dword [edi + 8], 0
je 0x40c55a
cmp dword [edi + 0xc], 0
je 0x40c55a
test eax, eax
je 0x40c55a
mov eax, 1
mov dword [edi + 0x14], eax
pop edi
ret
xor eax, eax
mov dword [edi + 0x14], eax
mov eax, dword [edi + 0x14]
pop edi
ret

Function at 0x40c8e0
Capabilities:
Acquire debug privileges

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 0xfffffffffffffffe
push 0x642630
push 0x5a4630
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
sub esp, 0x28
mov eax, dword [0x64c00c]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
xorps xmm0, xmm0
movlpd qword [ebp - 0x44], xmm0
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 4], esi
lea eax, [ebp - 0x38]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40c9a3
lea eax, [ebp - 0x44]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x40c9a3
mov dword [ebp - 0x34], 1
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 2
push esi
push esi
push esi
lea eax, [ebp - 0x34]
push eax
push esi
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, 1
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.0040c9d5
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.00483ab6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x40d560
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d08dd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor edi, edi
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x40d71d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x40d5c2
mov ecx, esi
mov esi, dword [esi + 0x3c]
push 1
mov eax, dword [ecx]
call dword [eax]
test esi, esi
jne 0x40d5b3
lea ecx, [ebp - 0x10]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebp - 0x1c], 0
call fcn.0040aa10
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x40d6ba
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x20], eax
cmp eax, 0x200000
ja 0x40d6b5
lea edx, [eax + 1]
mov dword [ebp - 0x18], 0
mov edi, eax
test edx, edx
js 0x40d727
mov esi, dword [ebp - 0x10]
mov ecx, 1
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, edx
or eax, ecx
jge 0x40d651
push edx
lea ecx, [ebp - 0x10]
call fcn.0040a780
mov esi, dword [ebp - 0x10]
mov ebx, esi
push 0
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d6a7
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40d6a7
add ebx, eax
sub edi, eax
jne 0x40d653
mov eax, dword [ebp - 0x20]
mov byte [eax + esi], 0
push dword [esi - 8]
push esi
call fcn.005a9505
add esp, 8
test eax, eax
js 0x40d727
cmp eax, dword [esi - 8]
jg 0x40d727
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov dword [ebp - 0x1c], 1
mov ebx, dword [ebp - 0x14]
xor edi, edi
mov eax, dword [ebp + 8]
test eax, eax
je 0x40d6c4
jmp 0x40d6bd
mov esi, dword [ebp - 0x10]
jmp 0x40d6ac
mov esi, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x40d6e8
cmp dword [esi - 0xc], 0
je 0x40d6e8
mov eax, dword [ebx]
mov ecx, ebx
push 0
push 0
push esi
call dword [eax + 8]
cmp byte [ebx + 0x40], 0
mov eax, 1
cmove edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40d707
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00405600
push 0x80070057
call fcn.00405600
int3
Function at 0x40e4f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
xor eax, eax
movaps xmm1, xmmword [0x63c730]
test edx, edx
jle 0x40e55e
push esi
mov esi, dword [ebp + 8]
cmp edx, 0x40
jb 0x40e554
push edi
mov edi, edx
lea ecx, [esi + 0x20]
and edi, 0xffffffc0
movups xmm0, xmmword [ecx - 0x20]
add eax, 0x40
lea ecx, [ecx + 0x40]
pxor xmm0, xmm1
movups xmmword [ecx - 0x60], xmm0
movups xmm0, xmmword [ecx - 0x50]
pxor xmm0, xmm1
movups xmmword [ecx - 0x50], xmm0
movups xmm0, xmmword [ecx - 0x40]
pxor xmm0, xmm1
movups xmmword [ecx - 0x40], xmm0
movups xmm0, xmmword [ecx - 0x30]
pxor xmm0, xmm1
movups xmmword [ecx - 0x30], xmm0
cmp eax, edi
jl 0x40e515
pop edi
cmp eax, edx
jge 0x40e55d
xor byte [eax + esi], 0x88
inc eax
cmp eax, edx
jl 0x40e554
pop esi
pop ebp
ret 8

Function at 0x40ff00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d10a1
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x65cc34]
cmp eax, dword [ecx + 4]
jle 0x410069
push 0x65cc34
call fcn.00483c2d
add esp, 4
cmp dword [0x65cc34], 0xffffffff
jne 0x410069
mov dword [ebp - 4], 0
mov dword [0x65cbf0], 0x635f48
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x41007d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [0x65cbf8], 0
mov dword [0x65cbf4], eax
push 0x65cc14
mov dword [ebp - 0x10], 0x65cbfc
mov dword [0x65cc10], 0x635f58
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 2
push 0xc
mov dword [0x65cc2c], 0
mov dword [0x65cc30], 0
call fcn.00483d03
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [0x65cc2c], eax
push 0x65cc00
push 0
push 0x65cbfc
push 0x411b10
push 0
push 0
mov dword [0x65cc08], 0
mov dword [0x65cc0c], 0
mov dword [0x65cc04], 0
mov byte [0x65cbfc], 0
mov dword [0x65cc00], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x65cc08], eax
test eax, eax
je 0x410052
push 0
push 1
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x65cc0c], eax
test eax, eax
je 0x410052
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x65cc04], eax
push 0x5d7c00
call fcn.00484084
push 0x65cc34
call fcn.00483be3
add esp, 8
mov eax, 0x65cbf0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405600
int3
Function at 0x4106b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x64c00c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x635f4c
push eax
mov edi, ecx
xor bl, bl
call fcn.005b3c2b
mov esi, eax
add esp, 8
test esi, esi
je 0x410749
push esi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.005b3f18
add esp, 0x10
test eax, eax
je 0x41072b
nop dword [eax]
push eax
lea eax, [ebp - 0x404]
push eax
lea ecx, [edi + 0x10]
call fcn.00405510
push esi
push 0x400
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.005b3f18
add esp, 0x10
test eax, eax
jne 0x410700
push esi
call fcn.005b33d0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00483ab6
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00483ab6
mov esp, ebp
pop ebp
ret 4
Function at 0x4116c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1495
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x41187d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov edx, esi
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00410cd0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
mov edx, dword [eax]
push 0x635b40
call fcn.00411530
add esp, 4
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x14]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41174c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x28]
lea ecx, [ebp - 0x10]
call fcn.00406a90
mov eax, dword [ebp - 0x24]
mov ebx, 1
mov ecx, dword [ebp - 0x28]
sub eax, ecx
mov esi, dword [ebp - 0x10]
sar eax, 2
cmp eax, ebx
jbe 0x41183c
sub esp, 0xc
mov edx, esi
push dword [ecx + ebx*4]
lea ecx, [ebp - 0x1c]
call fcn.00410bd0
add esp, 0x10
mov byte [ebp - 4], 4
lea edi, [esi - 0x10]
mov edx, dword [eax]
lea ecx, [edx - 0x10]
cmp ecx, edi
je 0x4117da
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x4117cb
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x4117cb
call fcn.00406d70
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
lock xadd dword [esi], ecx
dec ecx
test ecx, ecx
jg 0x4117c3
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
jmp 0x4117da
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.00406ed0
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 3
or edi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4117fb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41180b
test al, 0x10
je 0x411843
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41181b
test al, 0x10
jne 0x411828
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x411843
mov eax, dword [ebp - 0x24]
inc ebx
mov ecx, dword [ebp - 0x28]
sub eax, ecx
sar eax, 2
cmp ebx, eax
jb 0x411772
mov ebx, 1
jmp 0x411845
xor ebx, ebx
lea ecx, [ebp - 0x28]
call fcn.0040cd50
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x411869
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405600
int3
Function at 0x411c70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, ecx
push ebx
mov dword [ebp - 0xc], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax]
test eax, eax
je 0x411d42
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x411cb0
cmp eax, 2
jne 0x411d42
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00406bc0
mov edx, dword [ebp - 4]
shr edx, 1
add edx, 1
js 0x411d4b
push edi
mov edi, dword [esi]
mov ecx, 1
mov eax, dword [edi - 8]
sub ecx, dword [edi - 4]
sub eax, edx
or ecx, eax
jge 0x411ce7
push edx
mov ecx, esi
call fcn.00406dd0
mov edi, dword [esi]
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411d12
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [edi + eax*2], cx
lea ebx, [ecx + 1]
mov eax, dword [esi]
pop edi
test eax, eax
jne 0x411d1d
xor ecx, ecx
jmp 0x411d2f
push dword [eax - 8]
push eax
call fcn.005a9627
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x411d4b
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x411d4b
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
pop esi
mov word [eax + ecx*2], dx
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80070057
call fcn.00405600
int3
Function at 0x4125b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d162d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.00412eb0
mov edi, eax
mov ecx, esi
lea eax, [ebp - 0x18]
push eax
call fcn.00412f90
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 1
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
or ebx, 0xffffffff
test eax, eax
je 0x412625
xor edi, edi
jmp 0x4126be
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x412708
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push dword [ebp + 8]
push str._I64d
push eax
call fcn.00408c40
mov eax, dword [ebp - 0x10]
add esp, 0x10
mov esi, dword [ebp - 0x14]
xor edi, edi
test eax, eax
je 0x4126a3
mov edx, esi
lea ecx, [edx + 2]
mov dword [ebp + 0xc], ecx
nop
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x412670
sub edx, dword [ebp + 0xc]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push esi
push 1
push 0
push str.update_time
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
mov ecx, 1
cmove edi, ecx
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4126be
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4126cc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], 0
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4126f2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.00405600
int3
Function at 0x414990
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d1935
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov ecx, 0x65cc40
mov dword [ebp - 0x20], 0x65cc40
call fcn.00418040
mov dword [0x65ccb0], 0
mov dword [ebp - 4], 0
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x414b4c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [0x65ccb4], eax
mov byte [ebp - 4], 1
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x414b4c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [0x65ccb8], eax
mov byte [ebp - 4], 2
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x414b4c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [0x65ccbc], eax
mov byte [ebp - 4], 3
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x414b4c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [0x65ccc0], eax
mov edx, 0x400000
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x1c]
call fcn.00407710
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x14]
mov edx, dword [eax]
call fcn.004078d0
mov byte [ebp - 4], 5
or esi, 0xffffffff
mov edx, dword [ebp - 0x1c]
mov eax, esi
mov dword [ebp - 0x18], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414aa2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.sdk_config.dat
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x10]
call fcn.0040fa40
add esp, 4
mov byte [ebp - 4], 8
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x414ad3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x414b1b
test al, 0x10
jne 0x414b1b
push dword [ebp - 0x10]
mov ecx, 0x65cc40
call fcn.0040d560
test eax, eax
jne 0x414b14
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x414b37
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x414b37
call fcn.00411e60
jmp 0x414af6
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x414b37
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, 0x65cc40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405600
int3
Function at 0x416160
Capabilities:
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 0x5d1bb5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x64c00c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xorps xmm0, xmm0
mov dword [ebp - 0x78], 0x44
xor eax, eax
movlpd qword [ebp - 0x74], xmm0
mov edx, ecx
movlpd qword [ebp - 0x6c], xmm0
push str.menureg.exe
lea ecx, [ebp - 0x1c]
movlpd qword [ebp - 0x64], xmm0
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x46], xmm0
movlpd qword [ebp - 0x3e], xmm0
mov word [ebp - 0x36], ax
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x4c], 1
mov word [ebp - 0x48], ax
call fcn.0040fa40
add esp, 4
mov dword [ebp - 4], 0
call fcn.00405800
mov ecx, eax
test ecx, ecx
je 0x41630e
mov eax, dword [ecx]
mov eax, dword [eax + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebx + 8]
mov byte [ebp - 4], 1
lea eax, [ebp - 0x18]
push dword [ebp - 0x1c]
push str.__s___s
push eax
call fcn.00408c40
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x30]
add esp, 0x10
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x41628e
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x41629f
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x416273
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x30]
mov edi, dword [ebx + 0x10]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
jne 0x416288
mov dword [edi], 1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x41629f
push eax
call edi
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x4162b0
push eax
call edi
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x20], 0
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
setne byte [ebp - 0x11]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4162d6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4162f5
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
push 0x80004005
call fcn.00405600
int3
Function at 0x416650
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
mov dword [ecx], esi
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [edx], esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x4166e0
push edi
push ebx
call fcn.0048409e
add esp, 4
mov edi, eax
push edi
push ebx
push dword [ebp - 4]
push dword [ebp - 0x10]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x4166d6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x635b40
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x4166d6
cmp dword [ebp - 8], esi
je 0x4166d6
mov ecx, dword [ebp - 0xc]
mov esi, 1
mov edx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
push edi
call fcn.00484099
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret