joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009ea80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov esi, r9d
mov r12d, r8d
mov r14d, edx
mov r13, rcx
mov r15d, ebx
test rcx, rcx
je 0x14009eabe
xor edx, edx
lea r8d, [rbx + 2]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
jmp 0x14009eac5
mov rdi, qword [0x140125b48]
test rdi, rdi
je 0x14009ec8d
mov qword [rsp + 0x80], rbp
lea rbp, [0x140128144]
test r14d, r14d
jns 0x14009eaee
movzx eax, r14w
neg ax
movzx edx, ax
jmp 0x14009eb26
test r14d, r14d
mov dword [rsp + 0x44], ebx
mov eax, 1
mov qword [rsp + 0x48], rbp
cmovne eax, r14d
lea r9, [rsp + 0x40]
lea r8, [0x14009ea60]
mov dword [rsp + 0x40], eax
mov edx, recv
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov rdx, qword [rsp + 0x48]
cmp rdx, rbp
je 0x14009ec58
mov r8d, recv
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x14009ec58
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14009ec58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14009ec58
cmp r12d, 0xffffffff
cmovne esi, r12d
test esi, esi
jne 0x14009eb88
lea ecx, [rsi + 0xb]
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, eax
movzx eax, word [rbp + 4]
lea r8, [rbp + 6]
mov r11, rbx
mov r9d, ebx
cmp bx, ax
jae 0x14009ec58
mov rdx, r8
mov r10d, eax
mov ebp, 0x100
nop word [rax + rax]
movzx eax, byte [r8]
mov ecx, ebx
test eax, eax
cmove eax, ebp
cmp eax, r9d
jle 0x14009ebc8
cmp r9d, esi
setl cl
jmp 0x14009ebcd
cmp eax, esi
setge cl
test ecx, ecx
je 0x14009ebd7
mov r11, rdx
mov r9d, eax
add rdx, 0xe
add r8, 0xe
sub r10, 1
jne 0x14009ebb0
test r11, r11
je 0x14009ec58
movzx edx, word [r11 + 0xc]
lea r8d, [r10 + 3]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14009ec58
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x14009ec58
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x14009ec58
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x30], ebx
mov r9d, 0x30000
mov edx, eax
mov dword [rsp + 0x28], ebx
mov r8d, 1
mov dword [rsp + 0x20], ebx
mov rcx, rbp
call qword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov r15, rax
mov rcx, qword [rsp + 0xa0]
mov rbp, qword [rsp + 0x80]
test rcx, rcx
je 0x14009ec7a
test r15, r15
je 0x14009ec7a
mov qword [rcx], rdi
mov rax, r15
jmp 0x14009ecae
test r13, r13
je 0x14009ec88
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
jne 0x14009ec75
test r14d, r14d
jle 0x14009ec98
lea ebx, [r14 - 1]
jmp 0x14009eca0
cmp r14d, 0xffffffff
cmovl ebx, r14d
mov r8d, ebx
mov rdx, r13
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ExtractIconW]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400a1f20
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov qword [rsp + 0x60], rbp
xor r9d, r9d
mov ebp, edx
mov rbx, rcx
lea edx, [rdi + 0x10]
test r8b, r8b
je 0x1400a1fae
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1f4
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_SendMessageTimeoutW]
test rax, rax
jne 0x1400a1fb7
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x70], edi
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [rsp + 0x70]
test r8d, r8d
je 0x1400a1fb7
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1400a1fb7
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400a1fb7
xor r8d, r8d
call qword [sym.imp.USER32.dll_PostMessageW]
test ebp, ebp
cmovns edi, ebp
mov rbp, qword [rsp + 0x60]
test edi, edi
je 0x1400a201b
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 1
mov ecx, 0x8000012f
mov esi, eax
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1400a201b
add edi, esi
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, edi
sub ecx, eax
cmp ecx, 5
jle 0x1400a201b
mov edx, 1
mov ecx, 0x8000012f
call fcn.1400016f0
mov rcx, rbx
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1400a1ff0
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1400a3eb0
Capabilities:
Get graphical window text

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0xb8]
test rcx, rcx
je 0x1400a3f8d
mov eax, dword [rbx]
test eax, eax
je 0x1400a3f8d
mov qword [rsp + 0x38], rsi
xor esi, esi
mov qword [rsp + 0x40], rdi
test al, 1
jne 0x1400a3eec
mov rax, qword [rbx + 0x38]
cmp word [rax], si
je 0x1400a3f0a
mov r8d, 0x7fff
lea rdx, [rbx + 0xc4]
call qword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x1400a3f0a
mov word [rbx + 0xc4], si
test byte [rbx], 4
je 0x1400a3f23
mov rcx, qword [rbx + 0xb8]
lea rdx, [rbx + 0xc0]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test byte [rbx], 0x20
je 0x1400a3f5e
mov rcx, qword [rbx + 0xb8]
lea rdx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x1400a3f5e
movzx r9d, byte [rbx + 0x78]
lea rdx, [rbx + 0x102c4]
mov ecx, dword [rsp + 0x30]
call fcn.140031a84
test eax, eax
jne 0x1400a3f5e
mov word [rbx + 0x102c4], si
test byte [rbx], 8
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
je 0x1400a3f8d
mov rcx, qword [rbx + 0xb8]
lea rdx, [rbx + 0x100c2]
mov r8d, 0x101
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_GetClassNameW]
add rsp, 0x20
pop rbx
ret

