joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2eda31d15
Capabilities:
Get common file path

Disassembly:
push rbp
sub rsp, 0x240
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x1bc], 0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0
mov r8d, 0
mov edx, 0x1a
mov ecx, 0
mov rax, qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
call rax
test eax, eax
js 0x2eda31d6d
lea rax, [rbp - 0x50]
mov rcx, rax
call fcn.2eda31b32
mov dword [rbp + 0x1bc], eax
mov eax, dword [rbp + 0x1bc]
add rsp, 0x240
pop rbp
ret

Function at 0x2eda31d7c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
sub rsp, 0x280
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1f0], 0
mov qword [rbp + 0x1e8], 0
mov dword [rbp + 0x1f8], 0
lea rcx, [0x2eda400f0]
call fcn.2eda37e7e
mov qword [rbp + 0x1f0], rax
mov rax, qword [rbp + 0x1f0]
lea rdx, [rbp - 0x28]
mov qword [rsp + 0x20], rdx
mov r9d, 0x108
mov r8d, 0
mov rdx, rax
mov rcx, 0xffffffff80000002
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call rax
test eax, eax
jne 0x2eda31f12
lea rcx, [0x2eda40160]
call fcn.2eda37e7e
mov qword [rbp + 0x1e8], rax
mov dword [rbp + 0x1fc], 0
jmp 0x2eda31e9c
mov rax, qword [rbp - 0x28]
lea rdx, [rbp - 0x20]
lea rcx, [rbp - 0x30]
mov qword [rsp + 0x20], rcx
mov r9d, 0x101
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call rax
test eax, eax
jne 0x2eda31e95
mov rax, qword [rbp - 0x30]
mov rdx, qword [rbp + 0x1e8]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
call rax
test eax, eax
jne 0x2eda31e85
add dword [rbp + 0x1f8], 1
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
add dword [rbp + 0x1fc], 1
mov dword [rbp - 0x34], 0x104
mov rax, qword [rbp - 0x28]
lea r8, [rbp - 0x34]
lea rcx, [rbp - 0x20]
mov edx, dword [rbp + 0x1fc]
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
call rax
test eax, eax
je 0x2eda31e18
mov rax, qword [rbp + 0x1e8]
mov rcx, rax
call fcn.2eda37f8e
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov rax, qword [rbp + 0x1f0]
mov rcx, rax
call fcn.2eda37f8e
mov eax, dword [rbp + 0x1f8]
add rsp, 0x280
pop rbp
ret
Function at 0x2eda31f30
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov dword [rbp - 4], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
lea rcx, [0x2eda40180]
call fcn.2eda37e7e
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call rax
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.2eda37f8e
lea rcx, [0x2eda401a1]
call fcn.2eda37d70
mov qword [rbp - 0x18], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.2eda37f8e
cmp qword [rbp - 0x28], 0
je 0x2eda31fc9
lea rax, [rbp - 0x60]
mov rdx, qword [rbp - 0x28]
mov rcx, rax
call rdx
jmp 0x2eda31fd9
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
call rax
mov eax, dword [rbp - 0x40]
mov dword [rbp - 4], eax
mov eax, dword [rbp - 4]
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x2eda324b6
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp - 0x10], 0
mov dword [rbp - 8], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetCommandLineW]
call rax
mov rcx, rax
lea rax, [rbp - 0x1c]
mov rdx, rax
mov rax, qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x2eda3255d
mov eax, dword [rbp - 0x1c]
cmp eax, 1
jle 0x2eda3255d
lea rcx, [0x2eda402e3]
call fcn.2eda37e7e
mov qword [rbp - 0x10], rax
mov dword [rbp - 4], 1
jmp 0x2eda32549
mov eax, dword [rbp - 4]
cdqe
lea rdx, [rax*8]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov rax, qword [rax]
mov rdx, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x2eda32545
mov dword [rbp - 8], 1
jmp 0x2eda32551
add dword [rbp - 4], 1
mov eax, dword [rbp - 0x1c]
cmp dword [rbp - 4], eax
jl 0x2eda32515
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.2eda37f8e
mov eax, dword [rbp - 8]
add rsp, 0x40
pop rbp
ret

Function at 0x2eda325a0
Capabilities:
Hash data with crc32

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov dword [rbp + 0x20], r8d
mov eax, dword [rbp + 0x20]
not eax
mov dword [rbp - 4], eax
jmp 0x2eda32607
mov rax, qword [rbp + 0x10]
lea rdx, [rax + 1]
mov qword [rbp + 0x10], rdx
movzx eax, byte [rax]
movzx eax, al
xor dword [rbp - 4], eax
mov dword [rbp - 8], 0
jmp 0x2eda32601
mov eax, dword [rbp - 4]
shr eax, 1
mov edx, eax
mov eax, dword [rbp - 4]
and eax, 1
test eax, eax
je 0x2eda325f3
mov eax, 0xedb88320
jmp 0x2eda325f8
mov eax, 0
xor eax, edx
mov dword [rbp - 4], eax
add dword [rbp - 8], 1
cmp dword [rbp - 8], 7
jbe 0x2eda325db
mov eax, dword [rbp + 0x18]
lea edx, [rax - 1]
mov dword [rbp + 0x18], edx
test eax, eax
jne 0x2eda325bd
mov eax, dword [rbp - 4]
not eax
add rsp, 0x10
pop rbp
ret
Function at 0x2eda345e4
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp - 4], 0
mov rcx, qword [rbp + 0x10]
call fcn.2eda330bb
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x2eda346fd
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.2eda32f00
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x2eda346f1
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 2
mov r9d, 0
mov r8d, 0
mov edx, 0x40000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0xffffffffffffffff
je 0x2eda346e5
mov rax, qword [rbp - 0x20]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rax
lea r8, [rbp - 0x24]
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
test eax, eax
je 0x2eda346d5
mov eax, dword [rbp - 0x24]
cmp dword [rbp + 0x20], eax
jne 0x2eda346d5
mov dword [rbp - 4], 1
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.2eda369bb
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.2eda369bb
mov eax, dword [rbp - 4]
add rsp, 0x70
pop rbp
ret
Function at 0x2eda34961
Capabilities:
Read file on windows

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp - 8], 0
mov rcx, qword [rbp + 0x10]
call fcn.2eda330bb
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x2eda34ae1
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.2eda32f00
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x2eda34ad5
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 7
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileW]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0xffffffffffffffff
je 0x2eda34ac9
mov rax, qword [rbp - 0x20]
mov r9d, 2
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rax
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0x40000000
ja 0x2eda34ab9
mov eax, dword [rbp - 0x24]
mov rcx, rax
call fcn.2eda36950
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
je 0x2eda34ab9
mov rax, qword [rbp - 0x20]
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetFilePointer]
call rax
lea r8, [rbp - 0x34]
mov ecx, dword [rbp - 0x24]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
je 0x2eda34aad
mov eax, dword [rbp - 0x34]
cmp dword [rbp - 0x24], eax
jne 0x2eda34aad
cmp qword [rbp + 0x18], 0
je 0x2eda34aa3
mov rax, qword [rbp + 0x18]
mov edx, dword [rbp - 0x24]
mov dword [rax], edx
mov rax, qword [rbp - 0x30]
mov qword [rbp - 8], rax
jmp 0x2eda34ab9
mov rax, qword [rbp - 0x30]
mov rcx, rax
call fcn.2eda369bb
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.2eda369bb
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.2eda369bb
mov rax, qword [rbp - 8]
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x2eda34e08
Capabilities:
Set current directory

Disassembly:
push rbp
sub rsp, 0x250
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1e0], rcx
mov dword [rbp + 0x1cc], 0
mov qword [rbp + 0x1c0], 0
mov dword [rbp + 0x1c8], 0
mov rcx, qword [rbp + 0x1e0]
call fcn.2eda3305f
mov qword [rbp + 0x1b8], rax
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
call sub.msvcrt.dll_wcslen
cmp rax, 1
jbe 0x2eda3509c
lea rcx, [0x2eda40618]
call fcn.2eda37e7e
mov qword [rbp + 0x1c0], rax
mov rdx, qword [rbp + 0x1c0]
mov rax, qword [rbp + 0x1b8]
mov r8d, 2
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__wcsnicmp]
call rax
test eax, eax
jne 0x2eda3508d
add qword [rbp + 0x1b8], 4
mov rax, qword [rbp + 0x1b8]
mov rcx, rax
call fcn.2eda3305f
mov qword [rbp + 0x1b0], rax
mov rax, qword [rbp + 0x1b0]
mov rcx, rax
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x2eda3508d
mov word [rbp - 0x60], 0
mov rax, qword [rbp + 0x1b0]
movzx eax, word [rax]
cmp ax, 0x22
jne 0x2eda34f7c
add qword [rbp + 0x1b0], 2
mov dword [rbp + 0x1cc], 0
jmp 0x2eda34f36
mov eax, dword [rbp + 0x1cc]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x1b0]
add rax, rdx
movzx edx, word [rax]
mov eax, dword [rbp + 0x1cc]
cdqe
mov word [rbp + rax*2 - 0x60], dx
add dword [rbp + 0x1cc], 1
mov eax, dword [rbp + 0x1cc]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x1b0]
add rax, rdx
movzx eax, word [rax]
test ax, ax
je 0x2eda35057
mov eax, dword [rbp + 0x1cc]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x1b0]
add rax, rdx
movzx eax, word [rax]
cmp ax, 0x22
jne 0x2eda34f09
jmp 0x2eda35057
mov dword [rbp + 0x1cc], 0
jmp 0x2eda34fb5
mov eax, dword [rbp + 0x1cc]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x1b0]
add rax, rdx
movzx edx, word [rax]
mov eax, dword [rbp + 0x1cc]
cdqe
mov word [rbp + rax*2 - 0x60], dx
add dword [rbp + 0x1cc], 1
mov eax, dword [rbp + 0x1cc]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x1b0]
add rax, rdx
movzx eax, word [rax]
test ax, ax
je 0x2eda35057
mov eax, dword [rbp + 0x1cc]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x1b0]
add rax, rdx
movzx eax, word [rax]
cmp ax, 0xd
je 0x2eda35057
mov eax, dword [rbp + 0x1cc]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x1b0]
add rax, rdx
movzx eax, word [rax]
cmp ax, 0xa
je 0x2eda35057
mov eax, dword [rbp + 0x1cc]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x1b0]
add rax, rdx
movzx eax, word [rax]
cmp ax, 9
je 0x2eda35057
mov eax, dword [rbp + 0x1cc]
cdqe
lea rdx, [rax + rax]
mov rax, qword [rbp + 0x1b0]
add rax, rdx
movzx eax, word [rax]
cmp ax, 0x20
jne 0x2eda34f88
mov eax, dword [rbp + 0x1cc]
cdqe
mov word [rbp + rax*2 - 0x60], 0
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_wcslen
test rax, rax
je 0x2eda3508d
lea rax, [rbp - 0x60]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call rax
mov dword [rbp + 0x1c8], eax
mov rax, qword [rbp + 0x1c0]
mov rcx, rax
call fcn.2eda37f8e
mov eax, dword [rbp + 0x1c8]
add rsp, 0x250
pop rbp
ret
Function at 0x2eda3686f
Capabilities:
Check mutex on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp - 4], 0
mov qword [rbp - 0x10], 0
lea rcx, [0x2eda3f160]
call fcn.2eda37e7e
mov qword [rbp - 0x10], rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_SetLastError]
call rax
mov rax, qword [rbp - 0x10]
mov r8, rax
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateMutexW]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x2eda36937
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0xb7
je 0x2eda36927
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
and eax, 0x89
mov dword [rbp - 0x1c], eax
mov dword [rbp - 4], 0
jmp 0x2eda36909
mov ecx, 0x64
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
add dword [rbp - 4], 1
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x1c]
jl 0x2eda368f7
cmp dword [rbp - 4], 0
je 0x2eda36927
mov rax, qword [rbp - 0x10]
mov rdx, rax
mov rcx, qword [rbp + 0x10]
call fcn.2eda36820
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.2eda37f8e
nop
add rsp, 0x40
pop rbp
ret

Function at 0x2eda36fe7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov qword [rbp + 0x28], r9
mov qword [rbp - 8], 0
jmp 0x2eda370dd
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
lea edx, [rax + 1]
mov rax, qword [rbp + 0x10]
mov byte [rax], dl
mov rax, qword [rbp + 0x10]
movzx ecx, byte [rax + 1]
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
movzx eax, al
mov rdx, qword [rbp + 0x10]
cdqe
movzx eax, byte [rdx + rax + 2]
lea edx, [rcx + rax]
mov rax, qword [rbp + 0x10]
mov byte [rax + 1], dl
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 1]
movzx eax, al
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
lea rdx, [rax + 2]
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
movzx eax, al
movsxd rcx, eax
mov rax, qword [rbp + 0x10]
add rax, rcx
add rax, 2
mov rcx, rax
call fcn.2eda36ee0
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax]
movzx eax, al
mov rdx, qword [rbp + 0x10]
cdqe
movzx ecx, byte [rdx + rax + 2]
mov rax, qword [rbp + 0x10]
movzx eax, byte [rax + 1]
movzx eax, al
mov rdx, qword [rbp + 0x10]
cdqe
movzx eax, byte [rdx + rax + 2]
add eax, ecx
mov byte [rbp - 9], al
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
add rax, rdx
movzx ecx, byte [rax]
movzx eax, byte [rbp - 9]
mov rdx, qword [rbp + 0x10]
cdqe
movzx edx, byte [rdx + rax + 2]
mov r8, qword [rbp + 0x20]
mov rax, qword [rbp - 8]
add rax, r8
xor edx, ecx
mov byte [rax], dl
add qword [rbp - 8], 1
mov rax, qword [rbp - 8]
cmp rax, qword [rbp + 0x28]
jb 0x2eda3700c
nop
nop
add rsp, 0x30
pop rbp
ret
Function at 0x2eda37fe0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x60
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x40], 0
mov eax, dword [0x2eda441c0]
test eax, eax
jne 0x2eda38262
mov rax, qword [0x2eda441c8]
test rax, rax
jne 0x2eda38075
lea rcx, [0x2eda40b50]
call fcn.2eda37e7e
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call rax
mov qword [0x2eda441c8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call fcn.2eda37f8e
mov rax, qword [0x2eda441d0]
test rax, rax
jne 0x2eda380bb
lea rcx, [0x2eda40b71]
call fcn.2eda37d70
mov qword [rbp - 0x10], rax
mov rax, qword [0x2eda441c8]
mov rdx, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x2eda441d0], rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
call fcn.2eda37f8e
mov rax, qword [0x2eda441d8]
test rax, rax
jne 0x2eda380fa
lea rcx, [0x2eda40b86]
call fcn.2eda37e7e
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call rax
mov qword [0x2eda441d8], rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call fcn.2eda37f8e
mov rax, qword [0x2eda441e0]
test rax, rax
jne 0x2eda38140
lea rcx, [0x2eda40ba1]
call fcn.2eda37d70
mov qword [rbp - 0x20], rax
mov rax, qword [0x2eda441d8]
mov rdx, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x2eda441e0], rax
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.2eda37f8e
mov rax, qword [0x2eda441e8]
test rax, rax
jne 0x2eda38186
lea rcx, [0x2eda40bb8]
call fcn.2eda37d70
mov qword [rbp - 0x28], rax
mov rax, qword [0x2eda441d8]
mov rdx, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x2eda441e8], rax
mov rax, qword [rbp - 0x28]
mov rcx, rax
call fcn.2eda37f8e
mov rax, qword [0x2eda441f0]
test rax, rax
jne 0x2eda381cc
lea rcx, [0x2eda40bd1]
call fcn.2eda37d70
mov qword [rbp - 0x30], rax
mov rax, qword [0x2eda441d8]
mov rdx, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x2eda441f0], rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
call fcn.2eda37f8e
mov rax, qword [0x2eda441f8]
test rax, rax
jne 0x2eda3820b
lea rcx, [0x2eda40be8]
call fcn.2eda37e7e
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
call rax
mov qword [0x2eda441f8], rax
mov rax, qword [rbp - 0x38]
mov rcx, rax
call fcn.2eda37f8e
mov rax, qword [0x2eda44200]
test rax, rax
jne 0x2eda38251
lea rcx, [0x2eda40c07]
call fcn.2eda37d70
mov qword [rbp - 0x40], rax
mov rax, qword [0x2eda441f8]
mov rdx, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [0x2eda44200], rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
call fcn.2eda37f8e
mov eax, dword [0x2eda441c0]
add eax, 1
mov dword [0x2eda441c0], eax
jmp 0x2eda38263
nop
add rsp, 0x60
pop rbp
ret
Function at 0x2eda389e0
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.2eda3e8a0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.2eda3e8a0
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x2eda38a50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x2eda44254]
mov r12, rcx
test ebx, ebx
jle 0x2eda38b80
mov rax, qword [0x2eda44258]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x2eda38a9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x2eda38b23
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x2eda38a80
mov rcx, r12
call fcn.2eda391d0
mov rsi, rax
test rax, rax
je 0x2eda38ba2
mov rax, qword [0x2eda44258]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.2eda39300
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x2eda44258]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x2eda38b87
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x2eda38b1c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x2eda38b30
add dword [0x2eda44254], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x2eda44258]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x2eda38b1c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.2eda389e0
nop dword [rax]
xor ebx, ebx
jmp 0x2eda38aa7
mov rax, qword [0x2eda44258]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.2eda389e0
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.2eda389e0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x2eda38e40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x2eda44280]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x2eda44260]
test rbx, rbx
je 0x2eda38e94
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x2eda38e8b
test r12, r12
je 0x2eda38e8b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x2eda38e70
lea rcx, [0x2eda44280]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x2eda391d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x2eda411c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x2eda391f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x2eda391f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x2eda391f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x2eda39245
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x2eda3923c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x2eda391f0
add rax, 0x28
cmp rax, r9
jne 0x2eda39228
xor eax, eax
ret

Function at 0x2eda39250
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2eda411c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2eda39270
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x2eda39278
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x2eda39270
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x2eda39300
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x2eda411c0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x2eda39320
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x2eda39328
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x1004010e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, str._______________Q_msgkey____M_shmkey____S_semkey__...
lea r8, str.usage:_ipcrm___q_msqid____m_shmid____s_semid_
lea rdx, str._s_n_s_n
call sub.cygwin1.dll_fprintf
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]