joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4099a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd6e7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov ecx, 0x510279
mov dword [ebp - 0x14], 0
call fcn.004b7c9d
mov dword [ebp - 4], 1
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x409af2
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
push 0x104
push 0
mov dword [ebp - 0x14], 2
mov dword [esi], eax
lea eax, [ebp - 0x138]
push eax
call fcn.004bad00
add esp, 0xc
lea eax, [ebp - 0x138]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x138]
mov ecx, esi
push eax
call fcn.00404200
push 2
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004062a0
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.00404180
mov edx, dword [ebp - 0x28]
or eax, 0xffffffff
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409a6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0xd]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 1
push ecx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], 0x55005c
push edx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x20], 0x650073
mov dword [ebp - 0x1c], 0x730072
mov dword [ebp - 0x18], 0x5c
call fcn.00403f10
mov edx, dword [eax]
mov dword [ebp - 4], 3
test edx, edx
jne 0x409aba
xor eax, eax
jmp 0x409ad0
mov eax, edx
push edi
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409ac0
sub eax, edi
sar eax, 1
pop edi
push eax
push edx
mov ecx, esi
call fcn.00404690
lea ecx, [ebp - 0x34]
call fcn.0040c550
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x40a070
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd7ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
mov ecx, 0x510279
mov dword [ebp - 4], 0
call fcn.004b7c9d
push 6
push 0
mov dword [ebp - 0x14], 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [ebp - 0x14]
push eax
push 0x4e48d4
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
test eax, eax
js 0x40a1ac
push edi
lea eax, [ebp - 0xd]
mov dword [ebp - 0x7c], 0x790053
push eax
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x78], 0x740073
push ecx
lea edx, [ebp - 0x7c]
mov dword [ebp - 0x74], 0x6d0065
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x70], 0x56002e
mov dword [ebp - 0x6c], 0x6c006f
mov dword [ebp - 0x68], 0x6d0075
mov dword [ebp - 0x64], 0x2e0065
mov dword [ebp - 0x60], 0x690042
mov dword [ebp - 0x5c], 0x4c0074
mov dword [ebp - 0x58], 0x63006f
mov dword [ebp - 0x54], 0x65006b
mov dword [ebp - 0x50], 0x500072
mov dword [ebp - 0x4c], 0x6f0072
mov dword [ebp - 0x48], 0x650074
mov dword [ebp - 0x44], 0x740063
mov dword [ebp - 0x40], 0x6f0069
mov dword [ebp - 0x3c], 0x6e
call fcn.00403f10
lea ecx, [ebp - 0x38]
push ecx
push dword [eax]
call dword [sym.imp.PROPSYS.dll_PSGetPropertyKeyFromName]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.0040c550
pop edi
test esi, esi
js 0x40a1ac
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x24]
push edx
xorps xmm0, xmm0
lea edx, [ebp - 0x38]
movups xmmword [ebp - 0x24], xmm0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x34]
test eax, eax
js 0x40a1ac
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp esi, 1
je 0x40a1b9
cmp esi, 3
je 0x40a1b9
cmp esi, 5
je 0x40a1b9
xor dl, dl
jmp 0x40a1bb
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x40a1b9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dl, 1
mov eax, dword [ebp + 8]
or ecx, 0xffffffff
mov byte [ebp - 0xd], dl
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lock xadd dword [eax + 0xc], ecx
dec ecx
pop esi
test ecx, ecx
jg 0x40a1f2
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
mov al, dl
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40a210
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, 0x510279
push 0xffffffffffffffff
push 0x4dd7d5
push eax
mov dword fs:[0], esp
sub esp, 0x214
push esi
call fcn.004b7c9d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40a363
lea eax, [ebp - 0x14]
push eax
call fcn.00408e30
push 0x208
lea eax, [ebp - 0x220]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004bad00
add esp, 0x10
mov dword [ebp - 0x18], 0x104
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40a374
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x220]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x10]
call fcn.004048d0
test al, al
jne 0x40a2df
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a2c0
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406d70
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x10]
mov byte [ebp - 4], 0
cmp dword [eax - 0xc], 0
je 0x40a32a
cmp dword [esi - 0xc], 0
je 0x40a32a
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004042a0
add esp, 8
test al, al
je 0x40a32a
lea ecx, [ebp - 0x10]
call fcn.00403ff0
lea ecx, [ebp - 0x14]
call fcn.00403ff0
mov al, 1
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a344
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
lea edx, [eax - 0x10]
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x40a363
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
xor al, al
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x40a4e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push esi
mov ecx, 0x510279
call fcn.004b7c9d
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
mov byte [ebp - 1], 1
test ebx, ebx
je 0x40a5b6
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40a59c
nop
mov eax, ebx
lea ecx, [ebp - 0x20c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x40a55e
test dx, dx
je 0x40a55a
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x40a55e
add ecx, 4
add eax, 4
test dx, dx
jne 0x40a538
xor eax, eax
jmp 0x40a563
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40a585
mov esi, dword [ebp - 0x228]
push esi
push eax
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp eax, 1
jne 0x40a598
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40a530
jmp 0x40a59c
mov byte [ebp - 1], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, byte [ebp - 1]
xor ecx, ecx
pop edi
cmp esi, 0xffffffff
pop esi
cmove eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a6f0
Capabilities:
Contain obfuscated stackstrings
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd7ad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
push edi
mov ecx, 0x510279
mov dword [ebp - 4], 0
call fcn.004b7c9d
call fcn.00406e90
call fcn.00407160
mov eax, dword [eax + 8]
test eax, eax
je 0x40a7c9
cmp eax, 0xa
ja 0x40a73e
jb 0x40a7c9
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
push 0
sub esp, 0x18
mov ecx, esi
mov edx, esp
lea edi, [ecx + 2]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a761
sub ecx, edi
sar ecx, 1
push ecx
push esi
mov ecx, edx
call fcn.00403070
call fcn.0040e080
mov esi, dword [ebp + 8]
add esp, 0x1c
mov eax, esi
xorps xmm0, xmm0
push 1
sub esp, 0x18
lea edi, [eax + 2]
mov edx, esp
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a7a4
sub eax, edi
mov ecx, edx
sar eax, 1
push eax
push esi
call fcn.00403070
call fcn.0040e080
add esp, 0x1c
jmp 0x40a87e
xor eax, eax
mov dword [ebp - 0x3c], 0x610074
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x22]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x38], 0x6b0073
push eax
push ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], 0x610062
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x30], 0x750072
mov dword [ebp - 0x2c], 0x70006e
mov dword [ebp - 0x28], 0x6e0069
call fcn.00403f10
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0
push dword [ebp + 8]
push dword [eax]
push 0
call esi
lea ecx, [ebp - 0x20]
call fcn.0040c550
xor eax, eax
mov dword [ebp - 0x38], 0x610074
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x22]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x34], 0x6b0073
push eax
push ecx
lea edx, [ebp - 0x38]
mov dword [ebp - 0x30], 0x610062
push edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x2c], 0x700072
mov dword [ebp - 0x28], 0x6e0069
call fcn.00403f10
push 0
push 0
push 0
push dword [ebp + 8]
push dword [eax]
push 0
call esi
lea ecx, [ebp - 0x20]
call fcn.0040c550
mov edx, dword [ebp + 8]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40a8a0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40bcd0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, 0x510279
push edi
call fcn.004b7c9d
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x40bd36
push esi
push 0xf01ff
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x40bd15
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40bd35
lea eax, [ebp - 0x1c]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop esi
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop edi
test eax, eax
jg 0x40bd52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bd60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov ecx, 0x510279
call fcn.004b7c9d
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40bdbc
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
cmp dword [ecx + 0x14], 0x10
mov eax, dword [ecx + 0x10]
jb 0x40bda6
mov ecx, dword [ecx]
push 0
lea edx, [ebp - 4]
push edx
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
pop esi
test eax, eax
jg 0x40bdd8
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esp, ebp
pop ebp
ret

Function at 0x40bde0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd05e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b7c9d
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40beb4
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004bad00
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x17
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bea3
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40be77
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404690
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x40bec0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd05e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b7c9d
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40bf94
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004bad00
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bf83
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bf57
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404690
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3

Function at 0x40bfa0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd05e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b7c9d
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40c074
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004bad00
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c063
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c037
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404690
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x40c080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dd05e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
mov ecx, 0x510279
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.004b7c9d
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40c154
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
push 0x800
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x10], 1
call fcn.004bad00
add esp, 0xc
lea eax, [ebp - 0x810]
push 0
push 2
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c143
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c117
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404690
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
int3
Function at 0x40c160
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4dda16
push eax
mov eax, 0x1008
mov dword fs:[0], esp
call fcn.004b8280
push esi
mov ecx, 0x510279
mov dword [ebp - 0x14], 0
call fcn.004b7c9d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x40c243
mov dword [ebp - 4], 0
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40c314
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
push 0x800
push 0
mov dword [ebp - 0x14], 2
mov dword [esi], eax
lea eax, [ebp - 0x814]
push eax
call fcn.004bad00
add esp, 0xc
lea eax, [ebp - 0x814]
push 0
push 0x19
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c303
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c206
sub ecx, edx
lea eax, [ebp - 0x814]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.00406d70
push 1
push 0x4e4834
mov ecx, esi
call fcn.00404690
mov eax, esi
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x40c31e
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push 0x800
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], 1
push 0
push eax
call fcn.004bad00
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0
push 0x10
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c2d1
lea ecx, [ebp - 0x1014]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c2a0
sub ecx, edx
lea eax, [ebp - 0x1014]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00406d70
push 1
push 0x4e4834
lea ecx, [ebp - 0x10]
call fcn.00404690
mov esi, dword [ebp - 0x10]
push edi
lea edi, [esi - 0x10]
push edi
call fcn.004049c0
mov esi, dword [ebp + 8]
add eax, 0x10
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [esi], eax
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40c302
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
pop edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
push 0x80004005
call fcn.004048a0
int3
Function at 0x40c330
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ecx, 0x510279
call fcn.004b7c9d
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push dword [ebp + 8]
xor bl, bl
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40c3c3
movzx eax, word [ebp + 0xc]
push edi
push dword [ebp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40c3bb
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x40c3bb
push edi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov edx, dword [ebp + 8]
or esi, 0xffffffff
add edx, 0xfffffff0
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40c3e0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x40c3f8
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c400
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
mov ecx, 0x51021c
call fcn.004b7c9d
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40c465
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40c465
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40c454
cmp esi, edx
jae 0x40c465
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x40c442
cmp esi, edx
jae 0x40c465
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x411200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
mov ecx, 0x51072e
push 0xffffffffffffffff
push 0x4de09d
push eax
mov dword fs:[0], esp
sub esp, 0x288
call fcn.004b7c9d
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x411242
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x294]
push 0
push eax
call fcn.004bad00
add esp, 0xc
lea eax, [ebp - 0x294]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x24], 0x750072
push eax
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], 0x61006e
push ecx
lea edx, [ebp - 0x24]
mov dword [ebp - 0x1c], 0x73
push edx
lea ecx, [ebp - 0x44]
call fcn.00403f10
mov esi, dword [eax]
mov dword [ebp - 4], 0
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x411426
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004048d0
test al, al
jne 0x4112f9
test esi, esi
jne 0x4112d4
xor ecx, ecx
jmp 0x4112ef
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4112e0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x14]
call fcn.00406d70
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.0040c550
push 0x38
lea eax, [ebp - 0x88]
mov dword [ebp - 0x8c], 0x3c
push 0
push eax
call fcn.004bad00
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x294]
add esp, 0xc
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x70], 1
call fcn.004059f0
mov ecx, eax
test ecx, ecx
je 0x411430
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
xor eax, eax
mov byte [ebp - 4], 4
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x26]
lea eax, [ebp - 0xd]
mov dword [ebp - 0x38], 0x75002f
push eax
push ecx
lea edx, [ebp - 0x38]
mov dword [ebp - 0x34], 0x700070
push edx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x30], 0x690072
mov dword [ebp - 0x2c], 0x690076
call fcn.00403f10
mov esi, dword [eax]
mov byte [ebp - 4], 5
test esi, esi
jne 0x41139a
xor eax, eax
jmp 0x4113af
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4113a0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [ebp - 0x18]
call fcn.00406d70
lea ecx, [ebp - 0x50]
call fcn.0040c550
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x8c]
push eax
mov dword [ebp - 0x78], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
mov byte [ebp - 4], 3
lea edx, [esi - 0x10]
sete bl
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4113f7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x411413
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004048a0
push 0x80004005
call fcn.004048a0
int3
Function at 0x4117c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, 0x51072e
call fcn.004b7c9d
mov eax, dword [ebp + 8]
push 0
push 0
push eax
push 0x414720
push 0
push 0
mov dword [eax + 0x18], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop esi
mov dword [ebp + 8], eax
pop ebp
jmp dword [sym.imp.KERNEL32.dll_CloseHandle]