joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40cb80
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x483598
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x28], ebp
call fcn.004440b8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40cbc7
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x40]
push ecx
mov dword [esp + 0x38], ebp
lea edx, [esp + 0x18]
push str.SELECT__Value__FROM__Des_Config__WHERE__Name__s_
push edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
call fcn.00403800
mov ebx, dword [esp + 0x20]
mov esi, 1
add esp, 0xc
cmp dword [ebx - 4], esi
jle 0x40cc21
mov eax, dword [ebx - 0xc]
push eax
lea ecx, [esp + 0x18]
call fcn.00401c30
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
push ebx
push eax
lea ecx, [esp + 0x30]
lea edx, [esp + 0x28]
call fcn.0043a660
mov ecx, dword [esp + 0x18]
cmp ecx, ebp
mov edi, dword [esp + 0x1c]
jle 0x40cc6b
mov eax, dword [esp + 0x20]
cmp eax, ebp
jle 0x40cc6b
inc ecx
imul ecx, eax
cmp eax, ecx
jge 0x40cc6b
mov ecx, dword [edi + eax*4]
push ecx
mov ecx, dword [esp + 0x48]
call fcn.00401e90
mov dword [esp + 0x28], esi
cmp edi, ebp
je 0x40cca3
mov ebx, dword [edi - 4]
sub edi, 4
cmp ebx, 1
jl 0x40cc96
lea ebx, [ebx]
cmp dword [edi + esi*4], ebp
je 0x40cc91
mov eax, dword [edi + esi*4]
push eax
call fcn.00443d41
add esp, 4
inc esi
cmp esi, ebx
jle 0x40cc80
push edi
call fcn.00443d41
mov ebx, dword [esp + 0x18]
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x40ccb4
push eax
call fcn.00443d41
add esp, 4
lea eax, [ebx - 0x10]
mov dword [esp + 0x34], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ccd8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc
Function at 0x40d010
Capabilities:
Reference sql statements

Disassembly:
push 0xffffffffffffffff
push 0x483598
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov dword [esp + 0x28], ecx
call fcn.004440b8
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x40d057
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
cmp eax, 5
jne 0x40d096
mov ecx, dword [esp + 0x44]
push eax
push ecx
push str.SELECT__OID_Parent__FROM__PDM_ORG_USERS__WHERE__OID_Son__u_AND__CID_Son__u
lea edx, [esp + 0x20]
push edx
jmp 0x40d0a6
push eax
mov eax, dword [esp + 0x48]
push eax
push str.SELECT__OID_Parent__FROM__PDM_Organization_Tree__WHERE__OID_Son__u_AND__CID_Son__u
lea ecx, [esp + 0x20]
push ecx
call fcn.00403800
mov eax, dword [esp + 0x24]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x40d0c5
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00401c30
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x40]
lea ecx, [esp + 0x24]
push ecx
push edx
push eax
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x28]
call fcn.0043a660
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov ebp, dword [esp + 0x20]
jle 0x40d144
mov esi, dword [esp + 0x1c]
cmp esi, ebx
jle 0x40d144
inc eax
imul eax, esi
cmp esi, eax
jge 0x40d144
mov ebx, dword [esp + 0x48]
mov ecx, dword [ebp + esi*4]
push ecx
call fcn.00461856
add esp, 4
mov edi, eax
mov eax, dword [ebx + 8]
push edi
push eax
mov ecx, ebx
call fcn.004511f1
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x28]
push ebx
push edi
push 6
push edx
call fcn.0040d010
mov eax, dword [esp + 0x18]
inc eax
imul eax, dword [esp + 0x1c]
inc esi
cmp esi, eax
jl 0x40d106
xor ebx, ebx
cmp ebp, ebx
je 0x40d178
mov edi, dword [ebp - 4]
sub ebp, 4
mov esi, 1
cmp edi, esi
jl 0x40d16f
cmp dword [ebp + esi*4], ebx
je 0x40d16a
mov eax, dword [ebp + esi*4]
push eax
call fcn.00443d41
add esp, 4
inc esi
cmp esi, edi
jle 0x40d157
push ebp
call fcn.00443d41
add esp, 4
mov eax, dword [esp + 0x24]
cmp eax, ebx
je 0x40d189
push eax
call fcn.00443d41
add esp, 4
mov dword [esp + 0x34], 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 0x40d1b1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0x10
Function at 0x40d1d0
Capabilities:
Shutdown system

Disassembly:
push 0xffffffffffffffff
push 0x48284b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x4a4720]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
push 0x3fe
mov edi, ecx
xor ebp, ebp
lea ecx, [esp + 0x4a]
xor eax, eax
push ebp
push ecx
mov esi, edx
mov word [esp + 0x50], ax
call fcn.00464a00
add esp, 0xc
push 0x200
lea edx, [esp + 0x48]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.004440b8
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x40d256
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x24
push str._msgtype
push esi
push str._text
push 0x48f6f4
push str._title
push str._msg
lea ecx, [esp + 0x30]
push str._s__s___s___s___s___s__d
push ecx
mov dword [esp + 0x474], ebp
call fcn.00403800
mov eax, dword [esp + 0x38]
add esp, 0x24
cmp dword [eax - 4], 1
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
jle 0x40d2ba
mov edx, dword [eax - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00401c30
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
call fcn.0040d3e0
test eax, eax
je 0x40d34b
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x20]
push 0xffffffffffffffff
push 1
push ebx
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
cmp edi, ebp
jle 0x40d319
mov ebp, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
jmp 0x40d300
mov edx, dword [ebx + esi*4]
lea ecx, [esp + 0x18]
push ecx
push edx
call ebp
cmp dword [esp + 0x18], 7
je 0x40d317
inc esi
cmp esi, edi
jl 0x40d300
xor ebp, ebp
push ebx
call fcn.00443d41
add esp, 4
cmp dword [esp + 0x18], 6
jne 0x40d389
lea esi, [esp + 0x24]
call fcn.00408a50
push ebp
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [esp + 0x38]
push ebp
push ebp
push ebp
lea eax, [esp + 0x34]
push eax
push ebp
push ecx
jmp 0x40d37f
push 0x24
push 0x48f6f4
push esi
mov ecx, edi
call fcn.0044a077
cmp eax, 6
jne 0x40d389
lea esi, [esp + 0x24]
call fcn.00408a50
push ebp
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, dword [esp + 0x38]
push ebp
push ebp
push ebp
lea edx, [esp + 0x34]
push edx
push ebp
push eax
mov dword [esp + 0x4c], ebp
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [esp + 0x450], 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 0x40d3b4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.00461706
add esp, 0x440
ret
Function at 0x40d630
Capabilities:
Create process on windows
Print debug messages

