joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d8509
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004d832d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d8678
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d8678
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d862d
jg 0x4d8565
test eax, eax
je 0x4d8623
push 1
push 0x1000
call fcn.004c03e8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d8588
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d861a
push 0x8000
push ebx
call fcn.004bb019
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d85b1
jg 0x4d85ac
cmp ecx, 0x1000
jb 0x4d85b1
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004c5694
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d85f6
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 0x4d85ac
jl 0x4d85dd
test ecx, ecx
jne 0x4d859e
push dword [ebp - 0xc]
push ebx
call fcn.004bb019
push esi
call fcn.004beabd
add esp, 0xc
xor ebx, ebx
jmp 0x4d8686
cmp byte [edi + 0x24], 0
je 0x4d860d
cmp dword [edi + 0x20], 5
jne 0x4d860d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d8618
mov ebx, dword [edi + 0x18]
jmp 0x4d861a
xor ebx, ebx
push esi
call fcn.004beabd
pop ecx
jmp 0x4d8686
test ecx, ecx
jg 0x4d85ef
jl 0x4d862d
test eax, eax
jae 0x4d85ef
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d5af3
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d864d
cmp byte [edi + 0x1c], 0
je 0x4d85ef
jmp 0x4d867e
push ebx
call fcn.004cad8b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d85ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4d8686
cmp byte [edi + 0x1c], 0
je 0x4d8683
mov ebx, dword [edi + 0x18]
jmp 0x4d8686
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004d5af3
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4dbf90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.004dc5a0
add esp, 8
test al, al
je 0x4dbfb5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4dbfb5
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x4dc5a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4dda50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4dda7b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4dda7b
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4e2f60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x55b1c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0
push 0
push 0x80
push 2
push 1
push 0x40000000
push eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004e1ca0
mov edi, dword [ebp - 0xc]
test eax, eax
js 0x4e2ff3
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x4e2fb3
mov esi, dword [esi]
push 0
lea ecx, [ebp - 8]
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e2fd1
call fcn.0041ca10
mov esi, eax
test esi, esi
js 0x4e2fec
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x4e2fea
call fcn.0041ca10
mov esi, eax
not esi
shr esi, 0x1f
jmp 0x4e2ff5
xor esi, esi
not esi
shr esi, 0x1f
jmp 0x4e2ff5
xor esi, esi
test edi, edi
je 0x4e3000
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00455dea
mov esp, ebp
pop ebp
ret
Function at 0x4e61d0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516c16
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x55b1c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ecx + 8]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test esi, esi
je 0x4e62bd
test edi, edi
je 0x4e62e9
mov edx, dword [ebp + 0x10]
test edx, 0xf
jne 0x4e6315
lea eax, [edx - 0x10]
cmp dword [ebp + 0xc], eax
jbe 0x4e6341
cmp byte [ecx + 0x10], 0
je 0x4e636d
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edx
push eax
push edi
push 0
push 1
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov ecx, eax
test ecx, ecx
je 0x4e6399
jmp 0x4e6295
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455dea
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xc0]
push eax
call fcn.0047fdba
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xcc]
push eax
call fcn.0047fdba
push 0x80090005
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Data_size_is_not_a_multple_of_block_size
lea ecx, [ebp - 0xd8]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xd8]
push eax
call fcn.0047fdba
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xe4]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xe4]
push eax
call fcn.0047fdba
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Decrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xf0]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xf0]
push eax
call fcn.0047fdba
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004e8660
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004e4b70
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Decrypt_1_:_CryptDecrypt_failed__
push eax
call fcn.004e4590
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004e6de0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004e4590
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004e4590
add esp, 8
mov ecx, eax
push 0x4e9110
call fcn.004e5b60
mov edi, eax
call esi
push eax
mov ecx, edi
call fcn.004e58a0
push 0x538590
push eax
call fcn.004e4590
add esp, 8
mov dword [ebx], 0
lea eax, [ebp - 0x114]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004e9890
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0044a06e
push eax
lea ecx, [ebp - 0xfc]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xfc]
push eax
call fcn.0047fdba
push 0
push 0
call fcn.0047fdba
int3
Function at 0x4e67f0
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516c96
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x55b1c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edx, dword [ecx + 8]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0xb4], ecx
mov dword [ebp - 4], 0
test edx, edx
je 0x4e68d9
test esi, esi
je 0x4e6905
mov ebx, dword [ebp + 0x10]
mov eax, ebx
and eax, 0xfffffff0
add eax, 0x10
cmp dword [ebp + 0xc], eax
jb 0x4e6931
cmp byte [ecx + 0x10], 0
je 0x4e695d
push dword [ebp + 0xc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push esi
push 0
push 1
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov ecx, eax
test ecx, ecx
je 0x4e6989
jmp 0x4e68b1
mov eax, dword [ebp - 0x18]
mov dword [edi], eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455dea
mov esp, ebp
pop ebp
ret 0x10
push 0x80090003
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Key_is_not_valid
lea ecx, [ebp - 0xc0]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xc0]
push eax
call fcn.0047fdba
push 0x6f8
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_NULL
lea ecx, [ebp - 0xcc]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xcc]
push eax
call fcn.0047fdba
push 0x80090028
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_Buffer_is_too_small
lea ecx, [ebp - 0xd8]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xd8]
push eax
call fcn.0047fdba
push 0x80090027
call dword [sym.imp.KERNEL32.dll_SetLastError]
push str.Encrypt_1_:_IV_has_not_been_set
lea ecx, [ebp - 0xe4]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xe4]
push eax
call fcn.0047fdba
push 0x98
lea ecx, [ebp - 0xb0]
call fcn.004e8660
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.004e4b70
lea eax, [ebp - 0xb0]
mov byte [ebp - 4], 1
push str.Encrypt_1_:_CryptEncrypt_failed__
push eax
call fcn.004e4590
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 8
call esi
push eax
call fcn.004e6de0
push eax
lea eax, [ebp - 0xb0]
push eax
call fcn.004e4590
add esp, 0xc
lea eax, [ebp - 0xb0]
push str.__0x
push eax
call fcn.004e4590
add esp, 8
mov ecx, eax
push 0x4e9110
call fcn.004e5b60
mov ebx, eax
call esi
push eax
mov ecx, ebx
call fcn.004e58a0
push 0x538590
push eax
call fcn.004e4590
add esp, 8
mov dword [edi], 0
lea eax, [ebp - 0x108]
lea ecx, [ebp - 0xb0]
push eax
call fcn.004e9890
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0044a06e
push eax
lea ecx, [ebp - 0xf0]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xf0]
push eax
call fcn.0047fdba
push 0
push 0
call fcn.0047fdba
int3
Function at 0x4e71f0
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516d38
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x55b1c4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov eax, dword [edi + 8]
lea ebx, [edi + 8]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x18], ecx
test eax, eax
je 0x4e724a
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x18]
mov dword [ebx], 0
mov byte [edi + 0x10], 0
cmp dword [edi + 4], 0
mov dword [ebp - 4], 0
je 0x4e7379
test ecx, ecx
je 0x4e7394
mov esi, dword [ebp + 0xc]
cmp esi, 0x10
je 0x4e7279
cmp esi, 0x18
je 0x4e7279
cmp esi, 0x20
jne 0x4e73af
push 0x2c
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.004803b0
add esp, 0xc
mov dword [ebp - 0x44], 0x208
mov byte [ebp - 4], 1
cmp esi, 0x10
je 0x4e72c0
cmp esi, 0x18
je 0x4e72b2
cmp esi, 0x20
jne 0x4e73ca
mov dword [ebp - 0x40], 0x6610
mov eax, esi
jmp 0x4e72cc
mov dword [ebp - 0x40], 0x660f
mov eax, 0x18
jmp 0x4e72cc
mov dword [ebp - 0x40], 0x660e
mov eax, 0x10
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004e9b90
add esp, 0x10
test eax, eax
jne 0x4e73e5
push ebx
push 0
push 0
lea eax, [esi + 0xc]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x4e7406
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
push 4
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x4e7427
jmp 0x4e7343
mov al, 1
lea ecx, [ebp - 0x44]
mov edx, 4
nop dword [eax]
mov byte [ecx], 0
lea ecx, [ecx + 1]
sub edx, 1
jne 0x4e7350
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00455dea
mov esp, ebp
pop ebp
ret 8
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x58]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0x58]
push eax
call fcn.0047fdba
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x64]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0x64]
push eax
call fcn.0047fdba
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x70]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0x70]
push eax
call fcn.0047fdba
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x7c]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0x7c]
push eax
call fcn.0047fdba
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x88]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0x88]
push eax
call fcn.0047fdba
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x94]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0x94]
push eax
call fcn.0047fdba
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa0]
call fcn.004e4ed0
push 0x5543c0
lea eax, [ebp - 0xa0]
push eax
call fcn.0047fdba
push 0
push 0
call fcn.0047fdba
int3
Function at 0x4e9140
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516f08
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x55b1c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00421780
mov edi, eax
add esp, 4
test edi, edi
je 0x4e91e4
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004ee8b5
add esp, 4
mov dword [edi + 4], eax
jmp 0x4e91e6
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 2
push eax
call fcn.004e4840
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 3
test ecx, ecx
je 0x4e9247
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x4e9247
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
cmp dword [esi + 0x38], 0
mov dword [ebp - 4], 0xffffffff
mov byte [esi + 0x40], bl
jne 0x4e926a
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x10]
and eax, 0x13
or eax, 4
mov dword [esi + 0xc], eax
and ecx, eax
jne 0x4e928d
cmp byte [ebp + 0xc], 0
je 0x4e9279
push esi
call fcn.004eeb6d
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
test cl, 4
je 0x4e9299
mov esi, str.ios_base::badbit_set
jmp 0x4e92a9
test cl, 2
mov esi, str.ios_base::failbit_set
mov eax, str.ios_base::eofbit_set
cmove esi, eax
lea eax, [ebp - 0x1c]
push 1
push eax
call fcn.004e92d0
add esp, 8
lea ecx, [ebp - 0x30]
push eax
push esi
call fcn.004e5040
push 0x55437c
lea eax, [ebp - 0x30]
push eax
call fcn.0047fdba
int3
Function at 0x3f962ac2
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0x120c
ret

Function at 0x3f963b8b
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x3fadeb72
call fcn.3f9ec288
push ecx
push ebx
push esi
push edi
mov edx, ecx
mov dword [ebp - 0x10], edx
fldz
xor eax, eax
mov dword [edx], eax
mov dword [edx + 4], eax
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov esi, 0x3fae9140
mov dword [edx + 0x10], esi
fstp qword [edx + 0x18]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], eax
mov dword [edx + 0x2c], eax
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], esi
mov dword [edx + 0x38], esi
mov ecx, 0x3fae9164
mov dword [edx + 0x3c], ecx
mov dword [edx + 0x40], ecx
mov dword [edx + 0x44], ecx
mov edi, 0x3fae9184
mov dword [edx + 0x48], edi
mov dword [edx + 0x4c], 0x3faecc80
mov dword [edx + 0x50], 0x3fae947c
mov ebx, 0x3fae9444
mov dword [edx + 0x54], ebx
mov dword [edx + 0x58], ebx
mov dword [edx + 0x5c], eax
mov dword [edx + 0x60], 0x3faecf58
mov dword [edx + 0x64], esi
mov dword [edx + 0x68], ecx
mov dword [edx + 0x6c], edi
mov dword [edx + 0x70], edi
mov dword [edx + 0x74], eax
mov dword [ebp - 4], eax
mov dword [edx + 0x78], eax
mov byte [ebp - 4], 1
mov dword [edx + 0x7c], eax
mov byte [ebp - 4], 2
mov dword [edx + 0x80], eax
mov byte [ebp - 4], 3
mov dword [edx + 0x84], eax
mov byte [ebp - 4], 4
mov dword [edx + 0x88], eax
mov byte [ebp - 4], 5
mov dword [edx + 0x8c], eax
mov byte [ebp - 4], 6
push 0x12
pop ecx
lea edi, [edx + 0x94]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, edx
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x3f964312
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x3fade6d6
call fcn.3f9ec288
push ecx
push esi
push edi
mov edx, ecx
mov dword [ebp - 0x10], edx
fldz
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov eax, 0x3fae91a4
mov edi, 0x3fae9164
mov dword [edx + 0x10], edi
mov dword [edx + 0x14], eax
mov dword [edx + 0x18], eax
mov esi, 0x3faece70
mov dword [edx + 0x1c], esi
mov dword [edx + 0x20], eax
fst qword [edx + 0x28]
fst qword [edx + 0x30]
mov dword [edx + 0x24], ecx
fstp qword [edx + 0x38]
mov dword [edx + 0x40], eax
mov dword [edx + 0x44], eax
mov dword [edx + 0x48], esi
mov dword [edx + 0x4c], eax
mov dword [edx + 0x50], 0x3faecdd8
mov dword [edx + 0x54], esi
mov dword [edx + 0x58], eax
mov dword [edx + 0x5c], ecx
mov dword [edx + 0x60], 0x3fae9254
mov dword [edx + 0x64], edi
mov dword [edx + 0x68], ecx
mov dword [edx + 0x6c], ecx
mov dword [edx + 0x70], ecx
mov dword [edx + 0x74], 0x3fae9184
mov dword [edx + 0x78], ecx
mov dword [ebp - 4], ecx
mov dword [edx + 0x7c], ecx
mov byte [ebp - 4], 1
mov dword [edx + 0x80], ecx
mov byte [ebp - 4], 2
mov dword [edx + 0x84], ecx
mov byte [ebp - 4], 3
mov dword [edx + 0x88], ecx
mov byte [ebp - 4], 4
mov dword [edx + 0xc0], 0x3faeccf8
mov byte [edx + 0xc4], cl
mov dword [edx + 0xc8], ecx
mov dword [edx + 0xcc], ecx
mov dword [edx + 0xd0], ecx
push 0xc
xor eax, eax
pop ecx
lea edi, [edx + 0x8c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, edx
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x3f964d20
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0x96c
ret

Function at 0x3f964d32
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0xa24
ret

Function at 0x3f964d44
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0xadc
ret

Function at 0x3f964d56
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0xb94
ret

Function at 0x3f964d68
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0xc4c
ret

Function at 0x3f964d7a
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0xdbc
ret

Function at 0x3f964d8c
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0xe74
ret

Function at 0x3f964d9e
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x3fae90dc]
call dword [sym.imp.kernel32.dll_TlsGetValue]
add eax, 0xf2c
ret
Function at 0x3f965150
Capabilities:
Get system information on windows

