joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fe70
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x477af3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00469676
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046ede9
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.00470341
test eax, eax
je 0x43ff8c
mov ecx, dword [esp + 0x3c]
call fcn.0046ee16
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43ff50
push edi
mov ecx, esi
call fcn.0046c3d1
mov ecx, esi
call fcn.004400f0
cmp dword [esp + 0x38], 1
jne 0x43ff85
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046c53b
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4429b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4429e3
push esi
call fcn.00445ab0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4429dc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x442a69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x442a52
mov eax, dword [esi + 8]
test eax, eax
je 0x442a07
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x442a4e
cmp eax, 2
je 0x442a52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4429fa
cmp eax, 3
je 0x442a2d
cmp eax, 1
jne 0x4429fa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4429fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4429fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00442a90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x442a78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00442a90
add esp, 4
pop esi
ret

Function at 0x46a46c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a4a4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00468523
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004684fb
jmp 0x46a4b0
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46bb5a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46bb9c
call fcn.0047184d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46bb9c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46bb93
xor eax, eax
jmp 0x46bba4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046bbaa
pop edi
pop esi
pop ebx
ret 4

Function at 0x471d7d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x471dab
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471dc9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471ce3
jmp 0x471dc9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471dc9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471ce3
test edi, edi
mov eax, edi
jne 0x471db3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x45a610
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4604cc]
cmp dword [eax + 0x28], 0
jne 0x45a628
xor eax, eax
jmp 0x45a757
mov ecx, dword [0x46043c]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 0xe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov dword [0x460430], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [0x46042c], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x10], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x18], eax
mov ecx, dword [0x460430]
mov dword [ebp - 0x40], ecx
mov edx, dword [0x46042c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x40]
shr eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x18]
sub ecx, dword [ebp - 8]
shr ecx, 1
mov dword [ebp - 0x1c], ecx
push 0
mov edx, dword [0x4604b8]
push edx
push 0
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x40]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000000
push 0x45e680
push 0x45e6d0
push 0x88
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dword [0x460428], ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_GetDC]
push eax
call fcn.0045a550
push 5
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x45a5e0
mov edx, dword [0x4604cc]
mov eax, dword [edx + 0x34]
imul eax, eax, 0x3e8
push eax
push 0
push 0
call dword [sym.imp.USER32.dll_SetTimer]
mov dword [0x460434], eax
push 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x45a757
cmp dword [ebp - 0x38], 0x12
jne 0x45a74b
mov dword [0x460444], 0
call fcn.0045a760
xor eax, eax
jmp 0x45a757
lea edx, [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x45a71c
mov esp, ebp
pop ebp
ret 4

Function at 0x45bb30
Capabilities:
Read .ini file
Read and send data from client to server
Send data
Send data on socket
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebp
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
add ebp, 4
mov dword [ebp], 0
pop ebp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x45c6cc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x45e168
sub eax, eax
test esi, esi
je 0x45c7a4
sub eax, 1
test ecx, ecx
je 0x45c7a2
test esi, 3
je 0x45c70a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x45c6ef
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x45c789
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x45c714
mov ecx, edx
test ecx, ecx
je 0x45c7a2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x45c78f
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x45c7ac
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, pe_nt_image_headers32
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0045c82f
jae 0x45c7ba
xor ecx, ecx
call fcn.0045c82f
jae 0x45c7e9
xor eax, eax
call fcn.0045c82f
jae 0x45c7f9
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0045c82f
adc al, al
jae 0x45c7db
jne 0x45c825
stosb byte es:[edi], al
jmp 0x45c7bd
call fcn.0045c83b
sub ecx, ebx
jne 0x45c802
call fcn.0045c839
jmp 0x45c821
lodsb al, byte [esi]
shr eax, 1
je 0x45c84b
adc ecx, ecx
jmp 0x45c81e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.0045c839
cmp eax, 0x7d00
jae 0x45c81e
cmp ah, 5
jae 0x45c81f
cmp eax, 0x7f
ja 0x45c820
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x45c7bd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x45d17c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x460000]
jne 0x45d186
repz ret
jmp fcn.0045d42d
Function at 0x6b8070
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [0x6b22bc]
cmp edx, 1
jne 0x6b808b
push 0x6b22f4
call fcn.006bade0
mov edx, dword [0x6b22bc]
lea eax, [edx + 0x4ed1567b]
lea edx, [edx + edx*4]
push esi
push edi
mov esi, 0x6b21d8
xor ecx, ecx
lea edi, [edx + edx*4]
mov edx, eax
imul eax, eax, 0x1003411d
shr edx, 9
add edx, 0x79d11093
xor eax, edx
mov dl, byte [ecx + edi*8 + 0x6a4652]
xor dl, al
mov byte [esi], dl
inc esi
inc ecx
cmp ecx, 0xc8
jl 0x6b80a0
mov byte [esi], 0
pop edi
mov eax, 0x6b21d8
pop esi
ret
Function at 0x6b9720
Capabilities:
Suspend thread

Disassembly:
push ecx
push ebx
push esi
push edi
push 0x6b4460
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, dword [esi*4 + 0x6b44a0]
test eax, eax
je 0x6b9773
lea ecx, [esp + 0xc]
push ecx
push eax
call ebx
test eax, eax
je 0x6b9773
cmp dword [esp + 0xc], 0x103
je 0x6b9773
mov edx, dword [esi*4 + 0x6b44a0]
push edx
call edi
mov dword [esi*4 + 0x6b44a0], 0
push esi
call fcn.006b9910
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x6b973d
mov edi, dword [sym.imp.KERNEL32.dll_SuspendThread]
xor esi, esi
mov eax, dword [esi*4 + 0x6b44a0]
test eax, eax
je 0x6b9799
push eax
call edi
push esi
call fcn.006b9910
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x6b978b
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x6b97b0
Capabilities:
Resume thread

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
xor esi, esi
mov eax, dword [esi*4 + 0x6b44a0]
test eax, eax
je 0x6b97c8
push eax
call edi
push esi
call fcn.006b9910
mov esi, eax
add esp, 4
cmp esi, 0x64
jl 0x6b97ba
push 0x6b4460
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret

Function at 0x6ba870
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
pop edi
je 0x6ba8e5
mov eax, dword [esp + 0x10]
mov ecx, 2
sub eax, ecx
je 0x6ba8bc
mov word [0x6b27a0], cx
call fcn.006bced0
add esp, 0x94
ret
cmp dword [esp + 4], 5
jne 0x6ba8a9
mov edx, dword [esp + 8]
mov eax, 1
cmp edx, eax
jb 0x6ba8a9
mov word [0x6b27a0], ax
call fcn.006ba5c0
call fcn.006ba750
call fcn.006bced0
add esp, 0x94
ret

Function at 0x6bb770
Capabilities:
Check mutex on windows

Disassembly:
push ebx
push ebp
push esi
push edi
xor ebp, ebp
call fcn.006c7e10
test eax, eax
jne 0x6bb7a0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x6bb7b5
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x14]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
je 0x6bb7f9
mov edi, dword [esp + 0x20]
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
push esi
call ebx
test eax, eax
je 0x6bb7d9
cmp eax, 0x102
jne 0x6bb7e6
mov eax, dword [esp + 0x24]
inc ebp
cmp ebp, eax
jg 0x6bb7f0
jmp 0x6bb7bf
mov eax, dword [esp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
pop edi
pop esi
pop ebp
mov eax, 0x73
pop ebx
ret
push esi
call fcn.006bb870
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x6bb810
Capabilities:
Check mutex on windows

Disassembly:
push esi
call fcn.006c7e10
test eax, eax
jne 0x6bb828
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push eax
push 0
push ecx
jmp 0x6bb831
mov edx, dword [esp + 8]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x6bb844
mov eax, 1
pop esi
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x6bb85b
mov eax, dword [esp + 0x10]
mov dword [eax], esi
xor eax, eax
pop esi
ret
mov eax, 0x73
pop esi
ret
Function at 0x6bf050
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x20c
push ebx
mov bx, word [esp + 0x224]
neg bx
push ebp
mov ebp, dword [esp + 0x220]
sbb ebx, ebx
push esi
mov al, byte [ebp]
and ebx, 0xfffffffe
add ebx, 4
push edi
test al, al
mov dword [esp + 0x18], 0
je 0x6bf0a6
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x6b1098
mov byte [ebp], 0
call dword [sym.imp.MSVCRT.dll_getenv]
add esp, 4
test eax, eax
je 0x6bf0ce
jbe 0x6bf0ce
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
mov dword [esp + 0x10], eax
jmp 0x6bf0d6
mov dword [esp + 0x10], 0xa
mov ecx, 0x55
xor eax, eax
lea edi, [esp + 0xc8]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x22c]
lea eax, [esp + 0xc8]
push ecx
mov ecx, dword [esp + 0x228]
push edx
push eax
push ecx
push ebx
call fcn.006c1e70
test ax, ax
jne 0x6bf25d
cmp word [esp + 0x10], ax
mov dword [esp + 0x14], 0x46
mov dword [esp + 0x20], 0
jbe 0x6bf291
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea esi, [esp + 0xc8]
mov dword [esp + 0x1c], esi
cmp word [esi + 0x20], 0
jbe 0x6bf237
mov ecx, 0x10
xor eax, eax
mov edi, ebp
lea edx, [esp + 0x64]
push 0x6b1078
push edx
rep stosd dword es:[edi], eax
mov dword [esp + 0x20], 0
call ebx
mov eax, dword [esp + 0x228]
push esi
push eax
call fcn.006be580
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0x6b1078
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x78]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call ebx
lea ecx, [esp + 0x7c]
push 0x6b1078
push ecx
call ebx
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea edx, [esp + 0x44]
push 0x6a5b38
push edx
call esi
add esp, 0x28
test eax, eax
je 0x6bf1d9
lea eax, [esp + 0x24]
push 0x6b0298
push eax
call esi
add esp, 8
test eax, eax
jne 0x6bf1f2
push 0x6b0288
push ebp
call esi
add esp, 8
test eax, eax
jne 0x6bf1f2
mov dword [esp + 0x18], 1
jmp 0x6bf233
mov ecx, dword [esp + 0x230]
mov edx, dword [esp + 0x22c]
mov eax, dword [esp + 0x224]
push ecx
mov ecx, dword [esp + 0x224]
push edx
push ebp
push eax
push ecx
call fcn.006bea00
add esp, 0x14
mov dword [esp + 0x14], eax
test ax, ax
je 0x6bf259
lea edx, [esp + 0x64]
push 0x6b1078
push edx
call ebx
add esp, 8
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
inc eax
and ecx, 0xffff
add esi, 0x22
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
jl 0x6bf13e
mov eax, dword [esp + 0x14]
cmp ax, 0x45
jne 0x6bf272
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x20c
ret
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x6bf295
cmp word [esp + 0x10], 1
jne 0x6bf295
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x20c
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20c
ret
Function at 0x6bf2a0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x4c8
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
jne 0x6bf331
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x14]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
push ecx
push edx
call fcn.006c9210
add esp, 0xc
cmp eax, 0xffffffff
jne 0x6bf327
mov eax, dword [0x6b1070]
mov cx, word [0x6b1074]
mov dl, byte [0x6b1076]
mov dword [esp + 0x10], eax
mov word [esp + 0x14], cx
mov byte [esp + 0x16], dl
jmp 0x6bf378
lea edi, [esp + 0x50]
lea edx, [esp + 0x10]
jmp 0x6bf35b
mov dx, word [0x6b1074]
mov ecx, dword [0x6b1070]
mov al, byte [0x6b1076]
mov word [esp + 0x14], dx
mov dword [esp + 0x10], ecx
mov byte [esp + 0x16], al
lea edi, [esp + 0x10]
lea edx, [esp + 0xd0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x90]
push ebx
push ecx
call fcn.006c6ca0
lea edi, [esp + 0x98]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd8]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2dc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xe0]
push ecx
call fcn.006c9210
add esp, 0x10
cmp eax, 0xffffffff
pop ebx
jne 0x6bf410
mov edx, dword [0x6b10ec]
mov eax, dword [0x6b10f0]
mov ecx, dword [0x6b10f4]
mov dword [esp + 0xd0], edx
mov dx, word [0x6b10f8]
mov dword [esp + 0xd4], eax
mov dword [esp + 0xd8], ecx
mov word [esp + 0xdc], dx
jmp 0x6bf43b
lea edi, [esp + 0x2d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 8]
lea edi, [esp + 0xd0]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0xc], 0
push ecx
push edx
call fcn.006c6bc0
mov ecx, dword [esp + 0x14]
add esp, 0xc
inc eax
neg eax
sbb eax, eax
pop edi
and eax, ecx
pop esi
mov dword [0x6b27f8], eax
add esp, 0x4c8
ret
Function at 0x6bfb50
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 0x18]
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
push edi
push ebx
push ebp
push eax
mov eax, dword [esp + 0x28]
push 0
push esi
push ecx
push edx
push eax
call fcn.006bbc00
add esp, 0x24
test ax, ax
je 0x6bfb98
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov word [ecx + 6], ax
pop ebx
ret
cmp word [0x6b2808], 0
jne 0x6bfc2a
lea edx, [esp + 0x30]
lea eax, [esp + 0x34]
push edx
push 0
push eax
push 0x6bbb30
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [0x6b2804], eax
push 0x1b58
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x6bfc2a
mov ax, word [esp + 0x34]
cmp ax, 2
jne 0x6bfc32
cmp dword [esp + 0x20], 0xffffffff
jne 0x6bfbfe
test esi, esi
jge 0x6bfbfe
mov ecx, dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push 2
push esi
push 0xffffffffffffffff
jmp 0x6bfc0b
mov ecx, dword [esp + 0x28]
push edi
push ebx
push ebp
push ecx
push 2
push esi
push 1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
push edx
push eax
call fcn.006bbc00
mov ecx, dword [0x6b2804]
add esp, 0x24
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
test ax, ax
jne 0x6bfc4c
mov edx, dword [0x6b2804]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
ret
cmp dword [esp + 0x20], 1
jne 0x6bfc66
test esi, esi
jle 0x6bfc66
mov eax, dword [esp + 0x28]
push edi
push ebx
push ebp
push eax
push 1
push esi
push 1
jmp 0x6bfc73
mov eax, dword [esp + 0x28]
push edi
push ebx
push ebp
push eax
push 1
push esi
push 0xffffffffffffffff
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.006bbc00
mov eax, dword [esp + 0x38]
add esp, 0x24
mov word [eax + 6], 0x46
mov ecx, dword [0x6b2804]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov ax, 0x46
pop ebx
ret