joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408940
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x408985
cmp byte [esi + 1], 0
je 0x40898d
mov eax, dword [esi + 2]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x4089a2
cmp byte [esi + 1], 0
je 0x408994
mov edx, dword [esi + 2]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 7]
mov dword [esp + 4], ebp
jmp 0x4089ab
mov ecx, dword [esi + 0x10]
mov dword [esi + 0x14], ecx
jmp 0x40895e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x4089ab
mov eax, dword [esi + 0x14]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x4089bf
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00414b7a
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4089dd
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x408af1
jmp 0x408a00
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x408a11
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x408a2a
mov ebp, 0x404
cmp byte [esi], 0
je 0x408a4f
cmp byte [esi + 1], 0
je 0x408af1
mov ecx, dword [esi + 7]
mov edx, dword [esi + 2]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x408a52
mov dword [esi + 0x14], eax
cmp byte [esi], 0
mov edi, ebp
je 0x408a7a
mov ecx, dword [esi + 2]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x408a74
mov byte [esi + 6], 1
mov eax, dword [esp + 0x1c]
jmp 0x408aa0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x408a8b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0xc]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0041d310
add esp, 0xc
add dword [esi + 0x14], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x408af1
lea eax, [ebp - 3]
test eax, eax
jl 0x408adc
dec eax
cmp byte [eax + ebx], 0x50
jne 0x408acc
cmp byte [eax + ebx + 1], 0x4b
jne 0x408acc
cmp byte [eax + ebx + 2], 5
jne 0x408acc
cmp byte [eax + ebx + 3], 6
je 0x408ad2
test eax, eax
jge 0x408ab0
jmp 0x408adc
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x408af1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4089f4
push ebx
call fcn.00414a9d
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret
Function at 0x4094c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x4094de
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x4094d2
cmp dword [edi + 0x7c], ebx
je 0x4094ed
call fcn.004098a0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00409230
add esp, 0xc
test eax, eax
je 0x409514
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.00414b7a
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x409552
push 0x4000
call fcn.00414b7a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x40955f
push esi
call fcn.00414a9d
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x4095a7
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00408380
test eax, eax
jne 0x4095a7
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x4095ce
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0x4095d4
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0x409611
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0x409611
call fcn.00408070
add ebp, 1
jne 0x409600
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x409a00
Capabilities:
Get common file path

Disassembly:
cmp dword [esi], 0
push edi
jne 0x409ab3
cmp dword [esi + 4], 0xffffffff
jne 0x409ab3
lea edi, [esi + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
jmp 0x409a30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409a30
sub eax, edx
sar eax, 1
movzx eax, word [esi + eax*2 + 0x242]
cmp ax, 0x5c
je 0x409a69
cmp ax, 0x2f
je 0x409a69
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x409a56
mov eax, dword [0x42e88c]
mov dword [edi], eax
push 0x18
call fcn.0040a364
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
add esp, 4
mov byte [eax], 0
mov byte [eax + 1], 1
mov byte [eax + 0xb], 0
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], 0
mov dword [eax + 7], 0
call fcn.00408b10
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
ret 8
mov eax, 0x1000000
pop edi
ret 8

Function at 0x4147ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x433c20]
jne 0x4147d8
repz ret
jmp fcn.0041923b

Function at 0x422f07
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00419510
and dword [ebp - 4], 0
cmp dword [0x437a9c], 0
mov ebx, eax
jne 0x422fb8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x423069
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x423069
push eax
call fcn.0041949e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x437a9c], eax
call esi
push eax
call fcn.0041949e
mov dword [esp], 0x42b6f4
push edi
mov dword [0x437aa0], eax
call esi
push eax
call fcn.0041949e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x437aa4], eax
call esi
push eax
call fcn.0041949e
pop ecx
mov dword [0x437aac], eax
test eax, eax
je 0x422fb8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041949e
pop ecx
mov dword [0x437aa8], eax
mov eax, dword [0x437aa8]
cmp eax, ebx
je 0x423010
cmp dword [0x437aac], ebx
je 0x423010
push eax
call fcn.00419519
push dword [0x437aac]
mov esi, eax
call fcn.00419519
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x423010
test edi, edi
je 0x423010
call esi
test eax, eax
je 0x423007
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x423007
test byte [ebp - 0xc], 1
jne 0x423010
or dword [ebp + 0x10], 0x200000
jmp 0x423049
mov eax, dword [0x437aa0]
cmp eax, ebx
je 0x423049
push eax
call fcn.00419519
pop ecx
test eax, eax
je 0x423049
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x423049
mov eax, dword [0x437aa4]
cmp eax, ebx
je 0x423049
push eax
call fcn.00419519
pop ecx
test eax, eax
je 0x423049
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x437a9c]
call fcn.00419519
pop ecx
test eax, eax
je 0x423069
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42306b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
mov dword [esi], 0
test edx, edx
jne 0x1000326f
xor al, al
mov byte [esi + 0xc], al
mov eax, esi
pop esi
pop ebp
ret 8
mov eax, dword [ebp + 8]
lea ecx, [esi + 8]
push ecx
push 0x40
push edx
push eax
mov dword [esi + 4], edx
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne al
mov byte [esi + 0xc], al
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x100032e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1003a040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub eax, 1
je 0x10003328
sub eax, 1
je 0x10003381
sub eax, 2
je 0x100033e1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d97d
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
mov eax, dword [ebp + 8]
sub bl, al
mov bh, byte [ebp + 0x14]
dec bl
mov dword [ebp - 0x1c], eax
movzx ecx, bh
mov dword [ebp - 0x18], 0
test bh, bh
jne 0x1000334d
mov byte [ebp - 0xc], bh
mov byte [eax], bl
jmp 0x10003384
lea edx, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push edx
push 0x40
push ecx
push eax
mov dword [ebp - 0x18], eax
call edi
mov ecx, dword [ebp - 0x1c]
test eax, eax
setne byte [ebp - 0xc]
mov byte [ecx], bl
test eax, eax
je 0x10003384
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
call edi
jmp 0x10003384
mov bh, byte [ebp + 0x14]
mov eax, dword [ebp - 8]
sub eax, esi
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
sub eax, esi
movzx eax, ax
mov dword [ebp - 8], eax
movzx ecx, ax
movzx eax, bh
add eax, eax
jne 0x100033ae
mov byte [ebp - 0xc], 0
mov word [esi], cx
jmp 0x100033e1
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
mov ecx, dword [ebp - 8]
test eax, eax
setne byte [ebp - 0xc]
mov word [esi], cx
test eax, eax
je 0x100033e1
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
add eax, esi
mov ebx, dword [ebp + 0xc]
sub ebx, eax
mov dword [ebp - 0x18], 0
movzx eax, byte [ebp + 0x14]
shl eax, 2
test eax, eax
jne 0x10003416
mov byte [ebp - 0xc], al
mov dword [esi], ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d97d
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x14], eax
push ecx
push 0x40
push eax
push esi
mov dword [ebp - 0x18], esi
call edi
test eax, eax
setne byte [ebp - 0xc]
mov dword [esi], ebx
test eax, eax
je 0x10003445
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebp - 0x18]
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d97d
mov esp, ebp
pop ebp
ret
Function at 0x10004550
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1003a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi]
call dword [eax + 4]
mov al, byte [ebp + 0x10]
lea ecx, [edi + 4]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], ecx
xor ecx, ecx
test al, al
mov byte [edi + 0x14], 1
mov dword [edi + 0xc], esi
cmovne ecx, edx
mov dword [edi + 0x10], edx
mov byte [edi + 0x15], al
xor edi, edi
mov dword [ebp - 0x18], edi
test ecx, ecx
jne 0x1000459a
xor bl, bl
jmp 0x100045b9
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], ecx
push eax
push 0x40
push ecx
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edi, dword [ebp - 0x18]
test eax, eax
mov edx, dword [ebp + 0xc]
setne bl
push edx
push esi
push dword [ebp - 8]
mov byte [ebp - 0xc], bl
call fcn.10011660
add esp, 0xc
test bl, bl
je 0x100045e2
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 8]
push ecx
push eax
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d97d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10005700
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
je 0x1000572f
mov byte [esi + 0x24], 0
mov edx, dword [esi + 0x1c]
call fcn.100061c0
mov eax, dword [esi + 0x1c]
mov ecx, esi
mov dword [eax], eax
mov eax, dword [esi + 0x1c]
mov dword [eax + 4], eax
mov dword [esi + 0x20], 0
pop esi
jmp fcn.10004600
pop esi
ret
Function at 0x100059b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002b43d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x1003a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
sub esp, 0x28
mov dword [ebp - 4], 0
mov esi, esp
mov dword [esi + 0x24], 0
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x10005a2d
lea eax, [ebp + 0x10]
cmp ecx, eax
jne 0x10005a23
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov dword [esi + 0x24], eax
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x10005a2d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
push eax
call edx
jmp 0x10005a26
mov dword [esi + 0x24], ecx
mov dword [ebp + 0x34], 0
push ebx
mov ecx, edi
call fcn.10005e10
cmp byte [edi + 0x24], 0
jne 0x10005b3f
push dword [ebx + 4]
mov esi, dword [ebp + 0xc]
call fcn.1000d8d0
mov ecx, dword fs:[0x2c]
add esp, 4
mov edx, dword [0x1003c6b0]
mov ebx, eax
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1003d14c]
cmp ecx, dword [edx + 4]
jle 0x10005ab8
push 0x1003d14c
call fcn.1000da07
add esp, 4
cmp dword [0x1003d14c], 0xffffffff
jne 0x10005ab8
mov ecx, 0x1003d140
mov dword [0x1003d140], 0x10034b48
mov dword [0x1003d148], 0
mov dword [0x1003d144], 0
call fcn.10003630
push 0x1003d14c
call fcn.1000d9b6
add esp, 4
mov eax, dword [edi]
push 1
push 5
push ecx
mov edx, dword [eax + 8]
mov ecx, edi
mov eax, esp
mov dword [eax], ebx
call edx
push 1
push ecx
mov eax, esp
mov dword [eax], ebx
lea eax, [ebp - 0x28]
push eax
call fcn.10003460
add esp, 0xc
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x24], ebx
push eax
push 0x40
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
setne byte [ebp - 0x18]
mov byte [ebx], 0xe8
cmp byte [ebp - 0x18], 0
je 0x10005b1c
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 1
push 4
push ecx
mov eax, esp
push ecx
mov ecx, esp
mov dword [eax], esi
lea eax, [ebx + 1]
mov dword [ecx], eax
call fcn.100032e0
mov eax, dword [ebp - 0x28]
add esp, 0x10
mov dword [edi + 0x18], eax
mov byte [edi + 0x24], 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x10005b57
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000d97d
mov esp, ebp
pop ebp
ret 0x30
Function at 0x10007270
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1003a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10007383
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x1000737c
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x1000733f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x1000733f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x1000733f
mov edx, dword [esi]
test edx, edx
jne 0x10007308
push 0x200
push edx
push dword [0x1003d154]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x10007364
lea edi, [esi + 8]
jmp 0x10007332
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10007332
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1003d154]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10007396
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x100072c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x1000737c
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x1000737c
push eax
push ebx
push dword [0x1003d154]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000d97d
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x10007364
Function at 0x100073a0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2e4
mov eax, dword [0x1003a040]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
mov dword [ebp - 0x2e4], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.10007270
test eax, eax
jne 0x100073ed
mov eax, 9
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d97d
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x1000759f
push ebx
xor ebx, ebx
mov dword [ebp - 0x2e0], ebx
cmp dword [edi + 8], ebx
jbe 0x1000758d
push esi
nop dword [eax]
mov eax, dword [edi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
mov dword [ebp - 0x2d4], esi
test esi, esi
je 0x1000757c
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x2d0], 0x10001
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x10007575
mov eax, dword [0x1003d2b8]
mov dword [ebp - 0x2dc], eax
test eax, eax
je 0x10007575
xor ecx, ecx
mov dword [ebp - 0x2d8], ecx
mov edx, dword [0x1003d2b0]
mov eax, dword [ebp + 8]
add edx, ecx
sub eax, 0
je 0x10007499
sub eax, 1
je 0x10007492
movzx ecx, byte [edx + 0x14]
shr ecx, 2
and ecx, 1
jmp 0x1000749b
mov ecx, 1
jmp 0x1000749b
xor ecx, ecx
mov bl, byte [edx + 0x14]
movzx eax, bl
shr eax, 1
and eax, 1
cmp eax, ecx
je 0x10007547
test ecx, ecx
je 0x100074ec
mov esi, dword [edx + 0x18]
xor ecx, ecx
and esi, 0xf
jbe 0x10007547
mov edi, dword [edx]
mov ebx, dword [ebp - 0x218]
nop dword [eax + eax]
movzx eax, byte [edx + ecx + 0x1c]
add eax, edi
cmp ebx, eax
je 0x100074e2
inc ecx
cmp ecx, esi
jb 0x100074d0
jmp 0x10007547
movzx ecx, byte [ecx + edx + 0x24]
add ecx, dword [edx + 8]
jmp 0x10007529
test bl, 1
mov ebx, dword [ebp - 0x218]
je 0x10007500
mov ecx, dword [edx]
lea eax, [ecx - 5]
cmp ebx, eax
je 0x1000752f
mov esi, dword [edx + 0x18]
xor eax, eax
and esi, 0xf
jbe 0x10007547
mov edi, dword [edx + 8]
nop dword [eax]
movzx ecx, byte [edx + eax + 0x24]
add ecx, edi
cmp ebx, ecx
je 0x10007522
inc eax
cmp eax, esi
jb 0x10007510
jmp 0x10007547
movzx ecx, byte [eax + edx + 0x1c]
add ecx, dword [edx]
mov esi, dword [ebp - 0x2d4]
test ecx, ecx
je 0x10007547
lea eax, [ebp - 0x2d0]
mov dword [ebp - 0x218], ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x2d8]
mov esi, dword [ebp - 0x2d4]
add ecx, 0x2c
sub dword [ebp - 0x2dc], 1
mov dword [ebp - 0x2d8], ecx
jne 0x10007471
mov ebx, dword [ebp - 0x2e0]
mov edi, dword [ebp - 0x2e4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
mov dword [ebp - 0x2e0], ebx
cmp ebx, dword [edi + 8]
jb 0x10007410
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d97d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop edi
call fcn.1000d97d
mov esp, ebp
pop ebp
ret
Function at 0x100075b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1003a040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1003d2b0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp - 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10007611
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d97d
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x10007632
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10007653
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10007653
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x1000764d
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10007653
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
xor eax, eax
add cl, cl
shl bl, 2
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi + 0x14], bl
xor ecx, ebp
pop esi
pop ebx
call fcn.1000d97d
mov esp, ebp
pop ebp
ret

Function at 0x100076b0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1003d2b8]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x100076dd
mov eax, dword [0x1003d2b0]
add eax, 0x14
nop dword [eax + eax]
test byte [eax], 2
jne 0x100076e4
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x100076d0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x100076dd
push ebx
push 0
lea ecx, [ebp - 0x10]
call fcn.100073a0
mov ebx, eax
mov dword [ebp - 4], eax
add esp, 4
test ebx, ebx
jne 0x1000778f
mov ecx, dword [0x1003d2b8]
push edi
cmp esi, ecx
jae 0x1000773e
imul edi, esi, 0x2c
mov eax, dword [0x1003d2b0]
test byte [edi + eax + 0x14], 2
je 0x10007733
xor edx, edx
mov ecx, esi
call fcn.100075b0
mov ebx, eax
test ebx, ebx
jne 0x1000773b
mov ecx, dword [0x1003d2b8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10007712
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000778c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1000777d
mov ebx, eax
nop
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10007771
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10007750
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1003d154]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret