joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5771428
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
xor esi, esi
push ebp
mov edi, 0x10000
mov dword [esp + 0x10], esi
cmp dword [0x57814c8], esi
jne 0x5771460
push 4
mov dword [0x57814cc], edi
push 0x1000
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [0x57814c8], eax
cmp eax, esi
je 0x57714a0
push esi
mov eax, dword [0x57814cc]
push eax
push dword [0x57814c8]
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x57714a7
push 0x8000
mov eax, dword [0x57814c8]
add dword [0x57814cc], 0x2000
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [0x57814c8], esi
jmp 0x577143a
xor eax, eax
jmp 0x57715ec
mov ebp, dword [0x57814c8]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], 0
cmp dword [ebp + 0x3c], 0
je 0x57714f3
push 1
lea eax, [ebp + 0x38]
lea ecx, [esp + 0x1c]
push eax
push ecx
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
push 0x5c
push dword [esp + 0x20]
call fcn.05771ee0
add esp, 8
test eax, eax
je 0x57714ed
inc eax
jmp 0x57714f8
mov eax, dword [esp + 0x1c]
jmp 0x57714f8
mov eax, str.System_Process
mov edi, eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [ebx + 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 0x10], 0
mov ecx, dword [ebp + 0x44]
mov dword [ebx], ecx
lea ecx, [ebx + 8]
mov eax, dword [ebp + 0x48]
mov dword [ebx + 4], eax
lea eax, [ebp + 0x20]
mov edx, dword [eax]
mov esi, dword [eax + 4]
mov dword [ecx], edx
mov dword [ecx + 4], esi
mov eax, dword [ebp + 0x58]
mov dword [ebx + 0x70], eax
mov edx, dword [ebp + 0x5c]
mov dword [ebx + 0x74], edx
lea edi, [ebx + 0x84]
mov ecx, dword [ebp + 0x60]
mov dword [ebx + 0x78], ecx
cmp dword [esp + 0x2c], 0
mov eax, dword [ebp + 0x64]
mov dword [ebx + 0x7c], eax
mov edx, dword [ebp + 0x68]
mov dword [ebx + 0x80], edx
mov eax, dword [ebp + 4]
mov dword [edi], eax
je 0x57715b0
shl eax, 3
push eax
call fcn.05771e30
add esp, 4
mov edx, eax
mov dword [ebx + 0x88], eax
test edx, edx
je 0x57715ba
mov esi, dword [edi]
lea ecx, [ebp + 0x88]
mov eax, esi
dec esi
test eax, eax
je 0x57715ba
mov eax, dword [ecx + 0x34]
add ecx, 0x40
mov dword [edx], eax
add edx, 8
mov edi, dword [ecx - 0x1c]
mov eax, esi
dec esi
mov dword [edx - 4], edi
test eax, eax
jne 0x5771596
jmp 0x57715ba
mov dword [ebx + 0x88], 0
add ebx, 0x90
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x28]
je 0x57715e8
mov eax, dword [ebp]
test eax, eax
je 0x57715e8
add dword [esp + 0x14], eax
mov ebp, dword [esp + 0x14]
add ebp, dword [0x57814c8]
jmp 0x57714b9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x10
ret 0xc
Function at 0x5771608
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x5771633
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_failed_with__d_n
jmp 0x5771699
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x5771656
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LookupPrivilegeValue_failed_with__d_n
jmp 0x5771699
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x14], ecx
push eax
push eax
push 0x10
push edx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
mov eax, 1
jne 0x57716a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.AdjustTokenPrivileges_failed_with__d_n
call fcn.05771c20
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x57716a7
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
jne 0x57716bf
cmp dword [esi + 0x14], 0
jne 0x5771711
push dword [esi]
push 0
mov ebx, 0x1f0fff
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x5771711
push dword [esi]
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x57716eb
xor eax, eax
jmp 0x57717ac
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
jne 0x5771706
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x57717ac
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x57717a7
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.USER32.dll_GetThreadDesktop]
push 0x2000000
mov dword [ebp - 8], eax
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_OpenWindowStationA]
mov edi, eax
test edi, edi
jne 0x5771744
xor eax, eax
jmp 0x57717ac
push edi
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push 0x2000000
push 0
push 0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_OpenDesktopA]
mov ebx, eax
test ebx, ebx
jne 0x5771767
xor eax, eax
jmp 0x57717ac
push ebx
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push 0
push 0
push 0x10
push dword [esi + 0x14]
call dword [sym.imp.USER32.dll_PostMessageA]
cmp ebx, dword [ebp - 8]
je 0x5771792
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_SetThreadDesktop]
push ebx
call dword [sym.imp.USER32.dll_CloseDesktop]
cmp dword [ebp - 4], edi
je 0x57717a7
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
push edi
call dword [sym.imp.USER32.dll_CloseWindowStation]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x5771ad0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5776580
push 0x5772030
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov ecx, eax
mov dl, ah
and ecx, 0xff
shr eax, 0x10
mov dword [0x5777518], edx
mov dword [0x5777514], ecx
mov dword [0x577750c], eax
shl ecx, 8
add ecx, edx
mov dword [0x5777510], ecx
call fcn.05772e80
test eax, eax
jne 0x5771b3a
push 0x1c
call fcn.05771bf0
add esp, 4
mov dword [ebp - 4], 0
call fcn.05772ca0
call fcn.05772c90
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x5782604], eax
call fcn.05772840
mov dword [0x5777030], eax
test eax, eax
je 0x5771b6d
cmp dword [0x5782604], 0
jne 0x5771b77
push 0xffffffffffffffff
call fcn.05772230
add esp, 4
call fcn.057725c0
call fcn.057724d0
call fcn.05772200
mov eax, dword [0x5777528]
mov dword [0x577752c], eax
push eax
mov eax, dword [0x5777520]
push eax
mov eax, dword [0x577751c]
push eax
call section..text
add esp, 0xc
push eax
call fcn.05772230
jmp 0x5771bd4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5772270
Capabilities:
Terminate process

