joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4083a8
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
lea eax, [0x5745dc]
push eax
push 0
push 2
call sub.KERNEL32.dll_OpenFileMappingA
mov dword [0x58e03c], eax
push 0
push 0
push 0
push 2
push eax
call sub.KERNEL32.dll_MapViewOfFile
mov dword [0x58e038], eax
mov edx, dword [0x58e038]
add esp, 4
mov dword [0x58e044], edx
cmp dword [0x58e044], 0
jne 0x408422
sub esp, 4
mov dword [0x58e040], 0x704
push 0x704
call fcn.005645a0
add esp, 8
mov dword [0x58e044], eax
sub esp, 4
lea edx, str.hEventIter
push edx
push 0
push 0x1f0003
call sub.KERNEL32.dll_OpenEventA
lea edx, str.hEventUnsOut
mov dword [0x58e034], eax
push edx
push 0
push 0x1f0003
call sub.KERNEL32.dll_OpenEventA
lea edx, str.hEventFinishedOK
mov dword [0x58e030], eax
push edx
push 0
push 0x1f0003
call sub.KERNEL32.dll_OpenEventA
lea edx, [0x57459c]
mov dword [0x58e02c], eax
push edx
push 0
push 0x1f0003
call sub.KERNEL32.dll_OpenEventA
add esp, 4
mov dword [0x58e028], eax
call sub.KERNEL32.dll_GetCurrentThread
mov esp, ebp
mov dword [0x58e024], eax
pop ebp
ret
Function at 0x53d710
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], 1
mov dword [0x59fda8], ebx
mov dword [0x59fdac], 0x599fa8
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
lea eax, [ebp - 4]
push eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ebx
push ecx
call fcn.00540120
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [ecx + esi - 1]
cmp esi, edi
ja 0x53d8a5
cmp esi, edi
ja 0x53d8a5
cmp dword [0x589fa8], 1
jle 0x53d78c
movsx ecx, byte [esi]
push 8
push ecx
call fcn.005657c9
add esp, 8
jmp 0x53d79a
movsx edx, byte [esi]
mov eax, dword [str.________________________________H]
mov al, byte [eax + edx*2]
and eax, 8
test eax, eax
je 0x53d7a1
inc esi
jmp 0x53d76b
mov ecx, dword [0x59fda8]
mov eax, dword [ebp - 8]
inc ecx
cmp ecx, eax
mov dword [0x59fda8], ecx
jle 0x53d809
cmp eax, 1
jne 0x53d7ea
push 0x59fdac
push 0
push 0x2c
mov dword [ebp - 8], 0xb
call fcn.00540120
add esp, 0xc
test eax, eax
jne 0x53d8a7
mov ecx, dword [0x59fdac]
mov edx, dword [0x599fa8]
mov dword [ecx], edx
jmp 0x53d809
add eax, 0xa
push 0x59fdac
mov dword [ebp - 8], eax
shl eax, 2
push eax
call fcn.00540160
add esp, 8
test eax, eax
jne 0x53d8a7
mov ecx, dword [0x59fdac]
mov eax, dword [0x59fda8]
mov edx, dword [ebp - 4]
mov dword [ecx + eax*4 - 4], edx
cmp esi, edi
ja 0x53d890
cmp byte [esi], 0x22
jne 0x53d84f
inc esi
test ebx, ebx
je 0x53d845
mov al, byte [esi]
xor ebx, ebx
cmp al, 0x22
jne 0x53d84f
cmp esi, edi
ja 0x53d84a
mov ecx, dword [ebp - 4]
mov byte [ecx], 0x22
mov ecx, dword [ebp - 4]
inc ecx
inc esi
mov dword [ebp - 4], ecx
jmp 0x53d84a
mov ebx, 1
cmp byte [esi], 0x22
je 0x53d824
test ebx, ebx
jne 0x53d87f
cmp dword [0x589fa8], 1
jle 0x53d86c
movsx edx, byte [esi]
push 8
push edx
call fcn.005657c9
add esp, 8
jmp 0x53d87b
movsx eax, byte [esi]
mov ecx, dword [str.________________________________H]
mov al, byte [ecx + eax*2]
and eax, 8
test eax, eax
jne 0x53d890
mov eax, dword [ebp - 4]
mov dl, byte [esi]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
inc ecx
inc esi
mov dword [ebp - 4], ecx
jmp 0x53d81b
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
mov ecx, dword [ebp - 4]
inc ecx
cmp esi, edi
mov dword [ebp - 4], ecx
jbe 0x53d773
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x549060
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [0x59d6e0]
push ebx
xor eax, eax
push esi
test edx, edx
push edi
jbe 0x549088
mov ecx, 0x59a6e0
mov esi, dword [ebp + 8]
mov edi, dword [ecx]
cmp esi, edi
je 0x5490a5
inc eax
add ecx, 8
cmp eax, edx
jb 0x549077
mov eax, dword [ebp + 0xc]
push 0x800
push 0x59cb74
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5490b1
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [eax*8 + 0x59a6e4]
pop edi
pop esi
pop ebx
pop ebp
ret
push 0
push 0x10000080
push 3
push 0
push 1
push 0x80000000
push 0x59cb74
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x5490e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebx
test esi, esi
jne 0x54910f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, eax
test ecx, ecx
jne 0x549139
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov eax, dword [edx + 0x18]
add eax, ecx
mov ecx, dword [0x59d6e0]
mov dword [ecx*8 + 0x59a6e0], edx
mov dword [ecx*8 + 0x59a6e4], eax
inc ecx
mov dword [0x59d6e0], ecx
pop ebp
ret
Function at 0x549ef0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [esi + 0xc]
add eax, edx
cmp byte [eax], 0xcc
jne 0x549f18
mov edx, dword [esi + 8]
cmp ecx, edx
jae 0x549f18
mov bl, byte [eax + 1]
inc eax
inc ecx
cmp bl, 0xcc
je 0x549f0a
mov edx, dword [esi + 8]
pop esi
cmp ecx, edx
pop ebx
jb 0x549f25
xor eax, eax
pop ebp
ret
mov dl, byte [eax]
xor ecx, ecx
cmp dl, 0xe9
sete cl
mov eax, ecx
pop ebp
ret
Function at 0x552b10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x12c]
push edi
mov ebx, dword [esi]
and ecx, 2
je 0x552b72
mov edx, dword [esi + 8]
cmp edx, 5
jl 0x552b72
cmp edx, 0x11
jg 0x552b72
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x552c4f
lea esi, [ebx + ecx - 1]
mov cl, byte [edi + ebx]
mov dl, cl
xor dl, byte [esi]
xor cl, dl
mov byte [edi + ebx], cl
mov cl, byte [esi]
xor cl, dl
inc edi
mov byte [esi], cl
dec esi
cmp edi, eax
jl 0x552b51
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
movsx edx, byte [eax + 0x120]
mov eax, dword [esi + 8]
mov dword [ebp + 0xc], edx
cmp eax, 0x19
jl 0x552b89
cmp eax, 0x1f
jle 0x552b9b
cmp eax, 0x28
jl 0x552c4f
cmp eax, 0x30
jg 0x552c4f
test ecx, ecx
je 0x552bd2
test edx, edx
jne 0x552bd2
mov ecx, dword [ebp + 0x10]
xor edi, edi
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
test eax, eax
jle 0x552bd2
lea esi, [ebx + ecx - 1]
mov cl, byte [edi + ebx]
mov dl, byte [esi]
xor dl, cl
xor cl, dl
mov byte [edi + ebx], cl
mov cl, byte [esi]
xor cl, dl
inc edi
mov byte [esi], cl
dec esi
cmp edi, eax
jl 0x552bb7
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov eax, dword [eax*4 + 0x57d3e4]
cmp eax, 0xffffffff
jne 0x552bed
pop edi
pop esi
mov eax, 0x4000005f
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
lea edx, [ecx + eax*4]
add eax, edx
mov eax, dword [eax*4 + 0x57d4a8]
test eax, eax
je 0x552c4f
lea ecx, [ebp - 0x10]
push ecx
push 0
push ebx
call eax
add esp, 0xc
cmp eax, 1
je 0x552c1d
pop edi
pop esi
mov eax, 0x4000005f
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
cmp eax, 4
jne 0x552c38
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
mov eax, dword [edx]
pop ebx
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp eax, 8
jne 0x552c4f
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax]
mov dword [edx], ecx
mov edx, dword [eax]
mov eax, dword [ebp - 0xc]
mov dword [edx + 4], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x554ac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
shl eax, 1
movsx edx, byte [eax + 0x57d7f0]
cmp ecx, edx
jle 0x554ae7
movsx eax, byte [eax + 0x57d7f1]
mov dword [esi + 0xc], eax
cmp ecx, 2
jne 0x554af9
cmp dword [esi + 0x1c], 1
jne 0x554af9
mov dword [esi + 0x10], 3
mov eax, dword [esi + 0xc]
test eax, eax
je 0x554c54
movsx ecx, byte [eax*2 + 0x57d7f0]
cmp ecx, dword [esi + 0x10]
jne 0x554c54
cmp eax, 0x1c
jne 0x554b3c
mov ecx, dword [esi + 0x18]
mov eax, ecx
and eax, 0x80000003
jns 0x554b2b
dec eax
or eax, 0xfffffffc
inc eax
je 0x554b36
mov edx, 4
sub edx, eax
mov eax, edx
lea ebx, [ecx + eax + 4]
jmp 0x554b41
mov ebx, 0xc
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
mov edi, ecx
mov dword [ebp - 4], ebx
lea edx, [eax + ebx]
shl edi, 9
cmp edx, edi
jle 0x554b94
mov edx, dword [esi]
sub edx, eax
lea eax, [ecx + 1]
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
shl eax, 9
push ecx
push eax
mov dword [ebp + 8], edx
call fcn.00540160
add esp, 8
test eax, eax
jne 0x554c59
mov eax, dword [esi + 8]
mov ecx, dword [ebp + 8]
add ecx, eax
mov dword [esi], ecx
mov ecx, dword [esi + 4]
mov edi, ecx
lea edx, [eax + ebx]
shl edi, 9
cmp edx, edi
jg 0x554b56
mov eax, dword [esi + 0xc]
cmp eax, 0x1c
je 0x554bff
mov ecx, dword [esi]
and eax, 0xff
pop edi
mov edx, dword [ecx]
and edx, 0xffff0000
xor edx, eax
mov dword [ecx], edx
mov eax, dword [esi + 0x20]
and eax, 0xff
and edx, 0xff00ffff
shl eax, 0x10
or eax, edx
mov dword [ecx], eax
mov edx, dword [esi + 0x1c]
shl edx, 0x18
and eax, 0xffffff
or edx, eax
mov dword [ecx], edx
mov eax, dword [esi + 0x14]
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x18]
mov dword [ecx + 8], edx
mov ecx, dword [esi]
mov eax, dword [esi + 8]
add ecx, 0xc
add eax, 0xc
mov dword [esi], ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
mov cl, byte [esi + 0xc]
mov byte [eax], cl
mov dx, word [esi + 0x18]
mov word [eax + 2], dx
mov byte [eax + 1], 0
mov edi, dword [esi + 0x14]
lea edx, [eax + 4]
mov eax, dword [esi + 0x18]
xor ecx, ecx
test eax, eax
jle 0x554c36
mov eax, edx
sub edi, edx
mov bl, byte [edi + eax]
inc ecx
mov byte [eax], bl
mov ebx, dword [esi + 0x18]
inc eax
cmp ecx, ebx
jl 0x554c25
mov ebx, dword [ebp - 4]
lea eax, [edx + ebx - 4]
mov dword [esi + 0xc], 0
mov dword [esi], eax
mov eax, dword [esi + 8]
add eax, ebx
pop edi
mov dword [esi + 8], eax
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xc000003e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5559e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00555450
mov eax, dword [0x59d964]
mov esi, dword [ebp + 8]
test eax, eax
je 0x555a08
test esi, esi
je 0x5559fd
mov eax, dword [esi]
jmp 0x5559ff
xor eax, eax
push eax
call fcn.0056fe40
add esp, 4
test esi, esi
je 0x555a10
mov esi, dword [esi]
jmp 0x555a12
xor esi, esi
push esi
call fcn.005654ba
pop esi
nop
nop
nop
nop
nop
nop
nop

Function at 0x5567b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x59d964]
push ebx
push esi
xor esi, esi
test eax, eax
push edi
je 0x556878
mov eax, dword [ebp + 0x20]
cmp eax, 1
je 0x5567fa
cmp eax, 2
je 0x5567fa
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x5567e8
cmp eax, 0xfffffffa
jne 0x5567e8
mov ebx, dword [ebp + 8]
mov esi, 1
jmp 0x556805
test eax, eax
jne 0x556802
mov esi, 1
call fcn.0056fe50
mov ebx, eax
jmp 0x556805
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x59d964]
test eax, eax
je 0x556828
test edi, edi
je 0x556828
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x556828
push ebx
call fcn.0056fe40
push ebx
call fcn.0056fe50
add esp, 8
test esi, esi
je 0x556878
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push ebx
push eax
push ecx
call fcn.0056fe40
mov edi, dword [ebp + 0x14]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
mov dword [edi], esi
jne 0x556850
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
push 0
push ebx
push 2
push 0x589ba0
call fcn.0056fe40
mov edx, dword [ebp + 0xc]
add esp, 0x10
mov byte [esi + edx], 0xa
mov eax, dword [edi]
inc eax
mov dword [edi], eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x20]
push 0
push eax
mov eax, dword [ebp + 8]
push ecx
push edx
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x20]
pop edi
mov dword [esi], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x401263
Capabilities:
Encrypt data using salsa20 or chacha
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4013ab
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x4013ab
mov dword [esi], 0x61707865
mov dword [esi + 4], 0x3320646e
mov dword [esi + 8], 0x79622d32
mov dword [esi + 0xc], 0x6b206574
movzx ecx, byte [edx + 3]
shl ecx, 8
movzx eax, byte [edx + 2]
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x10], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
movzx eax, byte [edx + 6]
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x14], ecx
movzx ecx, byte [edx + 0xb]
movzx eax, byte [edx + 0xa]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x18], ecx
movzx ecx, byte [edx + 0xf]
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x1c], ecx
movzx ecx, byte [edx + 0x13]
movzx eax, byte [edx + 0x12]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x11]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x20], ecx
movzx ecx, byte [edx + 0x17]
movzx eax, byte [edx + 0x16]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x15]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x14]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x24], ecx
movzx ecx, byte [edx + 0x1b]
movzx eax, byte [edx + 0x1a]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x19]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x18]
shl ecx, 8
or ecx, eax
mov dword [esi + 0x28], ecx
movzx ecx, byte [edx + 0x1f]
movzx eax, byte [edx + 0x1e]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1d]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0x1c]
shl ecx, 8
or ecx, eax
xor eax, eax
mov dword [esi + 0x2c], ecx
jmp 0x4013ae
xor eax, eax
inc eax
pop esi
pop ebp
ret
Function at 0x40145a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
mov edx, ebx
mov dword [ebp - 4], edx
test esi, esi
jne 0x401478
xor eax, eax
inc eax
jmp 0x4015d8
mov ecx, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4014bb
mov ebx, dword [ebp + 0x10]
sub ebx, ecx
cmp dword [esi + 0x80], 0x40
jae 0x4014b3
mov edx, dword [esi + 0x80]
mov al, byte [ebx + ecx]
xor al, byte [edx + esi + 0x40]
mov edx, dword [ebp - 4]
mov byte [ecx], al
inc dword [esi + 0x80]
inc edx
inc ecx
mov dword [ebp - 4], edx
sub edi, 1
jne 0x401488
mov ecx, dword [ebp + 0x14]
xor ebx, ebx
mov dword [ebp + 0xc], edi
lea eax, [esi + 0x40]
mov dword [ebp - 0x1c], eax
cmp edi, 0x40
jb 0x40158f
lea eax, [esi + 0x41]
mov dword [ebp - 0x18], eax
lea ebx, [esi + 0x40]
mov eax, dword [ebp + 0x10]
sub eax, ecx
mov dword [ebp - 8], eax
lea eax, [ecx + 1]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, 3
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, edi
shr eax, 6
mov dword [ebp - 0x14], eax
shl eax, 6
add edx, eax
mov dword [ebp - 4], edx
push ebx
push esi
call fcn.00401000
inc dword [esi + 0x30]
mov ebx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
push 8
pop edi
mov al, byte [edx - 3]
xor al, byte [ebx - 1]
mov byte [ecx - 1], al
mov al, byte [ecx + esi]
xor al, byte [ebx]
lea ebx, [ebx + 8]
mov byte [ecx], al
mov al, byte [edx - 1]
xor al, byte [ebx - 7]
mov byte [ecx + 1], al
mov al, byte [ebx - 6]
xor al, byte [edx]
mov byte [ecx + 2], al
mov al, byte [edx + 1]
xor al, byte [ebx - 5]
mov byte [ecx + 3], al
mov al, byte [edx + 2]
xor al, byte [ebx - 4]
mov byte [ecx + 4], al
mov al, byte [edx + 3]
xor al, byte [ebx - 3]
mov byte [ecx + 5], al
mov al, byte [edx + 4]
add edx, 8
xor al, byte [ebx - 2]
mov byte [ecx + 6], al
add ecx, 8
sub edi, 1
jne 0x401519
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
sub edi, 0x40
sub dword [ebp - 0x14], 1
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0xc], edi
lea ebx, [esi + 0x40]
jne 0x4014fe
xor ebx, ebx
jmp 0x401597
mov eax, dword [ebp + 0x10]
sub eax, ecx
mov dword [ebp - 8], eax
test edi, edi
je 0x4015d5
lea eax, [esi + 0x40]
push eax
push esi
call fcn.00401000
inc dword [esi + 0x30]
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
lea ecx, [eax + ebx]
mov al, byte [esi + ecx]
xor al, byte [edx + ebx]
inc ebx
mov byte [ecx], al
mov eax, dword [ebp - 0x18]
cmp ebx, edi
jb 0x4015b9
mov esi, dword [ebp + 8]
mov dword [esi + 0x80], edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4019e9
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 4], esi
push eax
push 0x20
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
jne 0x401a36
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x88
push str.C:ProjectsClientClientconsole.cpp
push str._ERROR___s:_d__FillConsoleOutputCharacterW_failed._Last_error:__d__0x_lx_
call fcn.004020af
add esp, 0x14
xor eax, eax
jmp 0x401a64
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x401a61
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x90
push str.C:ProjectsClientClientconsole.cpp
push str._ERROR___s:_d__SetConsoleCursorPosition_failed._Last_error:__d__0x_lx_
jmp 0x401a2a
xor eax, eax
inc eax
pop esi
leave
ret 0xc

Function at 0x401b12
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
lea edi, [ebp - 0x16]
mov word [ebp - 0x18], ax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x401b6c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x59
push str.C:ProjectsClientClientconsole.cpp
push str._ERROR___s:_d__GetConsoleScreenBufferInfo_failed._Last_error:__d__0x_lx_
call fcn.004020af
add esp, 0x14
xor eax, eax
jmp 0x401c0b
push dword [ebp - 0x18]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
test eax, eax
jne 0x401b96
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x61
push str.C:ProjectsClientClientconsole.cpp
push str._ERROR___s:_d__SetConsoleScreenBufferSize_failed._Last_error:__d__0x_lx_
jmp 0x401b5d
movsx eax, word [ebp - 0x18]
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
xor ebx, ebx
mov dword [esi + 0x2c], eax
movsx eax, word [ebp - 0x16]
push ebx
push ebx
push esi
push 0x401a69
push ebx
push ebx
mov dword [esi + 0x30], eax
call edi
mov dword [esi + 0x10], eax
test eax, eax
jne 0x401bd0
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x6d
jmp 0x401bf1
push ebx
push ebx
push esi
push 0x401f5a
push ebx
push ebx
call edi
mov dword [esi + 0x14], eax
test eax, eax
jne 0x401c07
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
call esi
push eax
push 0x77
push str.C:ProjectsClientClientconsole.cpp
push str._ERROR___s:_d__CreateThread_failed._Last_error:__d__0x_lx_
call fcn.004020af
add esp, 0x14
xor eax, eax
jmp 0x401c0a
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret
Function at 0x401fbe
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
inc word [eax + 2]
push dword [eax]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x402000
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x9f
push str.C:ProjectsClientClientconsole.cpp
push str._ERROR___s:_d__SetConsoleCursorPosition_failed._Last_error:__d__0x_lx_
call fcn.004020af
add esp, 0x14
xor eax, eax
jmp 0x402013
push 0
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
pop ebp
ret 0x10

Function at 0x402069
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00403950
push 0x1000
lea eax, [ebp - 0x1000]
push 0
push eax
call fcn.00402e68
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
leave
ret

Function at 0x4020af
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00403950
push 0x2000
lea eax, [ebp - 0x2000]
push 0
push eax
call fcn.00402e68
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
lea eax, [ebp - 0x2000]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
leave
ret