joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460c70
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov ax, word [ebp - 0x28]
cmp ax, 6
je 0x460c96
cmp ax, 9
je 0x460c96
xor al, al
mov esp, ebp
pop ebp
ret
push esi
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x460ce0
test edi, edi
jne 0x460cc7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x460cc9
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push eax
call esi
test eax, eax
jne 0x460ce0
xor edx, edx
test eax, eax
sete al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
xor edx, edx
test eax, eax
sete al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x460cf0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00483260
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x460daa
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x460d58
cmp dword [ebp - 0x110], 1
jne 0x460daa
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x460daa
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x460d7a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x460d92
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x460daa
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret
Function at 0x4627e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fb62
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4bf6bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea eax, [ebx + 0x60]
mov dword [ebx], 0x4b1f0c
mov dword [ebp - 0x14], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], ecx
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov eax, 1
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.004021a0
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00408b30
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x462882
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.00402030
mov dword [ebp - 4], 4
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.00408370
mov byte [ebp - 4], 5
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x4c388c]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x464370
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a28c3
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], esi
call fcn.004578c0
lea edx, [ebp - 0x2c]
mov ecx, eax
call fcn.0046c3f0
mov ebx, 1
mov dword [ebp - 4], ebx
push 0x11
mov eax, str.liebaoUser_Data
lea ecx, [ebp - 0x2c]
call fcn.00409c50
cmp dword [ebp - 0x1c], esi
je 0x464415
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x4643dc
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
sete al
test al, al
je 0x464415
xor eax, eax
push esi
lea ecx, [ebp - 0x2c]
mov word [ebp - 0x48], ax
push ecx
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
call fcn.00407860
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
jmp 0x464443
mov dword [ebp - 0x54], esi
xor edx, edx
push esi
mov eax, 0x4a7b2c
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], 7
mov word [ebp - 0x64], dx
call fcn.00408600
mov eax, esi
mov dword [ebp - 4], 3
mov ebx, 2
xor esi, esi
mov dword [ebp - 0x68], ebx
mov dword [edi + 0x10], esi
mov esi, dword [ebp - 0x6c]
mov dword [edi + 0x14], 7
xor ecx, ecx
mov word [edi], cx
mov edi, eax
call fcn.00408590
or ebx, 4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 4], 2
test bl, 2
je 0x46449e
and ebx, 0xfffffffd
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x50], 8
jb 0x464489
mov edx, dword [ebp - 0x64]
push edx
call fcn.0047bd91
add esp, 4
xor edi, edi
mov esi, 7
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], edi
mov word [ebp - 0x64], ax
jmp 0x4644a3
xor edi, edi
lea esi, [edi + 7]
mov dword [ebp - 4], 1
test bl, 1
je 0x4644d3
and ebx, 0xfffffffe
mov dword [ebp - 0x68], ebx
cmp dword [ebp - 0x34], 8
jb 0x4644c7
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.0047bd91
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], dx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x18], 8
jb 0x4644e9
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047bd91
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret
Function at 0x467e20
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a22cd
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x450], ebx
mov eax, dword [eax]
mov dword [ebp - 0x460], edi
mov dword [ebp - 0x44c], eax
cmp eax, ebx
jne 0x467e76
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x44c], eax
push 0x206
lea ecx, [ebp - 0x21a]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x21c], ax
call fcn.00483260
add esp, 0xc
push 0x206
lea eax, [ebp - 0x422]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x424], dx
call fcn.00483260
mov eax, 0x104
add esp, 0xc
mov dword [ebp - 0x458], eax
mov dword [ebp - 0x454], eax
xor ecx, ecx
push 0x10
mov eax, str.SeDebugPrivilege
lea esi, [ebp - 0x440]
mov dword [ebp - 0x448], ebx
mov dword [ebp - 0x444], ebx
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], cx
call fcn.00408600
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.004674b0
mov byte [ebp - 4], bl
cmp dword [ebp - 0x42c], 8
jb 0x467f23
mov edx, dword [ebp - 0x440]
push edx
call fcn.0047bd91
add esp, 4
mov ecx, dword [ebp - 0x44c]
push ecx
push ebx
xor eax, eax
push 0x400
mov dword [ebp - 0x42c], 7
mov dword [ebp - 0x430], ebx
mov word [ebp - 0x440], ax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x468009
lea edx, [ebp - 0x448]
push edx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x468009
mov ecx, dword [ebp - 0x444]
mov edx, dword [ebp - 0x448]
lea eax, [ebp - 0x444]
push eax
push ecx
push ebx
push 1
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x467f9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x468009
mov eax, dword [ebp - 0x444]
push eax
call fcn.0047e6d7
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x468009
mov edx, dword [ebp - 0x444]
mov eax, dword [ebp - 0x448]
lea ecx, [ebp - 0x444]
push ecx
push edx
push esi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x468000
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x458]
push edx
lea eax, [ebp - 0x424]
push eax
mov eax, dword [esi]
lea ecx, [ebp - 0x454]
push ecx
lea edx, [ebp - 0x21c]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
push esi
call fcn.0047c501
add esp, 4
xor ecx, ecx
lea eax, [ebp - 0x21c]
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x468021
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
mov esi, edi
call fcn.00408600
mov dword [ebp - 4], ebx
mov dword [ebp - 0x450], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret
Function at 0x469700
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49d7b8
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
push 0xffffffffffffffff
push ebx
mov esi, 0xf
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407280
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x469763
push 0x14
push str.dwIr23Cew_T_R471_
lea ecx, [ebp - 0x2c]
call fcn.00407f60
cmp edi, ebx
jne 0x46978a
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x469780
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x18], esi
xor eax, eax
jmp 0x469822
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 0x30], bl
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x98], 0x67452301
mov dword [ebp - 0x94], 0xefcdab89
mov dword [ebp - 0x90], 0x98badcfe
mov dword [ebp - 0x8c], 0x10325476
jae 0x4697cd
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x98]
call fcn.0046d1d0
cmp byte [ebp - 0x30], bl
jne 0x4697ec
mov ecx, esi
mov byte [ebp - 0x30], 1
call fcn.0046d280
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push ecx
push edx
mov ecx, edi
call fcn.00469510
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x469819
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047bd91
add esp, 4
mov dword [ebp - 0x18], 0xf
mov eax, esi
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x1c], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047bd9c
mov esp, ebp
pop ebp
ret
Function at 0x469c50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4b65d0
push 0x485720
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4bf6bc]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
xor edx, edx
mov dword [esi], edx
xor edi, edi
mov eax, dword [ebp + 0xc]
cmp eax, 4
jl 0x469dd4
mov ecx, eax
and ecx, 0x80000003
jns 0x469caa
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x469dd4
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], edx
cmp edx, eax
jge 0x469cd9
mov cl, byte [edx + ebx]
cmp cl, 0x80
jae 0x469dcd
movzx ecx, cl
cmp byte [ecx + 0x4c0d70], 0xff
je 0x469dcd
inc edx
jmp 0x469cb3
push eax
call fcn.0047bb12
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
push edx
push 0
push eax
call fcn.00483260
add esp, 0x10
cmp edi, dword [ebp + 0xc]
jge 0x469d9d
movzx eax, byte [edi + ebx]
mov cl, byte [eax + 0x4c0d70]
inc edi
mov dword [ebp - 0x1c], edi
movzx edx, byte [edi + ebx]
inc edi
mov dword [ebp - 0x1c], edi
movzx eax, byte [edx + 0x4c0d70]
mov ebx, eax
shr ebx, 4
and ebx, 3
movzx ecx, cl
add ecx, ecx
add ecx, ecx
or ebx, ecx
mov ecx, dword [esi]
mov edx, dword [ebp - 0x24]
mov byte [edx + ecx], bl
inc dword [esi]
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
mov ebx, dword [ebp + 8]
mov cl, byte [edi + ebx]
inc edi
mov dword [ebp - 0x1c], edi
cmp cl, 0x3d
je 0x469da0
movzx ecx, cl
movzx ecx, byte [ecx + 0x4c0d70]
mov dword [ebp - 0x2c], ecx
shr ecx, 2
and ecx, 0xf
and eax, 0xf
shl eax, 4
or ecx, eax
mov eax, dword [ebp - 0x20]
mov byte [eax + edx], cl
inc dword [esi]
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
mov al, byte [edi + ebx]
inc edi
mov dword [ebp - 0x1c], edi
cmp al, 0x3d
je 0x469da0
movzx eax, al
mov al, byte [eax + 0x4c0d70]
mov ecx, dword [ebp - 0x2c]
and ecx, 3
shl ecx, 6
movzx eax, al
or ecx, eax
mov eax, dword [ebp - 0x20]
mov byte [eax + edx], cl
inc dword [esi]
jmp 0x469cf1
mov edx, dword [ebp - 0x24]
mov dword [ebp - 4], 0xfffffffe
mov eax, edx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x471530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, dword [esi + 0x2c]
mov dword [ebp - 0xc], edi
jmp 0x471543
mov edi, dword [ebp - 0xc]
mov ebx, dword [esi + 0x3c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub ebx, eax
lea edx, [edi + ecx - 0x106]
mov dword [ebp - 4], ebx
cmp eax, edx
jb 0x4715bd
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.004806e0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x471591
sub eax, edi
jmp 0x471593
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x471582
mov ecx, dword [esi + 0x40]
mov edx, edi
lea ecx, [ecx + edi*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, edi
jb 0x4715b0
sub eax, edi
jmp 0x4715b2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x4715a1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x471672
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], edx
cmp ebx, ecx
jbe 0x4715e3
mov ebx, ecx
test ebx, ebx
je 0x471636
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x471605
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.004773b0
jmp 0x47161e
cmp eax, 2
jne 0x471624
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x471617
xor eax, eax
jmp 0x471621
mov edx, ebx
call fcn.00477620
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.004806e0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x47165e
mov edx, dword [esi + 0x6c]
add edx, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x471672
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x471540
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47bd9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bf6bc]
jne 0x47bda6
repz ret
jmp fcn.0048332e

Function at 0x48b020
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bf6bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00483e51
and dword [ebp - 0x14], 0
cmp dword [0x4c37d4], 0
mov dword [ebp - 0x18], eax
jne 0x48b0d3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x48b17b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x48b17b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4c37d4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4c37d8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4c37dc], eax
call edi
push eax
call esi
mov dword [0x4c37e4], eax
test eax, eax
je 0x48b0d3
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4c37e0], eax
mov eax, dword [0x4c37e0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x48b12c
cmp dword [0x4c37e4], ecx
je 0x48b12c
push eax
call esi
push dword [0x4c37e4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x48b12c
test ebx, ebx
je 0x48b12c
call edi
test eax, eax
je 0x48b123
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x48b123
test byte [ebp - 8], 1
jne 0x48b12c
or dword [ebp + 0x10], 0x200000
jmp 0x48b15f
mov eax, dword [0x4c37d8]
cmp eax, dword [ebp - 0x18]
je 0x48b15f
push eax
call esi
test eax, eax
je 0x48b15f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x48b15f
mov eax, dword [0x4c37dc]
cmp eax, dword [ebp - 0x18]
je 0x48b15f
push eax
call esi
test eax, eax
je 0x48b15f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4c37d4]
call esi
test eax, eax
je 0x48b17b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x48b17d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047bd9c
leave
ret
Function at 0x4af728
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4af7ff
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4af81c
push ebx
push 0x4af82c
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004087c4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00405884
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004084ec
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x4af7aa
mov ax, 0x83
call fcn.004af34c
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle
call fcn.004af6fc
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
cmp eax, 1
je 0x4af7b3
call fcn.004af6fc
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af806
lea eax, [ebp - 4]
call fcn.00407a20
ret

Function at 0x4af91c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4af9e7
jmp 0x4af9db
cmp dword [esi + 0x10], 0x1000
jne 0x4af9c7
test byte [esi + 0x15], 1
jne 0x4af9c7
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4af978
cmp ebp, 2
je 0x4af978
cmp ebp, 0x10
je 0x4af978
cmp ebp, 0x20
jne 0x4af994
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4af994
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4af9a5
mov eax, dword [esi]
add eax, ebx
call fcn.004af914
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4af998
cmp byte [esp + 4], 0
je 0x4af9c7
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4af9e7
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4af94d
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53