joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1404fb010
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]
lea r9, [0x140802010]
mov r8d, 0x30
mov edx, eax
mov rcx, qword [rsp + 0x20]
call fcn.1401d86ac
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1404fb077
lea r8, [0x140802060]
mov edx, 0x32
mov rcx, qword [rsp + 0x20]
call fcn.1401d65e6
xor eax, eax
jmp 0x1404fb0ed
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 0x1404fb0bd
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
je 0x1404fb0bd
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x34], eax
jbe 0x1404fb0d7
lea r8, str.D:_vcpkg_buildtreescurl_srccurl_8_9_1_bb74e44024.cleanlibgetenv.c
mov edx, 0x3d
mov rcx, qword [rsp + 0x20]
call fcn.1401d65e6
xor eax, eax
jmp 0x1404fb0ed
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x34], eax
jae 0x1404fb0e8
mov rax, qword [rsp + 0x20]
jmp 0x1404fb0ed
jmp 0x1404fb033
add rsp, 0x40
pop rdi
ret
Function at 0x1405164f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x130
lea rdi, [rsp + 0x30]
mov ecx, 0x40
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x140]
mov rax, qword [0x140818ac0]
xor rax, rsp
mov qword [rsp + 0x128], rax
mov rax, qword [rsp + 0x140]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x30], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x30]
mov rax, qword [rcx + rax + 0x220]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0xffffffffffffffff
mov dword [rsp + 0x104], 0x80
lea r8, [rsp + 0x104]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1405165bd
mov dword [rsp + 0x104], 0x80
lea rax, [0x1408066f0]
mov qword [rsp + 0x20], rax
mov r9d, 0x1be
lea r8, [rsp + 0x104]
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.1401dbfc3
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x1405165e3
lea rdx, str.Error_accept__ing_server_connect
mov rcx, qword [rsp + 0x140]
call fcn.1401e02e4
mov eax, 0x1e
jmp 0x1405166ec
lea rdx, str.Connection_accepted_from_server
mov rcx, qword [rsp + 0x140]
call fcn.1401de8c2
mov rax, qword [rsp + 0x30]
mov byte [rax + 0x3ad], 0
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.1401d7b99
lea r9, [rsp + 0x48]
mov r8d, 1
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x140]
call fcn.1401e03f7
mov dword [rsp + 0x114], eax
cmp dword [rsp + 0x114], 0
je 0x140516662
lea r8, [0x140806780]
mov edx, 0x1ce
mov rcx, qword [rsp + 0x48]
call fcn.1401db299
mov eax, dword [rsp + 0x114]
jmp 0x1405166ec
mov rax, qword [rsp + 0x140]
cmp qword [rax + 0x280], 0
je 0x1405166ea
mov dword [rsp + 0x118], 0
mov dl, 1
mov rcx, qword [rsp + 0x140]
call fcn.1401dda58
mov r8d, 1
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x140]
mov rcx, qword [rax + 0x288]
mov rax, qword [rsp + 0x140]
call qword [rax + 0x280]
mov dword [rsp + 0x118], eax
xor edx, edx
mov rcx, qword [rsp + 0x140]
call fcn.1401dda58
cmp dword [rsp + 0x118], 0
je 0x1405166ea
mov rcx, qword [rsp + 0x140]
call fcn.140516310
mov eax, 0x2a
jmp 0x1405166ec
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_closesocket
call fcn.1401ddb7f
mov rax, rdi
mov rcx, qword [rsp + 0x128]
xor rcx, rsp
call fcn.1401da763
add rsp, 0x130
pop rdi
ret
Function at 0x14051a3e0
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 + 0x20]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x48]
cdq
mov ecx, 0x64
idiv ecx
cmp eax, 2
je 0x14051a435
lea rdx, str.Couldnt_set_desired_mode
mov rcx, qword [rsp + 0x40]
call fcn.1401e02e4
mov eax, reloc.WS2_32.dll_recvfrom
jmp 0x14051a4c5
cmp dword [rsp + 0x48], 0xc8
je 0x14051a456
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.1401de8c2
nop
movzx eax, byte [rsp + 0x50]
cmp eax, 0x13
jne 0x14051a475
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call fcn.140518620
mov dword [rsp + 0x20], eax
jmp 0x14051a4c1
movzx eax, byte [rsp + 0x50]
cmp eax, 0x14
jne 0x14051a48f
mov rcx, qword [rsp + 0x40]
call fcn.1405186e0
mov dword [rsp + 0x20], eax
jmp 0x14051a4c1
movzx eax, byte [rsp + 0x50]
cmp eax, 0x15
jne 0x14051a4a9
mov rcx, qword [rsp + 0x40]
call fcn.1405189d0
mov dword [rsp + 0x20], eax
jmp 0x14051a4c1
movzx eax, byte [rsp + 0x50]
cmp eax, 0x16
jne 0x14051a4c1
mov rcx, qword [rsp + 0x40]
call fcn.140518a00
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x30
pop rdi
ret
Function at 0x140531990
Capabilities:
Convert ip address from string

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rdi, [rsp + 0x20]
mov ecx, reloc.WS2_32.dll_sendto
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x80]
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x44], 0
cmp dword [rsp + 0x90], 0x20
jbe 0x1405319de
xor al, al
jmp 0x140531ace
lea r8, [rsp + 0x24]
mov rdx, qword [rsp + 0x80]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x140531a02
xor al, al
jmp 0x140531ace
lea r8, [rsp + 0x44]
mov rdx, qword [rsp + 0x88]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x140531a26
xor al, al
jmp 0x140531ace
cmp dword [rsp + 0x90], 0
je 0x140531a94
cmp dword [rsp + 0x90], 0x20
je 0x140531a94
mov eax, 0x20
sub eax, dword [rsp + 0x90]
mov ecx, 0xffffffff
mov dword [rsp + 0x60], ecx
movzx ecx, al
mov eax, dword [rsp + 0x60]
shl eax, cl
mov dword [rsp + 0x54], eax
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x58], eax
mov ecx, dword [rsp + 0x44]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x5c], eax
mov eax, dword [rsp + 0x5c]
mov ecx, dword [rsp + 0x58]
xor ecx, eax
mov eax, ecx
and eax, dword [rsp + 0x54]
test eax, eax
je 0x140531a90
xor al, al
jmp 0x140531ace
mov al, 1
jmp 0x140531ace
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x24], eax
jne 0x140531aa8
mov dword [rsp + 0x64], 1
jmp 0x140531ab0
mov dword [rsp + 0x64], 0
cmp dword [rsp + 0x64], 0
jne 0x140531ac1
mov dword [rsp + 0x68], 0
jmp 0x140531ac9
mov dword [rsp + 0x68], 1
movzx eax, byte [rsp + 0x68]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401ddb7f
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x140531af0
Capabilities:
Convert ip address from string

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rdi, [rsp + 0x20]
mov ecx, 0x20
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xb0]
mov rax, qword [0x140818ac0]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp dword [rsp + 0xc0], 0
jne 0x140531b47
mov dword [rsp + 0xc0], 0x80
xor edx, edx
mov eax, dword [rsp + 0xc0]
mov ecx, 8
div ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0xc0]
and eax, 7
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x20], 0x10
ja 0x140531b7e
cmp dword [rsp + 0x20], 0x10
jne 0x140531b85
cmp dword [rsp + 0x24], 0
je 0x140531b85
xor al, al
jmp 0x140531c25
lea r8, [rsp + 0x38]
mov rdx, qword [rsp + 0xb0]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x140531ba6
xor al, al
jmp 0x140531c25
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0xb8]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x140531bc7
xor al, al
jmp 0x140531c25
cmp dword [rsp + 0x20], 0
je 0x140531bec
mov eax, dword [rsp + 0x20]
mov r8d, eax
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x38]
call fcn.1401d968d
test eax, eax
je 0x140531bec
xor al, al
jmp 0x140531c25
cmp dword [rsp + 0x24], 0
je 0x140531c23
mov eax, dword [rsp + 0x20]
movzx eax, byte [rsp + rax + 0x38]
mov ecx, dword [rsp + 0x20]
movzx ecx, byte [rsp + rcx + 0x68]
xor eax, ecx
mov ecx, 8
sub ecx, dword [rsp + 0x24]
mov edx, 0xff
shl edx, cl
mov ecx, edx
and eax, ecx
test eax, eax
jne 0x140531c23
xor al, al
jmp 0x140531c25
mov al, 1
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.WS2_32.dll_bind
call fcn.1401ddb7f
mov rax, rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1401da763
add rsp, 0xa0
pop rdi
ret
Function at 0x14054ee50
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_CryptAcquireContextW]
test eax, eax
jne 0x14054ee86
mov eax, 0x1b
jmp 0x14054eed6
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 0x14054eed4
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov eax, 2
jmp 0x14054eed6
xor eax, eax
add rsp, 0x30
pop rdi
ret

Function at 0x14054eef0
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]
nop
add rsp, 0x20
pop rdi
ret
Function at 0x14054fa20
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, 0x28
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x140818ac0]
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_CryptAcquireContextW]
test eax, eax
jne 0x14054fa96
xor al, al
jmp 0x14054fba8
mov r8d, reloc.WS2_32.dll_sendto
xor edx, edx
lea rcx, [rsp + 0x88]
call fcn.1401dd053
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.14054f830
mov edx, 8
lea rcx, [rsp + 0x94]
call fcn.1401dd193
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 0x14054fb3b
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor al, al
jmp 0x14054fba8
mov r8d, 8
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0xf8]
call fcn.1401da7a9
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.WS2_32.dll_connect
call fcn.1401ddb7f
mov rax, rdi
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.1401da763
add rsp, 0xe0
pop rdi
ret

Function at 0x140550780
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, 0x18
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x1405507b6
mov eax, 0x1b
jmp 0x140550806
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]
test eax, eax
jne 0x140550804
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
mov eax, 2
jmp 0x140550806
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x140550820
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]
nop
add rsp, 0x20
pop rdi
ret

Function at 0x140552d00
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_CryptAcquireContextW]
test eax, eax
jne 0x140552d4c
xor eax, eax
jmp 0x140552d9c
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]
test eax, eax
jne 0x140552d97
xor edx, edx
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, qword [rsp + 0x40]
mov qword [rax], 0
xor eax, eax
jmp 0x140552d9c
mov eax, 1
add rsp, 0x30
pop rdi
ret

Function at 0x140552db0
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]
nop
add rsp, 0x20
pop rdi
ret

Function at 0x14055a0d0
Capabilities:
Encrypt data using rc4 prga
Hash data with crc32

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x14055a0ea
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x14055a113
mov eax, dword [rsp + 0x20]
shr eax, 8
mov ecx, dword [rsp + 0x20]
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140647800]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x14055a0e2
mov eax, dword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret

Function at 0x14055a130
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x10
mov dword [rsp], 0
jmp 0x14055a14a
mov eax, dword [rsp]
inc eax
mov dword [rsp], eax
cmp dword [rsp], 4
jge 0x14055a176
mov eax, dword [rsp + 0x20]
shl eax, 8
mov ecx, dword [rsp + 0x20]
shr ecx, 0x18
and ecx, 0xff
mov ecx, ecx
lea rdx, [0x140647c00]
xor eax, dword [rdx + rcx*4]
mov dword [rsp + 0x20], eax
jmp 0x14055a142
mov eax, dword [rsp + 0x20]
add rsp, 0x10
pop rdi
ret
Function at 0x14001ddbc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14001ddf6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14001ddfb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14001de44
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400237e0]
cmp byte [rcx + rax], 0
je 0x14001de44
dec r8
sub rdx, 1
jne 0x14001de2a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14001ef08
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.14001e204
mov ebx, eax
test eax, eax
jne 0x14001ef38
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x14001ef9b
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14001ef92
test al, 0x10
je 0x14001ef92
bt eax, 0xa
jae 0x14001ef8b
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.14001efb8
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x14001ef87
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x14001ef87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x14001ef92
and dword [rsp + 0x3c], 0
jmp 0x14001ef97
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140020284
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14001f97c
test al, al
je 0x14002025f
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.14001f810
mov bl, al
mov ecx, dword [0x14057ec40]
cmp ecx, 1
je 0x14002026a
test ecx, ecx
jne 0x140020195
mov dword [0x14057ec40], 1
lea rdx, [0x1400225d0]
lea rcx, [0x1400225b8]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
test eax, eax
je 0x140020176
mov eax, 0xff
jmp 0x14002024f
lea rdx, [0x1400225b0]
lea rcx, [0x140022518]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x14057ec40], 2
jmp 0x14002019d
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.14001fadc
call fcn.140020a60
mov rbx, rax
cmp qword [rax], 0
je 0x1400201d0
mov rcx, rax
call fcn.14001fa44
test al, al
je 0x1400201d0
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x1400224f0]
call fcn.140020a68
mov rbx, rax
cmp qword [rax], 0
je 0x1400201f2
mov rcx, rax
call fcn.14001fa44
test al, al
je 0x1400201f2
mov rcx, qword [rbx]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call main
mov ebx, eax
call fcn.140020830
test al, al
je 0x140020274
test sil, sil
jne 0x140020229
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
xor edx, edx
mov cl, 1
call fcn.14001fb00
mov eax, ebx
jmp 0x14002024f
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.1400206a4
nop
mov ecx, 7
call fcn.1400206a4
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
mov ecx, ebx
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
nop
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
mov rdi, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov rbx, qword [rax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp main
sub rsp, 0x28
call fcn.14002095c
add rsp, 0x28
jmp 0x140020108

Function at 0x140020830
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002087a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002087a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002087a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002087a
cmp dword [rcx + 0x84], 0xe
jbe 0x14002087a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14002087c
xor al, al
add rsp, 0x28
ret
Function at 0x140002980
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x1400029dd
lea rbx, [0x140038790]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x1400029c4
cmp r10, 2
jb 0x1400029c4
cmp byte [r9], r8b
jne 0x1400029c4
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x1400029a0
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x140002a1f
lea rbx, [0x140038790]
cmp r8b, 0x23
jne 0x140002a03
cmp byte [r9], r8b
jne 0x140002a03
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x1400029f0
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x140002be0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rcx
test rcx, rcx
jne 0x140002c0f
mov r8d, 0x600
lea rdx, str.D:eieieieiFifa_23_tpimguiimgui.cpp
lea rcx, str.filename__mode
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test rdi, rdi
je 0x140002c1b
mov qword [rdi], 0
lea rdx, [0x1400383a0]
mov rcx, rbx
call fcn.140002a30
mov rbx, rax
test rax, rax
jne 0x140002c3d
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
mov rcx, rbx
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140002d16
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002d16
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x140002d16
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140002d16
cmp rsi, 0xffffffffffffffff
je 0x140002d16
mov rax, qword [0x14008b0a0]
test rax, rax
je 0x140002cb3
inc dword [rax + 0x3b4]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbp, rax
test rax, rax
je 0x140002d16
mov r9, rbx
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rsi
je 0x140002d03
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14008b0a0]
test rax, rax
je 0x140002cf8
dec dword [rax + 0x3b4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140002d1f
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x140002d11
mov qword [rdi], rsi
mov rax, rbp
jmp 0x140002d21
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140004ff0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0xc8], 0
mov rbx, rcx
mov edi, edx
jg 0x140005026
mov r8d, 0x67f
lea rdx, str.D:eieieieiFifa_23_tpimguiimgui.h
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movsxd r8, dword [rbx + 0xc8]
mov rax, qword [rbx + 0xd0]
mov edx, dword [rax + r8*4 - 4]
lea r8, [0x140038790]
not edx
movzx eax, dil
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x39]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3a]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
movzx eax, byte [rsp + 0x3b]
xor edx, dword [r8 + rcx*4]
movzx ecx, dl
xor rcx, rax
shr edx, 8
mov rax, qword [0x14008b0a0]
xor edx, dword [r8 + rcx*4]
not edx
cmp dword [rax + 0x1b30], edx
jne 0x1400050a0
mov dword [rax + 0x1b34], edx
cmp dword [rax + 0x1b70], edx
jne 0x1400050af
mov byte [rax + 0x1b74], 1
mov rbx, qword [rsp + 0x30]
mov eax, edx
add rsp, 0x20
pop rdi
ret