joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e0ec0
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 8
call fcn.006db7b0
mov dword [ebp - 8], 1
cmp dword [ebp + 8], 0xffffffff
jne 0x5e0f0b
call fcn.005798d0
push str.BIO_connect
push 0x54
push str.crypto_bio_bio_sock2.c
call fcn.00579920
add esp, 0xc
push 0
push 0x87
push 0x20
call fcn.00579970
add esp, 0xc
xor eax, eax
jmp 0x5e10d7
mov eax, dword [ebp + 0x10]
and eax, 8
je 0x5e0f1c
mov dword [ebp - 4], 1
jmp 0x5e0f23
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005b2650
add esp, 8
test eax, eax
jne 0x5e0f3e
xor eax, eax
jmp 0x5e10d7
mov eax, dword [ebp + 0x10]
and eax, 4
je 0x5e0fc1
push 4
lea ecx, [ebp - 8]
push ecx
push 8
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x5e0fc1
call fcn.005798d0
push str.BIO_connect
push 0x5e
push str.crypto_bio_bio_sock2.c
call fcn.00579920
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00579970
add esp, 0xc
call fcn.005798d0
push str.BIO_connect
push 0x60
push str.crypto_bio_bio_sock2.c
call fcn.00579920
add esp, 0xc
push 0
push 0x89
push 0x20
call fcn.00579970
add esp, 0xc
xor eax, eax
jmp 0x5e10d7
mov eax, dword [ebp + 0x10]
and eax, 0x10
je 0x5e1041
push 4
lea ecx, [ebp - 8]
push ecx
push 1
push 6
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x5e1041
call fcn.005798d0
push str.BIO_connect
push 0x68
push str.crypto_bio_bio_sock2.c
call fcn.00579920
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00579970
add esp, 0xc
call fcn.005798d0
push str.BIO_connect
push 0x6a
push str.crypto_bio_bio_sock2.c
call fcn.00579920
add esp, 0xc
push 0
push 0x8a
push 0x20
call fcn.00579970
add esp, 0xc
xor eax, eax
jmp 0x5e10d7
mov eax, dword [ebp + 0xc]
push eax
call fcn.00571b20
add esp, 4
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004e1450
add esp, 4
push eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5e10d2
push 0xffffffffffffffff
call fcn.00578a10
add esp, 4
test eax, eax
jne 0x5e10ce
call fcn.005798d0
push str.BIO_connect
push 0x72
push str.crypto_bio_bio_sock2.c
call fcn.00579920
add esp, 0xc
push str.calling_connect__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00579970
add esp, 0xc
call fcn.005798d0
push str.BIO_connect
push 0x74
push str.crypto_bio_bio_sock2.c
call fcn.00579920
add esp, 0xc
push 0
push 0x67
push 0x20
call fcn.00579970
add esp, 0xc
xor eax, eax
jmp 0x5e10d7
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x615b90
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14
call fcn.006db7b0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x18]
cmp ecx, dword [ebp + 0x14]
jne 0x615bc8
mov edx, dword [ebp - 8]
movzx eax, byte [edx]
cmp eax, 0x6a
je 0x615bfa
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx]
cmp edx, 0x6b
je 0x615bfa
call fcn.005798d0
push str.RSA_padding_check_X931
push 0x43
push str.crypto_rsa_rsa_x931.c
call fcn.00579920
add esp, 0xc
push 0
push 0x89
push 4
call fcn.00579970
add esp, 0xc
or eax, 0xffffffff
jmp 0x615d37
mov eax, dword [ebp - 8]
movzx ecx, byte [eax]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 0x14], 0x6b
jne 0x615cd7
mov eax, dword [ebp + 0x14]
sub eax, 3
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x615c31
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 0xc]
jge 0x615c97
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 1], cl
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
movzx eax, byte [ebp - 1]
cmp eax, 0xba
jne 0x615c57
jmp 0x615c97
movzx ecx, byte [ebp - 1]
cmp ecx, 0xbb
je 0x615c95
call fcn.005798d0
push str.RSA_padding_check_X931
push 0x4e
push str.crypto_rsa_rsa_x931.c
call fcn.00579920
add esp, 0xc
push 0
push 0x8a
push 4
call fcn.00579970
add esp, 0xc
or eax, 0xffffffff
jmp 0x615d37
jmp 0x615c28
mov edx, dword [ebp - 0xc]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x10], 0
jne 0x615cd5
call fcn.005798d0
push str.RSA_padding_check_X931
push 0x56
push str.crypto_rsa_rsa_x931.c
call fcn.00579920
add esp, 0xc
push 0
push 0x8a
push 4
call fcn.00579970
add esp, 0xc
or eax, 0xffffffff
jmp 0x615d37
jmp 0x615ce0
mov eax, dword [ebp + 0x14]
sub eax, 2
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
movzx edx, byte [ecx]
cmp edx, 0xcc
je 0x615d20
call fcn.005798d0
push str.RSA_padding_check_X931
push 0x5f
push str.crypto_rsa_rsa_x931.c
call fcn.00579920
add esp, 0xc
push 0
push 0x8b
push 4
call fcn.00579970
add esp, 0xc
or eax, 0xffffffff
jmp 0x615d37
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.006dccc0
add esp, 0xc
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x621280
Capabilities:
Encrypt data using curve25519

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xec
call fcn.006db7b0
mov eax, dword [0x7eba44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xe8], 0
mov eax, dword [ebp + 0x14]
push eax
push str.SHA512
mov ecx, dword [ebp + 8]
push ecx
call fcn.005313f0
add esp, 0xc
mov dword [ebp - 0xe8], eax
cmp dword [ebp - 0xe8], 0
jne 0x6212cc
xor eax, eax
jmp 0x6213ab
push 0
mov edx, dword [ebp - 0xe8]
push edx
push 0
lea eax, [ebp - 0x44]
push eax
push 0x20
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00530480
add esp, 0x18
mov dword [ebp - 0xec], eax
mov edx, dword [ebp - 0xe8]
push edx
call fcn.00531430
add esp, 4
cmp dword [ebp - 0xec], 0
jne 0x62131c
push 0x40
lea eax, [ebp - 0x44]
push eax
call fcn.004017e0
add esp, 8
xor eax, eax
jmp 0x6213ab
mov ecx, 1
imul edx, ecx, 0
movzx eax, byte [ebp + edx - 0x44]
and eax, 0xf8
mov ecx, 1
imul edx, ecx, 0
mov byte [ebp + edx - 0x44], al
mov eax, 1
imul ecx, eax, 0x1f
movzx edx, byte [ebp + ecx - 0x44]
and edx, 0x3f
mov eax, 1
imul ecx, eax, 0x1f
mov byte [ebp + ecx - 0x44], dl
mov edx, 1
imul eax, edx, 0x1f
movzx ecx, byte [ebp + eax - 0x44]
or ecx, 0x40
mov edx, 1
imul eax, edx, 0x1f
mov byte [ebp + eax - 0x44], cl
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0xe4]
push edx
call fcn.00620d00
add esp, 8
lea eax, [ebp - 0xe4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00620c20
add esp, 8
push 0x40
lea edx, [ebp - 0x44]
push edx
call fcn.004017e0
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006dbabd
mov esp, ebp
pop ebp
ret
Function at 0x686710
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.006db7b0
push 0x78
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.006dca70
add esp, 0xc
mov dword [ebp - 4], 0
jmp 0x68673f
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 8
jge 0x68675a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx*4 + 0x79aaf8]
mov dword [eax + edx*4], ecx
jmp 0x686736
mov esp, ebp
pop ebp
ret
Function at 0x6edfe5
Capabilities:
Timestomp file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006ede26

Function at 0x6ee894
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x7eba44]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x7b24a4
push esi
call fcn.006fe293
pop ecx
pop ecx
test eax, eax
jne 0x6ee8c2
xor al, al
jmp 0x6ee93f
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.006ee5d7
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x6ee8fc
push dword [ebp - 0x210]
call fcn.006e60fe
xor al, al
jmp 0x6ee93d
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x6ee902
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x6ee922
push edx
call fcn.006ee7ca
pop ecx
test al, al
je 0x6ee8ed
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x6ee930
mov bl, 1
push dword [ebp - 0x210]
call fcn.006e60fe
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.006dbabd
leave
ret
Function at 0x6eeb96
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x7ef990]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6eebd6
cmp byte [ebx], 0xa
jne 0x6eebd6
or byte [eax + edi + 0x28], 4
jmp 0x6eebdb
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x6eecd9
mov al, byte [edx]
cmp al, 0x1a
je 0x6eecbb
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x6eec0a
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x6eec2f
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x6eec39
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x6eebec
jmp 0x6eecd9
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6eecb6
cmp dword [ebp - 0xc], 0
je 0x6eecb6
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x7ef990]
test byte [eax + edi + 0x28], 0x48
je 0x6eec90
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x6eec7b
mov byte [esi], dl
jmp 0x6eec8c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x7ef990]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x6eecd9
cmp byte [ebp - 1], 0xa
jne 0x6eec9f
cmp esi, ebx
jne 0x6eec9f
mov byte [esi], 0xa
jmp 0x6eecd8
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.006f0564
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x6eecd9
mov byte [esi], 0xd
jmp 0x6eecd8
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x7ef990]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6eecd5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6eecd9
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6eece2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x7ef990]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x6eed25
cmp word [esi], dx
jne 0x6eed25
or byte [edi + eax + 0x28], 4
jmp 0x6eed2a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x6eee63
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x6eee43
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x6eed6c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x6eeda2
cmp eax, edx
jae 0x6eedae
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x6eed44
jmp 0x6eee63
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6eee3f
cmp dword [ebp - 0x14], 0
je 0x6eee3f
mov eax, dword [ebx*4 + 0x7ef990]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x6eee17
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x6eee5d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x7ef990]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x7ef990]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x7ef990]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x6eee60
pop ebx
cmp word [ebp - 4], bx
jne 0x6eee28
cmp esi, dword [ebp + 0xc]
jne 0x6eee28
mov word [esi], bx
jmp 0x6eee60
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.006f0564
add esp, 0x10
cmp word [ebp - 4], bx
je 0x6eee63
push 0xd
jmp 0x6eee5c
mov ecx, dword [ebx*4 + 0x7ef990]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x6eee5a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x6eee63
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x6f4475
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.006db7b0
mov eax, dword [0x7eba44]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.006e6497
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x6f44b7
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x6f4613
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.006dc0b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x7ef990]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.006f0546
mov ecx, dword [esi*4 + 0x7ef990]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x6f460c
cmp eax, dword [edi + ecx + 0x24]
jne 0x6f460c
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x6f460c
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006f0546
add esp, 0x14
test edx, edx
jl 0x6f460c
jg 0x6f4582
test eax, eax
jb 0x6f460c
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x6f460c
jl 0x6f459c
cmp dword [ebp - 0x1008], eax
ja 0x6f460c
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x6f45ba
test ebx, ebx
je 0x6f45f3
cmp ecx, edi
jae 0x6f45f3
mov al, byte [ecx]
cmp al, 0xd
jne 0x6f45d4
lea eax, [edi - 1]
cmp ecx, eax
jae 0x6f45e0
cmp byte [ecx + 1], 0xa
jne 0x6f45e0
inc ecx
jmp 0x6f45e0
movzx eax, al
movsx eax, byte [eax + 0x7eba98]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x6f45ba
cmp edx, ebx
jne 0x6f45ba
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x6f4611
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.006dbabd
leave
ret

Function at 0x6fc439
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.006fc2aa

Function at 0x6fce4e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7b3d7c
push 0x7b3d74
push str.FlsAlloc
push 0x1e
call fcn.006fcc7b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6fce82
push dword [ebp + 8]
mov ecx, esi
call dword [0x728564]
call esi
jmp 0x6fce88
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x6fcecc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x7b3d8c
push 0x7b3d84
push str.FlsGetValue
push 0x20
call fcn.006fcc7b
mov esi, eax
add esp, 0x10
test esi, esi
je 0x6fcf03
push dword [ebp + 8]
mov ecx, esi
call dword [0x728564]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x6fdda5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006fdd21
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x6fdf1d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x6fdf1d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x6fdecc
jg 0x6fddfe
test eax, eax
je 0x6fdec2
push 1
push 0x1000
call fcn.006fc8e1
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x6fde24
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x6fdeb9
push 0x8000
push ebx
call fcn.006f4a25
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x6fde50
jg 0x6fde4b
cmp ecx, 0x1000
jb 0x6fde50
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.006efde2
add esp, 0x10
cmp eax, 0xffffffff
je 0x6fde95
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x6fde4b
jl 0x6fde7c
test ecx, ecx
jne 0x6fde3d
push dword [ebp - 0xc]
push ebx
call fcn.006f4a25
push esi
call fcn.006fa4f9
add esp, 0xc
xor edi, edi
jmp 0x6fdf2e
cmp byte [edi + 0x24], 0
je 0x6fdeac
cmp dword [edi + 0x20], 5
jne 0x6fdeac
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x6fdeb7
mov edi, dword [edi + 0x18]
jmp 0x6fdeb9
xor edi, edi
push esi
call fcn.006fa4f9
pop ecx
jmp 0x6fdf2e
test ecx, ecx
jg 0x6fde8e
jl 0x6fdecc
test eax, eax
jae 0x6fde8e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.006f0564
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x6fdeef
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x6fde8e
jmp 0x6fdf26
push ebx
call fcn.006fc80e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x6fde8e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x6fdf2e
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x6fdf2b
mov edi, dword [edi + 0x18]
jmp 0x6fdf2e
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.006f0564
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x701b93
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x7eba44]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x701bde
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00701d32
test al, al
jne 0x701bd8
sub edx, 2
cmp edx, edi
jne 0x701bbe
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x701c00
lea eax, [edi + 2]
cmp edx, eax
je 0x701c00
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00701adf
add esp, 0x10
jmp 0x701cfa
push esi
lea ecx, [ebp - 0x255]
call fcn.00701d32
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x701c43
push dword [ebp - 0x25c]
jmp 0x701bf0
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x701c80
cmp word [ebp - 0x226], 0
je 0x701ca1
cmp word [ebp - 0x226], ax
jne 0x701c80
cmp word [ebp - 0x224], 0
je 0x701ca1
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00701adf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x701ced
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x701c5a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x701cd5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x701cfa
push 0x70190f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.006f3860
add esp, 0x10
jmp 0x701cca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006dbabd
leave
ret
Function at 0x702605
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x7026a2
push ebx
push esi
call fcn.007025ce
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.006fe511
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x70264f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x7026a1
push edi
push eax
call fcn.006fa533
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x70266f
call fcn.006fa4f9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x7026a0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.006fe511
add esp, 0x20
test eax, eax
jne 0x70268e
push edi
call fcn.006fa4f9
jmp 0x702696
push ebx
call fcn.006fa4f9
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x7026a5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x7026b6
pop esi
ret
push ebx
push edi
push esi
call fcn.007025ce
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.006fa533
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x7026de
push ebx
push esi
push edi
call fcn.006dccc0
add esp, 0xc
push 0
call fcn.006fa4f9
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x702e2a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00702951