Disassembly:
sub esp, 0x268
mov eax, dword [0x4a4720]
xor eax, esp
mov dword [esp + 0x264], eax
push ebp
push esi
xor ebp, ebp
push 0x44
lea eax, [esp + 0x24]
push ebp
push eax
mov dword [esp + 0x14], ebp
call fcn.00464a00
xor eax, eax
add esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call fcn.0043e260
mov edx, dword [esp + 0x274]
lea ecx, [esp + 8]
push ecx
push edx
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x40d693
push str.CreateProcessInSession_failed_to_get_a_valid_user_token_
jmp 0x40d778
mov esi, dword [esp + 8]
test esi, esi
je 0x40d773
cmp esi, 0xffffffff
je 0x40d773
xor eax, eax
push 0x1fe
push eax
lea ecx, [esp + 0x72]
push ecx
mov word [esp + 0x74], ax
call fcn.00464a00
lea edx, [esp + 0x74]
add esp, 0xc
push edx
call fcn.0043e2e0
add esp, 4
test eax, eax
jne 0x40d6dd
push str.CreateProcessInSession_failed__GetTokenUserName_Error.
jmp 0x40d778
lea eax, [esp + 0x68]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40d6e4
sub eax, edx
sar eax, 1
je 0x40d76c
mov edx, str.system
lea ecx, [esp + 0x68]
mov edi, edi
mov ax, word [ecx]
cmp ax, word [edx]
jne 0x40d726
test ax, ax
je 0x40d722
mov ax, word [ecx + 2]
cmp ax, word [edx + 2]
jne 0x40d726
add ecx, 4
add edx, 4
test ax, ax
jne 0x40d700
xor eax, eax
jmp 0x40d72b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40d76c
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x24]
push ecx
push 0
push 0
push 0x30
push 0
push 0
push 0
push ebx
push edi
push edx
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x54], str.WinSta0Default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x40d77e
mov ebp, dword [esp + 0xc]
jmp 0x40d77e
push str.CreateProcessInSession_failed__Wrong_user_name.
jmp 0x40d778
push str.CreateProcessInSession_failed_to_get_a_valid_token_
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40d78f
push eax
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x40d79a
push eax
call esi
mov ecx, dword [esp + 0x26c]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.00461706
add esp, 0x268
ret 4
Function at 0x425fd0
Capabilities:
Terminate process

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x425fe3
push edi
push eax
call fcn.004262c0
add esp, 8
cmp dword [edi], esi
jne 0x42603c
call fcn.00426040
mov ecx, dword [esp + 0xc]
push ecx
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
push 0x491d14
call fcn.00401ed0
call fcn.0041fd70
add esp, 0xc
push 0xfffffffffffffffe
push str.HkApp.exe
call fcn.0043de70
add esp, 8
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
mov dword [esp + 8], 0xfffffffe
mov dword [esp + 4], str.HkApp.x64.exe
jmp fcn.0043de70
mov eax, esi
pop esi
ret
Function at 0x4262c0
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
xor edi, edi
push 1
push edi
push edi
mov dword [esp + 0x28], edi
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
mov ebp, eax
mov dword [esp + 0x28], ebp
cmp ebp, edi
je 0x426479
mov eax, dword [esp + 0x14]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00443d36
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 4
lea ecx, [eax*4]
push ecx
push edi
push ebx
call fcn.00464a00
mov esi, dword [esp + 0x20]
xor edx, edx
add esp, 0xc
mov dword [esp + 0x20], edx
test esi, esi
jbe 0x426351
mov eax, dword [esp + 0x1c]
add eax, 8
mov ecx, esi
lea ebx, [ebx]
cmp dword [eax], edi
jne 0x426345
inc edx
add eax, 0xc
sub ecx, 1
jne 0x426340
mov dword [esp + 0x20], edx
xor eax, eax
mov dword [esp + 0x24], eax
cmp esi, eax
jbe 0x426455
mov ebp, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
xor esi, esi
cmp dword [eax + edx + 8], esi
jne 0x426439
push 0x20
call fcn.00443d07
add esp, 4
cmp eax, esi
je 0x4263a0
mov dword [eax + 0x14], esi
xor ecx, ecx
mov dword [eax + 0x18], 7
mov word [eax + 4], cx
mov dword [eax + 0x1c], esi
mov esi, eax
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edx]
push esi
call fcn.0043fe20
mov eax, esi
call fcn.0043ffb0
test eax, eax
je 0x4263f3
push 0x10
call fcn.00443d07
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
add esp, 4
push 0
push 0
push eax
push 0x426490
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x30]
push 0
push 0
mov dword [eax], esi
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call ebp
mov dword [ebx + edi*4], eax
inc edi
jmp 0x426439
test esi, esi
je 0x426439
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x42640a
cmp eax, 0xffffffff
je 0x42640a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi + 0x18], 8
jb 0x42641c
mov edx, dword [esi + 4]
push edx
call fcn.00443d41
add esp, 4
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
push esi
mov word [esi + 4], ax
call fcn.00443d41
add esp, 4
mov eax, dword [esp + 0x24]
add dword [esp + 0x18], 0xc
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 0x14]
jb 0x426369
mov ebp, dword [esp + 0x28]
mov ecx, dword [esp + 0x1c]
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
push 0x5265fe8
push 1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push ebx
call fcn.00443d41
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x427dd0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x482753
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x4a4720]
xor eax, esp
mov dword [esp + 0x144], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0x15c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x170]
mov dword [esp + 0x1c], eax
xor edi, edi
mov dword [esp + 0x164], edi
lea ebx, [edi + 1]
cmp dword [0x4a657c], edi
je 0x427e6b
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x427e65
lea ecx, [esp + 0x20]
push ecx
call eax
mov ax, word [esp + 0x20]
cmp ax, 9
je 0x427e5f
cmp ax, 6
jne 0x427e65
mov dword [0x4a99d4], ebx
mov dword [0x4a657c], edi
cmp esi, edi
je 0x427e7b
cmp esi, ebx
jne 0x427eb4
cmp dword [0x4a99d4], edi
jne 0x427ec1
push 0x110
lea edx, [esp + 0x4c]
push edi
push edx
call fcn.00464a00
add esp, 0xc
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x48], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [esp + 0x18], eax
cmp eax, edi
jne 0x427eca
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x427f93
cmp esi, 2
jne 0x427ec1
cmp dword [0x4a99d4], edi
jne 0x427e7b
mov dword [esp + 0x18], ebx
jmp 0x427f93
call fcn.004440b8
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x427ee4
push 0x80004005
call fcn.00401fc0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x164], bl
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
lea eax, [esp + 0x1c]
push str._d._d
push eax
call fcn.00403800
mov eax, dword [esp + 0x17c]
mov esi, dword [esp + 0x24]
mov ebp, dword [esi - 0xc]
add esp, 0x10
cmp dword [eax - 4], ebx
jle 0x427f41
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [esp + 0x170]
call fcn.00401c30
mov eax, dword [esp + 0x16c]
cmp dword [esi - 4], ebx
mov edi, eax
jle 0x427f59
mov edx, dword [esi - 0xc]
push edx
lea ecx, [esp + 0x18]
call fcn.00401c30
mov esi, dword [esp + 0x14]
push ebp
push edi
push esi
call fcn.00463062
mov ecx, dword [esp + 0x28]
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
lea eax, [esi - 0x10]
mov byte [esp + 0x164], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x427f93
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x164], 0xffffffff
mov eax, dword [esp + 0x16c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427fc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x15c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x144]
xor ecx, esp
call fcn.00461706
add esp, 0x154
ret
Function at 0x427ff0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48128b
mov eax, dword fs:[0]
push eax
sub esp, 0x90
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4a4720]
xor eax, esp
push eax
lea eax, [esp + 0xa4]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
xor edi, edi
push str.kernel32
mov dword [esp + 0x28], edi
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov dword [esp + 0x1c], eax
cmp eax, edi
je 0x42804d
lea ecx, [esp + 0x20]
push ecx
call eax
mov dword [esp + 0xac], edi
mov esi, 1
cmp dword [0x4a657c], edi
je 0x428098
push str.GetNativeSystemInfo
push str.kernel32
call ebx
push eax
call ebp
cmp eax, edi
je 0x428092
lea edx, [esp + 0x7c]
push edx
call eax
mov ax, word [esp + 0x7c]
cmp ax, 9
je 0x42808c
cmp ax, 6
jne 0x428092
mov dword [0x4a99d4], esi
mov dword [0x4a657c], edi
xor eax, eax
push 0x40
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
push edi
push eax
mov dword [esp + 0x30], edi
call fcn.00464a00
add esp, 0xc
lea edx, [esp + 0x18]
push edx
xor ecx, ecx
push 0xf01ff
mov dword [esp + 0x3c], 0x44
mov word [esp + 0x6c], cx
mov dword [esp + 0x68], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0xb8]
lea eax, [esp + 0x38]
push eax
push edi
push ecx
push 0x400
push edi
push edi
push edi
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
cmp esi, edi
je 0x42815b
mov eax, dword [esp + 0x24]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x428143
xor esi, esi
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x428161
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [esp + 0xac], 0xffffffff
cmp dword [esp + 0x1c], edi
je 0x428197
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call ebx
push eax
call ebp
cmp eax, edi
je 0x428197
mov ecx, dword [esp + 0x20]
push ecx
call eax
mov eax, esi
mov ecx, dword [esp + 0xa4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x9c
ret
Function at 0x4281c0
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x4a4720]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x108]
dec eax
lea ecx, [ecx]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4281f0
mov ecx, dword [str._desupdateuninst.bat]
mov edx, dword [0x4920d8]
mov dword [eax], ecx
mov ecx, dword [0x4920dc]
mov dword [eax + 4], edx
mov edx, dword [0x4920e0]
mov dword [eax + 8], ecx
mov ecx, dword [0x4920e4]
mov dword [eax + 0xc], edx
mov dl, byte [0x4920e8]
mov dword [eax + 0x10], ecx
mov byte [eax + 0x14], dl
test edi, edi
je 0x42826c
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x428244
xor eax, eax
jmp 0x42825a
lea esi, [eax + eax]
mov eax, esi
call fcn.00467510
mov eax, esp
push 3
push esi
push edi
push eax
call fcn.0040e650
lea edx, [ebp - 0x20c]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
test cl, cl
jne 0x428260
jmp 0x428280
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor eax, eax
jmp 0x428290
mov cl, byte [ebp + eax - 0x20c]
mov byte [ebp + eax - 0x310], cl
inc eax
test cl, cl
jne 0x428290
lea ecx, [ebp - 0x310]
push 0x5c
push ecx
call fcn.004630a0
add esp, 8
test eax, eax
je 0x4282bb
mov byte [eax], 0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x428376
push 0x30b
lea eax, [ebp - 0x61b]
push 0
push eax
mov byte [ebp - 0x61c], 0
call fcn.00464a00
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x310]
push edx
lea eax, [ebp - 0x20c]
push eax
mov ecx, eax
push ecx
lea edx, [ebp - 0x61c]
push str.:Repeat_r_nping__n_2_127.0.0.1___nul_r_ndel___s__r_nif_exist___s__goto_Repeat_r_nrmdir___s__r_ndel___s_
push edx
call fcn.004630cd
lea eax, [ebp - 0x61c]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x428334
push 0
lea ecx, [ebp - 0x620]
push ecx
sub eax, edx
push eax
lea edx, [ebp - 0x61c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
lea esp, [ebp - 0x624]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461706
mov esp, ebp
pop ebp
ret