joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004e58
Capabilities:
Print debug messages

Disassembly:
jmp 0x140100f84
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x50
mov esi, r8d
mov r14, rdx
mov rbx, rcx
call fcn.14000361b
mov bpl, al
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor edi, edi
test eax, eax
je 0x140100fd7
test rbx, rbx
je 0x140100fc8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bpl, bpl
je 0x140100fd7
mov edi, 4
jmp 0x140101080
call fcn.1400016b8
test al, al
jne 0x140100ff4
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
neg eax
sbb edi, edi
neg edi
add edi, 3
jmp 0x140101080
test bpl, bpl
je 0x140101057
mov qword [rsp + 0x28], rdi
lea r9, [rsp + 0x30]
lea r8, [0x140100ddc]
mov dword [rsp + 0x20], edi
xor edx, edx
mov qword [rsp + 0x30], r14
xor ecx, ecx
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x44], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140101080
xor r8d, r8d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
mov rcx, rbx
test eax, eax
je 0x140101051
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140101080
mov edi, dword [rsp + 0x44]
jmp 0x140101049
call fcn.140004cb4
test al, al
jne 0x140101068
bts esi, 0x15
xor ecx, ecx
jmp 0x140101070
call fcn.140002496
mov rcx, rax
mov r9d, esi
mov r8, r14
mov rdx, rbx
call fcn.140003ecc
mov edi, eax
mov rbx, qword [rsp + 0x60]
mov eax, edi
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop r14
ret
Function at 0x140005466
Capabilities:
Delete directory
Delete file

Disassembly:
jmp 0x14006ca00
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x40]
mov rbx, rcx
test rax, rax
je 0x14006ca23
mov rdx, qword [rcx + 0x28]
xor ecx, ecx
call rax
mov rax, qword [rbx + 0x38]
test rax, rax
je 0x14006ca2e
call rax
mov rcx, qword [rbx + 8]
xor esi, esi
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x38], rsi
mov qword [rbx + 0x40], rsi
mov qword [rbx + 0x48], rsi
test rcx, rcx
je 0x14006ca53
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [rbx + 8], rsi
lea rcx, [rbx + 0x50]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.140003ffd
Function at 0x14000d7d0
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x5f0
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x5e0], rax
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x2b0]
mov r8d, 0x104
call fcn.1400033e1
xor edx, edx
lea rcx, [rsp + 0x3c0]
mov r8d, 0x104
call fcn.1400033e1
xor ebp, ebp
cmp qword [0x14016d650], rbp
je 0x14000d8bc
mov qword [rsp + 0x618], r15
xor r14d, r14d
lea r15, [0x14016d650]
mov rbx, r15
nop dword [rax + rax]
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.140002225
mov rsi, rax
test rax, rax
je 0x14000d894
mov r8, qword [r14 + r15 + 0x10]
mov rdx, qword [r14 + r15 + 8]
mov rcx, qword [rax + 0x7c]
call fcn.140004c37
or dword [rsi + 0x54], 0x8000000c
mov rcx, rsi
call fcn.140003af8
test eax, eax
je 0x14000d894
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.1400013c5
inc ebp
lea rcx, [rbp*2]
add rcx, rbp
lea r14, [rcx*8]
cmp qword [r14 + r15], 0
lea rbx, [r14 + r15]
jne 0x14000d850
mov r15, qword [rsp + 0x618]
xor r9d, r9d
mov qword [rsp + 0x20], 0
mov edx, 0x104
lea rcx, [rsp + 0x2b0]
lea r8d, [r9 + 2]
call fcn.140002ced
lea rcx, [rsp + 0x2b0]
call fcn.14000dee0
lea r14, [0x14011d680]
mov ecx, 0x104
mov r9, r14
lea r8, [0x14011d684]
lea rdx, [rsp + 0x3c0]
call fcn.14000e120
mov ecx, 0x104
call fcn.1400037c9
mov rbx, rax
test rax, rax
je 0x14000da7b
xor edx, edx
mov r8d, 0x104
mov rcx, rax
call fcn.1400033e1
lea rax, [rsp + 0x3c0]
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x2b0]
lea rax, [0x14011d674]
lea r8, [0x14011d678]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x4d0]
call fcn.14000e120
lea rdx, [rsp + 0x170]
lea rcx, [rsp + 0x4d0]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x14000da6f
lea r8, [rsp + 0x19c]
or r9, 0xffffffffffffffff
mov edx, 0x104
mov rcx, rbx
call fcn.140003c4c
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.1400033e1
mov edx, 0x104
mov rcx, rbx
call fcn.140004e71
mov rcx, rax
add rax, 0xfffffffffffffffc
cmp rax, 0xff
ja 0x14000da4a
mov byte [rbx + rcx - 3], 0
mov rdx, rbx
mov rcx, rdi
call fcn.140001d89
test rax, rax
jne 0x14000da4a
mov rdx, rbx
mov rcx, rdi
call fcn.140002225
mov rsi, rax
test rax, rax
je 0x14000da4a
lea r9, [rax + 0x14]
mov qword [rsp + 0x20], r14
mov edx, 0x104
lea rcx, [rsp + 0x30]
mov r8d, 2
call fcn.140002ced
mov rcx, qword [rsi + 0x7c]
lea r8, [0x14011d688]
lea rdx, [rsp + 0x30]
call fcn.14000293c
mov rcx, rsi
call fcn.140003af8
test eax, eax
je 0x14000da4a
mov rdx, rbx
mov rcx, rdi
call fcn.1400013c5
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14000da66
lea r8, [rsp + 0x5c]
jmp 0x14000d999
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rcx, rbx
call fcn.140002d65
xor eax, eax
jmp 0x14000da80
mov eax, 0x708
mov rcx, qword [rsp + 0x5e0]
xor rcx, rsp
call fcn.140004ca5
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140014f90
Capabilities:
Hash data using sha1

Disassembly:
jmp 0x140014f90
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
mov dword [rsp + 0x20], 0x67452301
mov qword [rsp + 0x24], rax
mov ebx, r8d
mov qword [rsp + 0x2c], rax
mov rdi, rdx
mov qword [rsp + 0x34], rax
mov rsi, rcx
mov dword [rsp + 0x24], 0xefcdab89
mov dword [rsp + 0x28], 0x98badcfe
mov dword [rsp + 0x2c], 0x10325476
mov dword [rsp + 0x30], 0xc3d2e1f0
mov qword [rsp + 0x38], rax
test r8d, 0xfffffe00
je 0x14001501f
nop word [rax + rax]
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140002671
add rdi, 0x40
add ebx, 0xfffffe00
test ebx, 0xfffffe00
jne 0x140015000
movzx r8d, bx
lea rcx, [rsp + 0x20]
mov rdx, rdi
call fcn.140003977
lea r9, [rsp + 0x20]
mov r8d, 5
sub r9, rsi
nop
mov ecx, dword [r9 + rsi]
lea rsi, [rsi + 4]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
mov dword [rsi - 4], edx
sub r8, 1
jne 0x140015040
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140015d80
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x150], rax
cmp byte [0x14016d690], 0
mov ebx, edx
mov rdi, rcx
jne 0x140015e35
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.1400033e1
mov ecx, ebx
sub ecx, 0x194
je 0x140015de4
cmp ecx, 0x61
je 0x140015ddb
lea rax, str.Server_Error
jmp 0x140015deb
lea rax, str.Not_Implemented
jmp 0x140015deb
lea rax, str.Not_Found
mov qword [rsp + 0x30], rax
lea r8, str.HTTP_1.1__d__s_r_n_r_n_h1__d__s__h1_
mov dword [rsp + 0x28], ebx
lea rdx, [rsp + 0x40]
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov ecx, 0x104
call fcn.1400151d0
mov edx, 0x104
lea rcx, [rsp + 0x40]
call fcn.140004e71
mov rcx, qword [rdi]
lea rdx, [rsp + 0x40]
xor r9d, r9d
mov r8d, eax
call qword [sym.imp.WSOCK32.dll_send]
mov rcx, rdi
call fcn.1400014f6
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140004ca5
mov rbx, qword [rsp + 0x180]
add rsp, 0x160
pop rdi
ret

Function at 0x1400161d0
Capabilities:
Initialize winsock library

Disassembly:
sub rsp, 0x1f8
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x198
call fcn.1400033e1
mov ecx, 0x202
lea rdx, [rsp + 0x40]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x140016259
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x140016259
test dword [0x14016b76d], 0x40000
je 0x140016259
mov dword [rsp + 0x30], eax
lea r9, str.C:_tcag1work17c22847bd57b040ESIFProductsESIF_UFSourcesesif_uf_ccb_sock.h
lea rax, str.WSAStartup_failed:__d_n
mov edx, 1
mov qword [rsp + 0x28], rax
lea r8, str.esif_ccb_socket_init
mov ecx, 0x40000
mov dword [rsp + 0x20], 0x26
call fcn.140003693
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x1f8
ret
Function at 0x140016f10
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rbx, rcx
xor r9d, r9d
mov rcx, qword [rcx]
mov rsi, r8
call qword [sym.imp.WSOCK32.dll_send]
movsxd rdi, eax
cmp rdi, 0xffffffffffffffff
je 0x140016f51
cmp rdi, rsi
jne 0x140016f51
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rbx]
call qword [sym.imp.WSOCK32.dll_closesocket]
mov qword [rbx], 0xffffffffffffffff
cmp dword [reloc.WSOCK32.dll_accept], 4
jl 0x140016fc2
test dword [0x14016b7a0], 0x40000
je 0x140016fc2
lea rdx, str.Error_in_sending_packets_n
cmp rdi, 0xffffffffffffffff
lea rax, str.Incomplete_data_n
mov ecx, 0x40000
cmove rax, rdx
lea r9, str.........ESIF_WSSourcesesif_ws_server.c
mov qword [rsp + 0x30], rax
lea r8, str.esif_ws_client_write_to_socket
lea rax, str.Error_writing_to_socket:__s
mov edx, 4
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x23e
call fcn.140003693
mov rbx, qword [rsp + 0x50]
mov eax, 1
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x140017c40
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov rax, qword [rsp + 0x50]
lea rbx, [0x14011e5c8]
test r8, r8
lea rbp, [0x14011e5cc]
mov rsi, rbx
mov r14, rdx
cmovne rsi, r8
mov rdi, rcx
movsxd r8, dword [rdx]
test r9, r9
cmovne rbx, r9
test rax, rax
cmovne rbp, rax
xor edx, edx
call fcn.1400033e1
mov qword [rdi], 2
movzx eax, byte [rsi]
cmp al, byte [0x14011e5c8]
jne 0x140017cb3
movzx edx, byte [0x14011e5c9]
cmp byte [rsi + 1], dl
je 0x140017cd0
mov rcx, rsi
call qword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [rdi + 4], eax
cmp eax, 0xffffffff
jne 0x140017cc9
or eax, 0xffffffff
jmp 0x140017d46
movzx edx, byte [0x14011e5c9]
movzx eax, byte [rbx]
cmp al, byte [0x14011e5c8]
jne 0x140017ce0
cmp byte [rbx + 1], dl
je 0x140017d3d
movsx ecx, byte [rbx]
call fcn.140004787
mov rcx, rbx
test eax, eax
je 0x140017d27
mov r8d, 0xa
lea rdx, [rsp + 0x50]
call fcn.14000385a
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x140017d15
cmp byte [rcx], 0
je 0x140017d15
mov eax, 0xfffffffe
jmp 0x140017d46
cmp eax, 0x7fff
ja 0x140017d0e
movzx ecx, ax
call qword [sym.imp.WSOCK32.dll_htons]
jmp 0x140017d39
mov rdx, rbp
call qword [sym.imp.WSOCK32.dll_getservbyname]
test rax, rax
je 0x140017d0e
movzx eax, word [rax + 0x18]
mov word [rdi + 2], ax
mov dword [r14], reloc.WSOCK32.dll_recv
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140019390
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
jmp 0x140019390
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12, qword [rsp + 0x70]
xor ebx, ebx
mov r15, r9
mov rbp, r8
mov rdi, rdx
mov r14, rcx
mov qword [r12], rbx
cmp rdx, 2
jb 0x1400194f1
movzx ecx, word [rcx]
lea esi, [rbx + 2]
mov eax, 6
lea r13d, [rbx + 0x7f]
movzx edx, cx
mov r8d, 0x7e
shr dx, 0xf
and dl, 1
cmovne esi, eax
movzx eax, cx
shr ax, 8
and ax, 0x7f
cmp r8w, ax
jne 0x140019406
add rsi, 2
jmp 0x140019410
cmp r13w, ax
jne 0x140019410
add rsi, 8
cmp rdi, rsi
jb 0x1400194f1
test rsi, rsi
je 0x1400194f1
test cl, 0x70
je 0x140019431
mov eax, 0xf1
jmp 0x1400194f6
test cl, cl
jns 0x140019427
test dl, dl
je 0x140019427
movzx ecx, byte [r14]
and cl, 0xf
lea eax, [rcx - 1]
cmp al, 1
jbe 0x14001944e
lea eax, [rcx - 8]
cmp al, 2
ja 0x140019427
movzx eax, cl
lea r8, [rsp + 0x70]
mov rcx, r14
mov dword [rsp + 0x70], eax
mov rdx, rdi
call fcn.140019290
mov r8, rax
test rax, rax
je 0x1400194eb
mov rax, rdi
sub rax, rsi
cmp r8, rax
ja 0x1400194f1
jae 0x140019484
sub rdi, rsi
sub rdi, r8
mov qword [r12], rdi
movzx ecx, word [r14]
movzx eax, cx
shr ax, 0xf
test al, 1
je 0x140019427
shr cx, 8
mov eax, 0x7e
and cx, r13w
cmp ax, cx
jne 0x1400194ab
lea rdx, [r14 + 4]
jmp 0x1400194b9
lea rdx, [r14 + 0xa]
cmp r13w, cx
je 0x1400194b9
lea rdx, [r14 + 2]
test rdx, rdx
je 0x140019427
lea rax, [rdx + 4]
mov qword [rbp], rax
mov qword [r15], r8
test r8, r8
je 0x1400194eb
mov rcx, qword [rbp]
mov rax, rbx
and eax, 3
movzx eax, byte [rax + rdx]
xor byte [rcx + rbx], al
inc rbx
cmp rbx, qword [r15]
jb 0x1400194d2
mov eax, dword [rsp + 0x70]
jmp 0x1400194f6
mov eax, 0xf2
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x14001a440
Capabilities:
Create thread

Disassembly:
jmp 0x14001a440
sub rsp, 0x38
xor eax, eax
lock xadd qword [0x14016d688], rax
test rax, rax
jg 0x14001a4cc
mov ecx, reloc.WSOCK32.dll_recv
mov qword [rsp + 0x30], rbx
call fcn.1400037c9
mov rbx, rax
test rax, rax
je 0x14001a4c7
lea rax, [0x14001bb40]
mov qword [rbx + 8], 0
mov qword [rbx], rax
lea r8, [0x14001c510]
lea rax, [0x14016d820]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x14001a4bf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
ret
mov rcx, rbx
call fcn.140002d65
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x38
ret
Function at 0x140023210
Capabilities:
Enumerate files on windows

Disassembly:
sub rsp, 0x568
mov rax, qword [0x14016c1f0]
xor rax, rsp
mov qword [rsp + 0x550], rax
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call fcn.1400033e1
call fcn.14000155f
mov qword [0x14016d8b8], rax
test rax, rax
jne 0x140023269
mov eax, 0x708
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x568
ret
xor r9d, r9d
mov qword [rsp + 0x560], rdi
mov edx, 0x80
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x3c0]
lea r8d, [r9 + 7]
call fcn.140002ced
lea rax, str.upe_.dll
mov ecx, 0x104
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c0]
lea rax, [0x14011d674]
lea r8, [0x14011d678]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x440]
call fcn.140024f20
lea rdx, [rsp + 0x140]
lea rcx, [rsp + 0x440]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400233ac
mov qword [rsp + 0x570], rbx
lea r8, [rsp + 0x16c]
or r9, 0xffffffffffffffff
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.140003c4c
mov ecx, 0x30
call fcn.1400037c9
mov rbx, rax
test rax, rax
je 0x14002339b
xor eax, eax
lea rcx, [rsp + 0x30]
mov qword [rbx], rax
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rax
mov qword [rbx + 0x18], rax
lea edx, [rax + 0x2e]
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
call fcn.14000340e
test rax, rax
je 0x140023371
lea rcx, [rsp + 0x30]
mov byte [rax], 0
call fcn.140002676
mov qword [rbx + 0x18], rax
mov rdx, rbx
mov rcx, qword [0x14016d8b8]
call fcn.140004f48
jmp 0x140023379
mov rcx, rbx
call fcn.140002d65
lea rdx, [rsp + 0x280]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x14002339b
lea r8, [rsp + 0x2ac]
jmp 0x1400232ff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x570]
mov rdi, qword [rsp + 0x560]
xor eax, eax
mov rcx, qword [rsp + 0x550]
xor rcx, rsp
call fcn.140004ca5
add rsp, 0x568
ret
Function at 0x1400397f0
Capabilities:
Create thread

Disassembly:
jmp 0x1400397f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp dword [reloc.WSOCK32.dll_accept], 3
jl 0x140039845
test dword [0x14016b78f], 0x1000000
je 0x140039845
lea rax, str.Entering_Function...
mov edx, 3
mov qword [rsp + 0x28], rax
lea r9, str.....esif_uf_eventmgr.c
lea r8, str.EsifEventMgr_Init
mov dword [rsp + 0x20], 0x33e
mov ecx, 0x1000000
call fcn.140003693
lea rcx, [0x140182b70]
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
xor edi, edi
lea rsi, [0x140182970]
mov qword [0x140182b78], rdi
xor bl, bl
mov dword [0x140182b80], edi
nop word [rax + rax]
call fcn.14000155f
mov rcx, rax
movzx eax, bl
mov qword [rsi + rax*8], rcx
test rcx, rcx
je 0x140039925
inc bl
cmp bl, 0x40
jb 0x140039870
xor r8d, r8d
lea rdx, str.UfQueue
or ecx, 0xffffffff
call fcn.140004642
mov qword [0x140182b90], rax
call fcn.14000155f
cmp qword [0x140182b90], rdi
mov qword [0x140182b88], rax
je 0x140039925
test rax, rax
je 0x140039925
mov ecx, reloc.WSOCK32.dll_recv
call fcn.1400037c9
mov rbx, rax
test rax, rax
je 0x140039925
lea rax, [0x1400394e0]
mov qword [rbx + 8], rdi
mov qword [rbx], rax
lea r8, [0x14003c890]
lea rax, [0x140182ba4]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140039916
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003992f
mov rcx, rbx
call fcn.140002d65
mov edi, 0x3eb
jmp 0x14003992a
mov edi, 0x708
call fcn.14000380a
cmp dword [reloc.WSOCK32.dll_accept], 3
jl 0x140039979
test dword [0x14016b78f], 0x1000000
je 0x140039979
lea rax, str.Exiting_function:_Exit_code__0x_08X...
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
lea r9, str.....esif_uf_eventmgr.c
lea r8, str.EsifEventMgr_Init
mov dword [rsp + 0x20], 0x35b
mov edx, 3
mov ecx, 0x1000000
call fcn.140003693
mov rbx, qword [rsp + 0x50]
mov eax, edi
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14003e320
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x60
mov rax, rdx
mov rbx, rcx
test rdx, rdx
jne 0x14003e393
cmp dword [reloc.WSOCK32.dll_accept], 1
jl 0x14003e4e5
test dword [0x14016b76d], 0x800000
je 0x14003e4e5
lea rax, str.logstring_is_NULL
mov edx, 1
mov qword [rsp + 0x28], rax
lea r9, str.....esif_uf_loggingmgr.c
lea r8, str.EsifLogMgr_DataLogWrite
mov dword [rsp + 0x20], 0x98d
mov ecx, 0x800000
call fcn.140003693
add rsp, 0x60
pop rbx
ret
mov ecx, dword [rcx + 0x70]
test ecx, ecx
je 0x14003e4e5
mov qword [rsp + 0x58], rbp
test cl, 8
jbe 0x14003e3bd
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.140001505
mov rax, qword [rsp + 0x78]
test byte [rbx + 0x70], 4
jbe 0x14003e3e4
lea r9, [rsp + 0x80]
mov r8, rax
lea rdx, [0x140129624]
mov ecx, 5
call fcn.140003ca1
mov rax, qword [rsp + 0x78]
test byte [rbx + 0x70], 2
mov qword [rsp + 0x48], rdi
jbe 0x14003e462
lea rdx, [rsp + 0x80]
mov qword [rsp + 0x50], rsi
mov rcx, rax
call fcn.1400019ab
inc eax
movsxd rsi, eax
mov rcx, rsi
call fcn.1400037c9
mov rdi, rax
test rax, rax
je 0x14003e458
mov r8, rsi
xor edx, edx
mov rcx, rax
call fcn.1400033e1
mov r9, qword [rsp + 0x78]
lea rax, [rsp + 0x80]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, rdi
call fcn.1400049fd
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, rdi
call fcn.140002d65
mov rax, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x50]
test byte [rbx + 0x70], 1
jbe 0x14003e4db
lea rdx, [rsp + 0x80]
mov rcx, rax
call fcn.1400019ab
inc eax
movsxd rdi, eax
mov rcx, rdi
call fcn.1400037c9
mov rbx, rax
test rax, rax
je 0x14003e4db
mov r8, rdi
xor edx, edx
mov rcx, rax
call fcn.1400033e1
mov r9, qword [rsp + 0x78]
lea rax, [rsp + 0x80]
or r8, 0xffffffffffffffff
mov qword [rsp + 0x20], rax
mov rdx, rdi
mov rcx, rbx
call fcn.1400049fd
mov ecx, 4
mov eax, 1
movzx edx, cx
mov r8, rbx
movzx ecx, ax
call fcn.140002ea5
mov rcx, rbx
call fcn.140002d65
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
pop rbx
ret
Function at 0x140041890
Capabilities:
Create thread

Disassembly:
jmp 0x140041890
push rdi
sub rsp, 0x30
cmp byte [rcx + 0x69], 0
mov rdi, rcx
jne 0x140041957
mov word [rcx + 0x69], 1
mov byte [rcx + 0x68], 1
add rcx, 0x30
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
xor esi, esi
xor r9d, r9d
xor edx, edx
mov qword [rdi + 0x38], rsi
xor ecx, ecx
mov dword [rdi + 0x40], esi
mov r8d, 0x7fffffff
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
lea ecx, [rsi + 0x10]
mov dword [rdi + 0x48], esi
mov qword [rdi + 0x50], rax
mov byte [rdi + 0x44], sil
call fcn.1400037c9
mov rbx, rax
test rax, rax
je 0x14004194d
lea rcx, [rdi + 0x2c]
mov qword [rbx + 8], rdi
mov qword [rsp + 0x28], rcx
lea rax, [0x140041aa0]
xor ecx, ecx
mov qword [rbx], rax
mov r9, rbx
mov dword [rsp + 0x20], esi
lea r8, [0x140043c90]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140041945
mov rcx, rax
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call fcn.140002d65
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140043cd0
Capabilities:
Create thread

Disassembly:
jmp 0x140043cd0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov eax, dword [0x140167a68]
xor esi, esi
cmp ecx, 0x1f4
cmovge eax, ecx
xor bl, bl
mov dword [0x140167a68], eax
movzx ecx, bl
call fcn.1400041d3
mov rdi, rax
test rax, rax
je 0x140043d18
mov rcx, rax
call fcn.140004566
mov rcx, rdi
call fcn.14000496c
inc bl
cmp bl, 0x20
jb 0x140043cf8
mov rax, rsi
lock xadd qword [0x140167a60], rax
test al, al
je 0x140043dbb
mov ecx, reloc.WSOCK32.dll_recv
call fcn.1400037c9
mov rbx, rax
test rax, rax
je 0x140043db6
lea rax, [0x140043f20]
mov qword [rbx + 8], rsi
mov qword [rbx], rax
lea r8, [0x140046020]
lea rax, [0x140182f00]
mov r9, rbx
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x140043d97
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.140002d65
mov esi, 0x3eb
mov eax, esi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov esi, 0x708
mov rbx, qword [rsp + 0x40]
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret