joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b4160
Capabilities:
Create process on windows

Disassembly:
push rbp
sub rsp, 0xd0
mov rbp, rsp
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0xe0], rcx
mov qword [rbp + 0xe8], rdx
mov qword [rbp + 0xf0], r8
mov qword [rbp + 0xf8], r9
lea rcx, [rbp + 0xf0]
call fcn.0040ea50
lea rcx, [rbp + 0xf8]
call fcn.0040ea50
nop
nop
lea rcx, [rbp + 0x68]
mov edx, 0x68
xor r8, r8
call fcn.0040a900
mov dword [rbp + 0x68], 0x68
mov rax, qword [rbp + 0xe8]
mov qword [rbp + 0x78], rax
mov dword [rbp + 0xa4], 1
movzx rax, word [rbp + 0x108]
mov word [rbp + 0xa8], ax
mov rcx, qword [rbp + 0xf8]
xor edx, edx
call fcn.0040fe20
test eax, eax
jne 0x5b420e
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0xf0]
call fcn.0040efc0
jmp 0x5b4237
lea rcx, [rbp + 0x60]
mov edx, 3
mov r8, qword [rbp + 0xf0]
lea r9, [0x005b4334]
mov rax, qword [rbp + 0xf8]
mov qword [rsp + 0x20], rax
call fcn.0040fd00
mov rcx, qword [rbp + 0x60]
call fcn.0040f9f0
xor ecx, ecx
mov rdx, rax
xor r8, r8
xor r9, r9
mov dword [rsp + 0x20], 0
mov eax, dword [rbp + 0x100]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
lea rax, [rbp + 0x68]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0xe0]
mov qword [rsp + 0x48], rax
call sub.kernel32.dll_CreateProcessW
test eax, eax
setne al
test al, al
jne 0x5b42bb
call sub.kernel32.dll_GetLastError_2
mov rcx, qword [rbp + 0xe0]
mov eax, eax
mov qword [rcx], rax
mov rax, qword [rbp + 0xe0]
mov dword [rax + 0x10], 0
jmp 0x5b42bb
nop
lea rcx, [rbp + 0x60]
call fcn.0040e920
lea rcx, [rbp + 0xf0]
mov edx, 2
call fcn.0040e9c0
mov rax, qword [rbp + 0xe0]
lea rsp, [rbp + 0xd0]
pop rbp
ret

Function at 0x5b4db0
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov byte [rbp + 0x50], cl
mov word [rbp + 0x58], dx
mov ecx, 2
mov edx, 1
xor r8, r8
call sub.ws2_32.dll_socket
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jbe 0x5b4e51
lea rcx, [rbp + 0x30]
mov edx, 0x10
xor r8, r8
call fcn.0040a900
mov word [rbp + 0x30], 2
movzx rcx, word [rbp + 0x58]
call sub.ws2_32.dll_htons
mov word [rbp + 0x32], ax
cmp byte [rbp + 0x50], 0
je 0x5b4e19
lea rcx, [0x005b4e5c]
call sub.ws2_32.dll_inet_addr
mov dword [rbp + 0x34], eax
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x30]
mov r8d, 0x10
call sub.ws2_32.dll_bind
test eax, eax
jne 0x5b4e40
mov rcx, qword [rbp + 0x28]
xor edx, edx
call sub.ws2_32.dll_listen
test eax, eax
je 0x5b4e51
mov rcx, qword [rbp + 0x28]
call sub.ws2_32.dll_closesocket
mov qword [rbp + 0x28], 0
mov rax, qword [rbp + 0x28]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x5b4e70
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status

Disassembly:
push rbp
sub rsp, 0x480
mov rbp, rsp
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], rbp
mov dword [rbp + 0x490], ecx
mov word [rbp + 0x498], dx
nop
mov qword [rbp + 0x468], 0
nop
mov ecx, 2
mov edx, 1
xor r8, r8
call sub.ws2_32.dll_socket
mov qword [rbp + 0x468], rax
cmp qword [rbp + 0x468], 0
jbe 0x5b50ba
lea rcx, [rbp + 0x470]
mov edx, 0x10
xor r8, r8
call fcn.0040a900
mov word [rbp + 0x470], 2
movzx rcx, word [rbp + 0x498]
call sub.ws2_32.dll_htons
mov word [rbp + 0x472], ax
lea rcx, [rbp + 0x30]
mov edx, dword [rbp + 0x490]
call fcn.005b4bc0
mov rcx, qword [rbp + 0x30]
call fcn.0040f730
mov rcx, rax
call sub.ws2_32.dll_inet_addr
mov dword [rbp + 0x474], eax
mov rcx, qword [rbp + 0x468]
call fcn.005b4d00
mov rcx, qword [rbp + 0x468]
lea rdx, [rbp + 0x470]
mov r8d, 0x10
call sub.ws2_32.dll_connect
test eax, eax
je 0x5b5099
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x5b4f79
mov rcx, qword [rbp + 0x468]
call sub.ws2_32.dll_closesocket
mov qword [rbp + 0x468], 0
jmp 0x5b5099
mov dword [rbp + 0x464], 0
cmp dword [rbp + 0x464], 5
jge 0x5b5078
lea rcx, [rbp + 0x250]
call fcn.0059fd40
mov rcx, qword [rbp + 0x468]
lea rdx, [rbp + 0x250]
call fcn.0059fd10
lea rcx, [rbp + 0x48]
call fcn.0059fd40
mov rcx, qword [rbp + 0x468]
lea rdx, [rbp + 0x48]
call fcn.0059fd10
mov dword [rbp + 0x45c], 0
mov dword [rbp + 0x460], 0x14
xor ecx, ecx
xor edx, edx
lea r8, [rbp + 0x250]
lea r9, [rbp + 0x48]
lea rax, [rbp + 0x45c]
mov qword [rsp + 0x20], rax
call sub.ws2_32.dll_select
sub eax, 1
cmp eax, 0xffffffff
je 0x5b500a
test eax, eax
jne 0x5b5064
jmp 0x5b5017
mov ecx, 0x64
call sub.kernel32.dll_Sleep_2
jmp 0x5b5064
mov rcx, qword [rbp + 0x468]
lea rdx, [rbp + 0x250]
call fcn.0059fd50
test al, al
jne 0x5b5078
mov rcx, qword [rbp + 0x468]
lea rdx, [rbp + 0x48]
call fcn.0059fd50
test al, al
je 0x5b5064
mov ecx, 0x274d
call sub.ws2_32.dll_WSASetLastError
mov rcx, qword [rbp + 0x468]
call sub.ws2_32.dll_closesocket
mov qword [rbp + 0x468], 0
add dword [rbp + 0x464], 1
cmp dword [rbp + 0x464], 5
jl 0x5b4f90
nop
cmp dword [rbp + 0x464], 5
jne 0x5b5099
mov rcx, qword [rbp + 0x468]
call sub.ws2_32.dll_closesocket
mov qword [rbp + 0x468], 0
cmp qword [rbp + 0x468], 0
je 0x5b50b9
mov rcx, qword [rbp + 0x468]
call fcn.005b4d30
jmp 0x5b50b9
nop
lea rcx, [rbp + 0x30]
call fcn.0040e8d0
mov rax, qword [rbp + 0x468]
lea rsp, [rbp + 0x480]
pop rbp
ret
Function at 0x5b5110
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov byte [rbp + 0x4f], 0
nop
mov qword [rbp + 0x38], 0
mov rcx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
call qword [rax]
mov qword [rbp + 0x40], rax
jmp 0x5b51be
mov rax, qword [rbp + 0x68]
mov rax, qword [rax + 8]
mov rcx, qword [rbp + 0x38]
lea rax, [rax + rcx]
mov qword [rbp + 0x30], rax
mov rcx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
call qword [rax]
mov rcx, qword [rbp + 0x38]
neg rcx
lea rax, [rax + rcx]
cmp rax, 0x20000
jle 0x5b5182
mov dword [rbp + 0x48], 0x20000
jmp 0x5b5195
mov rcx, qword [rbp + 0x68]
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
call qword [rax]
sub eax, dword [rbp + 0x38]
mov dword [rbp + 0x48], eax
mov rcx, qword [rbp + 0x60]
mov rdx, qword [rbp + 0x30]
mov r8d, dword [rbp + 0x48]
xor r9, r9
call sub.ws2_32.dll_send
cmp eax, dword [rbp + 0x48]
jne 0x5b51c9
movsxd rax, dword [rbp + 0x48]
sub qword [rbp + 0x40], rax
movsxd rax, dword [rbp + 0x48]
add qword [rbp + 0x38], rax
cmp qword [rbp + 0x40], 0
jg 0x5b5144
nop
cmp qword [rbp + 0x40], 0
jne 0x5b51d5
mov byte [rbp + 0x4f], 1
mov rcx, qword [rbp + 0x68]
xor edx, edx
xor r8, r8
mov rax, qword [rbp + 0x68]
mov rax, qword [rax]
call qword [rax + 0x48]
jmp 0x5b51f2
movzx rax, byte [rbp + 0x4f]
lea rsp, [rbp + 0x50]
pop rbp
ret
Function at 0x5b5740
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
add rsp, 0xffffffffffffff80
mov rbp, rsp
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x98], rdx
mov rcx, qword [rbp + 0x98]
call fcn.0040ea30
nop
nop
lea rcx, [rbp + 0x70]
xor edx, edx
xor r8, r8
mov r9d, 1
mov dword [rsp + 0x20], 0xf0000000
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x5b58b5
nop
mov rcx, qword [rbp + 0x70]
mov edx, 0x8003
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x78]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x5b589f
nop
mov dword [rbp + 0x54], 0
cmp qword [rbp + 0x98], 0
je 0x5b57e3
mov rax, qword [rbp + 0x98]
mov eax, dword [rax - 4]
mov dword [rbp + 0x54], eax
mov rcx, qword [rbp + 0x78]
mov rdx, qword [rbp + 0x98]
mov r8d, dword [rbp + 0x54]
xor r9, r9
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x5b5895
mov rcx, qword [rbp + 0x78]
mov edx, 2
xor r8, r8
lea r9, [rbp + 0x6c]
mov dword [rsp + 0x20], 0
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x5b5895
lea rcx, [rbp + 0x60]
mov rdx, qword [0x005b56f0]
mov r8d, 1
mov r9d, dword [rbp + 0x6c]
call fcn.00411ff0
mov rcx, qword [rbp + 0x78]
mov edx, 2
mov r8, qword [rbp + 0x60]
lea r9, [rbp + 0x6c]
mov dword [rsp + 0x20], 0
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x5b5895
mov rax, qword [rbp + 0x60]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x5b587d
mov rax, qword [rbp + 0x48]
mov rax, qword [rax - 8]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp + 0x90]
mov rdx, qword [rbp + 0x60]
mov rax, qword [rbp + 0x48]
lea r8, [rax - 1]
call fcn.005b5510
nop
mov rcx, qword [rbp + 0x78]
call sub.advapi32.dll_CryptDestroyHash
nop
mov rcx, qword [rbp + 0x70]
xor edx, edx
call sub.advapi32.dll_CryptReleaseContext
jmp 0x5b58b5
nop
lea rcx, [rbp + 0x58]
call fcn.0040e880
lea rcx, [rbp + 0x60]
mov rdx, qword [0x005b56f0]
call fcn.004121c0
lea rcx, [rbp + 0x98]
call fcn.0040e8d0
mov rax, qword [rbp + 0x90]
lea rsp, [rbp + 0x80]
pop rbp
ret
Function at 0x5b63b0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
sub rsp, 0x90
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0xa0], rcx
mov byte [rbp + 0x77], 0
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [rax]
call qword [rax]
test rax, rax
jne 0x5b63ea
mov byte [rbp + 0x77], 1
jmp 0x5b65c4
nop
lea rcx, [rbp + 0x78]
xor edx, edx
xor r8, r8
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x5b65c4
nop
mov rcx, qword [rbp + 0x78]
mov edx, 0x8003
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x80]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x5b65ae
nop
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [rax]
call qword [rax]
mov rcx, qword [rbp + 0x80]
mov rdx, qword [rbp + 0xa0]
mov rdx, qword [rdx]
mov rdx, qword [rdx + 8]
mov r8d, eax
xor r9, r9
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x5b65a1
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [rax]
call qword [rax]
mov rcx, qword [rbp + 0xa0]
mov rcx, qword [rcx]
mov rcx, qword [rcx + 8]
mov edx, eax
lea r8, [rbp + 0x88]
lea r9, [rbp + 0x70]
mov byte [rsp + 0x20], 2
call fcn.0055eda0
nop
call fcn.00409650
mov ecx, 0x10129
call fcn.00409680
movsxd rax, eax
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x58], rax
mov rcx, qword [rbp + 0x80]
mov edx, 2
xor r8, r8
lea r9, [rbp + 0x4c]
mov dword [rsp + 0x20], 0
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x5b6594
mov rcx, qword [rbp + 0x80]
mov edx, 2
lea r8, [rbp + 0x60]
lea r9, [rbp + 0x4c]
mov dword [rsp + 0x20], 0
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x5b6594
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
call fcn.004fdb10
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
lea rdx, [rbp + 0x70]
mov r8d, 4
call fcn.004fc620
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
mov rdx, qword [rbp + 0x88]
movsxd r8, dword [rbp + 0x70]
call fcn.004fc620
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rax]
lea rdx, [rbp + 0x50]
mov r8d, 0x20
call fcn.004fc620
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax]
mov rcx, rax
xor edx, edx
xor r8, r8
mov rax, qword [rax]
call qword [rax + 0x48]
mov byte [rbp + 0x77], 1
nop
mov rcx, qword [rbp + 0x88]
call fcn.00409080
nop
mov rcx, qword [rbp + 0x80]
call sub.advapi32.dll_CryptDestroyHash
nop
mov rcx, qword [rbp + 0x78]
xor edx, edx
call sub.advapi32.dll_CryptReleaseContext
jmp 0x5b65c4
movzx rax, byte [rbp + 0x77]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x5b6650
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push rbp
sub rsp, 0xa0
mov rbp, rsp
mov qword [rbp + 0x38], rbp
mov qword [rbp + 0xb0], rcx
mov byte [rbp + 0x7f], 0
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax]
mov rcx, rax
mov rax, qword [rax]
call qword [rax]
test rax, rax
jne 0x5b668a
mov byte [rbp + 0x7f], 1
jmp 0x5b68b8
nop
lea rcx, [rbp + 0x80]
xor edx, edx
xor r8, r8
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
call sub.advapi32.dll_CryptAcquireContextA
test eax, eax
je 0x5b68b8
nop
mov rcx, qword [rbp + 0x80]
mov edx, 0x8003
xor r8, r8
xor r9, r9
lea rax, [rbp + 0x88]
mov qword [rsp + 0x20], rax
call sub.advapi32.dll_CryptCreateHash
test eax, eax
je 0x5b689f
nop
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax]
mov rcx, rax
xor edx, edx
xor r8, r8
mov rax, qword [rax]
call qword [rax + 0x48]
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax]
lea rdx, [rbp + 0x78]
mov r8d, 4
call fcn.004fb3b0
cmp dword [rbp + 0x78], 0x40000000
jge 0x5b6892
movsxd rcx, dword [rbp + 0x78]
call fcn.00409050
mov qword [rbp + 0x90], rax
nop
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax]
mov rdx, qword [rbp + 0x90]
movsxd r8, dword [rbp + 0x78]
call fcn.004fb3b0
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax]
lea rdx, [rbp + 0x54]
mov r8d, 0x20
call fcn.004fb3b0
mov rax, qword [rbp + 0x54]
cmp rax, qword [rbp + 0x5c]
jne 0x5b6885
mov rcx, qword [rbp + 0x90]
mov edx, dword [rbp + 0x78]
lea r8, [rbp + 0x98]
lea r9, [rbp + 0x74]
mov dword [rsp + 0x20], 0
call fcn.0055ef60
nop
mov rcx, qword [rbp + 0x88]
mov rdx, qword [rbp + 0x98]
mov r8d, dword [rbp + 0x74]
xor r9, r9
call sub.advapi32.dll_CryptHashData
test eax, eax
je 0x5b6878
mov rcx, qword [rbp + 0x88]
mov edx, 2
xor r8, r8
lea r9, [rbp + 0x50]
mov dword [rsp + 0x20], 0
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x5b6878
mov rcx, qword [rbp + 0x88]
mov edx, 2
lea r8, [rbp + 0x40]
lea r9, [rbp + 0x50]
mov dword [rsp + 0x20], 0
call sub.advapi32.dll_CryptGetHashParam
test eax, eax
je 0x5b6878
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax]
call fcn.004fdb10
mov rax, qword [rbp + 0xb0]
mov rcx, qword [rax]
mov rdx, qword [rbp + 0x98]
movsxd r8, dword [rbp + 0x74]
call fcn.004fc620
mov rax, qword [rbp + 0xb0]
mov rax, qword [rax]
mov rcx, rax
xor edx, edx
xor r8, r8
mov rax, qword [rax]
call qword [rax + 0x48]
mov byte [rbp + 0x7f], 1
mov dword [rbp + 0x78], 0
movsxd rax, dword [rbp + 0x78]
movsxd rcx, dword [rbp + 0x78]
movzx rax, byte [rax + rbp + 0x64]
cmp al, byte [rcx + rbp + 0x40]
je 0x5b686d
mov byte [rbp + 0x7f], 0
jmp 0x5b6877
add dword [rbp + 0x78], 1
cmp dword [rbp + 0x78], 0x10
jne 0x5b6853
nop
nop
mov rcx, qword [rbp + 0x98]
call fcn.00409080
nop
mov rcx, qword [rbp + 0x90]
call fcn.00409080
nop
mov rcx, qword [rbp + 0x88]
call sub.advapi32.dll_CryptDestroyHash
nop
mov rcx, qword [rbp + 0x80]
xor edx, edx
call sub.advapi32.dll_CryptReleaseContext
jmp 0x5b68b8
movzx rax, byte [rbp + 0x7f]
lea rsp, [rbp + 0xa0]
pop rbp
ret
Function at 0x5b94f0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov ecx, 0xa2
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
sete al
mov byte [rbp + 0x2f], al
movzx rax, byte [rbp + 0x2f]
lea rsp, [rbp + 0x30]
pop rbp
ret

Function at 0x5b9520
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov ecx, 0xa3
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
sete al
mov byte [rbp + 0x2f], al
movzx rax, byte [rbp + 0x2f]
lea rsp, [rbp + 0x30]
pop rbp
ret

Function at 0x5b9550
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
sub rsp, 0x30
mov rbp, rsp
mov ecx, 0x11
call sub.user32.dll_GetKeyState
and ax, 0x80
cmp ax, 0x80
sete al
mov byte [rbp + 0x2f], al
movzx rax, byte [rbp + 0x2f]
lea rsp, [rbp + 0x30]
pop rbp
ret

Function at 0x5b9580
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push rbp
push rbx
sub rsp, 0x178
mov rbp, rsp
mov qword [rbp + 0x50], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x58], rbp
mov qword [rbp + 0x190], rcx
mov dword [rbp + 0x198], edx
mov dword [rbp + 0x1a0], r8d
nop
mov rcx, qword [rbp + 0x190]
call fcn.0040e920
call fcn.005b94f0
test al, al
jne 0x5b96e1
call fcn.005b9520
test al, al
jne 0x5b96e1
call fcn.005b9550
test al, al
jne 0x5b96e1
nop
mov ecx, 2
call fcn.00409050
mov qword [rbp + 0x168], rax
nop
lea rcx, [rbp + 0x68]
call sub.user32.dll_GetKeyboardState
mov ecx, dword [rbp + 0x1a0]
xor edx, edx
call sub.user32.dll_MapVirtualKeyW
mov ebx, eax
mov ecx, dword [rbp + 0x198]
call sub.user32.dll_GetKeyboardLayout
mov ecx, dword [rbp + 0x1a0]
mov edx, ebx
lea r8, [rbp + 0x68]
mov r9, qword [rbp + 0x168]
mov dword [rsp + 0x20], 2
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], rax
call sub.user32.dll_ToUnicodeEx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
sub eax, 1
cmp eax, 0xffffffff
je 0x5b9660
test eax, eax
jne 0x5b96bd
jmp 0x5b966e
mov rcx, qword [rbp + 0x190]
call fcn.0040e920
jmp 0x5b96c9
mov rcx, qword [rbp + 0x190]
mov edx, 1
call fcn.0040fe90
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x168]
call fcn.00410010
lea rcx, [rbp + 0x50]
mov rdx, qword [rbp + 0x48]
mov r8d, 1
mov r9d, 1
call fcn.004105d0
mov rcx, qword [rbp + 0x190]
mov rdx, qword [rbp + 0x50]
call fcn.00410120
jmp 0x5b96c9
mov rcx, qword [rbp + 0x190]
call fcn.0040e920
nop
mov rcx, qword [rbp + 0x168]
call fcn.00409080
jmp 0x5b96e0
nop
lea rcx, [rbp + 0x48]
mov edx, 2
call fcn.0040e960
mov rax, qword [rbp + 0x190]
lea rsp, [rbp + 0x178]
pop rbx
pop rbp
ret
Function at 0x140001487
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140036940]
mov dword [rax], 1
mov rax, qword [0x140036950]
mov dword [rax], 1
mov rax, qword [0x140036960]
mov dword [rax], 1
mov rax, qword [0x1400368c0]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140013d90
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp byte [0x14003e420], 0
mov r12, rcx
mov rdi, rdx
je 0x140013e18
lea rdx, [0x140035182]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x140013f20
mov rsi, qword [0x14003e418]
jmp 0x140013dd5
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x140013dd0
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.140012d80
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x14003e418], rcx
test eax, eax
je 0x140013f08
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x140013e70
not eax
cmp r9d, eax
jne 0x140013faf
mov byte [0x14003e420], 1
jmp 0x140013da8
cmp byte [0x14003e410], 0
jne 0x140013dbf
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x14003e468], rax
call rbx
mov qword [0x14003e460], rax
call rbx
mov qword [0x14003e458], rax
call rbx
mov qword [0x14003e498], rax
call rbx
mov qword [0x14003e490], rax
call rbx
mov qword [0x14003e488], rax
call rbx
mov qword [0x14003e478], rax
call rbx
mov rsi, qword [sym.imp.python39.dll_PyLong_FromLong]
mov ebx, 0xfffffffb
mov qword [0x14003e470], rax
nop dword [rax + rax]
mov ecx, ebx
add ebx, 1
call rsi
add qword [rax], 1
cmp ebx, 0x102
jne 0x140013f90
mov byte [0x14003e410], 1
jmp 0x140013dbf
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
Function at 0x140022550
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.14002a3b0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.14002a3b0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140023202
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14003e5e8]
test eax, eax
je 0x14002329a
lea rax, [0x14003e5c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14003e5f0]
mov qword [rbp - 8], rax
jmp 0x14002327e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140023272
cmp qword [rbp - 0x10], 0
je 0x140023272
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140023238
lea rax, [0x14003e5c0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002329b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400233a0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400233c8
mov eax, 0
jmp 0x140023416
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400233f1
mov eax, 0
jmp 0x140023416
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140023411
mov eax, 0
jmp 0x140023416
mov eax, 1
add rsp, 0x20
pop rbp
ret