joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002850
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400055b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400028b0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400028b8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400028b0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1400028b0
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 0x140002904
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002910
add rdx, 0x28
cmp r9, rdx
jne 0x1400028f0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400055b0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002942
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002950
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002942
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002942
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002942
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 0x1400029a5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1400029b8
add rdx, 0x28
cmp rdx, r10
jne 0x140002990
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400029c7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400029d7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400029ae
test ecx, ecx
jg 0x1400029c0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140002ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp - 0x10], 0
mov rax, qword [rbp + 0x18]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov eax, dword [rax + 0x88]
mov eax, eax
mov qword [rbp - 0x30], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x30]
add rax, rdx
mov qword [rbp - 0x38], rax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x1c]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x20]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x24]
mov edx, eax
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x50], rax
mov dword [rbp - 4], 0
jmp 0x14000301b
mov eax, dword [rbp - 4]
lea rdx, [rax*4]
mov rax, qword [rbp - 0x48]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x54], eax
mov edx, dword [rbp - 0x54]
mov rax, qword [rbp - 0x18]
add rax, rdx
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x60]
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], 0
mov rdx, qword [rbp - 0x68]
mov rax, qword [rbp + 0x10]
mov rcx, rax
call method.hash.returnhash_char_
mov dword [rbp - 0x74], eax
mov eax, dword [rbp - 0x74]
cmp eax, dword [rbp + 0x20]
jne 0x140003017
mov eax, dword [rbp - 4]
lea rdx, [rax + rax]
mov rax, qword [rbp - 0x50]
add rax, rdx
movzx eax, word [rax]
movzx eax, ax
lea rdx, [rax*4]
mov rax, qword [rbp - 0x40]
add rax, rdx
mov eax, dword [rax]
mov eax, eax
mov qword [rbp - 0x70], rax
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x70]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
jmp 0x14000302f
add dword [rbp - 4], 1
mov rax, qword [rbp - 0x38]
mov eax, dword [rax + 0x14]
cmp dword [rbp - 4], eax
jb 0x140002f87
mov rax, qword [rbp - 0x10]
add rsp, 0xa0
pop rbp
ret
Function at 0x8d5a40
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x8d5a4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x8d5a5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x8d5a45
lea eax, [rcx + 1]
jmp 0x8d5a6b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x8d5a7e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x8d5a64
sub eax, 3
jb 0x8d5a9e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x8d5aed
sar eax, 1
movsxd rbp, eax
jb 0x8d5ad4
jmp 0x8d5aac
add ebx, ebx
jne 0x8d5aaa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8d5ad4
inc ecx
add ebx, ebx
jne 0x8d5aba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x8d5ad4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x8d5acd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x8d5abc
add ecx, 2
jmp 0x8d5ad9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.008d5a02
jmp 0x8d5a4d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x35b200
mov dl, 0x63
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x8d5b39
cmp rsi, rcx
jae 0x8d5b41
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x8d5b20
cmp al, 0x8f
ja 0x8d5b20
cmp byte [rsi - 2], 0xf
je 0x8d5b26
sub al, 0xe8
cmp al, 1
ja 0x8d5b0a
cmp rsi, rcx
jae 0x8d5b41
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x8d5b10
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x8d5b41
lodsb al, byte [rsi]
jmp 0x8d5b20
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x4bc000]
mov eax, dword [rdi]
or eax, eax
je 0x8d5b9e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x4d84e0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x8d5b4e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x8d5b98
mov qword [rbx], rax
add rbx, 8
jmp 0x8d5b6e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x8d5bd8
cmp al, 0xef
ja 0x8d5bca
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x8d5baa
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x8d5bb9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x8d5c2c
sub rsp, 0xffffffffffffff80
jmp 0x74d460
Function at 0x14000c43c
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140014c60], rbx
je 0x14000c4a3
cmp rax, rbx
jne 0x14000c496
mov ebx, 1
mov esi, ebx
jmp 0x14000c4a8
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000c47b
mov ebx, 1
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c4c0
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000c52c
mov eax, dword [0x140014c68]
test eax, eax
jne 0x14000c521
mov dword [0x140014c68], ebx
lea r15, [0x14000eba0]
lea rdi, [0x14000eb88]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000c513
test eax, eax
jne 0x14000c517
cmp qword [rdi], r14
je 0x14000c508
mov rax, qword [rdi]
mov rcx, qword [0x14000eb40]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000c4ea
test eax, eax
je 0x14000c527
mov eax, 0xff
jmp 0x14000c682
mov dword [0x1400143e4], ebx
mov edi, 0x1f
mov eax, dword [0x140014c68]
cmp eax, ebx
jne 0x14000c553
lea rdx, [0x14000eb80]
lea rcx, [0x14000eb48]
call sub.msvcrt.dll__initterm
mov dword [0x140014c68], 2
test esi, esi
jne 0x14000c561
mov rax, r14
xchg qword [0x140014c60], rax
cmp qword [0x140014c80], r14
je 0x14000c594
lea rcx, [0x140014c80]
call fcn.14000ca70
test eax, eax
je 0x14000c594
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140014c80]
mov r9, qword [0x14000eb40]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000c5ad
mov eax, 0xff
jmp 0x14000c682
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000c633
test ax, ax
je 0x14000c5c8
test edx, edx
jne 0x14000c633
sub ax, bx
cmp ax, di
ja 0x14000c5de
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000c5c8
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140001878
mov dword [0x1400143e0], eax
cmp dword [0x140014400], r14d
jne 0x14000c61c
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400143e4], r14d
jne 0x14000c631
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400143e0]
jmp 0x14000c682
cmp ax, 0x22
jne 0x14000c647
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000c5b6
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.1401a1000
add rsp, 0x28
jmp 0x14000c43c
Function at 0x140029860
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14002986d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14002987d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140029865
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140029895
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140029882
sub eax, 3
jb 0x1400298af
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400298e6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400298d6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400298d4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400298c3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140029822
jmp 0x14002986d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x27000]
mov eax, dword [rdi]
or eax, eax
je 0x140029942
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x291dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400298f2
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14002993c
mov qword [rbx], rax
add rbx, 8
jmp 0x140029912
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14002997c
cmp al, 0xef
ja 0x14002996e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14002994e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14002995d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x217]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400299d0
sub rsp, 0xffffffffffffff80
jmp 0x1400112d0
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140006630]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x140006640]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call sym._amsg_exit
jmp 0x14000123c
mov rax, qword [0x140006640]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x140006640]
mov dword [rax], 1
mov rax, qword [0x140006680]
mov rdx, rax
mov rax, qword [0x140006670]
mov rcx, rax
call sym._initterm
jmp 0x14000123c
mov dword [0x14000b024], 1
mov rax, qword [0x140006640]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x140006660]
mov rdx, rax
mov rax, qword [0x140006650]
mov rcx, rax
call sym._initterm
mov rax, qword [0x140006640]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140006630]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x140006580]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x140006580]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call sym._pei386_runtime_relocator
mov rax, qword [sym._gnu_exception_handler]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140006620]
mov qword [rdx], rax
lea rax, [sym.__mingw_invalidParameterHandler]
mov rcx, rax
call sym._set_invalid_parameter_handler
call sym._fpreset
mov eax, dword [0x14000b004]
lea rdx, [0x14000b008]
mov ecx, eax
call sym.duplicate_ppstrings
call sym.__main
mov rax, qword [0x1400065b0]
mov rax, qword [rax]
mov rdx, qword [0x14000b010]
mov qword [rax], rdx
mov rcx, qword [0x14000b010]
mov rdx, qword [0x14000b008]
mov eax, dword [0x14000b004]
mov r8, rcx
mov ecx, eax
call sym.main
mov dword [0x14000b01c], eax
mov eax, dword [0x14000b020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14000b01c]
mov ecx, eax
call sym.exit
mov eax, dword [0x14000b024]
test eax, eax
jne 0x14000136c
call sym._cexit
mov eax, dword [0x14000b01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400065e0]
mov dword [rax], 1
mov rax, qword [0x1400065f0]
mov dword [rax], 1
mov rax, qword [0x140006600]
mov dword [rax], 1
mov rax, qword [0x1400065a0]
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 0x140001bca
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbp
sub rsp, 0x650
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x5e0], rcx
mov qword [rbp + 0x5e8], rdx
mov dword [rbp + 0x5cc], 0
mov dword [rbp + 0x5c8], 0
mov dword [rbp + 0x5c4], 0
mov dword [rbp + 0x5c0], 0xffffffff
mov dword [rbp + 0x5bc], 0
mov dword [rbp + 0x5b8], 0
mov byte [rbp + 0x5b7], 0
jmp 0x140001d20
cmp dword [rbp + 0x5bc], 0
jne 0x140001cca
cmp dword [rbp + 0x5c8], 0
jne 0x140001c60
movzx eax, byte [rbp + 0x57f]
cmp al, 0x20
jne 0x140001c60
mov dword [rbp + 0x5c8], 1
jmp 0x140001d20
cmp dword [rbp + 0x5c8], 0
je 0x140001cca
movzx eax, byte [rbp + 0x57f]
cmp al, 0xa
jne 0x140001c80
mov dword [rbp + 0x5bc], 1
jmp 0x140001cca
movzx eax, byte [rbp + 0x57f]
cmp al, 0x2f
jle 0x140001cc0
movzx eax, byte [rbp + 0x57f]
cmp al, 0x39
jg 0x140001cc0
cmp dword [rbp + 0x5b8], 0
jne 0x140001cc0
mov eax, dword [rbp + 0x5c4]
lea edx, [rax + 1]
mov dword [rbp + 0x5c4], edx
movzx edx, byte [rbp + 0x57f]
cdqe
mov byte [rbp + rax + 0x580], dl
jmp 0x140001cca
mov dword [rbp + 0x5b8], 1
cmp byte [rbp + 0x5b7], 0xd
jne 0x140001cf3
movzx eax, byte [rbp + 0x57f]
cmp al, 0xa
jne 0x140001cf3
cmp dword [rbp + 0x5cc], 0
jne 0x140001d51
mov dword [rbp + 0x5cc], 1
jmp 0x140001d13
movzx eax, byte [rbp + 0x57f]
cmp al, 0xa
je 0x140001d13
movzx eax, byte [rbp + 0x57f]
cmp al, 0xd
je 0x140001d13
mov dword [rbp + 0x5cc], 0
movzx eax, byte [rbp + 0x57f]
mov byte [rbp + 0x5b7], al
lea rdx, [rbp + 0x57f]
mov rax, qword [rbp + 0x5e0]
mov r9d, 0
mov r8d, 1
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
cmp eax, 1
je 0x140001c30
jmp 0x140001d52
nop
cmp dword [rbp + 0x5bc], 0
je 0x140001d8b
mov eax, dword [rbp + 0x5c4]
cdqe
mov byte [rbp + rax + 0x580], 0
lea rax, [rbp + 0x580]
mov r8d, 0xa
mov edx, 0
mov rcx, rax
call sym.custom_strtol
mov dword [rbp + 0x5c0], eax
cmp dword [rbp + 0x5c0], 0xc8
jne 0x140001e3a
mov rax, qword [rbp + 0x5e8]
mov r8d, 0x309
mov edx, 0x301
mov rcx, rax
call sym.open
mov dword [rbp + 0x5b0], eax
jmp 0x140001ded
mov rax, qword [rbp + 0x5a8]
mov ecx, eax
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x5b0]
mov r8d, ecx
mov ecx, eax
call sym.write
cdqe
mov qword [rbp + 0x5a0], rax
cmp qword [rbp + 0x5a0], 0
jle 0x140001e25
lea rdx, [rbp - 0x60]
mov rax, qword [rbp + 0x5e0]
mov r9d, 0
mov r8d, 0x5dc
mov rcx, rax
mov rax, qword [sym.imp.WS2_32.dll_recv]
call rax
cdqe
mov qword [rbp + 0x5a8], rax
cmp qword [rbp + 0x5a8], 0
jg 0x140001dbd
jmp 0x140001e26
nop
mov eax, dword [rbp + 0x5b0]
mov ecx, eax
call sym.close
mov eax, 1
jmp 0x140001e3f
mov eax, 0
add rsp, 0x650
pop rbp
ret
Function at 0x140002a80
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 0x140003752
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000b168]
test eax, eax
je 0x1400037ea
lea rax, [0x14000b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000b170]
mov qword [rbp - 8], rax
jmp 0x1400037ce
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 0x1400037c2
cmp qword [rbp - 0x10], 0
je 0x1400037c2
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 0x140003788
lea rax, [0x14000b140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400037eb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400038f0
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 0x140003918
mov eax, 0
jmp 0x140003966
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 0x140003941
mov eax, 0
jmp 0x140003966
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 0x140003961
mov eax, 0
jmp 0x140003966
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000396c
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 0x1400039ea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400039e1
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 0x1400039e1
mov rax, qword [rbp - 8]
jmp 0x1400039ff
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 0x1400039b4
mov eax, 0
add rsp, 0x20
pop rbp
ret

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
cmp qword [rbp + 0x10], 0
je 0x14000432e
mov eax, dword [rbp + 0x18]
cmp eax, 7
jbe 0x140004343
call sym._errno
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x1400043e0
mov rax, qword [rbp + 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
call rax
mov dword [rbp - 4], eax
cmp dword [rbp - 4], 0xffffffff
jne 0x1400043a4
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 3
ja 0x140004371
cmp eax, 2
jae 0x140004378
jmp 0x140004392
cmp eax, 5
je 0x140004385
jmp 0x140004392
call sym._errno
mov dword [rax], 2
jmp 0x14000439d
call sym._errno
mov dword [rax], 0xd
jmp 0x14000439d
call sym._errno
mov dword [rax], 0x16
mov eax, 0xffffffff
jmp 0x1400043e0
mov eax, dword [rbp - 4]
and eax, 0x10
test eax, eax
je 0x1400043b5
mov eax, 0
jmp 0x1400043e0
mov eax, dword [rbp - 4]
and eax, 1
test eax, eax
je 0x1400043db
mov eax, dword [rbp + 0x18]
and eax, 2
test eax, eax
je 0x1400043db
call sym._errno
mov dword [rax], 0xd
mov eax, 0xffffffff
jmp 0x1400043e0
mov eax, 0
add rsp, 0x30
pop rbp
ret