joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400d9d20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x38], 0x8000
mov eax, dword [rsp + 0x34]
mov edx, eax
mov rcx, qword [rsp + 0x20]
call qword [fcn.140152710]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400d9d70
mov rcx, qword [rsp + 0x20]
call qword [fcn.140145500]
xor eax, eax
jmp 0x1400d9ddb
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x20], rax
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
je 0x1400d9db6
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x1400d9db6
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jbe 0x1400d9dc5
mov rcx, qword [rsp + 0x20]
call qword [fcn.140145500]
xor eax, eax
jmp 0x1400d9ddb
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x1400d9dd6
mov rax, qword [rsp + 0x20]
jmp 0x1400d9ddb
jmp 0x1400d9d43
add rsp, 0x40
pop rdi
ret

Function at 0x1400dba10
Capabilities:
Send data
Send data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x50
lea rdi, [rsp + 0x20]
mov ecx, recv
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x40], rax
mov eax, 1
imul rax, rax, 0
mov byte [rsp + rax + 0x24], 0xff
mov eax, 1
imul rax, rax, 1
movzx ecx, byte [rsp + 0x68]
mov byte [rsp + rax + 0x24], cl
mov eax, 1
imul rax, rax, 2
movzx ecx, byte [rsp + 0x70]
mov byte [rsp + rax + 0x24], cl
mov eax, 8
imul rax, rax, 0
xor r9d, r9d
mov r8d, 3
lea rdx, [rsp + 0x24]
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + rax + 0x1a8]
call qword [sym.imp.WS2_32.dll_send]
cdqe
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jge 0x1400dbad2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x48], eax
mov r8d, dword [rsp + 0x48]
lea rdx, [0x1403268a8]
mov rcx, qword [rsp + 0x60]
call fcn.1400af040
mov r9d, dword [rsp + 0x70]
mov r8d, dword [rsp + 0x68]
lea rdx, [0x1403268c4]
mov rcx, qword [rsp + 0x60]
call fcn.1400db740
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14019e3d0
add rsp, 0x50
pop rdi
ret
Function at 0x1400f1820
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x120
lea rdi, [rsp + 0x20]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x130]
mov rax, qword [0x14031f010]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rax, qword [rsp + 0x130]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x20], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x20]
mov rax, qword [rcx + rax + 0x1a8]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x38], 0xffffffffffffffff
mov dword [rsp + 0xf4], 0x80
lea r8, [rsp + 0xf4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400f18dc
mov dword [rsp + 0xf4], 0x80
lea r8, [rsp + 0xf4]
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0xffffffffffffffff
jne 0x1400f1902
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x130]
call fcn.1400af040
mov eax, reloc.WLDAP32.dll_Ordinal_30
jmp 0x1400f19fa
lea rdx, str.Connection_accepted_from_server
mov rcx, qword [rsp + 0x130]
call fcn.1400aef00
mov rax, qword [rsp + 0x20]
mov byte [rax + 0x2d5], 0
mov edx, 1
mov rcx, qword [rsp + 0x38]
call fcn.14011e100
lea r9, [rsp + 0x38]
mov r8d, 1
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
call fcn.140107be0
mov dword [rsp + 0x104], eax
cmp dword [rsp + 0x104], 0
je 0x1400f196b
mov eax, dword [rsp + 0x104]
jmp 0x1400f19fa
mov rax, qword [rsp + 0x130]
cmp qword [rax + 0x270], 0
je 0x1400f19f8
mov dword [rsp + 0x108], 0
mov dl, 1
mov rcx, qword [rsp + 0x130]
call fcn.14008ee10
mov r8d, 1
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x130]
mov rcx, qword [rax + 0x278]
mov rax, qword [rsp + 0x130]
call qword [rax + 0x270]
mov dword [rsp + 0x108], eax
xor edx, edx
mov rcx, qword [rsp + 0x130]
call fcn.14008ee10
cmp dword [rsp + 0x108], 0
je 0x1400f19f8
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x130]
call fcn.1400f16d0
mov eax, Ordinal_46
jmp 0x1400f19fa
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14019e3d0
mov rax, rdi
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.14005de20
add rsp, 0x120
pop rdi
ret
Function at 0x1400f5140
Capabilities:
Check http status code

Disassembly:
mov byte [rsp + 0x18], r8b
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x1400f5195
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x40]
call fcn.1400af040
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x1400f5224
cmp dword [rsp + 0x48], 0xc8
je 0x1400f51b5
mov r8d, dword [rsp + 0x48]
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
mov rcx, qword [rsp + 0x40]
call fcn.1400aef00
movzx eax, byte [rsp + 0x50]
cmp eax, 0x13
jne 0x1400f51d4
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.1400f3560
mov dword [rsp + 0x20], eax
jmp 0x1400f5220
movzx eax, byte [rsp + 0x50]
cmp eax, 0x14
jne 0x1400f51ee
mov rcx, qword [rsp + 0x40]
call fcn.1400f3620
mov dword [rsp + 0x20], eax
jmp 0x1400f5220
movzx eax, byte [rsp + 0x50]
cmp eax, 0x15
jne 0x1400f5208
mov rcx, qword [rsp + 0x40]
call fcn.1400f38e0
mov dword [rsp + 0x20], eax
jmp 0x1400f5220
movzx eax, byte [rsp + 0x50]
cmp eax, 0x16
jne 0x1400f5220
mov rcx, qword [rsp + 0x40]
call fcn.1400f3910
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret

Function at 0x140107400
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x90
lea rdi, [rsp + 0x30]
mov ecx, Ordinal_26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa0]
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x54], 0
mov dword [rsp + 0x74], 4
cmp dword [0x1403351ec], 0
jne 0x140107481
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140113940
movzx eax, al
test eax, eax
je 0x140107477
mov dword [0x1403351ec], 2
jmp 0x140107481
mov dword [0x1403351ec], 1
cmp dword [0x1403351ec], 2
jne 0x14010748c
jmp 0x1401074ea
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x54]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401074c4
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x54], eax
jle 0x1401074c4
jmp 0x1401074ea
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 0x1001
mov edx, 0xffff
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14019e3d0
add rsp, 0x90
pop rdi
ret
Function at 0x140107ed0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x180
lea rdi, [rsp + 0x30]
mov ecx, 0x54
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x190]
mov rax, qword [0x14031f010]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x44], 6
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x34]
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x198]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x140107f75
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0x60]
mov ecx, eax
call fcn.140083af0
mov r8, rax
lea rdx, str.Could_not_set_TCP_NODELAY:__s
mov rcx, qword [rsp + 0x190]
call fcn.1400aef00
mov rcx, rsp
lea rdx, reloc.XINPUT1_3.dll_Ordinal_2
call fcn.14019e3d0
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.14005de20
add rsp, 0x180
pop rdi
ret

Function at 0x140107fb0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
lea rdi, [rsp + 0x50]
mov ecx, reloc.WLDAP32.dll_Ordinal_32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xe0]
mov rax, qword [0x14031f010]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov rax, qword [rsp + 0xe0]
movzx eax, byte [rax + 0xab4]
test eax, eax
je 0x14010800d
mov dword [rsp + 0xc0], 1
jmp 0x140108018
mov dword [rsp + 0xc0], 0
mov eax, dword [rsp + 0xc0]
mov dword [rsp + 0x54], eax
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov r8d, 8
mov edx, 0xffff
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x14010806e
mov r8, qword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SO_KEEPALIVE_on_fd__d
mov rcx, qword [rsp + 0xe0]
call fcn.1400aef00
jmp 0x140108146
mov dword [rsp + 0x78], 1
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa1c]
call fcn.1400b2bc0
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x7c], eax
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rax + 0xa20]
call fcn.1400b2bc0
mov dword [rsp + 0x54], eax
imul eax, dword [rsp + 0x54], 0x3e8
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x80], eax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0xa4]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, recv
lea r8, [rsp + 0x78]
mov edx, 0x98000004
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x140108146
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r9d, eax
mov r8d, dword [rsp + 0xe8]
lea rdx, str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
mov rcx, qword [rsp + 0xe0]
call fcn.1400aef00
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14019e3d0
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.14005de20
add rsp, 0xd0
pop rdi
ret
Function at 0x140108f80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x220
lea rdi, [rsp + 0x20]
mov ecx, 0x80
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x230]
mov rax, qword [0x14031f010]
xor rax, rsp
mov qword [rsp + 0x218], rax
mov rax, qword [rsp + 0x230]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x1f4], 0x80
mov r8d, 0x80
xor edx, edx
lea rcx, [rsp + 0x160]
call fcn.14012dfc0
lea r8, [rsp + 0x1f4]
lea rdx, [rsp + 0x160]
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140109061
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [rsp + 0x204], eax
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rsp + 0x204]
call fcn.140083af0
mov r9, rax
mov r8d, dword [rsp + 0x204]
lea rdx, str.getsockname___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x238]
call fcn.1400af040
mov eax, 2
jmp 0x1401090e8
mov rax, qword [rsp + 0x20]
add rax, 0x104
mov rcx, qword [rsp + 0x20]
add rcx, 0xd4
mov r9, rax
mov r8, rcx
mov edx, dword [rsp + 0x1f4]
lea rcx, [rsp + 0x160]
call fcn.1400b0040
movzx eax, al
test eax, eax
jne 0x1401090e6
call fcn.14015b3d0
mov r8d, 0x100
lea rdx, [rsp + 0x40]
mov ecx, dword [rax]
call fcn.140083af0
mov qword [rsp + 0x210], rax
call fcn.14015b3d0
mov rcx, qword [rsp + 0x210]
mov r9, rcx
mov r8d, dword [rax]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov rcx, qword [rsp + 0x238]
call fcn.1400af040
mov eax, 2
jmp 0x1401090e8
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.14019e3d0
mov rax, rdi
mov rcx, qword [rsp + 0x218]
xor rcx, rsp
call fcn.14005de20
add rsp, 0x220
pop rdi
ret

Function at 0x140109600
Capabilities:
Connect socket

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0xffffffff
movzx eax, byte [rsp + 0x50]
test eax, eax
je 0x140109635
jmp 0x140109660
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
add rsp, 0x30
pop rdi
ret
Function at 0x14010a600
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x20], rax
xor eax, eax
test eax, eax
jne 0x14010a61d
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov rcx, qword [rsp + 0x20]
mov r8d, dword [rcx + 0x14]
mov rdx, rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0xffffffff
jne 0x14010a679
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x20]
add rcx, 0xa0
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x48]
call fcn.140107300
jmp 0x14010a6b2
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call fcn.140108f80
xor eax, eax
test eax, eax
jne 0x14010a688
mov edx, 1
mov rax, qword [rsp + 0x20]
mov rcx, qword [rax + 0x98]
call fcn.14011e100
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 8]
mov dword [rsp + 0x2c], eax
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x14011e100
Capabilities:
Set socket configuration

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
lea rdi, [rsp + 0x20]
mov ecx, 8
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x50]
cmp dword [rsp + 0x58], 0
je 0x14011e135
mov dword [rsp + 0x34], 1
jmp 0x14011e13d
mov dword [rsp + 0x34], 0
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_accept
call fcn.14019e3d0
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x140125b00
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x140125b36
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140125b7a
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8003
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x140125b78
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140125b7a
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140125b90
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret

Function at 0x140125ca0
Capabilities:
Get hostname

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_gethostname]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x48]
dec eax
cdqe
mov rcx, qword [rsp + 0x40]
mov byte [rcx + rax], 0
cmp dword [rsp + 0x20], 0
je 0x140125cf1
mov eax, dword [rsp + 0x20]
jmp 0x140125d17
mov edx, reloc.WLDAP32.dll_Ordinal_46
mov rcx, qword [rsp + 0x40]
call fcn.14012ccd0
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140125d15
mov rax, qword [rsp + 0x28]
mov byte [rax], 0
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140126630
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
lea rdi, [rsp + 0x40]
mov ecx, Ordinal_41
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x14031f010]
xor rax, rsp
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xb4], 8
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1401266a6
xor al, al
jmp 0x1401267b8
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.14012dfc0
mov byte [rsp + 0x88], 8
mov byte [rsp + 0x89], 2
mov dword [rsp + 0x8c], 0x6601
mov dword [rsp + 0x90], 8
lea rdx, [rsp + 0x94]
mov rcx, qword [rsp + 0x100]
call fcn.140126440
mov edx, 8
lea rcx, [rsp + 0x94]
call fcn.14012a830
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, reloc.WS2_32.dll_sendto
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x14012674b
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x1401267b8
mov r8d, 8
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
call fcn.14012d910
mov eax, dword [rsp + 0xb4]
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xf8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.XINPUT1_3.dll_Ordinal_4
call fcn.14019e3d0
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14005de20
add rsp, 0xe0
pop rdi
ret

Function at 0x140128cb0
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, Ordinal_26
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x140128d06
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800c
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x140128d20
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret
Function at 0x14012aa00
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov rax, qword [rsp + 0x40]
mov qword [rax + 8], 0
mov rax, qword [rsp + 0x40]
mov dword [rsp + 0x20], 0xf0000040
mov r9d, 1
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14012aa6f
mov rax, qword [rsp + 0x40]
add rax, 8
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x8002
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
add rsp, 0x30
pop rdi
ret

Function at 0x14012aa80
Capabilities:
Hash data via wincrypt

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x20
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x38]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
add rsp, 0x20
pop rdi
ret

Function at 0x140134660
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140134140
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14013469f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1401a7970]
jmp 0x1401346a9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x140181f20
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140181f4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14015b370
mov eax, 0xffffffff
jmp 0x140181f4e
xor eax, eax
add rsp, 0x28
ret

Function at 0x140188ea0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x180001000
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x248
mov rax, qword [0x180024598]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rsi, [rsp + 0x130]
mov rcx, rsi
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rdx, str._sdxgi.dll
lea rdi, [rsp + 0x20]
mov rcx, rdi
mov r8, rsi
call fcn.1800010c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x180025240], rax
xor esi, esi
lea rdi, section..data
mov rbx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea r14, [0x180025250]
nop word cs:[rax + rax]
mov rdx, qword [rsi + rdi]
mov rcx, qword [0x180025240]
call rbx
mov qword [rsi + r14], rax
add rsi, 8
cmp rsi, 0x98
jne 0x180001080
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.180004730
nop
add rsp, 0x248
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1800022a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800022d3
call fcn.180001000
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1800021f0]
xor ecx, ecx
xor edx, edx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret