joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140074128
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400d16b0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14007417f
cmp word [rdx], r13w
jne 0x14007417f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140074184
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400742a9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400742ca
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400741bd
mov rdx, r9
mov word [rbx], cx
jmp 0x1400741e4
cmp r9, r8
jae 0x1400741f4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14007419e
jmp 0x1400742a9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14007429e
cmp dword [rsp + 0x80], esi
je 0x14007429e
lea r8, [0x1400d16b0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140074276
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140074246
mov word [rbx], r13w
jmp 0x1400742a6
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140074253
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400742a6
cmp word [rsp + 0x70], r13w
jne 0x140074283
cmp rbx, r14
je 0x140074240
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140074084
cmp word [rsp + 0x70], r13w
je 0x1400742a9
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400d16b0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400742a3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400742a9
Function at 0x140077e64
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140077e7a
mov al, 1
jmp 0x140077eda
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140077e8b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140077ed8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14007c1b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140077ed8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140077ed8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140077ed8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140077eda
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14007b8e8
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14007b918
xor eax, eax
jmp 0x14007b9db
mov rbp, rbx
cmp word [rax], si
je 0x14007b93d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007b924
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14007b920
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14007a1f0
movsxd r14, eax
test eax, eax
jne 0x14007b97b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14007b911
mov rcx, r14
call fcn.1400769d8
mov rdi, rax
test rax, rax
jne 0x14007b994
xor ecx, ecx
call fcn.140073d4c
jmp 0x14007b970
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14007a1f0
test eax, eax
jne 0x14007b9c5
mov rcx, rdi
call fcn.140073d4c
jmp 0x14007b9cf
xor ecx, ecx
call fcn.140073d4c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14007e708
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14007389c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14007e7a9
cmp ebx, dword [rsp + 0x30]
je 0x14007e7a2
test esi, esi
je 0x14007e7a2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14007e77d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14007e78a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007e767
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14007e78e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14007e7ab
mov eax, 1
jmp 0x14007e7ab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140082890
Capabilities:
Clear file content

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
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140074084
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140074084
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400829e0
cmp rax, 0xffffffffffffffff
je 0x1400829e0
xor edi, edi
test rbp, rbp
jle 0x14008298b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140073bfc
mov rbx, rax
test rax, rax
jne 0x140082918
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140082981
mov edx, 0x8000
mov ecx, r14d
call fcn.1400719dc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400762cc
cmp eax, 0xffffffff
je 0x140082961
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140082928
mov edx, r15d
mov ecx, r14d
call fcn.1400719dc
jmp 0x140082981
cmp byte [rsi + 0x38], dil
je 0x140082978
cmp dword [rsi + 0x34], 5
jne 0x140082978
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140082981
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140073d4c
jmp 0x1400829f4
jns 0x1400829f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140074084
cmp rax, 0xffffffffffffffff
jne 0x1400829ac
cmp byte [rsi + 0x30], dil
je 0x1400829f4
mov edi, dword [rsi + 0x2c]
jmp 0x1400829f4
mov ecx, r14d
call fcn.14007c1b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400829f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400829f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400829ed
mov eax, dword [rsi + 0x2c]
jmp 0x1400829f2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140074084
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140083360
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140083388
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140083388
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400408d8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x140124d60]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdx
mov rsi, r9
mov rdi, r8
mov rbx, rdx
mov r12, rcx
mov rbp, rdx
cmp rdx, r8
je 0x14004098b
cmp rsi, qword [rsp + 0x80]
je 0x140040995
movzx r14d, word [rbx]
add rbx, 2
movzx r15d, word [rsi]
add rsi, 2
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x68], rbx
call fcn.14004028c
mov rcx, rax
movzx edx, r14w
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
call qword [0x1400d4338]
mov rcx, qword [rsp + 0x88]
movzx r14d, ax
call fcn.14004028c
mov rcx, rax
movzx edx, r15w
mov rax, qword [rax]
mov rax, qword [rax + 0x40]
call qword [0x1400d4338]
cmp r14w, ax
jne 0x14004099c
cmp rbx, rdi
jne 0x14004091b
cmp rsi, qword [rsp + 0x80]
jne 0x1400409a2
lea rax, [rsp + 0x68]
jmp 0x1400409bb
mov qword [r12], rbp
jmp 0x1400409c2
cmp byte [rsp + 0x90], 0
je 0x1400409b6
lea rax, [rsp + 0x68]
cmp rbx, rdi
je 0x1400409bb
lea rax, [rsp + 0x20]
mov rax, qword [rax]
mov qword [r12], rax
mov rax, r12
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c0e50
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret

Function at 0x1400416d0
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140124d60]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor ebx, ebx
cmp qword [0x14011e3e8], rbx
jne 0x140041767
lea r9, [rsp + 0x20]
xor r8d, r8d
mov edx, 0x8000
lea rcx, [0x1400e8258]
call qword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
nop dword [rax + rax]
test eax, eax
js 0x140041756
mov rdx, qword [rsp + 0x20]
cmp word [rdx], bx
je 0x14004172e
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bx
jne 0x140041722
mov rbx, rax
mov r8, rbx
lea rcx, [0x14011e3d8]
call fcn.140006eec
mov r8d, 0x18
lea rdx, str.MicrosoftUEVTemplates
lea rcx, [0x14011e3d8]
call fcn.140006fd4
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop dword [rax + rax]
lea rax, [0x14011e3d8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400c0e50
add rsp, 0x30
pop rbx
ret
Function at 0x1400417fc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140124d60]
xor rax, rsp
mov qword [rsp + 0x48], rax
and dword [rsp + 0x30], 0
lea rdx, str.SOFTWAREMicrosoftHvsiOffice
and qword [rsp + 0x40], 0
mov eax, 4
mov dword [rsp + 0x38], eax
mov r9d, 0x20019
mov dword [rsp + 0x34], eax
xor r8d, r8d
lea rax, [rsp + 0x40]
mov rcx, 0xffffffff80000002
mov qword [rsp + 0x20], rax
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x1400418ba
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x38]
lea rax, [rsp + 0x30]
xor r8d, r8d
lea rdx, str.OfficeWDAGEnabledOnHost
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
nop dword [rax + rax]
mov ecx, eax
movzx eax, ax
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
test eax, eax
js 0x1400418ba
cmp dword [rsp + 0x30], 1
sete bl
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400418d0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c0e50
add rsp, 0x50
pop rbx
ret

Function at 0x1400476ec
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
cmp qword [rdx + 0x18], 8
mov r9, qword [rdx + 0x10]
jb 0x140047703
mov rdx, qword [rdx]
xor r8d, r8d
movabs rcx, 0xcbf29ce484222325
add r9, r9
je 0x140047733
movzx eax, byte [rdx + r8]
movabs r10, 0x100000001b3
xor rcx, rax
inc r8
imul rcx, r10
cmp r8, r9
jb 0x140047715
mov rax, rcx
mov edx, 0x1f31d
shr rax, 0x20
xor ecx, eax
btr ecx, 0x1f
call qword [sym.imp.msvcrt.dll_ldiv]
nop dword [rax + rax]
mov qword [rsp + 0x30], rax
shr rax, 0x20
imul ecx, eax, 0x41a7
imul eax, dword [rsp + 0x30], 0xb14
sub ecx, eax
jns 0x140047772
add ecx, 0x7fffffff
movsxd rax, ecx
add rsp, 0x28
ret
Function at 0x14004c688
Capabilities:
Parse credit card information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
xor al, al
mov ecx, dword [rcx + 0x7c]
cmp ecx, 0xffffffff
je 0x14004c820
cmp ecx, 0x7c
je 0x14004c820
cmp ecx, 0x29
jne 0x14004c6cb
cmp dword [rbx + 0x1c], 0
jne 0x14004c820
test dword [rbx + 0x80], 0x10000000
je 0x14004c842
cmp ecx, 0x2e
jne 0x14004c6eb
lea rcx, [rbx + 0x40]
mov edx, 5
call fcn.14004c968
mov rcx, rbx
call fcn.14004c620
jmp 0x14004c80e
cmp ecx, 0x5c
jne 0x14004c74f
mov rcx, rbx
call fcn.14004c620
test byte [rbx + 0x80], 0x80
je 0x14004c742
cmp word [rbx + 0x78], 0x62
jne 0x14004c723
mov edx, 4
lea rcx, [rbx + 0x40]
call fcn.14004c968
mov rcx, rbx
call fcn.14004c620
jmp 0x14004c816
cmp word [rbx + 0x78], 0x42
jne 0x14004c742
lea rcx, [rbx + 0x40]
mov edx, 4
call fcn.14004c968
mov rax, qword [rbx + 0x48]
xor dword [rax + 0xc], 1
jmp 0x14004c716
mov rcx, rbx
call fcn.14004cfec
jmp 0x14004c80e
cmp ecx, 0x5b
jne 0x14004c773
mov rcx, rbx
call fcn.14004c620
mov rcx, rbx
call fcn.14004ce94
cmp dword [rbx + 0x7c], 0x5d
jne 0x14004c82c
jmp 0x14004c6de
cmp ecx, 0x28
jne 0x14004c797
mov rcx, rbx
call fcn.14004c620
mov rcx, rbx
call fcn.14004d170
cmp dword [rbx + 0x7c], 0x29
mov dil, al
jne 0x14004c837
jmp 0x14004c801
cmp ecx, 0x5e
jne 0x14004c7a4
lea edx, [rcx - 0x5c]
jmp 0x14004c70d
cmp ecx, 0x24
jne 0x14004c7b1
lea edx, [rcx - 0x21]
jmp 0x14004c70d
lea eax, [rcx - 0x2a]
cmp eax, 1
jbe 0x14004c863
cmp ecx, 0x3f
je 0x14004c863
cmp ecx, 0x7b
je 0x14004c863
cmp ecx, 0x7d
jne 0x14004c7e0
test dword [rbx + 0x80], 0x10000000
je 0x14004c84d
cmp ecx, 0x5d
jne 0x14004c7f1
test dword [rbx + 0x80], 0x10000000
je 0x14004c858
movzx edx, word [rbx + 0x78]
lea rcx, [rbx + 0x40]
call fcn.14004d448
mov dil, 1
mov rcx, rbx
call fcn.14004c620
test dil, dil
je 0x14004c816
mov rcx, rbx
call fcn.14004d340
mov ecx, dword [rbx + 0x7c]
mov al, 1
jmp 0x14004c69a
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov edx, 4
call fcn.14004bdcc
int3
mov edx, 5
call fcn.14004bdcc
int3
mov edx, 5
call fcn.14004bdcc
int3
mov edx, 6
call fcn.14004bdcc
int3
mov edx, 4
call fcn.14004bdcc
int3
mov edx, 0xa
call fcn.14004bdcc
int3
Function at 0x1400c130c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400c1358
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400c1350
cmp dword [rcx + 0x3c], edx
jl 0x1400c1350
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400c1350
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400c1358
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400054e0]
mov dword [rax], 1
mov rax, qword [0x1400054f0]
mov dword [rax], 1
mov rax, qword [0x140005500]
mov dword [rax], 1
mov rax, qword [0x140005460]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400016d0
Capabilities:
Initialize winsock library
Terminate process

Disassembly:
push rbp
sub rsp, 0x1c0
lea rbp, [rsp + 0x80]
lea rax, [rbp - 0x60]
mov rdx, rax
mov ecx, 0x202
mov rax, qword [sym.imp.WS2_32.dll_WSAStartup]
call rax
test eax, eax
je 0x140001716
lea rax, str.Winsock_
mov rcx, rax
call sym.puts
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
nop
add rsp, 0x1c0
pop rbp
ret
Function at 0x140001720
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov r8d, 6
mov edx, 1
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_socket]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x140001779
lea rax, [0x140005068]
mov rcx, rax
call sym.puts
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov word [rbp - 0x20], 2
mov eax, dword [rbp + 0x18]
movzx eax, ax
mov ecx, eax
mov rax, qword [sym.imp.WS2_32.dll_htons]
call rax
mov word [rbp - 0x1e], ax
lea rax, [rbp - 0x20]
lea rdx, [rax + 4]
mov rax, qword [rbp + 0x10]
mov r8, rdx
mov rdx, rax
mov ecx, 2
mov rax, qword [sym.imp.WS2_32.dll_inet_pton]
call rax
lea rdx, [rbp - 0x20]
mov rax, qword [rbp - 8]
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_connect]
call rax
cmp eax, 0xffffffff
jne 0x140001809
lea rax, [0x14000507e]
mov rcx, rax
call sym.puts
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov rax, qword [sym.imp.WS2_32.dll_WSACleanup]
call rax
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [rbp - 8]
add rsp, 0x40
pop rbp
ret

Function at 0x140001813
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0x430
lea rbp, [rsp + 0x80]
call sym.__main
call sym.initialize_winsock
mov edx, 0x1388
lea rax, str.192.168.217.1
mov rcx, rax
call sym.connect_to_imap_server
mov qword [rbp + 0x3a8], rax
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x3a8]
mov r9d, 0
mov r8d, 0x400
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
mov dword [rbp + 0x3a4], eax
cmp dword [rbp + 0x3a4], 0
jle 0x14000189f
mov eax, dword [rbp + 0x3a4]
cdqe
mov byte [rbp + rax - 0x60], 0
lea rax, [rbp - 0x60]
mov rdx, rax
lea rax, str.:__s_n
mov rcx, rax
call sym.printf
jmp 0x1400018ae
lea rax, str.
mov rcx, rax
call sym.puts
mov rax, qword [rbp + 0x3a8]
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_closesocket]
call rax
mov ecx, 0x1388
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
jmp 0x14000182d

Function at 0x140001c90
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop
Function at 0x140002962
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x1400029fa
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x1400029de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400029d2
cmp qword [rbp - 0x10], 0
je 0x1400029d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140002998
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400029fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140002b00
Capabilities:
Parse pe header

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

Function at 0x140002b7c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140002bfa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140002bf1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140002bf1
mov rax, qword [rbp - 8]
jmp 0x140002c0f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140002bc4
mov eax, 0
add rsp, 0x20
pop rbp
ret