Function at 0x1400a4440
Capabilities:
Check for foreground window switch
Check for time delay via gettickcount
Get graphical window text
Log keystrokes via polling

Disassembly:
sub rsp, 0x38
cmp qword [0x140125e08], 0
mov rax, qword [0x14011f188]
mov byte [rax + 0x7f], 1
je 0x1400a4518
movzx r8d, byte [0x140125d29]
mov qword [rsp + 0x30], rbx
movzx eax, r8b
and al, 0xc0
neg al
sbb ecx, ecx
and ecx, 8
mov edx, ecx
or edx, 1
test r8b, 0xc
cmove edx, ecx
mov ecx, edx
or ecx, 4
test r8b, 0x30
cmove ecx, edx
mov r9d, ecx
or r9d, 2
test r8b, 3
cmove r9d, ecx
mov eax, r9d
and al, 2
neg al
sbb al, al
and al, 3
movzx edx, al
movzx eax, dl
or al, 0x30
test r9b, 4
movzx ebx, al
cmove ebx, edx
or bl, 0xcc
not bl
and bl, byte [0x140125d27]
je 0x1400a4513
cmp r9d, 8
jne 0x1400a44f6
movzx r8d, word [0x14011fb44]
xor r9d, r9d
movzx edx, byte [reloc.OLEAUT32.dll_SafeArrayGetElemsize]
mov dword [rsp + 0x28], 0xffc3d44d
mov byte [rsp + 0x20], 0
lea ecx, [r9 + 2]
call fcn.14001fbf0
mov dword [rsp + 0x28], 0xffc3d44d
xor r9d, r9d
xor r8d, r8d
mov byte [rsp + 0x20], 0
movzx edx, bl
xor ecx, ecx
call fcn.140021ee0
mov rbx, qword [rsp + 0x30]
mov ecx, 0x4bf
call qword [sym.imp.USER32.dll_GetQueueStatus]
shr eax, 0x10
test ax, ax
je 0x1400a453c
mov edx, 1
lea ecx, [rdx - 2]
add rsp, 0x38
jmp fcn.1400016f0
add rsp, 0x38
ret
Function at 0x1400a4910
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x104f8
call fcn.1400d9ac0
sub rsp, rax
xor r9d, r9d
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r9
lea rax, [0x1400fbbd0]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x99], r9b
mov dword [rsp + 0x9c], r9d
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], r9
mov dword [rsp + 0xb8], r9d
movdqa xmmword [rsp + 0xd0], xmm0
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], edx
mov dword [rsp + 0xcc], r8d
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a5110]
call qword [sym.imp.USER32.dll_EnumWindows]
cmp qword [rsp + 0xa0], 0
je 0x1400a49c5
mov rax, qword [0x14011f188]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a49c5
mov edx, 1
call fcn.1400016f0
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400c0480
add rsp, 0x104f8
ret
Function at 0x1400a49e0
Capabilities:
Enumerate gui resources

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x103f0]
mov eax, 0x104f0
call fcn.1400d9ac0
sub rsp, rax
movzx r14d, dl
mov rdi, rcx
cmp qword [rcx + 0x10], 0
jne 0x1400a4a1e
xor eax, eax
jmp 0x1400a4c04
mov byte [rcx], 1
xor ebx, ebx
cmp qword [0x1401275d8], rdi
je 0x1400a4a39
mov qword [0x1401275d8], rdi
mov dword [0x1401275e8], ebx
cmp qword [0x1401275e0], rbx
jne 0x1400a4a5c
mov ecx, 0xfa0
call fcn.1400990d0
test rax, rax
je 0x1400a4c21
mov qword [0x1401275e0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov r8, qword [0x14011f188]
sub r8, 0xffffffffffffff80
mov rdx, rax
mov rcx, rdi
call fcn.1400a4e70
mov r15, rax
test rax, rax
jne 0x1400a4a8d
mov ecx, ebx
mov dword [0x1401275e8], ebx
jmp 0x1400a4a93
mov ecx, dword [0x1401275e8]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
mov dword [rbp - 0x64], ebx
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x40], rbx
xorps xmm1, xmm1
movdqa xmmword [rbp - 0x30], xmm1
test r14b, r14b
je 0x1400a4ac2
test r15, r15
mov byte [rbp - 0x67], 0
je 0x1400a4ac6
mov byte [rbp - 0x67], 1
mov r8, qword [0x1401275e0]
mov qword [rbp - 0x50], r8
mov dword [rbp - 0x48], ecx
mov rax, qword [0x14011f188]
lea rdx, [0x1400fbbd0]
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x70], rdx
test rax, rax
je 0x1400a4b06
sub rax, 0xffffffffffffff80
mov qword [rsp + 0x28], rax
jmp 0x1400a4b0b
mov qword [rsp + 0x28], rbx
mov qword [rbp - 0x78], rdi
mov dword [rsp + 0x20], reloc.WSOCK32.dll_recv
test ecx, ecx
setg dil
nop dword [rax]
test r15, r15
je 0x1400a4b56
mov edx, ebx
test ecx, ecx
jle 0x1400a4b3f
mov rax, r8
nop
cmp qword [rax], rsi
je 0x1400a4b56
inc edx
add rax, 8
cmp edx, ecx
jl 0x1400a4b30
cmp ecx, 0x1f4
jge 0x1400a4b56
movsxd rax, ecx
mov qword [r8 + rax*8], rsi
inc ecx
mov dword [0x1401275e8], ecx
mov dword [rbp - 0x48], ecx
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a2be0]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
jne 0x1400a4b8d
test dil, dil
je 0x1400a4bf7
mov ecx, ebx
mov dword [0x1401275e8], ebx
xor dil, dil
mov r8, qword [0x1401275e0]
jmp 0x1400a4b20
call fcn.1400a1c10
mov ecx, ebx
mov rbx, qword [rbp - 0x60]
mov r8, qword [0x1401275e0]
movsxd rdx, dword [0x1401275e8]
test edx, edx
jle 0x1400a4bbf
mov rax, r8
nop dword [rax]
cmp qword [rax], rbx
je 0x1400a4bd7
inc ecx
add rax, 8
cmp ecx, edx
jl 0x1400a4bb0
cmp edx, 0x1f4
jge 0x1400a4bd7
mov qword [r8 + rdx*8], rbx
inc edx
mov dword [0x1401275e8], edx
mov rbx, qword [rbp - 0x60]
mov rax, qword [0x14011f188]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a4bf7
mov edx, 1
call fcn.1400016f0
mov rbx, qword [rbp - 0x60]
mov rcx, qword [rsp + 0x30]
call fcn.1400c0480
mov rax, rbx
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400111a0
int3
Function at 0x1400a4c30
Capabilities:
Enumerate gui resources
Find taskbar

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x104f0
call fcn.1400d9ac0
sub rsp, rax
movzx ebp, dl
mov rdi, rcx
mov byte [rcx], 0
xor ebx, ebx
cmp qword [0x1401275d8], rcx
je 0x1400a4c6e
mov qword [0x1401275d8], rcx
mov dword [0x1401275e8], ebx
cmp qword [0x1401275e0], rbx
jne 0x1400a4c91
mov ecx, 0xfa0
call fcn.1400990d0
test rax, rax
je 0x1400a4e66
mov qword [0x1401275e0], rax
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
je 0x1400a4cc6
nop dword [rax]
mov rsi, rax
mov edx, 4
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindow]
test rax, rax
jne 0x1400a4cb0
mov r8, qword [0x14011f188]
sub r8, 0xffffffffffffff80
mov rdx, rsi
mov rcx, rdi
call fcn.1400a4e70
test rax, rax
je 0x1400a4ceb
mov ecx, ebx
mov dword [0x1401275e8], ebx
jmp 0x1400a4cf1
mov ecx, dword [0x1401275e8]
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
lea rax, [0x1400fbbd0]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x9c], ebx
xorps xmm0, xmm0
movdqa xmmword [rsp + 0xa0], xmm0
xorps xmm1, xmm1
movdqa xmmword [rsp + 0xd0], xmm1
test bpl, bpl
je 0x1400a4d3b
test ecx, ecx
mov byte [rsp + 0x99], 0
je 0x1400a4d43
mov byte [rsp + 0x99], 1
mov rax, qword [0x1401275e0]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0xb8], ecx
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xc0], rax
lea rdx, [rsp + 0x20]
lea rcx, [0x1400a4f90]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x1400a4df1
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov rcx, rax
call fcn.1400a1c10
mov rdx, qword [rsp + 0xa0]
mov r8, qword [0x1401275e0]
movsxd rcx, dword [0x1401275e8]
test ecx, ecx
jle 0x1400a4dbf
mov rax, r8
nop
cmp qword [rax], rdx
je 0x1400a4dd3
inc ebx
add rax, 8
cmp ebx, ecx
jl 0x1400a4db0
cmp ecx, 0x1f4
jge 0x1400a4dd3
mov qword [r8 + rcx*8], rdx
inc ecx
mov dword [0x1401275e8], ecx
mov rax, qword [0x14011f188]
mov ecx, dword [rax + 0x90]
cmp ecx, 0xffffffff
jle 0x1400a4e43
mov edx, 1
call fcn.1400016f0
jmp 0x1400a4e43
mov eax, dword [0x1401275e8]
test eax, eax
je 0x1400a4e2b
cmp eax, 1
setg al
mov dword [0x1401275e8], ebx
test al, al
je 0x1400a4e43
mov rax, qword [0x1401275e0]
mov qword [rax], rsi
mov dword [0x1401275e8], 1
xor edx, edx
mov rcx, rdi
call fcn.1400a4c30
jmp 0x1400a4e43
xor edx, edx
lea rcx, str.Shell_TrayWnd
call qword [sym.imp.USER32.dll_FindWindowW]
mov rcx, rax
call fcn.1400a1c10
nop
mov rcx, qword [rsp + 0x30]
call fcn.1400c0480
lea r11, [rsp + 0x104f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call fcn.1400111a0
int3
Function at 0x1400ba680
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ba6ca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ba6ca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ba6ca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ba6ca
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ba6ca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400ba6cc
xor al, al
add rsp, 0x28
ret

Function at 0x1400ce99c
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400ce807
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400ce807
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400ce807
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400ce807
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400ce807
cmp dword [rcx + 0x84], 0xe
jbe 0x1400ce807
cmp dword [rcx + 0xf8], 0
je 0x1400ce807
mov ecx, ebx
call fcn.1400ce8b8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400ce694
nop
cmp dword [rbp + 0x20], 0
je 0x1400ce855
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400ce860
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400ce798
Function at 0x1400d42ac
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400d4333
mov rsi, rbx
cmp word [rax], bp
je 0x1400d42f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400d42dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400d42d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400d0ea8
mov rdi, rax
test rax, rax
je 0x1400d4320
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400bba40
mov rbp, rdi
xor ecx, ecx
call fcn.1400d0e6c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400d99f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400d9a18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400d9a18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400036c0
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x20]
mov rsi, rcx
test dword [rdi + 0x18c], 0x2000
jne 0x1400036ff
mov rcx, qword [0x1400c2520]
lea r9, str.Cannot_resume_connections_without_enabling_MHD_ALLOW_SUSPEND_RESUME__n
mov r8d, 0xb13
lea rdx, [0x1400baa50]
call qword [0x1400c2538]
int3
lea rcx, [rdi + 0x128]
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rsi + 0x178], 1
lea rcx, [rdi + 0x128]
mov byte [rdi + 0x173], 1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp qword [rdi + 0x160], 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
je 0x140003776
mov rcx, qword [rdi + 0x168]
lea rdx, [0x1400b9894]
xor r9d, r9d
lea r8d, [r9 + 1]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x140003776
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x140003776
lea rdx, str.Failed_to_signal_resume_via_inter_thread_communication_channel.
mov rcx, rdi
call fcn.14000fca0
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140003a20
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x1400b89e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor eax, eax
mov dword [rsp + 0x30], 0x1c
mov rbx, rcx
mov qword [r11 - 0x30], rax
mov rcx, qword [rcx + 0x150]
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x50], eax
cmp rcx, 0xffffffffffffffff
je 0x140003bde
movzx eax, byte [rbx + 0x171]
test al, al
jne 0x140003bde
lea r8, [r11 - 0x38]
lea rdx, [r11 - 0x30]
call qword [sym.imp.WS2_32.dll_accept]
xor dil, dil
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140003b2f
cmp dword [rsp + 0x30], 0
jle 0x140003b2f
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov edx, 0x8004667e
mov rcx, rax
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
je 0x140003ae5
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.14000f270
mov r8, rax
lea rdx, str.Failed_to_set_nonblocking_mode_on_incoming_connection_socket:__s_n
mov rcx, rbx
call fcn.14000fca0
jmp 0x140003ae8
mov dil, 1
xor r8d, r8d
mov rcx, rsi
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x140003b0b
lea rdx, str.Failed_to_set_noninheritable_mode_on_incoming_connection_socket._n
mov rcx, rbx
call fcn.14000fca0
mov r9d, dword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov rdx, rsi
mov byte [rsp + 0x28], dil
mov rcx, rbx
call fcn.140002e60
mov eax, 1
jmp 0x140003be0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
lea ecx, [rax - 0x2726]
test ecx, 0xffffffdf
je 0x140003bde
cmp eax, 0x2733
je 0x140003b69
mov ecx, eax
call fcn.14000f270
mov r8, rax
lea rdx, str.Error_accepting_connection:__s_n
mov rcx, rbx
call fcn.14000fca0
cmp rsi, 0xffffffffffffffff
je 0x140003b9e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x140003b9e
mov rcx, qword [0x1400c2520]
lea r9, [0x1400ba388]
mov r8d, 0xc19
lea rdx, [0x1400ba930]
call qword [0x1400c2538]
int3
cmp edi, 0x2728
je 0x140003bae
cmp edi, 0x2747
jne 0x140003bde
mov r8d, dword [rbx + 0x178]
mov rcx, rbx
test r8d, r8d
jne 0x140003bcb
lea rdx, str.Hit_process_or_system_resource_limit_at_FIRST_connection._This_is_really_bad_as_there_is_no_sane_way_to_proceed._Will_try_busy_waiting_for_system_resources_to_become_magically_available._n
call fcn.14000fca0
jmp 0x140003bde
lea rdx, str.Hit_process_or_system_resource_limit_at__u_connections__temporarily_suspending_accept__._Consider_setting_a_lower_MHD_OPTION_CONNECTION_LIMIT._n
mov byte [rbx + 0x172], 1
call fcn.14000fca0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14008ccd0
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x140003f50
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 8], rcx
push r12
push r13
push r14
sub rsp, 0x50
mov r14, rcx
mov byte [rcx + 0x174], 0
mov rcx, qword [rcx + 0x160]
mov r13, r9
mov r12, rdx
cmp rcx, 0xffffffffffffffff
je 0x140003fad
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140003fad
nop dword [rax + rax]
mov rcx, qword [r14 + 0x160]
lea rdx, [rsp + 0x20]
xor r9d, r9d
lea r8d, [r9 + 4]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x140003f90
mov rcx, qword [r14 + 0x150]
cmp rcx, 0xffffffffffffffff
je 0x140003fdb
movzx eax, byte [r14 + 0x171]
test al, al
jne 0x140003fdb
mov rdx, r12
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x140003fdb
mov rcx, r14
call fcn.140003a20
mov eax, dword [r14 + 0x18c]
and eax, 4
test al, al
jne 0x14000409c
mov qword [rsp + 0x78], rbx
mov rbx, qword [r14 + 0x18]
test rbx, rbx
je 0x140004097
mov r14, qword [rsp + 0x80]
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdi
nop dword [rax + rax]
mov r15, qword [rbx + 0x110]
mov rbp, qword [rbx + 8]
cmp r15, 0xffffffffffffffff
je 0x140004076
mov rdx, r13
mov rcx, r15
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rdx, r14
mov rcx, r15
test eax, eax
setne sil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
mov rdx, r12
mov rcx, r15
test eax, eax
setne dil
call qword [sym.imp.WS2_32.dll___WSAFDIsSet]
movzx r9d, sil
movzx r8d, dil
test eax, eax
mov rcx, rbx
setne dl
call fcn.140002510
mov rbx, rbp
test rbp, rbp
jne 0x140004020
mov r14, qword [rsp + 0x70]
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x78]
mov rcx, r14
call fcn.140003c00
mov eax, 1
add rsp, 0x50
pop r14
pop r13
pop r12
ret