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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5791f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
call fcn.0044d418
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x412dd7
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
cmp eax, 5
jne 0x412e0d
mov ecx, dword [ebp + 0x10]
push eax
push ecx
push str.SELECT__OID_Parent__FROM__PDM_ORG_USERS__WHERE__OID_Son__u_AND__CID_Son__u
lea edx, [ebp - 0x10]
push edx
jmp 0x412e1b
push eax
mov eax, dword [ebp + 0x10]
push eax
push str.SELECT__OID_Parent__FROM__PDM_Organization_Tree__WHERE__OID_Son__u_AND__CID_Son__u
lea ecx, [ebp - 0x10]
push ecx
call fcn.00409220
mov eax, dword [ebp - 0x10]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x412e3b
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.004076d0
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
push eax
lea edx, [ebp - 0x18]
call fcn.00448470
mov eax, dword [ebp - 0x14]
cmp eax, ebx
jle 0x412eac
mov esi, dword [ebp - 0x18]
cmp esi, ebx
jle 0x412eac
inc eax
imul eax, esi
cmp esi, eax
jge 0x412eac
mov ebx, dword [ebp + 0x14]
lea esp, [esp]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + esi*4]
push eax
call fcn.0054df0d
add esp, 4
mov edi, eax
mov eax, dword [ebx + 8]
push edi
push eax
mov ecx, ebx
call fcn.004af1b3
mov ecx, dword [ebp + 8]
push ebx
push edi
push 6
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.00412d90
mov edx, dword [ebp - 0x14]
inc edx
imul edx, dword [ebp - 0x18]
inc esi
cmp esi, edx
jl 0x412e70
xor ebx, ebx
mov edi, dword [ebp - 0x1c]
cmp edi, ebx
je 0x412ee4
mov ebx, dword [edi - 4]
sub edi, 4
mov esi, 1
cmp ebx, esi
jl 0x412ed9
cmp dword [edi + esi*4], 0
je 0x412ed4
mov eax, dword [edi + esi*4]
push eax
call fcn.0044c90f
add esp, 4
inc esi
cmp esi, ebx
jle 0x412ec2
push edi
call fcn.0044c90f
add esp, 4
xor ebx, ebx
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x412ef4
push eax
call fcn.0044c90f
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412f1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412f30
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57879b
mov eax, dword fs:[0]
push eax
sub esp, 0x434
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x3fe
mov ebx, ecx
xor edi, edi
lea ecx, [ebp - 0x40e]
xor eax, eax
push edi
push ecx
mov esi, edx
mov word [ebp - 0x410], ax
call fcn.00550f40
add esp, 0xc
push 0x200
lea edx, [ebp - 0x410]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call fcn.0044d418
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x412faf
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x434], eax
push 0x24
push str._msgtype
push esi
push str._text
push 0x5ac5fc
push str._title
push str._msg
lea ecx, [ebp - 0x434]
push str._s__s___s___s___s___s__d
push ecx
mov dword [ebp - 4], edi
call fcn.00409220
mov eax, dword [ebp - 0x434]
add esp, 0x24
cmp dword [eax - 4], 1
mov dword [ebp - 0x43c], edi
mov dword [ebp - 0x440], edi
jle 0x413021
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x434]
call fcn.004076d0
mov eax, dword [ebp - 0x434]
lea ecx, [ebp - 0x440]
push ecx
lea edx, [ebp - 0x43c]
push edx
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00413170
test eax, eax
je 0x4130d8
mov ebx, dword [ebp - 0x43c]
push 0xffffffffffffffff
push 1
mov dword [ebp - 0x438], edi
mov edi, dword [ebp - 0x440]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
xor esi, esi
test edi, edi
jle 0x41308f
jmp 0x413070
mov edx, dword [ebx + esi*4]
lea ecx, [ebp - 0x438]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x438], 7
je 0x41308f
inc esi
cmp esi, edi
jl 0x413070
push ebx
call fcn.0044c90f
add esp, 4
cmp dword [ebp - 0x438], 6
jne 0x41311e
lea esi, [ebp - 0x430]
call fcn.0040e970
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 0x41c]
push 0
push 0
push 0
lea eax, [ebp - 0x42c]
push eax
push 0
mov dword [ebp - 0x420], 0
push ecx
jmp 0x413118
push 0x24
push 0x5ac5fc
push esi
mov ecx, ebx
call fcn.00455405
cmp eax, 6
jne 0x41311e
lea esi, [ebp - 0x430]
call fcn.0040e970
push edi
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov eax, dword [ebp - 0x41c]
push edi
push edi
push edi
lea edx, [ebp - 0x42c]
push edx
push edi
mov dword [ebp - 0x420], edi
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x434]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413147
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret
Function at 0x413170
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576f28
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 1
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
test eax, eax
jne 0x4131e5
push str.WTSEnumerateSessions_Failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov dword [ebp - 0x18], esi
cmp dword [ebp - 0x14], esi
jle 0x413262
xor edi, edi
nop
mov eax, dword [ebp - 0x1c]
cmp dword [edi + eax + 8], 0
jne 0x413250
mov ebx, dword [edi + eax]
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
cmp edx, esi
jae 0x413234
mov eax, edx
cmp dword [ebp - 0x30], eax
ja 0x413234
mov ebx, edx
sub ebx, dword [ebp - 0x30]
sar ebx, 2
cmp esi, dword [ebp - 0x28]
jne 0x413226
lea eax, [ebp - 0x30]
call fcn.004137c0
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x41324a
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + ebx*4]
mov dword [esi], edx
jmp 0x41324a
cmp esi, dword [ebp - 0x28]
jne 0x413244
lea eax, [ebp - 0x30]
call fcn.004137c0
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x41324a
mov dword [esi], ebx
add esi, 4
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x18]
inc eax
add edi, 0xc
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x14]
jl 0x4131f0
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [edi], 0
mov dword [ecx], 0
cmp ebx, esi
je 0x4132de
mov eax, esi
sub eax, ebx
xor ecx, ecx
sar eax, 2
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044c904
mov dword [edi], eax
add esp, 4
mov edi, ebx
mov eax, dword [ebp + 0xc]
mov ecx, dword [edi]
mov ebx, dword [ebp + 8]
push eax
push ecx
call fcn.00413310
test eax, eax
je 0x4132c8
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov ebx, dword [ebx]
mov dword [ebx + edx*4], eax
inc dword [ecx]
add edi, 4
cmp edi, esi
jne 0x4132a6
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
jle 0x4132de
mov dword [ebp - 0x20], 1
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4132ee
push eax
call fcn.0044c90f
add esp, 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x413e40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5782a4
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov dword [ebp - 0x264], esi
mov word [esi], ax
lea eax, [esi + 0x20]
mov dword [ebp - 4], edi
push eax
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x206
lea edx, [ebp - 0x216]
xor ecx, ecx
push edi
push edx
mov word [ebp - 0x218], cx
call fcn.00550f40
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor ecx, ecx
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], edi
mov word [ebp - 0x234], cx
lea edx, [ebp - 0x218]
push edx
push str._sDesUpdate_
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x250]
push ecx
mov byte [ebp - 4], 2
call fcn.00413cd0
mov edi, 8
add esp, 0x10
cmp dword [ebp - 0x23c], edi
jb 0x413f1e
mov edx, dword [ebp - 0x250]
push edx
call fcn.0044c90f
add esp, 4
lea eax, [ebp - 0x234]
push eax
call fcn.00414240
add esp, 4
lea ecx, [ebp - 0x260]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov eax, dword [ebp - 0x234]
cmp dword [ebp - 0x220], edi
jae 0x413f4e
lea eax, [ebp - 0x234]
movzx edx, word [ebp - 0x25a]
movzx ecx, word [ebp - 0x25e]
push edx
movzx edx, word [ebp - 0x260]
push ecx
push edx
push eax
push str._sDesUpdate__04d_02d_02d.log
lea eax, [ebp - 0x250]
push esi
push eax
call fcn.00413cd0
add esp, 0x1c
cmp dword [ebp - 0x23c], edi
jb 0x413f93
mov ecx, dword [ebp - 0x250]
push ecx
call fcn.0044c90f
add esp, 4
cmp dword [ebp - 0x220], edi
jb 0x413faa
mov edx, dword [ebp - 0x234]
push edx
call fcn.0044c90f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret
Function at 0x4189d0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5796a0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0045b0ea
mov ecx, dword [eax + 4]
call fcn.00450f50
mov dword [ebp - 4], 0
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x418a28
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
call fcn.0044d418
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x418a55
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov ecx, dword [edi + 0x98]
mov edx, dword [edi + 0xac]
push ecx
push edx
call fcn.0043a880
mov eax, dword [eax]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi + 0xb0]
mov dword [ebp - 0x1c], eax
call fcn.00457aa0
cmp dword [0x5e084c], 0
jne 0x418ab8
push 0x60
call fcn.0044c8d5
add esp, 4
test eax, eax
je 0x418ab1
mov esi, eax
call fcn.00445620
jmp 0x418ab3
xor eax, eax
mov dword [0x5e084c], eax
mov eax, 0x5c
lea ebx, [ebp - 0x18]
call fcn.00417eb0
push 1
push 0x5ad338
mov ecx, ebx
call fcn.004138d0
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
push edx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x20], esp
mov esi, esp
push eax
call fcn.00407af0
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [edi + 0xac]
add esp, 4
push eax
call fcn.0043c250
test eax, eax
jne 0x418b6e
cmp dword [0x5e0bc4], eax
jne 0x418b63
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x1c]
push 0x5ad5ec
push edx
call fcn.004175b0
add esp, 0xc
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0040d290
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418b51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x14]
push 0x10
push 0x5ab178
push ecx
mov ecx, edi
call fcn.00455405
push 0x3ee
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov edx, dword [edi]
mov eax, dword [edx + 0x18c]
mov ecx, edi
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418b9d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418bc0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [ebp - 0xd]
mov dword [ebp - 4], 0xffffffff
call fcn.00417690
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x434310
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0xc]
push ecx
xor esi, esi
push 1
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.WTSAPI32.dll_WTSEnumerateSessionsW]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x4344a3
mov eax, dword [ebp - 4]
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044c904
mov edi, eax
mov eax, dword [ebp - 4]
add esp, 4
lea ecx, [eax*4]
push ecx
push esi
push edi
call fcn.00550f40
mov ebx, dword [ebp - 4]
xor edx, edx
add esp, 0xc
mov dword [ebp - 0x10], edx
test ebx, ebx
je 0x434390
mov eax, dword [ebp - 0xc]
add eax, 8
mov ecx, ebx
cmp dword [eax], esi
jne 0x434387
inc edx
add eax, 0xc
dec ecx
jne 0x434382
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x14], eax
cmp ebx, eax
jbe 0x43447e
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp dword [eax + edx + 8], 0
jne 0x43446a
push 0x20
call fcn.0044c8d5
xor ebx, ebx
add esp, 4
cmp eax, ebx
je 0x4343d5
mov dword [eax + 0x10], ebx
xor ecx, ecx
mov dword [eax + 0x14], 7
mov word [eax], cx
mov dword [eax + 0x1c], ebx
mov ebx, eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ecx, dword [eax + edx]
call fcn.00401b30
mov eax, ebx
call fcn.00401d30
test eax, eax
je 0x434426
push 0x10
call fcn.0044c8d5
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add esp, 4
push 0
push 0
push eax
push 0x4344b0
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x10]
push 0
push 0
mov dword [eax], ebx
mov dword [eax + 8], edx
mov dword [eax + 0xc], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + esi*4], eax
inc esi
jmp 0x43446a
test ebx, ebx
je 0x43446a
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x43443d
cmp eax, 0xffffffff
je 0x43443d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebx + 0x14], 8
jb 0x43444e
mov edx, dword [ebx]
push edx
call fcn.0044c90f
add esp, 4
xor eax, eax
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], 0
push ebx
mov word [ebx], ax
call fcn.0044c90f
add esp, 4
mov eax, dword [ebp - 0x14]
add dword [ebp - 8], 0xc
inc eax
mov dword [ebp - 0x14], eax
cmp eax, dword [ebp - 4]
jb 0x4343a0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
push 0x5265fe8
push 1
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push edi
call fcn.0044c90f
mov eax, dword [ebp - 0x18]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x436480
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578603
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x5d7ce0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x130], eax
xor edi, edi
mov dword [ebp - 4], edi
mov dword [eax], edi
cmp dword [0x5d9fb8], edi
je 0x43650f
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 0x436509
lea ecx, [ebp - 0x154]
push ecx
call eax
mov ax, word [ebp - 0x154]
cmp ax, 9
je 0x4364ff
cmp ax, 6
jne 0x436509
mov dword [0x5e0c44], 1
mov dword [0x5d9fb8], edi
cmp esi, edi
je 0x436520
cmp esi, 1
jne 0x436561
cmp dword [0x5e0c44], edi
jne 0x43656e
push 0x110
lea edx, [ebp - 0x120]
push edi
push edx
call fcn.00550f40
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x12c], eax
cmp eax, edi
jne 0x43657d
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x436645
cmp esi, 2
jne 0x43656e
cmp dword [0x5e0c44], edi
jne 0x436520
mov dword [ebp - 0x12c], 1
jmp 0x436645
call fcn.0044d418
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x436597
push 0x80004005
call fcn.00407ad0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x128], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x120]
push ecx
push edx
lea eax, [ebp - 0x128]
push str._d._d
push eax
call fcn.00409220
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x128]
mov ebx, dword [esi - 0xc]
add esp, 0x10
cmp dword [eax - 4], 1
jle 0x4365f0
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.004076d0
mov eax, dword [ebp + 8]
cmp dword [esi - 4], 1
mov edi, eax
jle 0x43660d
mov edx, dword [esi - 0xc]
push edx
lea ecx, [ebp - 0x128]
call fcn.004076d0
mov esi, dword [ebp - 0x128]
push ebx
push edi
push esi
call fcn.0054f7a2
mov ecx, dword [ebp - 0x130]
add esp, 0xc
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x436645
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43666b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054bd91
mov esp, ebp
pop ebp
ret
Function at 0x436690
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x576ef8
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x5d7ce0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.Wow64DisableWow64FsRedirection
xor edi, edi
push str.kernel32
mov dword [ebp - 0x1c], edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov dword [ebp - 0x20], eax
cmp eax, edi
je 0x4366e8
lea ecx, [ebp - 0x1c]
push ecx
call eax
mov dword [ebp - 4], edi
cmp dword [0x5d9fb8], edi
je 0x436732
push str.GetNativeSystemInfo
push str.kernel32
call ebx
push eax
call esi
cmp eax, edi
je 0x43672c
lea edx, [ebp - 0xa0]
push edx
call eax
mov ax, word [ebp - 0xa0]
cmp ax, 9
je 0x436722
cmp ax, 6
jne 0x43672c
mov dword [0x5e0c44], 1
mov dword [0x5d9fb8], edi
xor eax, eax
push 0x40
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x78]
push edi
push eax
mov dword [ebp - 0x30], edi
call fcn.00550f40
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
xor ecx, ecx
push 0xf01ff
mov dword [ebp - 0x7c], 0x44
mov word [ebp - 0x4c], cx
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov eax, dword [ebp - 0x18]
push 1
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x30]
push edx
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x7c]
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 0x4367e3
mov eax, dword [ebp - 0x30]
push 0x1388
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4367cd
xor esi, esi
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4367e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x43681c
push str.Wow64RevertWow64FsRedirection
push str.kernel32
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x43681c
mov ecx, dword [ebp - 0x1c]
push ecx
call eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret