joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009ce0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x20
mov eax, r8d
mov rbp, rdx
mov ebx, r8d
shr eax, 4
mov rsi, rcx
mov r8d, 6
add ax, 1
mov rcx, rbp
movzx edx, ax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
mov r12, rax
je 0x140009e42
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140009e42
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x140009e42
mov rdx, r12
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x140009d86
nop
cmp rdi, r11
jae 0x140009e42
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x140009d70
cmp rdi, r11
jae 0x140009e42
movzx eax, word [rdi]
test ax, ax
je 0x140009e42
movzx ebx, ax
mov rax, qword [rsi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, ebx
or ecx, eax
jge 0x140009dbc
mov edx, ebx
mov rcx, rsi
call fcn.140002230
movzx ecx, word [rdi]
lea r8, [rdi + 2]
cmp ecx, 0xffffffff
jne 0x140009dd9
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r8
repne scasw ax, word [rdi]
not rcx
and ecx, ecx
movsxd r9, ecx
mov rcx, qword [rsi]
lea rdi, [rbx + rbx]
mov rdx, rdi
add r9, r9
call fcn.140034f40
test eax, eax
je 0x140009e18
cmp eax, 0xc
je 0x140009e12
cmp eax, 0x16
je 0x140009e0c
cmp eax, 0x22
je 0x140009e0c
cmp eax, 0x50
je 0x140009e18
call fcn.14002b5b4
int3
call fcn.14002b5b4
int3
call fcn.14002b56c
int3
test ebx, ebx
js 0x140009e37
mov rcx, qword [rsi]
cmp ebx, dword [rcx - 0xc]
jg 0x140009e37
mov dword [rcx - 0x10], ebx
mov rcx, qword [rsi]
mov eax, 1
mov word [rdi + rcx], 0
jmp 0x140009e44
mov ecx, 0x80070057
call fcn.140002210
int3
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x140009e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x140009e93
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x140009ed7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x140009ed2
cmp rbx, r11
jae 0x140009ed7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x140009ec0
cmp rbx, r11
jb 0x140009edb
xor eax, eax
jmp 0x140009ee7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000f540
Capabilities:
Delete file
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xcd0
mov rax, qword [0x1400781a0]
xor rax, rsp
mov qword [rsp + 0xcc0], rax
mov rsi, rcx
mov rbx, rdx
lea rcx, [rsp + 0x692]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x690], 0
call fcn.140038800
lea rcx, [rsp + 0x272]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x270], 0
call fcn.140038800
lea rcx, [rsp + 0x62]
xor edx, edx
mov r8d, 0x206
call fcn.140038800
lea rcx, [rsp + 0x8a2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x8a0], 0
call fcn.140038800
test rbx, rbx
je 0x14000f5fd
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbx
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x14000f5fd
mov word [rsp + 0x60], ax
mov r8, rbx
jmp 0x14000f60b
mov word [rsp + 0x60], 0
lea r8, [0x1400660e8]
lea rcx, [rsp + 0x60]
mov edx, 0x104
call fcn.140036860
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x60]
repne scasw ax, word [rdi]
not rcx
cmp word [rsp + rcx*2 + 0x56], 0x2e
jne 0x14000f638
mov word [rsp + rcx*2 + 0x56], ax
lea rcx, [rsp + 0x60]
mov dx, 0x5c
call fcn.140036d00
test rax, rax
jne 0x14000f6a4
lea rcx, [rsp + 0x8a0]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea r8, str.Temp
lea rcx, [rsp + 0x8a0]
mov edx, 0x104
call fcn.140036910
lea rdx, [rsp + 0x60]
lea r9, [rsp + 0x8a0]
mov qword [rsp + 0x20], rdx
lea r8, str._s_s
lea rcx, [rsp + 0x270]
mov edx, 0x104
call fcn.140035430
jmp 0x14000f6c2
lea r9, [rsp + 0x60]
lea r8, [0x14006610c]
lea rcx, [rsp + 0x270]
mov edx, 0x104
call fcn.140035430
lea r9, [rsp + 0x270]
lea r8, str._s.log
lea rcx, [rsp + 0x690]
mov edx, 0x104
call fcn.140035430
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x690]
call fcn.140036e10
test eax, eax
jne 0x14000f7fa
cmp dword [rsp + 0x44], 0x7a120
jl 0x14000f7fa
lea edi, [rax + 4]
nop
lea rcx, [rsp + 0x482]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x480], 0
call fcn.140038800
lea rcx, [rsp + 0xab2]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0xab0], 0
call fcn.140038800
test edi, edi
lea r9, [rsp + 0x270]
mov edx, 0x104
lea rcx, [rsp + 0x480]
jne 0x14000f775
lea r8, str._s.log
call fcn.140035430
jmp 0x14000f785
lea r8, str._s_d.log
mov dword [rsp + 0x20], edi
call fcn.140035430
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x480]
call fcn.140036e10
cmp edi, 4
jne 0x14000f7b0
test eax, eax
jne 0x14000f7f1
lea rcx, [rsp + 0x480]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000f7f1
test eax, eax
jne 0x14000f7f1
lea eax, [rdi + 1]
lea r9, [rsp + 0x270]
lea r8, str._s_d.log
lea rcx, [rsp + 0xab0]
mov edx, 0x104
mov dword [rsp + 0x20], eax
call fcn.140035430
lea rdx, [rsp + 0xab0]
lea rcx, [rsp + 0x480]
call fcn.140037280
sub edi, 1
jns 0x14000f710
lea rcx, [rsi + 0x64]
lea r8, [rsp + 0x690]
mov edx, 0x104
mov word [rcx], 0
call fcn.140036860
mov rcx, qword [rsp + 0xcc0]
xor rcx, rsp
call fcn.140034e40
lea r11, [rsp + 0xcd0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14000f840
Capabilities:
Print debug messages

Disassembly:
test rdx, rdx
je 0x14000fa6f
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rsi
mov eax, 0x20a0
call fcn.14005a790
sub rsp, rax
mov rax, qword [0x1400781a0]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rsi, rcx
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x1ffe
mov qword [rsp + 0x2090], rbp
mov word [rsp + 0x70], 0
mov qword [rsp + 0x2088], rdi
call fcn.140038800
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsi + 0x26c]
lea r8, str._s__X_:
lea rcx, [rsp + 0x70]
mov edx, 0x1000
mov dword [rsp + 0x20], eax
call fcn.140035430
mov r8, qword [rsp + 0x20b8]
mov edx, 0x1000
movsxd rcx, eax
lea r9, [rsp + 0x20c0]
sub rdx, rcx
lea rcx, [rsp + rcx*2 + 0x70]
call fcn.140034c30
lea r8, [0x14006619c]
lea rcx, [rsp + 0x70]
mov edx, 0x1000
call fcn.140036910
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsi + 0x64]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x14000f9d4
lea rcx, [rsi + 8]
mov qword [rsp + 0x2098], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [0x14006613c]
lea rdx, [rsi + 0x64]
lea rcx, [rsp + 0x60]
call fcn.140036570
test eax, eax
jne 0x14000f9c2
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x5c]
movzx edi, word [rsp + 0x58]
movzx r10d, word [rsp + 0x50]
movzx r9d, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x60]
lea rdx, [0x140066140]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r10d
call fcn.1400372b0
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [0x14006610c]
call fcn.1400373a0
mov rcx, qword [rsp + 0x60]
call fcn.140036170
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x2098]
mov rbp, qword [rsp + 0x2090]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 2
je 0x14000fa30
lea rdx, [rsp + 0x70]
nop
cmp word [rdx], 0xa
jne 0x14000fa0b
mov word [rdx], 0x20
or rcx, 0xffffffffffffffff
xor eax, eax
add r8d, 1
lea rdi, [rsp + 0x70]
add rdx, 2
repne scasw ax, word [rdi]
mov eax, r8d
not rcx
sub rcx, 3
cmp rax, rcx
jb 0x14000fa00
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x2088]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.140034e40
add rsp, 0x20a0
pop rsi
ret 0
Function at 0x14000f849
Capabilities:
Print debug messages

Disassembly:
test rdx, rdx
je 0x14000fa6f
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rsi
mov eax, 0x20a0
call fcn.14005a790
sub rsp, rax
mov rax, qword [0x1400781a0]
xor rax, rsp
mov qword [rsp + 0x2070], rax
mov rsi, rcx
lea rcx, [rsp + 0x72]
xor edx, edx
mov r8d, 0x1ffe
mov qword [rsp + 0x2090], rbp
mov word [rsp + 0x70], 0
mov qword [rsp + 0x2088], rdi
call fcn.140038800
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea r9, [rsi + 0x26c]
lea r8, str._s__X_:
lea rcx, [rsp + 0x70]
mov edx, 0x1000
mov dword [rsp + 0x20], eax
call fcn.140035430
mov r8, qword [rsp + 0x20b8]
mov edx, 0x1000
movsxd rcx, eax
lea r9, [rsp + 0x20c0]
sub rdx, rcx
lea rcx, [rsp + rcx*2 + 0x70]
call fcn.140034c30
lea r8, [0x14006619c]
lea rcx, [rsp + 0x70]
mov edx, 0x1000
call fcn.140036910
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsi + 0x64]
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
je 0x14000f9d4
lea rcx, [rsi + 8]
mov qword [rsp + 0x2098], rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea r8, [0x14006613c]
lea rdx, [rsi + 0x64]
lea rcx, [rsp + 0x60]
call fcn.140036570
test eax, eax
jne 0x14000f9c2
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [rsp + 0x5e]
movzx ecx, word [rsp + 0x5a]
movzx eax, word [rsp + 0x5c]
movzx edi, word [rsp + 0x58]
movzx r10d, word [rsp + 0x50]
movzx r9d, word [rsp + 0x56]
movzx r8d, word [rsp + 0x52]
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, qword [rsp + 0x60]
lea rdx, [0x140066140]
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], r10d
call fcn.1400372b0
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [0x14006610c]
call fcn.1400373a0
mov rcx, qword [rsp + 0x60]
call fcn.140036170
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x2098]
mov rbp, qword [rsp + 0x2090]
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x70]
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp rcx, 2
je 0x14000fa30
lea rdx, [rsp + 0x70]
nop
cmp word [rdx], 0xa
jne 0x14000fa0b
mov word [rdx], 0x20
or rcx, 0xffffffffffffffff
xor eax, eax
add r8d, 1
lea rdi, [rsp + 0x70]
add rdx, 2
repne scasw ax, word [rdi]
mov eax, r8d
not rcx
sub rcx, 3
cmp rax, rcx
jb 0x14000fa00
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, qword [rsp + 0x2088]
mov rcx, qword [rsp + 0x2070]
xor rcx, rsp
call fcn.140034e40
add rsp, 0x20a0
pop rsi
ret 0
Function at 0x14000ffd0
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edi, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx esi, ax
call qword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ebx, ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultLangID]
cmp di, bx
jne 0x140010060
cmp di, ax
jne 0x140010060
lea r8, [0x140079d20]
xor eax, eax
movzx edx, di
mov rcx, r8
nop
nop
cmp dword [rcx], edx
je 0x140010043
add eax, 1
add rcx, 0x18
cmp eax, 0x26
jb 0x140010020
mov ax, di
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea rcx, [rax + rax*2]
mov di, word [r8 + rcx*8 + 4]
mov ax, di
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
lea r8, [0x140079d20]
xor eax, eax
movzx edx, si
mov rcx, r8
nop
cmp dword [rcx], edx
je 0x140010093
add eax, 1
add rcx, 0x18
cmp eax, 0x26
jb 0x140010070
mov ax, si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
lea rcx, [rax + rax*2]
mov si, word [r8 + rcx*8 + 4]
mov ax, si
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x1400120d0
Capabilities:
Resolve dns

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
movzx r13d, r9w
mov qword [rbp], 0
mov r14d, r8d
mov r15d, edx
mov byte [rax], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
mov r12, rax
je 0x140012205
cmp word [rax + 0x10], 2
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
jne 0x1400121c7
cmp word [rax + 0x12], 4
jne 0x1400121c7
mov rdi, qword [rax + 0x18]
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400121c7
nop
nop
nop
mov esi, dword [rcx]
mov edx, gethostbyaddr
lea ecx, [rdx - 0x2f]
call fcn.1400375c0
test rax, rax
mov rbx, rax
je 0x1400121ad
mov edx, 0x10
lea ecx, [rdx - 0xf]
call fcn.1400375c0
test rax, rax
jne 0x140012185
mov rcx, rbx
call fcn.1400373d0
xor ebx, ebx
jmp 0x1400121ad
mov word [rax], 2
mov word [rax + 2], r13w
mov dword [rax + 4], esi
mov dword [rbx + 4], 2
mov dword [rbx + 8], r15d
mov dword [rbx + 0xc], r14d
mov qword [rbx + 0x10], 0x10
mov qword [rbx + 0x20], rax
test rbx, rbx
mov qword [rbp], rbx
je 0x1400121fe
mov rcx, qword [rdi + 8]
add rdi, 8
lea rbp, [rbx + 0x28]
test rcx, rcx
jne 0x140012150
mov r8, qword [r12]
mov rcx, qword [rsp + 0x70]
mov r9d, 0x400
lea edx, [r9 + 1]
call fcn.1400376b0
xor eax, eax
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 8
jmp 0x1400121e1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2af9
je 0x14001221c
sub eax, 1
je 0x140012242
sub eax, 1
je 0x14001222f
mov eax, 0x2af9
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0x2afb
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, 0x2afa
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140012be0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
sub rsp, 0x280
mov rax, qword [0x1400781a0]
xor rax, rsp
mov qword [rsp + 0x270], rax
cmp dword [0x140080d34], 0
lea rax, [0x140012590]
lea rbx, str.getaddrinfo
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
movzx ebp, cx
mov qword [rsp + 0x30], rax
lea rax, [0x140012940]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x40], rax
lea rax, [0x140012530]
mov qword [rsp + 0x48], rax
jne 0x140012daf
lea rcx, [rsp + 0x160]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x140012da5
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
mov qword [rsp + 0x290], rsi
call fcn.1400355a0
lea r8, str.ws2_32
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.140037c10
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140012cd4
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140012d34
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r8, [rsp + 0x160]
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.1400355a0
lea r8, str.wship6
lea rcx, [rsp + 0x50]
mov edx, 0x10c
call fcn.140037c10
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x140012d9d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x140012d34
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x140012d9d
mov qword [rsp + 0x298], rdi
lea rbx, [rsp + 0x28]
xor edi, edi
mov rdx, qword [rbx - 8]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [rbx], rax
je 0x140012d8c
add rdi, 1
add rbx, 0x10
cmp rdi, 3
jl 0x140012d43
mov rax, qword [rsp + 0x28]
mov qword [0x14007b120], rax
mov rax, qword [rsp + 0x38]
mov qword [0x14007b130], rax
mov rax, qword [rsp + 0x48]
mov qword [0x14007b140], rax
jmp 0x140012d95
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0x298]
mov rsi, qword [rsp + 0x290]
mov dword [0x140080d34], 1
movzx eax, bp
lea rcx, str.getaddrinfo
add rax, rax
mov rax, qword [rcx + rax*8 + 8]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140034e40
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x280
pop rbp
ret
Function at 0x140020438
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.14002f3b4
test rax, rax
mov rsi, rax
je 0x1400204b5
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
test rbx, rbx
movzx edi, ax
je 0x1400204b0
cmp dword [rbx], 0x38
jb 0x1400204b0
mov rax, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 8], rax
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageW]
bt rax, 0xd
jb 0x1400204b0
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x1400204b9
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1400213c8
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
call fcn.14002b294
mov rbx, rax
mov rax, qword [rax + 0x78]
test rax, rax
je 0x1400213ff
mov rcx, qword [rax + 0x40]
test rcx, rcx
je 0x1400213ff
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_SendMessageW]
test edi, edi
mov rbx, qword [rbx + 0xa0]
je 0x14002142f
test rbx, rbx
je 0x14002142f
mov ecx, 1
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x14002142f
mov rax, qword [rbx]
or rdx, 0xffffffffffffffff
mov rcx, rbx
call qword [rax + 0x2d0]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1400272cc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x140027334
call fcn.14002b244
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x140027334
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x140027356
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140026d28
test rdi, rdi
mov esi, eax
je 0x140027354
test rbx, rbx
je 0x140027354
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret
Function at 0x140028b24
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0xb0], 0
mov rdi, qword [rcx + 0xc0]
mov rbp, qword [rcx + 0xb8]
mov rsi, rcx
je 0x140028b81
call fcn.14002b244
mov rdx, qword [rsi + 0xb0]
mov r8d, 5
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbp, rax
test rbp, rbp
je 0x140028b92
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rdi, rdi
mov ebx, 1
je 0x140028bcf
cmp word [rdi + 2], 0xffff
mov ecx, dword [rdi]
jne 0x140028bb3
mov ecx, dword [rdi + 0xc]
movzx edx, word [rdi + 0x12]
movzx eax, word [rdi + 0x14]
jmp 0x140028bbb
mov dx, word [rdi + 0xa]
mov ax, word [rdi + 0xc]
test ecx, 0x1801
jne 0x140028bcd
test dx, dx
jne 0x140028bcd
test ax, ax
je 0x140028bcf
xor ebx, ebx
cmp qword [rsi + 0xb0], 0
je 0x140028be2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x140029338
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CDialog.virtual_624
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
test rdx, 0xffffffffffff0000
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
jne 0x140029377
cmp dword [rcx + 0xa8], 0
jne 0x140029377
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.14002b244
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.1400292dc
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14002c678
Capabilities:
Get geographical location

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x2f0
mov rax, qword [0x1400781a0]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
cmp r8d, 0x800
mov eax, r8d
mov rsi, rdx
mov rbx, rcx
jne 0x14002c6ea
lea r8, [0x14005f268]
lea rcx, [rsp + 0xa0]
mov edx, 4
call fcn.140036860
test eax, eax
je 0x14002c70c
cmp eax, 0xc
je 0x14002c6e4
cmp eax, 0x16
je 0x14002c6de
cmp eax, 0x22
je 0x14002c6de
cmp eax, 0x50
je 0x14002c70c
call fcn.14002b5b4
int3
call fcn.14002b5b4
int3
call fcn.14002b56c
int3
mov r9d, 4
lea r8, [rsp + 0xa0]
mov ecx, eax
lea edx, [r9 - 1]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14002c82f
call fcn.140036260
mov edi, dword [rax]
call fcn.140036260
lea rcx, [rsp + 0xb0]
and dword [rax], 0
lea rax, [rsp + 0xa0]
mov r9, rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
mov esi, 0x112
lea r8d, [rsi - 1]
mov rdx, rsi
call fcn.140035460
mov ebx, eax
call fcn.140036260
cmp dword [rax], 0
je 0x14002c794
call fcn.140036260
cmp dword [rax], 0
je 0x14002c79b
cmp dword [rax], 0xc
je 0x14002c789
cmp dword [rax], 0x16
je 0x14002c77e
cmp dword [rax], 0x22
je 0x14002c77e
cmp dword [rax], 0x50
je 0x14002c79b
mov ecx, 0x80004005
call fcn.140002210
int3
mov ecx, 0x80070057
call fcn.140002210
int3
mov ecx, 0x8007000e
call fcn.140002210
int3
call fcn.140036260
mov dword [rax], edi
cmp ebx, 0xffffffff
je 0x14002c82f
cmp ebx, esi
jae 0x14002c82f
lea rcx, [rsp + 0xb0]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
xor edx, edx
lea rcx, [rsp + 0x34]
lea r8d, [rdx + 0x6c]
mov rbx, rax
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
call fcn.140038800
lea rcx, str.KERNEL32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c81a
lea rdx, str.FindActCtxSectionStringW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002c81a
lea rcx, [rsp + 0x30]
xor edx, edx
mov r9, rbx
mov qword [rsp + 0x20], rcx
lea r8d, [rdx + 2]
xor ecx, ecx
call rax
mov rcx, rbx
test eax, eax
jne 0x14002c822
lea rcx, [rsp + 0xb0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x14002c831
xor eax, eax
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140034e40
add rsp, 0x2f0
pop rdi
pop rsi
pop rbx
ret