joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4320e0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4f2738
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
xor edi, edi
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], 0x80001006
mov dword [esp + 0x14], edi
mov dword [esp + 8], 0x501f2c
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.00418b50
add eax, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], ecx
call fcn.00407a80
mov ecx, eax
call fcn.00418db0
mov eax, dword [esp + 8]
lea ecx, [esp + 8]
call dword [eax + 4]
push 2
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x13c]
push ecx
push eax
call fcn.00407b80
add esp, 0xc
cmp eax, edi
jne 0x432195
mov eax, dword [esi + 0x13c]
push eax
call sub.IOCPTcp.dll_TcpDestroy
mov dword [esi + 0x13c], 0xffffffff
mov dword [esi + 0x140], edi
push str.ProcessGetPackageList.
push 4
add esi, 0x124
push esi
call fcn.0048b0f0
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.0042cc40
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4

Function at 0x432ef0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4f2848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
xor edi, edi
mov esi, ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], reloc.OLEAUT32.dll_VariantTimeToDosDateTime
mov dword [esp + 0x14], edi
mov dword [esp + 8], 0x5022e4
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
call fcn.0042c310
add eax, 0xc
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov ecx, dword [eax + 4]
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x10], ecx
call fcn.0044c9f0
mov eax, dword [esp + 0xc]
add esp, 4
lea ecx, [esp + 8]
call dword [eax + 4]
push 2
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x13c]
push ecx
push eax
call fcn.00407b80
add esp, 0xc
cmp eax, edi
jne 0x432fa1
mov eax, dword [esi + 0x13c]
push eax
call sub.IOCPTcp.dll_TcpDestroy
mov dword [esi + 0x13c], 0xffffffff
mov dword [esi + 0x140], edi
push str.ProcessGetServiceInfo.
push 4
add esi, 0x124
push esi
call fcn.0048b0f0
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x28], 0xffffffff
call fcn.00432490
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x43df00
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x4f3538
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
push edi
lea eax, [esp + 0xc]
xor edi, edi
push eax
mov esi, ecx
mov dword [esp + 0x10], edi
call fcn.0041cec0
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
mov ebx, dword [esp + 0x20]
mov ecx, esi
push ebx
jne 0x43df4c
call fcn.0041b830
jmp 0x43df51
call fcn.0041cec0
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43df73
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x43fc23
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x7c
push esi
mov esi, ecx
mov eax, dword [esi + 0x78]
cmp eax, dword [esi + 0x8c]
jne 0x43fde6
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x70]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x78]
xor eax, eax
test ecx, ecx
mov dword [esp + 4], eax
jle 0x43fde6
push ebx
push ebp
push edi
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
jl 0x43fdeb
cmp eax, dword [esi + 0x78]
jge 0x43fdeb
mov ecx, dword [esi + 0x74]
mov ebp, dword [ecx + eax*4]
cmp eax, dword [esi + 0x8c]
mov dword [esp + 0x14], ebp
jge 0x43fdeb
mov edx, dword [esi + 0x88]
mov edi, dword [edx + eax*4]
push eax
lea eax, [esp + 0x40]
push eax
mov ecx, esi
mov dword [esp + 0x20], edi
call fcn.0043f270
mov edx, dword [ebp + 0x1c]
lea ecx, [esp + 0x4c]
push ecx
push edx
call ebx
mov ecx, dword [edi + 0x1c]
lea eax, [esp + 0x5c]
push eax
push ecx
call ebx
lea edx, [esp + 0x4c]
push edx
mov ecx, esi
call fcn.004e6d73
lea eax, [esp + 0x5c]
push eax
mov ecx, esi
call fcn.004e6d73
mov edx, dword [esi + 0xd8]
mov edi, dword [esp + 0x3c]
mov ebp, dword [esi + 0xe0]
mov ecx, dword [esi + 0xdc]
mov ebx, dword [esp + 0x40]
mov eax, edx
shr eax, 1
add eax, edi
add ebp, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x74], ebp
mov eax, dword [esp + 0x74]
mov ebp, dword [esi + 0xe4]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0xe4]
shr ecx, 1
add eax, ecx
add ebx, ecx
mov ecx, dword [esp + 0x40]
lea ecx, [eax + ecx + 4]
mov eax, dword [esi + 0xe0]
add eax, edx
mov edx, dword [esp + 0x48]
add eax, edi
mov dword [esp + 0x38], edx
lea edx, [esp + 0x4c]
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x20]
mov dword [esp + 0x30], edi
mov edi, dword [sym.imp.USER32.dll_EqualRect]
add ebp, ebx
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebp
mov dword [esp + 0x38], ecx
call edi
test eax, eax
jne 0x43fd8b
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x24]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.004e3683
mov ecx, dword [esi + 0x1c]
push 1
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0x30]
push eax
call edi
test eax, eax
jne 0x43fdcf
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push 1
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x34]
sub edx, ecx
push edx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004e3683
mov ecx, dword [esi + 0x1c]
push 1
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x43fc58
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x7c
ret
jmp fcn.004dced3
Function at 0x4431a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4f3b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push str.__:__:__
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.00401fd0
mov eax, dword [esi + 0x30]
push 1
push 0
push 0
push eax
mov dword [esp + 0x24], 0
call fcn.004d05b0
mov ecx, dword [esi + 0x34]
xor ebx, ebx
add eax, ecx
adc edx, ebx
mov ecx, eax
or ecx, edx
je 0x443231
mov ecx, dword [esi + 0x38]
cmp ecx, 0xc8
jbe 0x443231
push ebx
push ecx
push edx
push eax
call fcn.004d05f0
cdq
mov ecx, 0x3c
idiv ecx
mov esi, 0x3c
mov ecx, edx
cdq
idiv esi
push ecx
push edx
push eax
lea edx, [esp + 0x14]
push str._02d:_02d:_02d
push edx
call fcn.00401c40
add esp, 0x14
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.00401660
mov esi, dword [esp + 0x20]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x14], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x443270
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x444d10
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x28
mov esi, 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x444d5f
push 0x16
push str..ProcessMgr.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call edi
push eax
push str.OpenProcessToken_Error:__d
push 4
call fcn.0047dea0
add esp, 0xc
xor esi, esi
mov ecx, dword [esp + 0x20]
neg ecx
lea edx, [esp + 0x10]
push edx
sbb ecx, ecx
push str.SeDebugPrivilege
and ecx, 2
push 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x24], ecx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea eax, [esp + 0x18]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call edi
test eax, eax
je 0x444da8
xor esi, esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
add esp, 0x14
ret

Function at 0x444ea0
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, 1
push edi
call fcn.00444d10
mov eax, dword [esp + 0x10]
add esp, 4
push eax
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x444ef4
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x444eed
mov eax, dword [esp + 0x10]
test eax, eax
je 0x444eeb
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x444eed
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.00444d10
add esp, 4
mov eax, edi
pop edi
pop esi
ret
Function at 0x445150
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x444e09
push 0x2d
push str..ProcessMgr.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_Error:__d
push 4
call fcn.0047dea0
add esp, 0xc
xor eax, eax
add esp, 0x14
ret
mov ecx, dword [esp + 0x18]
neg ecx
lea edx, [esp + 8]
push edx
sbb ecx, ecx
push str.SeShutdownPrivilege
and ecx, 2
push 0
mov dword [esp + 0x10], 1
mov dword [esp + 0x1c], ecx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x444e8d
mov ecx, dword [esp]
push esi
push 0
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov esi, eax
test esi, esi
je 0x444e7f
push 0x3a
push str..ProcessMgr.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Adjust_token_privileges_failed.Error_code:_d
push 4
call fcn.0047dea0
add esp, 0xc
xor esi, esi
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x14
ret
push esi
mov esi, dword [esp + 8]
neg esi
sbb esi, esi
and esi, 7
add esi, 6
call fcn.004231a0
test eax, eax
je 0x445173
push 0
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
ret
push 1
call 0x444dc0
add esp, 4
push 0
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
pop esi
mov dword [esp + 4], 0
jmp 0x444dc0
Function at 0x445510
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4f3e7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x13c
mov eax, dword [0x52bd18]
push esi
push edi
push 0
push 2
mov dword [esp + 0x148], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
mov ecx, 0x49
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0x128
jne 0x445592
push 0x73
push str..ProcessMgr.cpp
call fcn.00407350
mov ecx, eax
call fcn.0040a680
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumProcessName_CreateToolhelp32Snapshot_failed_error_ld.
push 0x20
call fcn.0047dea0
add esp, 0xc
xor eax, eax
jmp 0x4456b7
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4456ab
mov edi, dword [esp + 0x154]
lea esp, [esp]
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 8], eax
lea eax, [esp + 0x3c]
mov dword [esp + 0x14c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4455f0
sub eax, edx
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x14]
call fcn.00401880
mov esi, dword [edi + 8]
test esi, esi
jl 0x4456da
push 0xffffffffffffffff
lea edx, [esi + 1]
push edx
mov ecx, edi
call fcn.00411ef0
mov ecx, dword [edi + 4]
mov edx, dword [esp + 8]
lea eax, [esi + esi*2]
lea esi, [ecx + eax*4]
lea eax, [esp + 0xc]
lea ecx, [esi + 4]
push eax
mov dword [esi], edx
call fcn.004040e0
lea edx, [esp + 0x10]
lea ecx, [esi + 8]
push edx
call fcn.004040e0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x14c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445672
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445690
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4455b0
mov esi, dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x144]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x13c]
pop esi
call fcn.004ce183
add esp, 0x148
ret
jmp fcn.004dced3
Function at 0x445b90
Capabilities:
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4f3ea8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x24], edi
call fcn.00445750
mov ebx, dword [esp + 0x14]
add esp, 4
cmp edi, ebx
jae 0x445c03
mov ebp, dword [esp + 0x14]
sbb esi, esi
and esi, ebp
cmp dword [esi], 0
jbe 0x445be1
mov eax, dword [esi + 4]
jmp 0x445be3
xor eax, eax
mov ecx, dword [esp + 0x28]
push ecx
push eax
call fcn.004d5502
add esp, 8
test eax, eax
jne 0x445bff
inc edi
add ebp, 0x30
cmp edi, ebx
jb 0x445bd3
jmp 0x445c03
cmp edi, ebx
jb 0x445c45
mov eax, dword [esp + 0x14]
test eax, eax
mov dword [esp + 0x20], 0xffffffff
je 0x445c30
mov edx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0042ae10
push edx
push 0x30
push eax
call fcn.004cedc1
push esi
call fcn.004df1b9
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
add esp, 0x14
ret
mov esi, dword [esi + 0x18]
push 1
call fcn.00444d10
add esp, 4
push esi
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x445c86
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x445c7f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call fcn.00444d10
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
mov dword [esp + 0x20], 0xffffffff
je 0x445cbd
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0042ae10
push ecx
push 0x30
push eax
call fcn.004cedc1
push esi
call fcn.004df1b9
add esp, 4
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x445d50
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4f3ef1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], 0
call fcn.004e4494
mov ebp, 0x4fccc8
mov dword [esp + 0x18], ebp
mov ebx, 1
mov dword [esp + 0x30], ebx
call fcn.004df219
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x3c]
mov eax, dword [eax]
push 0
push 0
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x3c], 2
call fcn.00485560
test eax, eax
jne 0x445dfa
mov edi, dword [esp + 0x38]
push 0x4fca4e
mov ecx, edi
call fcn.00401fd0
lea eax, [esi - 0x10]
mov dword [esp + 0x14], ebx
mov byte [esp + 0x30], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445df1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x18], ebp
jmp 0x445ec7
lea ecx, [esp + 0x18]
call fcn.00485770
mov ebp, eax
push ebp
call fcn.004df1be
mov esi, eax
mov ecx, ebp
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
add esp, 4
mov ecx, edx
and ecx, 3
push ebp
rep stosb byte es:[edi], al
push esi
lea ecx, [esp + 0x20]
call fcn.004856b0
lea ecx, [esp + 0x18]
mov edi, eax
call fcn.004e4432
call fcn.004df219
push eax
push edi
push esi
lea ecx, [esp + 0x48]
call fcn.00407c70
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 3
call fcn.004040e0
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
mov byte [esp + 0x30], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x445e81
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.004df1b9
mov esi, dword [esp + 0x14]
add esi, 0xfffffff0
push esi
call fcn.00401660
mov edi, dword [esp + 0x40]
add eax, 0x10
mov dword [edi], eax
add esp, 8
mov dword [esp + 0x14], ebx
mov byte [esp + 0x30], bl
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x445ebf
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov dword [esp + 0x18], method.CFile.virtual_0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 0
call fcn.004e44d3
mov ecx, dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x447650
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x447695
mov eax, dword [esi + 0x128]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
jne 0x44768e
push eax
push eax
push eax
mov eax, dword [esi + 0x124]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x4496b0
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4f4140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xf8]
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.00401300
mov eax, dword [esi + 0x120]
sub eax, 0x10
push eax
mov dword [esp + 0x20], 0
call fcn.00401660
add esp, 4
add eax, 0x10
push 0x80
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0xc]
push eax
push str.Options
push 0x4fcf54
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 1
call fcn.0047d110
mov cl, byte [esp + 0xc]
mov eax, dword [esp + 8]
xor edx, edx
and cl, 0xf
cmp cl, 0xf
setne dl
add eax, 0xfffffff0
mov byte [esp + 0x1c], 0
lea ecx, [eax + 0xc]
mov dword [esi + 0x1c4], edx
mov edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x449761
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
call dword [eax + 0x14]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x449790
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4f4160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xf8]
mov ecx, edi
mov dword [esp + 0xc], edi
call fcn.00401300
mov eax, dword [esi + 0x120]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], 0
call fcn.00401660
add esp, 4
add eax, 0x10
push 0x80
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esi + 0x118]
push eax
push str.DataLen
push 0x4fcf54
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.0047d110
lea ecx, [esi + 0x11c]
push ecx
push str.DataCRC
push 0x4fcf54
lea ecx, [esp + 0x14]
call fcn.0047d110
mov ecx, esi
call fcn.004496b0
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x44986b
mov eax, dword [esi + 0x128]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
jne 0x449864
mov esi, dword [esi + 0x124]
push eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x44986b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44988e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call dword [eax + 0x14]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x4497a8
Capabilities:
Create process on windows
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4f4160
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xf8]
mov ecx, edi
mov dword [esp + 0xc], edi
call fcn.00401300
mov eax, dword [esi + 0x120]
sub eax, 0x10
push eax
mov dword [esp + 0x1c], 0
call fcn.00401660
add esp, 4
add eax, 0x10
push 0x80
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esi + 0x118]
push eax
push str.DataLen
push 0x4fcf54
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.0047d110
lea ecx, [esi + 0x11c]
push ecx
push str.DataCRC
push 0x4fcf54
lea ecx, [esp + 0x14]
call fcn.0047d110
mov ecx, esi
call fcn.004496b0
mov eax, dword [esi + 0x1c4]
test eax, eax
je 0x44986b
mov eax, dword [esi + 0x128]
push eax
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
test eax, eax
jne 0x449864
mov esi, dword [esi + 0x124]
push eax
push eax
push eax
push esi
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x44986b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov byte [esp + 0x18], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x44988e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [edi]
mov ecx, edi
mov dword [esp + 0x18], 0xffffffff
call dword [eax + 0x14]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret