joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429ce0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov eax, dword [esi]
cmp eax, 0x270
jne 0x429d3d
lea edx, [esi + 8]
mov edi, eax
nop dword [eax]
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x429d00
mov eax, dword [esi]
jmp 0x429e1b
cmp eax, 0x4e0
jb 0x429e1b
lea edi, [esi + 0x9c4]
mov esi, 0xe3
push ebx
mov ebx, dword [edi]
lea edx, [edi]
mov eax, ebx
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, ebx
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x429d56
mov edi, dword [ebp - 4]
mov esi, 0x18c
add edi, 0xd50
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ebx, dword [edx + 4]
lea edi, [edx + 4]
mov ecx, eax
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub esi, 1
jne 0x429da1
mov esi, dword [ebp - 4]
pop ebx
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
xor eax, eax
mov dword [esi], 0
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x42a9a1
nop dword [eax]
movzx eax, byte [edi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x42a990
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x42e960
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444013
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x450040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x68], eax
mov dword [edi + 0x58], ecx
mov dword [edi + 0x60], 0
mov byte [edi + 0x64], 0
mov eax, dword [ecx + 8]
shr eax, 3
and al, 1
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
mov esi, dword [ecx + 0x18]
mov ecx, dword [edi + 0x44]
mov edx, ecx
sar edx, 3
mov dword [ebp + 0x14], ecx
cmp esi, edx
jae 0x42ea79
lea eax, [esi*8]
mov dword [edi + 0x44], eax
jmp 0x42eaac
jbe 0x42eaac
mov eax, dword [edi + 0x48]
sar eax, 3
cmp esi, eax
jbe 0x42ea91
push ecx
push esi
lea ecx, [edi + 0x40]
call fcn.00439520
jmp 0x42eaac
sub esi, edx
je 0x42eaa9
shl esi, 3
push esi
push 0
push ecx
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp + 0x14]
add esp, 0xc
add ecx, esi
mov dword [edi + 0x44], ecx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x436bc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add ecx, 4
pop ebp
jmp fcn.004277d0
Function at 0x438890
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444943
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x450040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov ebx, dword [eax]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0
push 0x88
mov dword [ebp - 0x18], 0
call fcn.00440649
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 1
lea esi, [eax + 0x10]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 0x14], esi
call fcn.0040c9f0
lea edi, [esi + 0x18]
mov byte [ebp - 4], 2
mov esi, dword [ebp + 0x10]
mov ecx, edi
push esi
mov dword [ebp + 0xc], edi
call fcn.0040c9f0
lea eax, [esi + 0x18]
mov byte [ebp - 4], 3
push eax
lea ecx, [edi + 0x18]
call fcn.0040c9f0
lea eax, [esi + 0x30]
mov byte [ebp - 4], 4
push eax
lea ecx, [edi + 0x30]
call fcn.0040c9f0
lea eax, [esi + 0x48]
mov byte [ebp - 4], 5
push eax
lea ecx, [edi + 0x48]
call fcn.0040c9f0
mov edx, dword [ebp - 0x18]
mov dword [edx], ebx
mov dword [edx + 4], ebx
mov dword [edx + 8], ebx
mov word [edx + 0xc], 0
mov ecx, dword [ebp - 0x10]
lea edi, [edx + 0x10]
mov dword [ebp - 4], 6
mov eax, dword [ecx]
mov ebx, dword [eax + 4]
xor eax, eax
cmp byte [ebx + 0xd], al
jne 0x4389b1
mov esi, ebx
nop dword [eax + eax]
cmp dword [esi + 0x24], 0xf
lea edx, [esi + 0x10]
mov ebx, esi
jbe 0x43897e
mov edx, dword [esi + 0x10]
cmp dword [edi + 0x14], 0xf
mov ecx, edi
jbe 0x438988
mov ecx, dword [edi]
push dword [esi + 0x20]
push edx
mov edx, dword [edi + 0x10]
call fcn.0040d920
add esp, 8
test eax, eax
jns 0x43899f
mov esi, dword [esi]
jmp 0x4389a2
mov esi, dword [esi + 8]
shr eax, 0x1f
cmp byte [esi + 0xd], 0
je 0x438970
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
cmp dword [ecx + 4], 0x1e1e1e1
je 0x4389e1
push edx
push eax
push ebx
call fcn.00414be0
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
call fcn.00403440
int3
Function at 0x43e840
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x450040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov bl, 0x22
mov al, 0x5a
mov byte [ebp - 0x414], bl
mov cl, al
mov byte [ebp - 0x410], 0
mov dl, al
mov byte [ebp - 0x408], 0
xor al, bl
mov byte [ebp - 0x410], 0
mov byte [ebp - 0x413], al
xor cl, bl
xor dl, bl
mov byte [ebp - 0x412], cl
mov bl, 0x5c
mov byte [ebp - 0x411], dl
mov al, 0xd7
mov byte [ebp - 0x40c], bl
xor al, bl
mov byte [ebp - 0x408], 0
mov byte [ebp - 0x40b], al
mov cl, 0x60
lea eax, [ebp - 0x413]
mov dl, 0xd9
push eax
lea eax, [ebp - 0x40b]
xor cl, bl
push eax
push dword [0x4500d8]
xor dl, bl
mov byte [ebp - 0x40a], cl
push dword [0x4500d4]
mov byte [ebp - 0x409], dl
call fcn.00418a20
mov esi, dword [0x4500e0]
push str.NtReadVirtualMemory
push str.ntdll.dll
lea edi, [eax + 3]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0
push 4
lea ecx, [ebp - 0x40c]
push ecx
push edi
push esi
call eax
push 0
push 0
push 4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov eax, dword [ebp - 0x40c]
mov edi, dword [0x4500e0]
push str.NtReadVirtualMemory
push str.ntdll.dll
mov dword [ebp - 0x414], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call ebx
mov ebx, dword [ebp - 0x414]
mov esi, eax
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], 0
push eax
push 0x40
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push 0
push 0x400
lea eax, [ebp - 0x404]
push eax
push ebx
push edi
call esi
push 0
push dword [ebp - 0x418]
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov ebx, dword [ebp - 0x41c]
xor edi, edi
mov ecx, ebx
mov dword [ebp - 0x418], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x43e9b0
sub ecx, edx
je 0x43ea23
mov esi, 1
movsx eax, byte [ebx + esi - 1]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
add esp, 4
xor eax, dword [ebp - 0x418]
mov edi, dword [ebp + eax*4 - 0x404]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e9e1
sub eax, edx
cmp esi, eax
je 0x43ea23
movsx eax, byte [esi + ebx]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
xor eax, edi
mov edx, ebx
add esp, 4
add esi, 2
mov eax, dword [ebp + eax*4 - 0x404]
lea ecx, [edx + 1]
mov dword [ebp - 0x418], eax
mov al, byte [edx]
inc edx
test al, al
jne 0x43ea13
sub edx, ecx
lea ecx, [esi - 1]
cmp ecx, edx
jb 0x43e9c0
mov ecx, dword [ebp - 4]
shl edi, 8
xor ecx, ebp
or edi, dword [ebp - 0x418]
mov eax, edi
pop edi
pop esi
pop ebx
call fcn.004403ea
mov esp, ebp
pop ebp
ret 4
Function at 0x43ee90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0043ea50
mov ebx, dword [0x4500e0]
mov ecx, eax
xor ecx, dword [ebp + 0xc]
push str.NtWriteVirtualMemory
lea esi, [eax + 0x30]
mov dword [ebp - 4], ecx
push str.ntdll.dll
mov dword [ebp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov dword [ebp + 8], 0
lea eax, [ebp + 8]
push eax
push 0x40
push 4
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
push ebx
call esi
push 0
push 4
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
call edi
push 0
push dword [ebp + 8]
push 4
push dword [ebp + 0xc]
push ebx
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x440f1e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x440f5d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x440f5d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x440f5d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x440f5d
cmp dword [ecx + 0x74], 0xe
jbe 0x440f5d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x7eee49d4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.7eee3648
test esi, esi
jne 0x7eee4a07
mov edx, esp
mov ecx, 0x105
xor eax, eax
call fcn.7eee497c
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.7eee3738
jmp 0x7eee4a25
call sub.kernel32.dll_GetCommandLineA_1
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.7eee47fc
mov edi, eax
test esi, esi
je 0x7eee4a25
cmp dword [ebx], 0
je 0x7eee4a25
dec esi
jmp 0x7eee4a0e
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x7eee505c
Capabilities:
Get memory capacity

Disassembly:
push ebx
add esp, 0xffffffe0
push ebx
nop
pop ebx
push eax
nop
pop eax
mov dword [esp], 0x20
nop
push eax
nop
pop eax
push esp
call sub.kernel32.dll_GlobalMemoryStatus
call fcn.7eee4fe4
nop
push eax
nop
pop eax
call fcn.7eee4fe4
mov ebx, 3
call fcn.7eee4fe4
cmp dword [esp + 8], 0x11e1a300
jae 0x7eee509e
call fcn.7eee4b50
dec ebx
jne 0x7eee508a
add esp, 0x20
pop ebx
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret

Function at 0x4012af
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403d14], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403d10], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x4011a6
mov dword [ebp - 0x24], str.cognomen
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403d10]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.invocatory
push str.cognomen
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d18], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401379
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401360
mov eax, dword [0x403d14]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10

Function at 0x401499
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x10
mov edx, esi
mov eax, 4
mov esi, 0x401116
mov edi, 0x4035f5
dec ecx
call fcn.00401cc6
mov eax, ecx
push edi
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call fcn.004013a1
call fcn.00401c72
mov eax, 0x14
mov ecx, 0x78f
mov esi, 0x401192
mov edi, 0x4014e3
call fcn.00401cc6
xor eax, eax
xor eax, 0x17cf0b66
sub eax, 0x4a88926a
fisttp qword [edi - 0x2d]
sbb al, 0xa9
invalid
Function at 0x406e3b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4278a4], 0
jne 0x406e79
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406e4f
mov dword [ecx*4 + 0x4278a0], eax
inc ecx
cmp ecx, 0x100
jl 0x406e4a
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406ea6
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4278a0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406e87
not eax
pop ebp
ret 0xc

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1c340784
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x433060
nop
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x5e2b1cdb
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xfc37e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb9e000]
push edi
or ebp, 0xffffffff
jmp 0xfc3802
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xfc3809
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfc37f8
mov eax, 1
add ebx, ebx
jne 0xfc381b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xfc382c
jne 0xfc384b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfc384b
dec eax
add ebx, ebx
jne 0xfc3838
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xfc3810
add ebx, ebx
jne 0xfc3847
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xfc389d
xor ecx, ecx
sub eax, 3
jb 0xfc3863
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xfc38d2
sar eax, 1
mov ebp, eax
jmp 0xfc386e
add ebx, ebx
jne 0xfc386e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfc383c
inc ecx
add ebx, ebx
jne 0xfc387c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xfc383c
add ebx, ebx
jne 0xfc3889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xfc387e
jne 0xfc389a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xfc387e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xfc38bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xfc38ae
jmp 0xfc37fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xfc38bc
add edi, ecx
jmp 0xfc37fe
pop esi
mov edi, esi
mov ecx, 0xba9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xfc38da
cmp byte [edi], 9
jne 0xfc38da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0xfc38df
lea edi, [esi + 0xbc1000]
mov eax, dword [edi]
or eax, eax
je 0xfc3957
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbc4610]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbc46ec]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xfc390c
mov ecx, edi
jns 0xfc393b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbc46f0]
or eax, eax
je 0xfc3951
mov dword [ebx], eax
add ebx, 4
jmp 0xfc3929
call dword [esi + 0xbc46f8]
mov ebp, dword [esi + 0xbc46f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xfc398b
sub esp, 0xffffff80
jmp 0x42b6f3
Function at 0x401000
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
lea eax, [esp]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4010b5
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x800c
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4010b5
push 0
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4010b5
lea eax, [esp + 8]
push eax
push 0
push dword [esp + 0xc]
push 0x6610
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4010b5
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push 0
push 0
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x4010b5
push 0
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [esp + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
add esp, 0xc
ret
or eax, 0xffffffff
add esp, 0xc
ret
Function at 0x401850
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push esi
push edi
xor edi, edi
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40191d
lea eax, [esp + 8]
mov dword [esp + 8], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401916
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4018d5
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
nop dword [eax]
lea eax, [esp + 0x2c]
push eax
push str.VeraCrypt.exe
call edi
test eax, eax
je 0x4018d1
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4018a0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret
mov edi, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40191d
push edi
push str.VeraCrypt.exe_PID___d_n
call fcn.00401940
add esp, 8
push edi
push 0
push 0x43a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40191d
push dword [0x43d740]
push section..data
push esi
call fcn.00401260
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
add esp, 0x128
ret

Function at 0x408184
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416670
push 0x416668
push str.FlsAlloc
push 0x1e
call fcn.00408045
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4081b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x415174]
call esi
jmp 0x4081be
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408202
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416680
push 0x416678
push str.FlsGetValue
push 0x20
call fcn.00408045
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408239
push dword [ebp + 8]
mov ecx, esi
call dword [0x415174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x408aed
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040895e
Function at 0x40b8d7
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 0x40b974
push ebx
push esi
call fcn.0040b8a0
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.0040b7e9
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b921
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b973
push edi
push eax
call fcn.00408af8
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b941
call fcn.00407ed8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b972
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b7e9
add esp, 0x20
test eax, eax
jne 0x40b960
push edi
call fcn.00407ed8
jmp 0x40b968
push ebx
call fcn.00407ed8
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