Disassembly:
mov eax, 0x3fae05e5
call fcn.3f9ec288
sub esp, 0x2c
push ebx
push esi
push edi
push 0x14
mov dword [ebp - 0x10], ecx
call fcn.3f9f5d74
pop ecx
mov dword [ebp - 0x14], eax
xor esi, esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x3f965189
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov ebx, eax
jmp 0x3f96518b
xor ebx, ebx
or dword [ebp - 4], 0xffffffff
cmp ebx, esi
je 0x3f9651d5
mov eax, dword [0x3faecf6c]
cmp eax, esi
jne 0x3f9651ae
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x1c]
mov dword [0x3faecf6c], eax
mov ecx, 0x10000
cmp eax, ecx
jb 0x3f9651f0
push 4
push 0x1000
push ecx
push esi
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x3f965241
push 1
mov ecx, ebx
call fcn.3f9f5d74
push 0x8007000e
lea ecx, [ebp - 0x2c]
call fcn.3f9e89a7
push 0x3fae26fc
lea eax, [ebp - 0x2c]
push eax
call fcn.3f9f5d74
mov esi, dword [sym.imp.kernel32.dll_VirtualAlloc]
add eax, 0x10000
mov dword [ebp - 0x14], eax
push 4
push 0x2000
push dword [ebp - 0x14]
push 0
call esi
mov edi, eax
test edi, edi
je 0x3f9651cc
push 0x8000
push 0
push edi
call dword [sym.imp.kernel32.dll_VirtualFree]
push 4
push 0x3000
add edi, 0x10000
push 0x10000
and edi, 0xfffeffff
push edi
call esi
mov edi, eax
test edi, edi
je 0x3f9651fe
mov ecx, dword [ebp - 0x10]
mov esi, edi
mov dword [ebx], edi
sub esi, dword [ecx]
add esi, 0x10000
cmp esi, edi
jb 0x3f965267
push esi
mov ecx, ebx
call fcn.3f9f5d74
mov eax, dword [ebp - 0x10]
sub esi, dword [eax]
cmp esi, edi
jae 0x3f965254
mov ecx, eax
push 0x49
xor edx, edx
pop esi
mov eax, edi
div esi
imul eax, eax, 0x49
sub edi, eax
lea eax, [ecx + edi*4 + 4]
mov edx, dword [eax]
mov dword [ebx + 0xc], edx
mov dword [eax], ebx
lea eax, [ecx + 0x128]
mov edx, dword [eax]
mov dword [ebx + 0x10], edx
mov dword [eax], ebx
inc dword [ecx + 0x12c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret