joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484a36
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5601d0]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x484a79
cmp word [esi], dx
jne 0x484a79
or byte [edi + eax + 0x28], 4
jmp 0x484a7e
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x484bd1
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x484bb1
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x484ac0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x484af6
cmp eax, edx
jae 0x484b02
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x484a98
jmp 0x484bd1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x484bad
cmp dword [ebp - 0x14], 0
je 0x484bad
mov eax, dword [ebx*4 + 0x5601d0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x484b85
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x484b4e
mov word [esi], cx
jmp 0x484b81
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5601d0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5601d0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5601d0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x484bd1
pop ebx
cmp word [ebp - 4], bx
jne 0x484b96
cmp esi, dword [ebp + 0xc]
jne 0x484b96
mov word [esi], bx
jmp 0x484bce
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401866
add esp, 0x10
cmp word [ebp - 4], bx
je 0x484bd1
push 0xd
jmp 0x484bca
mov ecx, dword [ebx*4 + 0x5601d0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x484bc8
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x484bd1
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402357
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443109
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x46c060]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
lea ecx, [esp + 0xc]
call fcn.0040fccd
pop ecx
and dword [esp + 0x30], 0
cmp dword [esp + 0x1c], 0x10
lea eax, [esp + 8]
cmovae eax, dword [esp + 8]
push eax
mov ecx, esi
call fcn.0040269a
lea ecx, [esp + 8]
call fcn.00402286
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret

Function at 0x406557
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44444a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x46c060]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov edi, dword [ebp + 8]
and dword [esp + 0xc], 0
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call dword [eax + 0xb0]
and dword [esp + 0x38], 0
push eax
push edi
mov ecx, esi
call fcn.0041c418
push 0
push 1
lea ecx, [esp + 0x18]
call fcn.0040253d
mov eax, edi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret 4

Function at 0x406666
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ecf3
Function at 0x407d80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x120], eax
push esi
mov esi, ecx
cmp byte [esi + 0x2d0], 0
je 0x407ded
push 0x110
lea eax, [esp + 0x10]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [esp + 8]
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 5
jne 0x407ddd
mov ecx, esi
call fcn.00407a86
jmp 0x407def
cmp dword [esp + 0xc], 6
jb 0x407ded
mov ecx, esi
call fcn.004072c9
jmp 0x407def
xor eax, eax
mov ecx, dword [esp + 0x124]
pop esi
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret
Function at 0x40bf91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4444f2
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov eax, dword [0x46c060]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
or esi, 0xffffffff
cmp ebx, esi
jne 0x40bfdb
xor eax, eax
jmp 0x40c139
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40c004
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40c004
dec dword [edx]
mov edx, dword [edi + 0x20]
mov eax, ebx
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x40c139
cmp dword [edi + 0x50], 0
je 0x40c137
mov ecx, edi
call fcn.0040cf8e
cmp dword [edi + 0x40], 0
jne 0x40c034
push dword [edi + 0x50]
movsx eax, bl
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
jmp 0x40c137
push ecx
push ecx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1b], bl
call fcn.0040ca24
and dword [esp + 0x48], 0
cmp dword [esp + 0x34], 0x10
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x24]
cmovae edx, dword [esp + 0x24]
lea ecx, [esp + 0x24]
cmovae ecx, dword [esp + 0x24]
add eax, edx
push eax
push ecx
mov ecx, dword [edi + 0x40]
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x27]
push eax
lea eax, [edi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::out_int___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x40c12e
cmp eax, 1
jg 0x40c113
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x18]
cmp ecx, 0x10
lea eax, [esp + 0x20]
cmovae eax, edx
sub ebx, eax
mov dword [esp + 0x14], ebx
mov ebx, dword [ebp + 8]
je 0x40c0dd
push dword [edi + 0x50]
cmp ecx, 0x10
push dword [esp + 0x18]
lea eax, [esp + 0x28]
cmovae eax, edx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov ecx, dword [esp + 0x24]
add esp, 0x10
cmp ecx, eax
jne 0x40c12e
jmp 0x40c0e1
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x13]
mov byte [edi + 0x45], 1
cmp dword [esp + 0x1c], eax
jne 0x40c10f
test ecx, ecx
jne 0x40c048
cmp dword [esp + 0x30], 0x20
jae 0x40c12e
push ecx
push 8
lea ecx, [esp + 0x28]
call fcn.0040ca69
jmp 0x40c048
mov esi, ebx
jmp 0x40c12e
cmp eax, 3
jne 0x40c12e
movsx eax, byte [esp + 0x13]
push dword [edi + 0x50]
push eax
call dword [sym.imp.MSVCR110.dll_fputc]
pop ecx
cmp eax, esi
pop ecx
cmovne esi, ebx
lea ecx, [esp + 0x20]
call fcn.00402286
mov eax, esi
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret 4
Function at 0x40ce18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x443fbe
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x46c060]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x40cf41
cmp byte [esi + 0x45], bl
je 0x40cf41
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40ce78
xor al, al
jmp 0x40cf43
push ecx
push ecx
lea ecx, [esp + 0x20]
call fcn.0040ca24
mov dword [esp + 0x40], ebx
mov edi, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
cmp edi, 0x10
lea edx, [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
lea eax, [esi + 0x48]
push eax
call dword [sym.imp.MSVCP110.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, ebx
je 0x40cec8
dec eax
je 0x40cecb
dec eax
dec eax
jne 0x40cf34
inc eax
jmp 0x40cf32
mov byte [esi + 0x45], bl
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
cmp edi, 0x10
lea eax, [esp + 0x18]
cmovae eax, ecx
sub edx, eax
mov dword [esp + 0x10], edx
je 0x40cf0f
push dword [esi + 0x50]
lea eax, [esp + 0x1c]
push edx
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR110.dll_fwrite]
mov edx, dword [esp + 0x20]
add esp, 0x10
cmp edx, eax
jne 0x40cf30
mov edi, dword [esp + 0x2c]
cmp byte [esi + 0x45], 0
je 0x40cf2e
test edx, edx
jne 0x40ce8b
push ebx
push 8
lea ecx, [esp + 0x20]
call fcn.0040ca69
jmp 0x40ce87
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x18]
call fcn.00402286
mov al, bl
jmp 0x40cf43
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret

Function at 0x40eac0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x40ead2
push 0xd
pop eax
jmp 0x40eb04
push ebx
mov ecx, edx
push edi
lea edi, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x40eadb
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x40fbab
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.00437266
push 1
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
ret

Function at 0x412cf1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.00412c2e
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x412d11
mov eax, dword [edi]
jmp 0x412d13
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp + 8], eax
test eax, eax
je 0x412da3
push eax
call fcn.00440cda
mov dword [esi + 4], eax
cmp dword [edi + 0x14], 8
pop ecx
jb 0x412d37
mov edi, dword [edi]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x412da3
lea eax, [ebp + 8]
push eax
lea eax, [esi + 0x10]
push eax
push 0x44dc74
push dword [esi + 4]
mov dword [ebp + 8], ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x412da3
lea eax, [ebp + 8]
push eax
lea edi, [esi + 8]
push edi
push 0x4541e0
push dword [esi + 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x412d9e
mov eax, dword [ebp + 8]
cmp eax, 4
jb 0x412d9e
mov ecx, dword [edi]
shr eax, 2
mov dword [esi + 0xc], eax
mov ax, word [ecx]
mov word [esi], ax
mov ax, word [ecx + 2]
mov word [esi + 2], ax
xor ebx, ebx
inc ebx
jmp 0x412db5
cmp dword [esi + 4], ebx
je 0x412db5
push dword [esi + 4]
call dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete___void__]
pop ecx
mov dword [esi + 4], ebx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x41358d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46c060]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4135e7
cmp dword [ebp - 0x108], 2
jne 0x4135e7
cmp dword [ebp - 0x114], 6
jb 0x4135e7
mov al, 1
jmp 0x4135e9
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440d0e
leave
ret
Function at 0x4149b5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445ae0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1074
call fcn.00442aa0
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x1070], eax
push ebx
push esi
push edi
mov eax, dword [0x46c060]
xor eax, esp
push eax
lea eax, [esp + 0x1088]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push eax
push edi
mov dword [esp + 0x20], eax
lea eax, [ecx + 0x150]
push str.Bootstrapper::CreateProcess_module___S__args___S
push eax
mov dword [esp + 0x24], edx
call fcn.00402357
push 0x40
lea eax, [esp + 0x34]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0x1c
xor eax, eax
push 0xffe
push eax
mov word [esp + 0x84], ax
lea eax, [esp + 0x86]
push eax
mov dword [esp + 0x28], 0x44
call sub.MSVCR110.dll_memset
mov ebx, dword [sym.imp.MSVCR110.dll_wcscat_s]
add esp, 0xc
cmp word [edi], 0x22
mov esi, 0x800
lea eax, [esp + 0x7c]
je 0x414a97
push 0x4544ec
push esi
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x7c]
push edi
push esi
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x7c]
push 0x4544ec
push esi
push eax
call ebx
jmp 0x414aa0
push edi
push esi
push eax
call dword [sym.imp.MSVCR110.dll_wcscpy_s]
add esp, 0xc
lea eax, [esp + 0x7c]
push 0x4544f0
push esi
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x7c]
push dword [esp + 0x18]
push esi
push eax
call ebx
add esp, 0xc
lea eax, [esp + 0x64]
push edi
push str.CreateProcess__S_failed
push eax
call fcn.0040fe1f
add esp, 0xc
mov esi, eax
push dword [esp + 0x14]
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
push ecx
push ecx
push 0x20
push ecx
push ecx
push ecx
lea eax, [esp + 0x9c]
push eax
push ecx
mov dword [esp + 0x10b8], ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x414b0a
mov ecx, esi
call fcn.00437678
lea ecx, [esp + 0x64]
call fcn.00402286
mov ecx, dword [esp + 0x1088]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1070]
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x415040
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x46c060]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41509a
cmp dword [ebp - 0x108], 2
jne 0x41509a
cmp dword [ebp - 0x114], 5
jne 0x41509a
mov al, 1
jmp 0x41509c
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00440d0e
leave
ret
Function at 0x4152be
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445cd7
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov eax, dword [0x46c060]
xor eax, esp
push eax
lea eax, [esp + 0xa0]
mov dword fs:[0], eax
xor ebx, ebx
mov esi, vtable.ATL::CAccessToken.0
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xa8], ebx
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0xa8], 1
call fcn.00415224
mov byte [esp + 0xa8], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [esp + 0x10]
push ecx
push 1
mov edi, 0x2000a
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x415378
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x14]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x18], eax
jmp 0x415393
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0x10]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x415363
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x10]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x4153ba
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x24]
call dword [eax + 4]
mov eax, dword [esp + 0x10]
mov dword [esp + 0x28], eax
jmp 0x4153be
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x4153db
cmp dword [esp + 0x10], 0
setne bl
lea ecx, [esp + 0x34]
call fcn.004151a5
lea ecx, [esp + 0x24]
mov dword [esp + 0x24], esi
call fcn.0041527c
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], esi
call fcn.0041527c
mov al, bl
mov ecx, dword [esp + 0xa0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret
Function at 0x41677c
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x445d10
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x28a8
call fcn.00442aa0
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x28a4], eax
push esi
push edi
mov eax, dword [0x46c060]
xor eax, esp
push eax
lea eax, [esp + 0x28b8]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x18], 0x2880
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea esi, [esp + 0x2c]
cmp dword [esi + 0x1a0], 6
jne 0x41687d
movzx eax, byte [esi + 0x19b]
push eax
movzx eax, byte [esi + 0x19a]
push eax
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [esp + 0x34]
push str._02x__02x__02x__02x__02x__02x__02x__02x
push eax
call fcn.0040fe1f
and dword [esp + 0x28e8], 0
cmp dword [esp + 0x50], 0x10
lea eax, [esi + 0x10c]
push eax
lea ecx, [esp + 0x40]
cmovae ecx, dword [esp + 0x40]
push ecx
lea eax, [edi + 0x150]
push str.MAC:__s_Name:__s
push eax
call fcn.00402357
or dword [esp + 0x28f8], 0xffffffff
add esp, 0x38
lea ecx, [esp + 0x14]
call fcn.00402286
mov esi, dword [esi]
test esi, esi
jne 0x4167de
mov ecx, dword [esp + 0x28b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x28a4]
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret
Function at 0x419c6f
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4464ec
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x46c060]
xor eax, esp
mov dword [esp + 0x270], eax
push ebx
push esi
push edi
mov eax, dword [0x46c060]
xor eax, esp
push eax
lea eax, [esp + 0x288]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x150]
push str.deploySelf
push edi
call fcn.00402357
cmp byte [ebp + 8], 0
pop ecx
pop ecx
je 0x419e98
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
call fcn.00419c07
xor ebx, ebx
mov dword [esp + 0x290], ebx
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
push str.Bootstrapper::deploySelf___Final_file_path_S
push edi
call fcn.00402357
add esp, 0xc
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419e1a
push str._PathFileExists
push edi
call fcn.00402357
pop ecx
pop ecx
push str.Error_when_getting_bootstrapper_filename_for_selfDeploy
lea ecx, [esp + 0x60]
call fcn.0040221e
push 0x104
lea eax, [esp + 0x78]
push eax
push ebx
mov byte [esp + 0x29c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x419d5e
lea ecx, [esp + 0x5c]
call fcn.00437678
lea ecx, [esp + 0x5c]
mov byte [esp + 0x290], bl
call fcn.00402286
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
call fcn.0040cbb9
mov byte [esp + 0x290], 2
cmp dword [esp + 0x28], 8
lea eax, [esp + 0x14]
cmovae eax, dword [esp + 0x14]
push eax
push str.GetModuleFileName:__S
push edi
call fcn.00402357
add esp, 0xc
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
cmp dword [esp + 0x28], 8
lea edx, [esp + 0x14]
cmovae edx, dword [esp + 0x14]
push eax
mov ecx, edi
call fcn.00437a2f
cmp dword [esp + 0x44], 8
pop ecx
lea ecx, [esp + 0x2c]
cmovae ecx, dword [esp + 0x2c]
cmp dword [esp + 0x28], 8
push ecx
lea eax, [esp + 0x18]
cmovae eax, dword [esp + 0x18]
push eax
push str.Copy:_from___S_to__S
push edi
call fcn.00402357
add esp, 0x10
lea ecx, [esp + 0x14]
push ebx
push 1
mov byte [esp + 0x298], bl
call fcn.0040253d
jmp 0x419e27
push str.PathFileExists
push edi
call fcn.00402357
pop ecx
pop ecx
mov eax, dword [esi]
lea ecx, [esp + 0x44]
push ecx
mov ecx, esi
call dword [eax + 0xa0]
lea ecx, [esp + 0x5c]
mov byte [esp + 0x290], 3
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xdc]
mov byte [esp + 0x290], 4
cmp dword [esp + 0x58], 8
lea ecx, [esp + 0x44]
cmovae ecx, dword [esp + 0x44]
cmp dword [eax + 0x14], 8
jb 0x419e6b
mov eax, dword [eax]
push ecx
push eax
mov ecx, esi
call fcn.00418733
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.0040253d
push ebx
push 1
lea ecx, [esp + 0x4c]
call fcn.0040253d
push ebx
push 1
lea ecx, [esp + 0x34]
call fcn.0040253d
mov ecx, dword [esp + 0x288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x270]
xor ecx, esp
call fcn.00440d0e
mov esp, ebp
pop ebp
ret 4
Function at 0x419ebe
Capabilities:
Create directory

Disassembly:
push 0x1c
mov eax, 0x445763
call fcn.00442b30
mov esi, ecx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x419f0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x419f0b
push esi
lea eax, [ebp - 0x28]
push str.CreateDirectory__S_failed
push eax
call fcn.0040fe1f
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, eax
call fcn.00437678
lea ecx, [ebp - 0x28]
call fcn.00402286
call fcn.00442adf
ret