joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437740
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push 0x51d968
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4377ae
mov eax, dword [esp + 8]
cmp eax, 1
je 0x43777f
cmp eax, 2
jne 0x43779a
mov eax, dword [esp]
test esi, esi
je 0x4377a8
test eax, eax
je 0x4377a3
test al, 1
jne 0x43779a
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x4377a8
mov eax, 0xd
pop ecx
ret 4
xor ecx, ecx
mov word [esi], cx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4

Function at 0x437b60
Capabilities:
Set registry value

Disassembly:
mov edx, dword [eax]
push ebx
xor ebx, ebx
test edx, edx
je 0x437b9f
mov eax, edi
push esi
lea esi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x437b70
sub eax, esi
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [esp + 0xc]
push ecx
push edi
push 1
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
pop esi
mov eax, 1
je 0x437ba1
mov eax, ebx
pop ebx
ret 4
Function at 0x43f4b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x43f4c0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x43f4d0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x43f980
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x43f9fa
xor eax, eax
cmp ecx, ebp
je 0x43f9e2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x43fa08
cmp ecx, ebp
je 0x43fa9b
push ecx
jmp 0x43fa95
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
jne 0x43fa6a
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.0043f980
mov ebx, eax
cmp ebx, ebp
jne 0x43fab8
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], 0x100
call esi
test eax, eax
je 0x43fa30
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x43fa7d
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.0043fb10
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x43fa9b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ea10a
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x43fac7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x43fa9d
Function at 0x440590
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x50c7b0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x53a1a4]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x44060f
call fcn.00426370
mov esi, eax
jmp 0x4406f1
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x44062b
call fcn.00426370
jmp 0x4406e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x440644
call fcn.00426370
jmp 0x4406e8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x440678
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x440666
lea eax, [ebp]
call fcn.0043f440
lea esi, [ebp - 0x1c]
call fcn.0043f500
mov eax, 0x8007000e
jmp 0x440703
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.0043edf0
mov dword [ebp - 4], 1
jmp 0x4406a1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x4406af
mov esi, 0x8007000e
jmp 0x4406ea
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x4406cd
call fcn.00426370
jmp 0x4406e8
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00440440
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x440701
lea eax, [ebp]
call fcn.0043f440
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.004ea10a
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc
Function at 0x440a10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x50c77b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
xor ebx, ebx
sub eax, 0x10
mov dword [esp + 0x14], ebx
call fcn.00404eb0
add eax, 0x10
mov dword [esi], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x34]
mov eax, dword [ecx]
sub eax, 0x10
lea ebp, [esi + 4]
call fcn.00404eb0
add eax, 0x10
mov dword [ebp], eax
mov edx, dword [esp + 0x30]
mov byte [esp + 0x20], 1
mov eax, dword [edx]
sub eax, 0x10
lea edi, [esi + 8]
call fcn.00404eb0
add eax, 0x10
mov dword [edi], eax
mov byte [esp + 0x20], 2
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
mov byte [esp + 0x20], 3
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov byte [esp + 0x20], 4
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x20], 5
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [esp + 0x20], 6
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x20]
push eax
mov byte [esp + 0x24], 7
call fcn.00402da0
mov byte [esp + 0x20], 8
mov edx, dword [0x544fac]
mov eax, dword [edx + 0xc]
mov ecx, 0x544fac
call eax
add eax, 0x10
mov dword [esi + 0x38], eax
mov byte [esp + 0x20], 9
mov ecx, dword [edi]
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], 0xffffffff
cmp dword [ecx - 0xc], ebx
je 0x440b71
push edi
lea eax, [ebx + 1]
lea ecx, [esp + 0x38]
call fcn.00417a00
push eax
mov ecx, 0x51b2b4
mov ebx, 1
call fcn.00417bc0
add esp, 4
mov byte [esp + 0x2c], bl
test al, al
jne 0x440b76
mov byte [esp + 0x2c], 0
test bl, 1
je 0x440b9e
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
and ebx, 0xfffffffe
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440b9e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x2c], 0
je 0x440bb2
push 1
push 0x51b2b8
push edi
call fcn.00418990
mov ecx, dword [ebp]
cmp dword [ecx - 0xc], 0
je 0x440be4
push ebp
mov eax, 1
lea ecx, [esp + 0x38]
call fcn.00417a00
push eax
mov ecx, 0x51b2bc
or ebx, 2
call fcn.00417bc0
add esp, 4
mov byte [esp + 0x2c], 1
test al, al
jne 0x440be9
mov byte [esp + 0x2c], 0
test bl, 2
je 0x440c0e
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x440c0e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x2c], 0
je 0x440c22
push 1
push 0x51b2c0
push ebp
call fcn.00418990
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x442b00
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x68
xor eax, eax
push esi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x44]
xor esi, esi
push eax
mov dword [esp + 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [esp + 0x58], 1
jne 0x442b45
xor eax, eax
pop esi
add esp, 0x68
ret
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call sub.KERNEL32.dll_GetSystemTimes
test eax, eax
je 0x442cae
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea ecx, [esp + 0x28]
push ecx
call esi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
push ecx
call sub.KERNEL32.dll_GetSystemTimes
lea edx, [esp + 0x20]
push edx
call esi
fild dword [esp + 0x14]
fld qword [0x522790]
mov eax, dword [esp + 0x10]
fmul st(1), st(0)
fild dword [esp + 0x10]
test eax, eax
jge 0x442be2
fadd qword [0x522790]
mov ecx, dword [esp + 0x18]
faddp st(2)
fild dword [esp + 0x1c]
fmul st(1)
fild dword [esp + 0x18]
test ecx, ecx
jge 0x442bfc
fadd qword [0x522790]
mov edx, dword [esp + 0x20]
faddp st(1)
fsubp st(2)
fild dword [esp + 0x24]
fmul st(1)
fild dword [esp + 0x20]
test edx, edx
jge 0x442c18
fadd qword [0x522790]
mov eax, dword [esp + 0x28]
faddp st(1)
fild dword [esp + 0x2c]
fmulp st(2)
fild dword [esp + 0x28]
test eax, eax
jge 0x442c32
fadd qword [0x522790]
faddp st(2)
mov eax, dword [esp + 0x58]
mov ecx, eax
mov dword [esp + 8], ecx
fsubrp st(1)
fdivp st(1)
fld qword [0x5227e8]
fmul st(1), st(0)
fild dword [esp + 8]
test ecx, ecx
jge 0x442c58
fadd qword [0x522790]
dec eax
fdivp st(2)
mov dword [esp + 8], eax
fild dword [esp + 8]
test eax, eax
jge 0x442c6d
fadd qword [0x522790]
fmul st(2)
fdivrp st(1)
call fcn.00506e90
fnstcw word [esp + 6]
mov esi, eax
movzx eax, word [esp + 6]
or eax, 0xc00
mov dword [esp + 8], eax
push esi
mov ecx, 0x546980
fldcw word [esp + 0xc]
fistp qword [esp + 0xc]
mov edx, dword [esp + 0xc]
push edx
push str.cpu_idle_ration:__d____suitable_thread:__d
fldcw word [esp + 0x12]
call fcn.004df340
add esp, 0xc
mov eax, esi
pop esi
add esp, 0x68
ret
Function at 0x442cc0
Capabilities:
Access peb ldr_data
Enumerate files on windows
Move file

Disassembly:
push 0xffffffffffffffff
push 0x50dadb
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x264], eax
push ebx
push ebp
push esi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x27c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28c]
push 0x24c
lea eax, [esp + 0x2c]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], 0
call fcn.004f0190
lea ecx, [esp + 0x2c]
push edi
push ecx
mov ebx, 0x51bc34
call fcn.00417ae0
mov eax, dword [eax]
add esp, 0x14
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov dword [esp + 0x1c], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442d67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebx, 0xffffffff
je 0x442ebf
jmp 0x442d76
mov esi, dword [esp + 0x18]
test byte [esp + 0x24], 0x10
je 0x442def
push 1
lea ecx, [esp + 0x54]
push 0x51bc3c
push ecx
call fcn.004ee710
add esp, 0xc
test eax, eax
je 0x442ea0
push 2
lea edx, [esp + 0x54]
push 0x51bc40
push edx
call fcn.004ee710
add esp, 0xc
test eax, eax
je 0x442ea0
mov eax, dword [esi + 0x10]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea eax, [esp + 0x58]
push eax
call fcn.004ee710
add esp, 0xc
test eax, eax
je 0x442ea0
mov eax, dword [esi + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x58]
push ecx
call fcn.004ee710
add esp, 0xc
test eax, eax
je 0x442ea0
lea edx, [esp + 0x14]
push ebp
push edx
lea ebx, [esp + 0x58]
call fcn.00417ae0
mov esi, eax
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x294], 0
call fcn.00417ae0
mov esi, dword [esi]
mov eax, dword [eax]
add esp, 0x10
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov eax, dword [esp + 0x10]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442e4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x284], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442e77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x442ea0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp]
mov edx, dword [edi]
push eax
push ecx
push edx
lea eax, [esp + 0x5c]
push eax
push str.move_file__S_from__S_to__S_failed:__d
mov ecx, 0x546980
call fcn.004df340
add esp, 0x14
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x24]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x442d72
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
mov ecx, dword [esp + 0x27c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x264]
xor ecx, esp
call fcn.004ea10a
add esp, 0x278
ret 4
Function at 0x443990
Capabilities:
Create directory

Disassembly:
sub esp, 0x450
mov eax, dword [0x53a1a4]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
push ebp
mov ebp, dword [esp + 0x45c]
xor eax, eax
push 0x20a
push eax
lea ecx, [esp + 0x3a]
push ecx
mov word [esp + 0x3c], ax
call fcn.004f0190
add esp, 0xc
xor edx, edx
push 0x20a
push edx
lea eax, [esp + 0x24a]
push eax
mov word [esp + 0x24c], dx
call fcn.004f0190
add esp, 0xc
lea ecx, [esp + 0xc]
push edi
push ecx
mov ebx, 0x51be8c
call fcn.00417ae0
mov edx, dword [eax]
push edx
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.004ee7b6
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443a2c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x443a33
sub eax, edx
mov edx, dword [esi]
sar eax, 1
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x36], cx
lea eax, [esp + 0x244]
push 0x104
push eax
call fcn.004ee7b6
lea eax, [esp + 0x24c]
add esp, 0xc
lea edx, [eax + 2]
jmp 0x443a70
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x443a70
sub eax, edx
sar eax, 1
xor ecx, ecx
mov word [esp + eax*2 + 0x242], cx
xor eax, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x240]
mov dword [esp + 0x1c], eax
mov eax, dword [esi]
mov dword [esp + 0x10], ecx
push 0
lea edx, [esp + 0x34]
mov ecx, 0x614
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], edx
mov word [esp + 0x28], cx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x443af9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.create_directory_failed:__d
mov ecx, 0x546980
call fcn.004df340
add esp, 8
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x443b21
cmp dword [esp + 0x22], eax
jne 0x443b21
mov eax, dword [edi]
push 1
push eax
mov ecx, ebp
call fcn.00442ef0
mov eax, 1
jmp 0x443b36
push eax
push str.move_patched_files_failed:__d
mov ecx, 0x546980
call fcn.004df340
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x454]
pop ebp
pop ebx
xor ecx, esp
call fcn.004ea10a
add esp, 0x450
ret 4
Function at 0x443d00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x50daa8
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
push edi
mov eax, dword [0x53a1a4]
xor eax, esp
push eax
lea eax, [esp + 0x70]
mov dword fs:[0], eax
mov eax, dword [0x544fac]
mov edx, dword [eax + 0xc]
mov ecx, 0x544fac
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov dword [esp + 0x78], 0
mov ecx, dword [eax]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0x88]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x88]
mov ecx, dword [eax]
push edx
push ecx
push str.__s___apply___s____s____s_
lea edi, [esp + 0x20]
call fcn.00418bf0
push 0x40
lea edx, [esp + 0x40]
push 0
push edx
mov dword [esp + 0x44], 0x44
call fcn.004f0190
mov esi, dword [esp + 0x2c]
xor eax, eax
mov word [esp + 0x74], ax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x70], 1
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
add esp, 0x20
or ecx, eax
jge 0x443dd1
xor ecx, ecx
mov eax, edi
call fcn.00407610
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x28]
push edx
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, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.004ec08d
add esp, 8
test eax, eax
jl 0x443f07
cmp eax, dword [esi - 8]
jg 0x443f07
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
test edi, edi
jne 0x443e70
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.cannot_run_patch.exe:__d
mov ecx, 0x546980
call fcn.004df340
lea eax, [esi - 0x10]
add esp, 8
mov dword [esp + 0x78], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x443e5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x70
ret 0x10
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 0x10]
push ecx
push str.patch.exe_exit_with_code:__d
mov ecx, 0x546980
call fcn.004df340
mov edx, dword [esp + 0x20]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 8
push edx
call edi
mov eax, dword [esp + 0x14]
push eax
call edi
xor ecx, ecx
cmp dword [esp + 0x10], ecx
lea eax, [esi - 0x10]
sete cl
mov dword [esp + 0x78], 0xffffffff
lea edx, [eax + 0xc]
mov edi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x443ef1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x70
ret 0x10
push 0x80070057
call fcn.004029f0
int3
Function at 0x445220
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5118a1
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x53a1a4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], edx
mov dword [eax + 0x18], 7
mov dword [eax + 0x14], edx
mov dword [ebp - 0x34], eax
mov word [eax + 4], dx
mov eax, 1
push ecx
push str.SELECT_setting_value_FROM_settings_WHERE_setting_key__
lea edi, [ebp - 0x70]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], eax
call fcn.00445110
add esp, 8
push eax
mov ebx, 0x51af6c
lea esi, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004276d0
add esp, 4
mov esi, 8
mov byte [ebp - 4], 4
cmp dword [ebp - 0x58], esi
jb 0x4452b8
mov eax, dword [ebp - 0x6c]
push eax
call fcn.004ea0ff
add esp, 4
mov ebx, dword [ebp - 0x2c]
xor ecx, ecx
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov word [ebp - 0x6c], cx
cmp dword [ebp - 0x18], esi
jae 0x4452d7
lea ebx, [ebp - 0x2c]
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x54]
push edx
add eax, 4
call fcn.00446f70
mov byte [ebp - 4], 5
cmp dword [ebp - 0x4c], 0
jne 0x44530f
push 0x3e8
mov eax, str.Null_Virtual_Machine_pointer
lea esi, [ebp - 0x7c]
call fcn.00446ae0
push 0x52d610
mov eax, esi
push eax
call fcn.004f048b
cmp byte [ebp - 0x48], 0
jne 0x4453be
lea eax, [ebp - 0x54]
call fcn.004472e0
cmp eax, 5
jne 0x44532d
mov eax, 0x51b07c
jmp 0x44539c
mov eax, dword [ebp - 0x4c]
mov esi, eax
mov ebx, eax
test eax, eax
je 0x445385
cmp dword [eax + 0x14], 0
lea edi, [eax + 0x14]
je 0x445360
xor ecx, ecx
cmp cx, word [eax + 0x30]
jae 0x445360
mov edx, dword [eax]
mov eax, dword [edx + 0x44]
test eax, eax
je 0x44535c
push eax
call dword [0x53c6cc]
add esp, 4
mov edi, dword [edi]
jmp 0x44538a
mov eax, dword [eax]
test eax, eax
je 0x445385
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445377
push eax
call dword [0x53c6cc]
add esp, 4
mov eax, dword [ebx]
push 0
push 0x19
call fcn.0044c2b0
add esp, 8
mov edi, 0x517538
mov bl, 2
call fcn.00463e50
mov edi, esi
mov ebx, eax
call fcn.00468240
mov eax, ebx
mov ecx, eax
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4453a1
sub ecx, esi
mov esi, dword [ebp - 0x34]
sar ecx, 1
push ecx
call fcn.004133e0
mov esi, 8
lea eax, [ebp - 0x54]
call fcn.00447360
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 4
call fcn.00447200
cmp dword [ebp - 0x18], esi
jb 0x4453e3
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ea0ff
add esp, 4
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004ea10a
mov esp, ebp
pop ebp
ret 8