joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406840
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x49477b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00455334
push 4
mov dword [esp + 0x20], 0
call fcn.0041d09e
mov edi, eax
add esp, 4
test edi, edi
je 0x4068c0
call fcn.00454e23
mov dword [edi], eax
call fcn.00454c57
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00455283
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4068b5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004552a4
jmp 0x4068c2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x40c340
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49572b
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x244], eax
push ebx
push esi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [esp + 0x50]
push ecx
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40c48f
lea eax, [esp + 0x4c]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], 0
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c3c0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x50]
push edx
lea esi, [esp + 0x38]
call fcn.00407a40
mov ebx, 8
mov eax, esi
mov dword [esp + 0x260], 0
call fcn.0040d430
cmp eax, 0xffffffff
je 0x40c47c
cmp dword [esp + 0x48], ebx
mov eax, dword [esp + 0x34]
jae 0x40c40c
lea eax, [esp + 0x34]
add eax, 0x10
call fcn.0040da90
mov ecx, dword [0xefc0bc]
mov esi, eax
mov eax, dword [0xefc0c0]
push 0
add esi, 0x3980000
push eax
mov edx, esi
push ecx
shr edx, 0x10
push edx
call fcn.004028c0
test eax, eax
je 0x40c442
push esi
call fcn.00402860
jmp 0x40c444
xor eax, eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, eax
call fcn.00402ca0
cmp dword [eax + 0x18], ebx
jb 0x40c45a
mov eax, dword [eax + 4]
jmp 0x40c45d
add eax, 4
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextW]
cmp dword [esp + 0x2c], ebx
jb 0x40c47c
mov eax, dword [esp + 0x18]
push eax
call fcn.0041d0c9
add esp, 4
cmp dword [esp + 0x48], ebx
jb 0x40c48f
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0041d0c9
add esp, 4
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.0043a54e
mov esp, ebp
pop ebp
ret
Function at 0x40f610
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494b88
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov esi, ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.00402780
lea ecx, [esp + 0x14]
push ecx
push ecx
push eax
lea edx, [ebp + 0x18]
push edx
lea eax, [ebp + 0xc]
push eax
lea edx, [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x94], 0
call fcn.004104c0
add esp, 0x10
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00455868
fstp qword [esp + 0x3c]
mov dword [esp + 0x90], 0xffffffff
mov edi, dword [esp + 0x34]
add esp, 0x10
test edi, edi
je 0x40f702
push 0
lea ecx, [esp + 0x2c]
call fcn.00455283
mov eax, dword [edi + 4]
test eax, eax
jbe 0x40f6e0
cmp eax, 0xffffffff
jae 0x40f6e0
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x28]
and esi, edi
call fcn.004552a4
test esi, esi
je 0x40f702
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
cmp byte [ebp + 0x14], 0
mov edi, dword [ebp + 0x10]
jne 0x40f747
test edi, edi
je 0x40f741
mov eax, dword [edi + 0x20]
cmp dword [eax], 0
je 0x40f726
mov ecx, dword [edi + 0x30]
cmp dword [ecx], 0
jle 0x40f726
mov edx, dword [eax]
movzx eax, word [edx]
jmp 0x40f732
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x40f741
mov word [ebp + 0x16], ax
jmp 0x40f743
xor edi, edi
mov byte [ebp + 0x14], 1
cmp byte [ebp + 0x20], 0
mov esi, dword [ebp + 0x1c]
jne 0x40f77f
test esi, esi
je 0x40f77d
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x40f76b
mov ecx, dword [esi + 0x30]
cmp dword [ecx], 0
jle 0x40f76b
mov edx, dword [eax]
movzx eax, word [edx]
jmp 0x40f777
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
movzx eax, ax
cmp ax, 0xffff
jne 0x40f77f
xor esi, esi
test edi, edi
jne 0x40f7a8
test esi, esi
je 0x40f7ac
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
cmp dword [esp + 0x18], ecx
je 0x40f7b5
cmp dword [esp + 0x14], 0
jne 0x40f7b5
fld qword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
fstp qword [edx]
jmp 0x40f7b8
test esi, esi
je 0x40f787
mov eax, dword [esp + 0x10]
or dword [eax], 1
jmp 0x40f78b
or dword [eax], 2
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043a54e
mov esp, ebp
pop ebp
ret 0x28
Function at 0x40f7f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494b88
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x64], eax
push esi
push edi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x2c]
mov esi, ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x24]
lea edi, [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], 0
call fcn.00402780
lea ecx, [esp + 0x14]
push ecx
push ecx
push eax
lea edx, [ebp + 0x18]
push edx
lea eax, [ebp + 0xc]
push eax
lea edx, [esp + 0x48]
mov ecx, esi
mov dword [esp + 0x94], 0
call fcn.004104c0
add esp, 0x10
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.00455378
fstp qword [esp + 0x3c]
mov dword [esp + 0x90], 0xffffffff
mov edi, dword [esp + 0x34]
add esp, 0x10
test edi, edi
je 0x40f8e2
push 0
lea ecx, [esp + 0x2c]
call fcn.00455283
mov eax, dword [edi + 4]
test eax, eax
jbe 0x40f8c0
cmp eax, 0xffffffff
jae 0x40f8c0
add eax, 0xffffffff
mov dword [edi + 4], eax
mov esi, dword [edi + 4]
neg esi
sbb esi, esi
not esi
lea ecx, [esp + 0x28]
and esi, edi
call fcn.004552a4
test esi, esi
je 0x40f8e2
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
cmp byte [ebp + 0x14], 0
mov edi, dword [ebp + 0x10]
jne 0x40f927
test edi, edi
je 0x40f921
mov eax, dword [edi + 0x20]
cmp dword [eax], 0
je 0x40f906
mov ecx, dword [edi + 0x30]
cmp dword [ecx], 0
jle 0x40f906
mov edx, dword [eax]
movzx eax, word [edx]
jmp 0x40f912
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
movzx eax, ax
movzx eax, ax
cmp ax, 0xffff
je 0x40f921
mov word [ebp + 0x16], ax
jmp 0x40f923
xor edi, edi
mov byte [ebp + 0x14], 1
cmp byte [ebp + 0x20], 0
mov esi, dword [ebp + 0x1c]
jne 0x40f95f
test esi, esi
je 0x40f95d
mov eax, dword [esi + 0x20]
cmp dword [eax], 0
je 0x40f94b
mov ecx, dword [esi + 0x30]
cmp dword [ecx], 0
jle 0x40f94b
mov edx, dword [eax]
movzx eax, word [edx]
jmp 0x40f957
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
movzx eax, ax
cmp ax, 0xffff
jne 0x40f95f
xor esi, esi
test edi, edi
jne 0x40f988
test esi, esi
je 0x40f98c
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x34]
cmp dword [esp + 0x18], ecx
je 0x40f995
cmp dword [esp + 0x14], 0
jne 0x40f995
fld qword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
fstp qword [edx]
jmp 0x40f998
test esi, esi
je 0x40f967
mov eax, dword [esp + 0x10]
or dword [eax], 1
jmp 0x40f96b
or dword [eax], 2
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [eax + 8], edx
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x64]
xor ecx, esp
call fcn.0043a54e
mov esp, ebp
pop ebp
ret 0x28
Function at 0x40fc40
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x49477b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b9668]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.00455334
push 4
mov dword [esp + 0x20], 0
call fcn.0041d09e
mov edi, eax
add esp, 4
test edi, edi
je 0x40fcc0
call fcn.00454e23
mov dword [edi], eax
call fcn.00454c57
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00455283
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40fcb5
add eax, 1
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004552a4
jmp 0x40fcc2
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x4131e0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 0x58
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x50], eax
cmp dword [0xefb78c], 0
push esi
je 0x41332e
push 0x19054
call fcn.0041d09e
add esp, 4
test eax, eax
je 0x413218
mov esi, eax
call fcn.00412e50
mov esi, eax
jmp 0x41321a
xor esi, esi
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov word [esp + 8], 0xfffe
mov ax, word [esi + 0x20]
mov word [esp + 0xa], ax
movzx eax, ax
shl eax, 4
cdq
and edx, 7
add eax, edx
sar eax, 3
movzx ecx, ax
mov word [esp + 0x14], ax
mov edx, dword [0x4abbd8]
mov eax, ecx
imul ecx, ecx, 0xc80
imul eax, eax, 0xbb80
mov dword [esp + 0x10], eax
mov eax, dword [0x4abbdc]
mov dword [esp + 0x24], eax
mov eax, dword [0x4abbe4]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x40], eax
lea ecx, [esp + 8]
mov dword [esp + 0x40], ecx
push 0
mov dword [esp + 0x24], edx
mov edx, dword [0x4abbe0]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
lea ecx, [esi + 0x10]
push ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [0xefb784]
mov dword [esp + 0x30], edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x14], 0xbb80
mov word [esp + 0x1e], 0x10
mov word [esp + 0x20], 0x16
mov word [esp + 0x22], 0x10
mov dword [esp + 0x24], 0x3f
mov dword [esp + 0x38], 0x24
mov dword [esp + 0x3c], 0x58020
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
push ecx
push eax
call edx
test eax, eax
jge 0x413340
mov eax, dword [esi]
mov edx, dword [eax]
mov ecx, esi
call edx
xor eax, eax
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0043a54e
add esp, 0x58
ret
lea eax, [esi + 0x19024]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
mov dword [esi + 0x1903c], 1
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [esi + 0x19040], eax
jne 0x413389
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
xor eax, eax
pop esi
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0043a54e
add esp, 0x58
ret
push 0x21
push 0
push eax
push 0
push 0x10
call dword [sym.imp.WINMM.dll_timeSetEvent]
lea ecx, [esi + 0x19048]
push ecx
push 4
push esi
push 0x413530
push 0
push 0
mov dword [esi + 0x1904c], eax
call fcn.0043b71a
add esp, 0x18
test eax, eax
mov dword [esi + 0x19044], eax
je 0x41336f
push 0xf
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0x19044]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x54]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0043a54e
add esp, 0x58
ret
Function at 0x413b50
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push edi
push 0x4abe98
push 0xd2
push 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push 0
mov dword [0x4d8060], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x14], eax
mov eax, dword [0x4d8060]
push eax
push 0
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_LockResource]
push eax
mov dword [0x4d8074], eax
call ebp
push 0x4abe98
push 0xd5
push 0
mov dword [0x4d807c], eax
call esi
push eax
xor esi, esi
push esi
mov dword [0x4d8070], eax
call edi
mov ecx, dword [0x4d8070]
push ecx
push esi
call ebx
push eax
mov dword [0xed8084], eax
call ebp
push 0x414090
mov dword [0xefb26c], eax
call fcn.00475bd0
add esp, 4
push esi
push 0x414110
call fcn.0047b730
push 0xa00000
push 0x4d8080
call fcn.00475900
push 0xefb79c
mov dword [0x4d8068], eax
call fcn.00471040
fld dword [0x4ac818]
mov eax, dword [0x4d8068]
fstp dword [esp + 0x2c]
add esp, 0x14
push 0xefb79c
lea edx, [esp + 0x1c]
push edx
push eax
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x30], 2
mov dword [esp + 0x2c], 6
call fcn.0045a910
add esp, 0xc
mov dword [0x4d8064], eax
call fcn.00412e10
test eax, eax
jne 0x413c6b
mov dword [0xefb7a8], 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [0xefb7a8], esi
call fcn.00412e30
cmp eax, esi
mov dword [0xefb7a4], eax
je 0x413c59
mov ecx, dword [0x4d8064]
mov edx, dword [eax]
mov edx, dword [edx + 4]
push ecx
push 0x4140b0
mov ecx, eax
mov dword [0xefb7a8], esi
call edx
mov ecx, dword [0xefb7a4]
mov eax, dword [ecx]
mov edx, dword [eax + 8]
call edx
mov eax, dword [0x4d8064]
mov ecx, dword [0x4d8068]
push 0xefb79c
push str.Tutorial
push eax
push ecx
call fcn.00456700
mov edx, dword [0x4d8068]
push 0xefb79c
push edx
mov dword [0x4d806c], eax
call fcn.0045ccc0
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax]
mov edx, dword [edx + 0x1c]
add esp, 0x18
push 0xefb79c
push ecx
mov ecx, dword [0x4d807c]
push ecx
mov ecx, eax
mov dword [0x4d8058], eax
call edx
mov ecx, dword [0x4d806c]
mov eax, dword [ecx]
mov edx, dword [0x4d8058]
mov eax, dword [eax + 4]
push 0xefb79c
push edx
call eax
mov ecx, dword [0x4d806c]
push 0xefb79c
push ecx
call fcn.004582a0
push 0xed8080
push esi
push esi
push 0x4140e0
push esi
push esi
mov dword [0x4d805c], eax
call fcn.0043b71a
mov dword [0x4d8078], eax
call fcn.0047bce0
push esi
push esi
call fcn.0047bc30
push 0x231e4
push 0xed8088
push 2
call fcn.0047ad50
add esp, 0x34
pop edi
mov dword [0x4d8054], eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4157c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push ebx
push edi
push 0
push 0
push 0
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
lea edi, [esi + 0x10]
push edi
mov dword [esi + 4], eax
mov eax, dword [ebx]
mov ecx, dword [eax]
push 0x49dbb8
push ebx
call ecx
test eax, eax
jne 0x415873
mov eax, dword [ebp + 8]
mov ecx, dword [esi + 4]
shr eax, 2
lea edx, [eax + eax]
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], edx
lea eax, [eax + eax*2]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
lea edx, [esp + 0x10]
push edx
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [eax]
push 4
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jne 0x415867
lea ecx, [esp + 0xc]
push ecx
push ebx
push esi
push 0x415760
push ebx
push ebx
mov dword [esp + 0x24], ebx
mov byte [esi + 0xc], bl
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 8], eax
je 0x415867
mov al, 1
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [edi]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi], ebx
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x416240
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
push ebx
mov ebx, ecx
cmp dword [ebx + 0xd4], 0
push esi
push edi
je 0x4163cc
mov esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov dword [esp + 0x74], 0x1f40
mov dword [esp + 0x78], 0x2b11
mov dword [esp + 0x7c], 0x5622
mov dword [esp + 0x80], 0xac44
mov dword [esp + 0x84], 0xbb80
mov dword [esp + 0x88], 0x17700
call fcn.00417090
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [esi + 8], 0
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
mov edi, dword [esp + eax*4 + 0x70]
cmp dword [ebx + 0x58], edi
ja 0x4163ad
cmp edi, dword [ebx + 0x5c]
ja 0x4163ad
mov eax, dword [ebx + 0x54]
test eax, 0x400
je 0x41630e
test eax, 0x100
je 0x41630e
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x44]
push eax
push esi
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], 8
mov dword [esp + 0x24], edi
call fcn.00416f40
mov eax, dword [ebx + 0x54]
test eax, 0x400
je 0x416343
test eax, 0x200
je 0x416343
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x50]
push edx
push esi
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 8
mov dword [esp + 0x30], edi
call fcn.00416f40
mov eax, dword [ebx + 0x54]
test eax, 0x800
je 0x416378
test eax, 0x100
je 0x416378
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x5c]
push ecx
push esi
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x3c], edi
call fcn.00416f40
mov eax, dword [ebx + 0x54]
test eax, 0x800
je 0x4163ad
test eax, 0x200
je 0x4163ad
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x68]
push eax
push esi
mov dword [esp + 0x40], 2
mov dword [esp + 0x44], 0x10
mov dword [esp + 0x48], edi
call fcn.00416f40
mov eax, dword [esp + 0xc]
add eax, 1
cmp eax, 6
mov dword [esp + 0xc], eax
jb 0x4162c3
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x41aa20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x204
mov eax, dword [0x4b9668]
xor eax, esp
mov dword [esp + 0x200], eax
push ebx
push ebp
mov ebp, dword [esp + 0x210]
push esi
push edi
xor ecx, ecx
lea edx, [esp + 0x10]
xor eax, eax
mov ah, cl
mov esi, 8
movzx eax, ax
test eax, 0x8000
je 0x41aa64
add eax, eax
xor eax, 0x1021
movzx eax, ax
jmp 0x41aa66
add eax, eax
sub esi, 1
jne 0x41aa51
mov word [edx], ax
add ecx, 1
add edx, 2
cmp cx, 0xff
jbe 0x41aa45
movzx edi, word [ebp + 0xc]
xor eax, eax
mov word [ebp + 0xc], ax
lea ecx, [ebp + 2]
mov esi, 0x8e
lea ecx, [ecx]
movzx ebx, byte [ecx - 2]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
add ecx, 6
xor bx, word [esp + edx*2 + 0x10]
movzx eax, bx
movzx ebx, byte [ecx - 7]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
xor bx, word [esp + edx*2 + 0x10]
movzx eax, bx
movzx ebx, byte [ecx - 6]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
xor bx, word [esp + edx*2 + 0x10]
movzx eax, bx
movzx ebx, byte [ecx - 5]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
xor bx, word [esp + edx*2 + 0x10]
movzx eax, bx
movzx ebx, byte [ecx - 4]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
xor bx, word [esp + edx*2 + 0x10]
movzx eax, bx
movzx ebx, byte [ecx - 3]
movzx edx, ah
xor edx, ebx
xor ebx, ebx
mov bh, al
xor bx, word [esp + edx*2 + 0x10]
sub esi, 1
movzx eax, bx
jne 0x41aa90
mov ecx, dword [esp + 0x210]
mov word [ebp + 0xc], di
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
not eax
call fcn.0043a54e
add esp, 0x204
ret 4