joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10027337
Capabilities:
Encode data using xor

Disassembly:
push 0x7c
mov eax, 0x10032519
call fcn.1002fbe3
mov esi, ecx
call fcn.10026ec9
xor ebx, ebx
cmp al, 6
jne 0x100273e7
movaps xmm0, xmmword [0x10037d40]
mov ecx, ebx
movups xmmword [ebp - 0x24], xmm0
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xe
jb 0x10027361
lea eax, [ebp - 0x23]
mov byte [ebp - 0x15], bl
push eax
lea ecx, [ebp - 0x58]
call fcn.10003ec3
mov dword [ebp - 4], ebx
mov ecx, ebx
movaps xmm0, xmmword [0x100386f0]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x24737e7a
mov word [ebp - 0x14], 0x2b
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x1002739a
lea eax, [ebp - 0x27]
mov byte [ebp - 0x13], bl
push eax
lea ecx, [ebp - 0x40]
call fcn.10003ec3
push ebx
push ecx
mov byte [ebp - 4], 1
lea eax, [ebp - 0x58]
and dword [esp], 0
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x40]
push eax
push eax
call dword [0x10037b90]
lea ecx, [ebp - 0x40]
call fcn.100026bd
lea ecx, [ebp - 0x58]
call fcn.100026bd
jmp 0x100274ae
push 6
mov edi, ebx
lea eax, [esi + 0x110]
pop ecx
cmp dword [eax - 4], ebx
jbe 0x100273fe
cmp dword [eax], ebx
jbe 0x100273fe
add edi, dword [eax + 4]
add eax, 0x14
sub ecx, 1
jne 0x100273f2
mov ecx, dword [esi + 0x34]
call fcn.100086fd
test al, al
je 0x1002741c
mov ecx, dword [esi + 0x34]
xor dl, dl
call fcn.100085ba
push ecx
mov edx, edi
lea ecx, [ebp - 0x88]
call fcn.10006a64
pop ecx
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x1002743a
mov eax, dword [eax]
movaps xmm0, xmmword [0x10037ef0]
mov ecx, ebx
push eax
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x431510
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x12
jb 0x1002744f
sub esp, 0x18
mov byte [ebp - 0x15], bl
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10003ec3
lea eax, [ebp - 0x70]
push eax
call fcn.10003d99
add esp, 0x20
mov byte [ebp - 4], 3
mov edx, eax
mov ecx, dword [esi + 0x100]
call fcn.10008e24
lea ecx, [ebp - 0x70]
call fcn.100026bd
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x88]
call fcn.100026bd
mov ecx, dword [esi + 0xfc]
mov dl, 1
call fcn.100085ba
call fcn.1002fbc0
ret
Function at 0x10029baa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x14], 0x52485e3c
sub esp, 0x18
mov dword [ebp - 0x10], 0x53505f63
lea ecx, [ebp - 0x14]
mov word [ebp - 0xc], 0x594f
mov byte [ebp - 0xa], 0
mov esi, esp
mov edi, dword [ebx]
call fcn.10001401
push eax
mov ecx, esi
call fcn.10003ec3
mov ecx, edi
call fcn.1000838f
mov esi, dword [ebx]
add esp, 0x18
mov dword [ebx + 4], eax
mov cl, 0x16
mov dword [ebp - 0x14], 0x7f727316
xor eax, eax
mov dword [ebp - 0x10], 0x77624962
mov word [ebp - 0xc], 0x71
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 8
jae 0x10029c1a
mov cl, byte [ebp - 0x14]
jmp 0x10029c0b
sub esp, 0x18
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10003ec3
mov ecx, esi
call fcn.1000838f
mov esi, dword [ebx]
add esp, 0x18
mov dword [ebx + 8], eax
mov cl, 0x11
mov dword [ebp - 0x14], 0x7f657311
xor eax, eax
mov dword [ebp - 0x10], 0x7f7e724e
mov dword [ebp - 0xc], 0x7c637877
mov byte [ebp - 8], 0
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xb
jae 0x10029c67
mov cl, byte [ebp - 0x14]
jmp 0x10029c58
sub esp, 0x18
mov byte [ebp - 8], 0
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10003ec3
mov ecx, esi
call fcn.1000838f
mov edi, dword [ebx]
lea ecx, [ebp - 0x14]
mov dword [ebx + 0xc], eax
mov esi, esp
mov dword [ebp - 0x14], 0x4a504624
mov dword [ebp - 0x10], 0x4841407b
mov dword [ebp - 0xc], 0x415041
call fcn.10007fe3
push eax
mov ecx, esi
call fcn.10003ec3
mov ecx, edi
call fcn.1000838f
mov esi, dword [ebx]
add esp, 0x18
mov dword [ebx + 0x10], eax
mov cl, 0xe
mov dword [ebp - 0x14], 0x6963670e
xor eax, eax
mov dword [ebp - 0x10], 0x626f7e51
mov dword [ebp - 0xc], 0x6b7a7a6b
mov byte [ebp - 8], 0
xor byte [ebp + eax - 0x13], cl
inc eax
cmp eax, 0xb
jae 0x10029ce7
mov cl, byte [ebp - 0x14]
jmp 0x10029cd8
sub esp, 0x18
mov byte [ebp - 8], 0
lea eax, [ebp - 0x13]
mov ecx, esp
push eax
call fcn.10003ec3
mov ecx, esi
call fcn.1000838f
add esp, 0x18
mov dword [ebx + 0x14], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002a868
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x18], 0x52485e3c
xor ebx, ebx
mov dword [ebp - 0x14], 0x534e5863
push edi
mov cl, 0x3c
mov word [ebp - 0x10], 0x4c
mov edi, dword [esi]
mov eax, ebx
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 8
jae 0x1002a89e
mov cl, byte [ebp - 0x18]
jmp 0x1002a88f
sub esp, 0x18
mov byte [ebp - 0xf], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.10003ec3
mov ecx, edi
call fcn.1000838f
movaps xmm0, xmmword [0x10038650]
add esp, 0x18
mov edi, dword [esi]
mov ecx, ebx
mov dword [esi + 0x10], eax
movups xmmword [ebp - 0x1c], xmm0
mov byte [ebp - 0xc], bl
mov al, byte [ebp - 0x1c]
xor byte [ebp + ecx - 0x1b], al
inc ecx
cmp ecx, 0xf
jb 0x1002a8ce
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10003ec3
mov ecx, edi
call fcn.1000838f
movaps xmm0, xmmword [0x100384c0]
add esp, 0x18
mov edi, dword [esi]
mov ecx, ebx
mov dword [esi + 0x14], eax
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 0x10], 0x74727063
mov byte [ebp - 0xc], bl
mov al, byte [ebp - 0x20]
xor byte [ebp + ecx - 0x1f], al
inc ecx
cmp ecx, 0x13
jb 0x1002a912
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x1f]
mov ecx, esp
push eax
call fcn.10003ec3
mov ecx, edi
call fcn.1000838f
mov edi, dword [esi]
add esp, 0x18
mov dword [esi + 4], eax
mov cl, 0x24
mov dword [ebp - 0x1c], 0x4a504624
mov eax, ebx
mov dword [ebp - 0x18], 0x4a51427b
mov dword [ebp - 0x14], 0x57454847
mov word [ebp - 0x10], 0x57
xor byte [ebp + eax - 0x1b], cl
inc eax
cmp eax, 0xc
jae 0x1002a96d
mov cl, byte [ebp - 0x1c]
jmp 0x1002a95e
sub esp, 0x18
mov byte [ebp - 0xf], bl
lea eax, [ebp - 0x1b]
mov ecx, esp
push eax
call fcn.10003ec3
mov ecx, edi
call fcn.1000838f
mov edi, dword [esi]
add esp, 0x18
mov dword [esi + 8], eax
mov cl, 0xe
mov dword [ebp - 0x18], 0x607a6c0e
mov eax, ebx
mov dword [ebp - 0x14], 0x7a616251
mov dword [ebp - 0x10], 0x777c6b7a
mov byte [ebp - 0xc], bl
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 0xb
jae 0x1002a9b8
mov cl, byte [ebp - 0x18]
jmp 0x1002a9a9
sub esp, 0x18
mov byte [ebp - 0xc], bl
lea eax, [ebp - 0x17]
mov ecx, esp
push eax
call fcn.10003ec3
mov ecx, edi
call fcn.1000838f
mov ecx, dword [0x1003fc20]
add esp, 0x18
mov dword [esi + 0xc], eax
test ecx, ecx
je 0x1002a9fe
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x1002a9fe
mov ecx, dword [ecx]
call fcn.100084d8
mov ecx, dword [esi]
add edx, 0xf5
push 5
call fcn.10008571
pop ecx
mov ecx, dword [esi]
push 0x14
pop edx
call fcn.100086da
mov ecx, dword [esi]
mov dl, 1
call fcn.100085ba
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1002aa1f
xor dl, dl
call fcn.100085ba
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002aa2d
xor dl, dl
call fcn.100085ba
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1002aa3b
xor dl, dl
call fcn.100085ba
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1002bed0
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.1002c0a0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1002bfad
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1002bf1a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003e004]
ja 0x1002bf1a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002beea
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 0x1002bf3f
jmp 0x1002bfad
cmp dword [ebp - 0x14], 0x10000
jne 0x1002bf93
cmp dword [ebp - 0x18], 0x10000
jb 0x1002bf93
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 0x1002bf76
mov eax, dword [ebp - 8]
jmp 0x1002bfaf
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1002bf86
xor eax, eax
jmp 0x1002bfaf
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002bfa8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1002c0a0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002beea
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1002bfc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1002c0d0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1002c095
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1002c005
mov eax, dword [ebp - 4]
cmp eax, dword [0x1003e004]
ja 0x1002c005
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1002bfd5
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 0x1002c02a
jmp 0x1002c095
cmp dword [ebp - 0x14], 0x10000
jne 0x1002c07e
cmp dword [ebp - 0x18], 0x10000
jb 0x1002c07e
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 0x1002c061
mov eax, dword [ebp - 8]
jmp 0x1002c097
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1002c071
xor eax, eax
jmp 0x1002c097
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1002c090
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1002c0d0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1002bfd5
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002c100
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.1002c4f0
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x1003f888], 0
jne 0x1002c13d
cmp dword [0x1003f884], 0
je 0x1002c13d
mov eax, dword [0x1003f884]
mov dword [0x1003f888], eax
cmp dword [0x1003f888], 0
je 0x1002c1ba
mov ecx, dword [0x1003f888]
cmp dword [ecx + 8], 0
je 0x1002c1ba
mov edx, dword [0x1003f888]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1002c1ba
mov ecx, dword [0x1003f888]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1002c1ba
mov eax, dword [0x1003f888]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1002c189
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1002c190
xor eax, eax
jmp 0x1002c2d9
mov ecx, dword [0x1003f888]
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 0x1002c2d9
mov edx, dword [0x1003f884]
mov dword [0x1003f888], edx
jmp 0x1002c1d6
mov eax, dword [0x1003f888]
mov ecx, dword [eax + 4]
mov dword [0x1003f888], ecx
cmp dword [0x1003f888], 0
je 0x1002c216
cmp dword [0x1003f888], 0
je 0x1002c214
mov edx, dword [0x1003f888]
cmp dword [edx + 8], 0
je 0x1002c214
mov eax, dword [0x1003f888]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1002c214
mov edx, dword [0x1003f888]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1002c214
jmp 0x1002c16e
jmp 0x1002c1c8
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.1002c2e0
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1002c2d7
mov eax, dword [ebp - 0x18]
mov dword [0x1003f888], eax
mov ecx, dword [0x1003f888]
mov dword [ecx], 0x52727464
mov edx, dword [0x1003f888]
mov dword [edx + 8], 0
mov eax, dword [0x1003f888]
mov ecx, dword [0x1003f884]
mov dword [eax + 4], ecx
mov edx, dword [0x1003f888]
mov dword [0x1003f884], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x1003f888]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1002c2a7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1002c2c7
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 0x1002c29e
mov eax, dword [0x1003f888]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1002c16e
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002d020
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1003f884]
mov dword [ebp - 4], eax
jmp 0x1002d039
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1002d060
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 0x1002d05e
call sub.KERNEL32.dll_GetLastError
jmp 0x1002d062
jmp 0x1002d030
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1002d500
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 [0x1003f894], eax
je 0x1002d524
mov eax, 0x10dd
jmp 0x1002d6cc
cmp dword [0x1003f898], 0
je 0x1002d537
mov eax, dword [0x1003f898]
jmp 0x1002d6cc
cmp dword [ebp + 0xc], 0
jne 0x1002d547
mov eax, 0x57
jmp 0x1002d6cc
cmp dword [ebp + 8], 0
jne 0x1002d557
mov eax, 6
jmp 0x1002d6cc
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1002d580
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x1003f898], ecx
mov edx, dword [ebp + 8]
mov dword [0x1003f89c], edx
mov eax, dword [ebp - 8]
jmp 0x1002d6cc
push 0x18
call fcn.1002ebf0
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002d5db
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x1003f898], ecx
cmp dword [ebp - 4], 0
je 0x1002d5ca
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1002ebe2
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x1003f89c], ecx
mov eax, dword [ebp - 8]
jmp 0x1002d6cc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1002d4e0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1002d4e0
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 0x1002d61b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1002d637
mov dword [ebp - 8], 9
cmp dword [0x1003f88c], 0
je 0x1002d632
jmp 0x1002d5a9
jmp 0x1002d5a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1002d65e
mov dword [ebp - 8], 9
cmp dword [0x1003f88c], 0
je 0x1002d659
jmp 0x1002d5a9
jmp 0x1002d5a0
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 0x1002d689
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1002d5a0
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 [0x1003f8a4]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x1003f8a4], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1002d6e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x1003f894], eax
je 0x1002d6fd
mov eax, 0x10dd
jmp 0x1002d7e0
mov eax, dword [0x1003f8a4]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1002d77c
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 0x1002d758
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1002d758
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1002c580
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.1002ebe2
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1002d705
mov dword [0x1003f8a4], 0
call fcn.1002ce60
mov ecx, dword [0x1003f8a0]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1002d7ca
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.1002ebe2
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1002d794
mov dword [0x1003f8a0], 0
mov dword [0x1003f894], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1002dcc0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1003f898], 0
je 0x1002dcd9
mov eax, dword [0x1003f898]
jmp 0x1002dd78
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1002dcea
xor eax, eax
jmp 0x1002dd78
push 8
call fcn.1002ebf0
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1002dd42
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1002dd2b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1002ebe2
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1003f898], eax
mov dword [0x1003f89c], 0
mov eax, dword [ebp - 8]
jmp 0x1002dd78
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1002dd5a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1002dd0a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1003f8a0]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1003f8a0], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x402550
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.004133d0
add esp, 0xc
mov esi, eax
mov dword [eax], 0
lea edi, [eax + 4]
mov dword [eax + 4], ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
mov dword [esi + 0x1028], ebx
mov byte [esi + 0x16], 0
mov word [esi + 0x14], 0
mov eax, dword [esp + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
cmp dword [0x4bf004], 0xffffffff
jne 0x402603
mov dword [0x4bfc30], 0x4bfc30
mov dword [0x4bfc34], 0x4bfc30
push 0x4bfc38
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4bf004], eax
push 0
push 0x402dc0
push eax
call fcn.00414c80
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x402640
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x402623
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x17], 1
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046c040
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x402830
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov eax, dword [0x4bf018]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.004133d0
add esp, 0xc
mov esi, eax
mov dword [eax], 1
lea edi, [eax + 4]
mov dword [eax + 4], ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], ebx
lea eax, [esi + 0x30]
push eax
call fcn.00414f20
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], esi
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
cmp dword [0x4bf004], 0xffffffff
jne 0x4028f3
mov dword [0x4bfc30], 0x4bfc30
mov dword [0x4bfc34], 0x4bfc30
push 0x4bfc38
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4bf004], eax
push 0
push 0x402dc0
push eax
call fcn.00414c80
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x402930
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x402913
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0046c040
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret