joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471df0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c1782
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
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], 0x4d9324
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.00402310
lea esi, [ebx + 4]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.0041b660
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x471e92
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.004021a0
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.00419490
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 [0x4eff9c]
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 0x477f00
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.0047d110
test eax, eax
jne 0x477f29
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea ecx, [ebp - 0xc]
push ecx
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x477f77
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
cmp eax, ebx
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
Function at 0x4783b0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c497d
mov eax, dword fs:[0]
push eax
sub esp, 0x454
mov eax, dword [0x4eb6b8]
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 0x478406
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.004a4260
add esp, 0xc
push 0x206
lea eax, [ebp - 0x422]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x424], dx
call fcn.004a4260
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.00419690
mov dword [ebp - 4], 1
mov ecx, esi
call fcn.00477760
mov byte [ebp - 4], bl
cmp dword [ebp - 0x42c], 8
jb 0x4784b3
mov edx, dword [ebp - 0x440]
push edx
call fcn.0049ca60
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 0x478599
lea edx, [ebp - 0x448]
push edx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x478599
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 0x47852c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x478599
mov eax, dword [ebp - 0x444]
push eax
call fcn.0049d400
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x478599
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 0x478590
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.0049cbfd
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 0x4785b1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
mov esi, edi
call fcn.00419690
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.0049ca6b
mov esp, ebp
pop ebp
ret
Function at 0x47a580
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c2f83
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov al, byte [esi + 0x14]
test al, al
jne 0x47a6e5
xor ebx, ebx
push ebx
push 4
push esi
push 0x47b8a0
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
cmp eax, 0xffffffff
je 0x47a6e5
mov ecx, dword [esi + 0x18]
push ecx
mov byte [esi + 0x14], 1
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea edx, [ebp - 0x100]
push edx
call fcn.00414a60
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x100]
push str.CreateThread__OK.
push eax
call fcn.0041d7d0
add esp, 8
push 0x1c
mov esi, 0xf
push str.CAdapterBase::AdapterStartup
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.004190e0
mov byte [ebp - 4], 1
push esi
push str.AdapterBase.cpp
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.004190e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x100]
push edx
call fcn.00414b60
mov byte [ebp - 4], 3
push eax
push 0x2a
push 3
call fcn.00413e40
push eax
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.00471900
mov byte [ebp - 4], 2
cmp dword [ebp - 0x50], 8
jb 0x47a686
mov eax, dword [ebp - 0x64]
push eax
call fcn.0049ca60
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], 0x10
jb 0x47a6ac
mov edx, dword [ebp - 0x48]
push edx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
mov byte [ebp - 4], bl
cmp dword [ebp - 0x18], 0x10
jb 0x47a6ca
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x100]
call fcn.00403e50
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.0049ca6b
mov esp, ebp
pop ebp
ret
Function at 0x47d070
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0268
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4eb6b8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi], vtable.CAdapterChrome.0
xor ebx, ebx
mov dword [ebp - 4], ebx
mov al, byte [esi + 0x14]
test al, al
jne 0x47d0af
mov ecx, dword [esi + 0x18]
push ecx
jmp 0x47d0dc
mov eax, dword [esi + 0x18]
mov byte [esi + 0x14], bl
cmp eax, ebx
je 0x47d0e5
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x47d0e5
mov edx, dword [esi + 0x18]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], ebx
mov dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.0047a4e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x47d110
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.004a4260
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 0x47d1ca
mov eax, dword [ebp - 0x114]
cmp eax, 5
jne 0x47d178
cmp dword [ebp - 0x110], 1
jne 0x47d1ca
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x47d1ca
mov eax, dword [ebp - 0x110]
test eax, eax
jne 0x47d19a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x47d1b2
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x47d1ca
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
or eax, 0xffffffff
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret
Function at 0x47dc40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0238
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4eb6b8]
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.00416180
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
jne 0x47dca3
push 0x14
push str.dwIr23Cew_T_R471_
lea ecx, [ebp - 0x2c]
call fcn.004190e0
cmp edi, ebx
jne 0x47dcca
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x47dcc0
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x18], esi
xor eax, eax
jmp 0x47dd62
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 0x47dd0d
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x98]
call fcn.00483450
cmp byte [ebp - 0x30], bl
jne 0x47dd2c
mov ecx, esi
mov byte [ebp - 0x30], 1
call fcn.00483500
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push ecx
push edx
mov ecx, edi
call fcn.0047da50
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x47dd59
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049ca60
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.0049ca6b
mov esp, ebp
pop ebp
ret
Function at 0x47e190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4de850
push 0x4a67d0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4eb6b8]
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 0x47e314
mov ecx, eax
and ecx, 0x80000003
jns 0x47e1ea
dec ecx
or ecx, 0xfffffffc
inc ecx
jne 0x47e314
mov dword [ebp - 4], edx
mov dword [ebp - 0x28], edx
cmp edx, eax
jge 0x47e219
mov cl, byte [edx + ebx]
cmp cl, 0x80
jae 0x47e30d
movzx ecx, cl
cmp byte [ecx + 0x4ecfe8], 0xff
je 0x47e30d
inc edx
jmp 0x47e1f3
push eax
call fcn.0049c21e
mov dword [ebp - 0x24], eax
mov edx, dword [ebp + 0xc]
push edx
push 0
push eax
call fcn.004a4260
add esp, 0x10
cmp edi, dword [ebp + 0xc]
jge 0x47e2dd
movzx eax, byte [edi + ebx]
mov cl, byte [eax + 0x4ecfe8]
inc edi
mov dword [ebp - 0x1c], edi
movzx edx, byte [edi + ebx]
inc edi
mov dword [ebp - 0x1c], edi
movzx eax, byte [edx + 0x4ecfe8]
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 0x47e2e0
movzx ecx, cl
movzx ecx, byte [ecx + 0x4ecfe8]
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 0x47e2e0
movzx eax, al
mov al, byte [eax + 0x4ecfe8]
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 0x47e231
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 0x483420
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x48bd40
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 0x48bd53
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 0x48bdcd
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.004a2500
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 0x48bda1
sub eax, edi
jmp 0x48bda3
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x48bd92
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 0x48bdc0
sub eax, edi
jmp 0x48bdc2
xor eax, eax
dec edx
mov word [ecx], ax
jne 0x48bdb1
add ebx, edi
mov dword [ebp - 4], ebx
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x48be82
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 0x48bdf3
mov ebx, ecx
test ebx, ebx
je 0x48be46
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x48be15
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.0048e080
jmp 0x48be2e
cmp eax, 2
jne 0x48be34
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x48be27
xor eax, eax
jmp 0x48be31
mov edx, ebx
call fcn.0048e2f0
mov edx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.004a2500
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 0x48be6e
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 0x48be82
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x48bd50
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49ca6b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4eb6b8]
jne 0x49ca75
repz ret
jmp fcn.004a432e

Function at 0x4abfe5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4eb6b8]
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.004a4c31
and dword [ebp - 0x14], 0
cmp dword [0x4efef4], 0
mov dword [ebp - 0x18], eax
jne 0x4ac098
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4ac140
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4ac140
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4efef4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4efef8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4efefc], eax
call edi
push eax
call esi
mov dword [0x4eff04], eax
test eax, eax
je 0x4ac098
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4eff00], eax
mov eax, dword [0x4eff00]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4ac0f1
cmp dword [0x4eff04], ecx
je 0x4ac0f1
push eax
call esi
push dword [0x4eff04]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4ac0f1
test ebx, ebx
je 0x4ac0f1
call edi
test eax, eax
je 0x4ac0e8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4ac0e8
test byte [ebp - 8], 1
jne 0x4ac0f1
or dword [ebp + 0x10], 0x200000
jmp 0x4ac124
mov eax, dword [0x4efef8]
cmp eax, dword [ebp - 0x18]
je 0x4ac124
push eax
call esi
test eax, eax
je 0x4ac124
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4ac124
mov eax, dword [0x4efefc]
cmp eax, dword [ebp - 0x18]
je 0x4ac124
push eax
call esi
test eax, eax
je 0x4ac124
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4efef4]
call esi
test eax, eax
je 0x4ac140
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4ac142
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049ca6b
leave
ret
Function at 0x1004cd0
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 8]
mov dword [ebp - 8], 0xfeff
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1004d10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1004d52
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp - 8]
push eax
push ebx
call esi
test eax, eax
je 0x1004d06
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, di
jne 0x1004d2e
sub eax, edx
push edi
sar eax, 1
lea ecx, [ebp - 4]
push ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push ebx
call esi
test eax, eax
je 0x1004d06
mov esi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x1004d67
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], edi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x1004da1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x1004e0b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x1004d97
lea ecx, [ebp - 4]
push ecx
push eax
call sub.netutils.dll_NetApiBufferAllocate
mov ebx, eax
cmp ebx, edi
jne 0x1004e0b
push edi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1004d97
push esi
push dword [ebp + 0xc]
call sub.netutils.dll_NetApiBufferAllocate
mov ebx, eax
cmp ebx, edi
jne 0x1004e0b
push dword [ebp + 0xc]
push edi
push dword [esi]
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add eax, 0xfffffffe
push eax
mov eax, dword [ebp - 4]
add eax, 2
push eax
push dword [esi]
call sub.msvcrt.dll_memcpy
add esp, 0x18
push dword [ebp - 4]
call sub.netutils.dll_NetApiBufferFree
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8