Disassembly:
cmp dword [0x5777548], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x577228e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x5777544], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x5777540], bl
jne 0x57722e8
cmp dword [0x57815e8], 0
je 0x57722d6
mov edi, dword [0x57815e4]
sub edi, 4
cmp edi, dword [0x57815e8]
jb 0x57722d6
mov eax, dword [edi]
test eax, eax
je 0x57722cb
call eax
sub edi, 4
cmp edi, dword [0x57815e8]
jae 0x57722c3
push 0x577701c
push 0x5777014
call fcn.05772320
add esp, 8
push 0x5777024
push 0x5777020
call fcn.05772320
add esp, 8
test ebx, ebx
jne 0x577230f
mov dword [0x5777548], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x5772840
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x57775e0], ebx
jne 0x577288f
call esi
cmp eax, ebx
mov edi, eax
je 0x577286d
mov dword [0x57775e0], 1
jmp 0x577288f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x5772885
mov dword [0x57775e0], 2
jmp 0x577288f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x57775e0], 1
jne 0x577293e
test edi, edi
jne 0x57728b2
call esi
mov edi, eax
test edi, edi
jne 0x57728b2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x57728cc
add esi, 2
cmp word [esi], 0
jne 0x57728ba
add esi, 2
cmp word [esi], 0
jne 0x57728ba
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x577292d
push ebp
call fcn.05771e30
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x577292d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x577291c
push ebx
call fcn.05774bc0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x57775e0], 2
jne 0x57729c2
test ebx, ebx
jne 0x5772961
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x5772961
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x5772976
inc ebp
cmp byte [ebp], 0
jne 0x5772968
inc ebp
cmp byte [ebp], 0
jne 0x5772968
sub ebp, ebx
inc ebp
push ebp
call fcn.05771e30
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x577299b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x5772f00
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x5777810
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x5772f27
add eax, 8
inc ecx
cmp eax, 0x57778a0
jb 0x5772f18
cmp dword [ecx*8 + 0x5777810], edx
lea ebx, [ecx*8]
jne 0x57730eb
cmp dword [0x577703c], 1
je 0x57730a7
cmp dword [0x577703c], 0
jne 0x5772f5e
cmp dword [0x5777040], 1
je 0x57730a7
cmp edx, 0xfc
je 0x57730eb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x5772f9b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x5772fdf
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x5776860
push ebp
call fcn.05774cb0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x5776840
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x5777814]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.05774c10
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x57814e0], 0
je 0x57730bd
mov eax, dword [0x57814e0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x57730c7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x5777814]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x57752f0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x57815e0], edx
push ebx
push esi
push edi
push ebp
jbe 0x57754f7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x57814e0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x57754f7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x5775359
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x577536a
push 2
push 0
push edx
call fcn.05775530
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x5775406
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x577543f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x57753cd
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x57753bb
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x57753a2
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5775435
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x577538d
jmp 0x577543f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5775435
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x577543f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x57754e6
cmp dword [esp + 0x10], 0
je 0x5775498
cmp dword [esp + 0x10], 5
jne 0x577547b
mov dword [0x5777500], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x5777504], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.05775830
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x57754c2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x57754c2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x5777500], 0x1c
mov dword [0x5777504], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x5777500], 9
mov dword [0x5777504], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x9a3108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009a3258
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9a312e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a311a
add dl, dl
jne 0x9a3139
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a318c
xor eax, eax
add dl, dl
jne 0x9a3146
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9a322d
add dl, dl
jne 0x9a3155
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a3160
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a316b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a3176
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9a3182
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9a3125
mov eax, 1
add dl, dl
jne 0x9a319a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9a31a5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a3191
sub eax, ebx
mov ebx, 1
jne 0x9a31d8
mov ecx, 1
add dl, dl
jne 0x9a31be
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a31c9
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a31b5
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a3125
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9a31ef
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9a31fa
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9a31e6
cmp eax, 0x7d00
jae 0x9a321d
cmp eax, 0x500
jb 0x9a3218
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a3125
cmp eax, 0x7f
ja 0x9a3220
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9a3125
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9a324e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9a3125
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401006
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42b008]
jne 0x401010
repz ret
jmp fcn.0040189a

Function at 0x40923e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004053ae
and dword [ebp - 4], 0
cmp dword [0x42d774], 0
mov ebx, eax
jne 0x4092ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4093a0
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4093a0
push eax
call fcn.0040533c
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42d774], eax
call esi
push eax
call fcn.0040533c
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42d778], eax
call esi
push eax
call fcn.0040533c
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42d77c], eax
call esi
push eax
call fcn.0040533c
pop ecx
mov dword [0x42d784], eax
test eax, eax
je 0x4092ef
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040533c
pop ecx
mov dword [0x42d780], eax
mov eax, dword [0x42d780]
cmp eax, ebx
je 0x409347
cmp dword [0x42d784], ebx
je 0x409347
push eax
call fcn.004053b7
push dword [0x42d784]
mov esi, eax
call fcn.004053b7
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x409347
test edi, edi
je 0x409347
call esi
test eax, eax
je 0x40933e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40933e
test byte [ebp - 0xc], 1
jne 0x409347
or dword [ebp + 0x10], 0x200000
jmp 0x409380
mov eax, dword [0x42d778]
cmp eax, ebx
je 0x409380
push eax
call fcn.004053b7
pop ecx
test eax, eax
je 0x409380
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409380
mov eax, dword [0x42d77c]
cmp eax, ebx
je 0x409380
push eax
call fcn.004053b7
pop ecx
test eax, eax
je 0x409380
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d774]
call fcn.004053b7
pop ecx
test eax, eax
je 0x4093a0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4093a2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40b760
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x2ae61b4], 0x930
jne 0x40b77d
push str.gukegojigofacifiyefikaz
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
cmp dword [0x2ae61b4], 0x114e
mov eax, dword [ebp + 8]
mov dword [0x2ae5ed0], eax
jne 0x40b7a3
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
lea ecx, [ebp - 0x1c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov esp, ebp
pop ebp
ret
Function at 0x1b003952
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1b0070dc]
jne 0x1b00395c
repz ret
jmp fcn.1b003ecc