joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e640
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x40f300
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x40f310
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x40f30d
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret

Function at 0x40f8d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4183e4
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4183fc]
sub esp, 4
test ebx, ebx
je 0x40f925
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40f91e
test esi, esi
je 0x40f91e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40f900
mov dword [esp], 0x4183e4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4109a0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
jmp fcn.004103c0
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x58ff497d
nop
nop
nop
test eax, eax
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x47727f87
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219

Function at 0x40c100
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7000]
push edi
or ebp, 0xffffffff
jmp 0x40c122
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c129
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c118
mov eax, 1
add ebx, ebx
jne 0x40c13b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c130
jne 0x40c14c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c130
xor ecx, ecx
sub eax, 3
jb 0x40c160
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c1d2
mov ebp, eax
add ebx, ebx
jne 0x40c16b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c178
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c19c
inc ecx
add ebx, ebx
jne 0x40c188
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c17d
jne 0x40c199
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c17d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c1bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c1ad
jmp 0x40c11e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c1bc
add edi, ecx
jmp 0x40c11e
pop esi
mov edi, esi
mov ecx, 0xc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c1da
cmp byte [edi], 0
jne 0x40c1da
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40c1df
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c24e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc08c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c20c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc090]
or eax, eax
je 0x40c248
mov dword [ebx], eax
add ebx, 4
jmp 0x40c229
call dword [esi + 0xc0a0]
mov ebp, dword [esi + 0xc094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40c282
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x10006b90
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x10006bee
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x10006bd2
cmp edi, 2
jb 0x10006bd2
cmp byte [esi], cl
jne 0x10006bd2
cmp byte [esi + 1], cl
jne 0x10006bd2
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100e7460]
jmp 0x10006ba3
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100e7460]
test edi, edi
jne 0x10006ba3
pop edi
pop esi
not eax
pop ebx
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x10006c1d
cmp cl, 0x23
jne 0x10006c04
cmp byte [esi], cl
jne 0x10006c04
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x100e7460]
test cl, cl
jne 0x10006bf5
pop edi
pop esi
not eax
pop ebx
ret
Function at 0x10008f20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1c4], 0
jg 0x10008f44
push 0x4e9
push 0x100e4328
push str.Size___0
call fcn.100bb717
add esp, 0xc
mov ecx, dword [esi + 0x1c4]
mov edi, 4
mov eax, dword [esi + 0x1cc]
lea esi, [esp + 0xc]
mov eax, dword [eax + ecx*4 - 4]
not eax
nop
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x100e7460]
sub edi, 1
jne 0x10008f60
mov ecx, dword [0x1010e648]
not eax
pop edi
pop esi
cmp dword [ecx + 0x19e8], eax
jne 0x10008f92
mov dword [ecx + 0x19ec], eax
cmp dword [ecx + 0x1a14], eax
jne 0x10008fa1
mov byte [ecx + 0x1a18], 1
ret 4

Function at 0x10008fb0
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x14
mov eax, dword [0x10106040]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1c4], 0
jg 0x10008fe2
push 0x4e9
push 0x100e4328
push str.Size___0
call fcn.100bb717
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edi, 0x10
movss xmm0, dword [ecx]
subss xmm0, dword [esi + 0xc]
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [esp + 8], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [esp + 0xc], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0xc]
subss xmm0, dword [esi + 0x10]
mov ecx, dword [esi + 0x1c4]
mov dword [esp + 0x10], eax
cvttss2si eax, xmm0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1cc]
lea esi, [esp + 8]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100e7460]
sub edi, 1
jne 0x10009050
mov eax, dword [0x1010e648]
not edx
pop edi
pop esi
cmp dword [eax + 0x19e8], edx
jne 0x10009081
mov dword [eax + 0x19ec], edx
cmp dword [eax + 0x1a14], edx
jne 0x10009090
mov byte [eax + 0x1a18], 1
mov ecx, dword [esp + 0x10]
mov eax, edx
xor ecx, esp
call fcn.100a9d10
add esp, 0x14
ret 4
Function at 0x10008fbe
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 0x14
mov eax, dword [0x10106040]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x1c4], 0
jg 0x10008fe2
push 0x4e9
push 0x100e4328
push str.Size___0
call fcn.100bb717
add esp, 0xc
mov ecx, dword [esp + 0x20]
mov edi, 0x10
movss xmm0, dword [ecx]
subss xmm0, dword [esi + 0xc]
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 4]
subss xmm0, dword [esi + 0x10]
mov dword [esp + 8], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 8]
subss xmm0, dword [esi + 0xc]
mov dword [esp + 0xc], eax
cvttss2si eax, xmm0
movss xmm0, dword [ecx + 0xc]
subss xmm0, dword [esi + 0x10]
mov ecx, dword [esi + 0x1c4]
mov dword [esp + 0x10], eax
cvttss2si eax, xmm0
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x1cc]
lea esi, [esp + 8]
mov edx, dword [eax + ecx*4 - 4]
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100e7460]
sub edi, 1
jne 0x10009050
mov eax, dword [0x1010e648]
not edx
pop edi
pop esi
cmp dword [eax + 0x19e8], edx
jne 0x10009081
mov dword [eax + 0x19ec], edx
cmp dword [eax + 0x1a14], edx
jne 0x10009090
mov byte [eax + 0x1a18], 1
mov ecx, dword [esp + 0x10]
mov eax, edx
xor ecx, esp
call fcn.100a9d10
add esp, 0x14
ret 4
Function at 0x1000b4a0
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x18
push ebx
push esi
push edi
mov edi, ecx
cmp byte [edi], 0
jne 0x1000b4b6
cmp byte [edi + 0x2d0c], 0
je 0x1000b4cd
push 0xc6b
push str.C:UsersPCDesktopheadcoreHeadCoreincludesImGuiimgui.cpp
push str._g.Initialized___g.SettingsLoaded
call fcn.100bb717
add esp, 0xc
or edx, 0xffffffff
mov dword [esp + 0x20], 0
mov dword [esp + 0xc], str.Window
mov esi, 0x100e56d1
mov al, 0x57
or ebx, 0xffffffff
nop word [eax + eax]
cmp al, 0x23
jne 0x1000b4fe
cmp byte [esi], al
jne 0x1000b4fe
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x100e7460]
test al, al
jne 0x1000b4f0
mov esi, dword [edi + 0x2d20]
not edx
mov ecx, dword [edi + 0x2d24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], 0x100188e0
mov dword [esp + 0x18], 0x10018940
mov dword [esp + 0x1c], 0x10018a30
cmp esi, ecx
jne 0x1000b5d6
inc esi
test ecx, ecx
je 0x1000b559
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1000b55e
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x1000b5d6
mov eax, dword [0x1010e648]
test eax, eax
je 0x1000b576
inc dword [eax + 0x374]
lea eax, [esi + esi*2]
shl eax, 3
push eax
call fcn.100bb798
mov ebx, eax
add esp, 4
mov eax, dword [edi + 0x2d28]
test eax, eax
je 0x1000b5ca
mov ecx, dword [edi + 0x2d20]
lea ecx, [ecx + ecx*2]
shl ecx, 3
push ecx
push eax
push ebx
call fcn.100ab8d0
mov ecx, dword [edi + 0x2d28]
add esp, 0xc
test ecx, ecx
je 0x1000b5c1
mov eax, dword [0x1010e648]
test eax, eax
je 0x1000b5c1
dec dword [eax + 0x374]
push ecx
call fcn.100b61b5
add esp, 4
mov dword [edi + 0x2d28], ebx
mov dword [edi + 0x2d24], esi
mov eax, dword [edi + 0x2d20]
movups xmm0, xmmword [esp + 0xc]
lea ecx, [eax + eax*2]
mov eax, dword [edi + 0x2d28]
movups xmmword [eax + ecx*8], xmm0
movq xmm0, qword [esp + 0x1c]
movq qword [eax + ecx*8 + 0x10], xmm0
inc dword [edi + 0x2d20]
mov byte [edi], 1
pop edi
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x1000d4a0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov bl, byte [ecx]
or eax, 0xffffffff
push ebp
push esi
or ebp, 0xffffffff
lea esi, [ecx + 1]
push edi
test bl, bl
je 0x1000d4db
cmp bl, 0x23
jne 0x1000d4c2
cmp byte [esi], bl
jne 0x1000d4c2
cmp byte [esi + 1], bl
cmove eax, ebp
movzx edx, al
movzx ecx, bl
mov bl, byte [esi]
xor edx, ecx
shr eax, 8
inc esi
xor eax, dword [edx*4 + 0x100e7460]
test bl, bl
jne 0x1000d4b3
mov ecx, dword [0x1010e648]
not eax
mov esi, dword [ecx + 0x19a4]
mov edi, dword [ecx + 0x19ac]
lea ebx, [edi + esi*8]
test esi, esi
je 0x1000d513
mov edx, esi
shr edx, 1
cmp dword [edi + edx*8], eax
lea ecx, [edi + edx*8]
jae 0x1000d50d
lea edi, [ecx + 8]
mov ecx, ebp
sub ecx, edx
add esi, ecx
jmp 0x1000d50f
mov esi, edx
test esi, esi
jne 0x1000d4f6
cmp edi, ebx
je 0x1000d523
cmp dword [edi], eax
jne 0x1000d523
mov eax, dword [edi + 4]
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x10013060
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub esp, 8
mov eax, dword [0x10106040]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [0x1010e648]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0x19b4]
cmp dword [ebp + 0x1c4], 0
push edi
lea edi, [ebp + 0x1c4]
mov dword [esp + 0x10], ecx
jg 0x100130a7
push 0x4e9
push 0x100e4328
push str.Size___0
call fcn.100bb717
add esp, 0xc
mov eax, dword [edi]
lea edx, [esp + 0x10]
mov ebx, dword [edi + 8]
mov esi, 4
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x100e7460]
sub esi, 1
jne 0x100130c0
mov ecx, dword [ebp + 0x1c8]
not ebx
mov esi, dword [edi]
cmp esi, ecx
jne 0x1001310a
inc esi
test ecx, ecx
je 0x100130f8
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x100130fd
mov eax, 8
cmp eax, esi
mov ecx, edi
cmovg esi, eax
push esi
call fcn.10019520
mov ecx, dword [edi]
mov eax, dword [ebp + 0x1cc]
mov dword [eax + ecx*4], ebx
inc dword [edi]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100a9d10
add esp, 8
ret
Function at 0x100182a0
Capabilities:
Hash data with crc32

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, dword [0x1010e648]
mov ebx, ecx
push edi
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
mov edi, dword [esi + 0x2d2c]
mov ecx, dword [esi + 0x2d30]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x24], 0
cmp edi, ecx
jne 0x1001838d
inc edi
test ecx, ecx
je 0x10018307
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1001830c
mov eax, 8
cmp eax, edi
cmovg edi, eax
cmp edi, ecx
jle 0x1001838d
test esi, esi
je 0x1001831f
inc dword [esi + 0x374]
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push ebp
push eax
call fcn.100bb798
mov ebp, eax
add esp, 4
mov eax, dword [esi + 0x2d34]
test eax, eax
je 0x10018380
mov ecx, dword [esi + 0x2d2c]
lea edx, [ecx*8]
sub edx, ecx
shl edx, 2
push edx
push eax
push ebp
call fcn.100ab8d0
mov ecx, dword [esi + 0x2d34]
add esp, 0xc
test ecx, ecx
je 0x10018377
mov eax, dword [0x1010e648]
test eax, eax
je 0x10018377
dec dword [eax + 0x374]
push ecx
call fcn.100b61b5
add esp, 4
mov dword [esi + 0x2d34], ebp
mov dword [esi + 0x2d30], edi
pop ebp
mov eax, dword [esi + 0x2d2c]
mov ecx, dword [esi + 0x2d34]
movups xmm0, xmmword [esp + 0xc]
lea edx, [eax*8]
sub edx, eax
mov eax, dword [esp + 0x24]
movups xmmword [ecx + edx*4], xmm0
movq xmm0, qword [esp + 0x1c]
movq qword [ecx + edx*4 + 0x10], xmm0
mov dword [ecx + edx*4 + 0x18], eax
inc dword [esi + 0x2d2c]
cmp dword [esi + 0x2d2c], 0
jg 0x100183e5
push 0x4e9
push 0x100e4328
push str.Size___0
call fcn.100bb717
add esp, 0xc
mov eax, dword [esi + 0x2d2c]
push 0x100e71c4
push ebx
lea ecx, [eax*8]
sub ecx, eax
mov eax, dword [esi + 0x2d34]
lea edi, [eax + ecx*4]
call fcn.100ab550
add esp, 8
test eax, eax
cmovne ebx, eax
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10018415
mov eax, dword [0x1010e648]
sub esi, ecx
test eax, eax
je 0x1001842d
inc dword [eax + 0x374]
inc esi
push esi
call fcn.100bb798
push esi
push ebx
push eax
call fcn.100ab8d0
mov dword [edi - 0x1c], eax
lea esi, [ebx + 1]
mov al, byte [ebx]
add esp, 0x10
or edx, 0xffffffff
test al, al
je 0x10018478
or ebx, 0xffffffff
cmp al, 0x23
jne 0x1001845f
cmp byte [esi], al
jne 0x1001845f
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x100e7460]
test al, al
jne 0x10018451
not edx
lea eax, [edi - 0x1c]
mov dword [edi - 0x18], edx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x100497d0
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x20
mov eax, dword [0x10106040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100498e7
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x1c
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100498e0
mov ebx, 1
push edi
nop dword [eax + eax]
cmp dword [esp + 0x10], 0x10
jb 0x100498a0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x1c], eax
jne 0x100498a0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esp + 0x18], eax
je 0x100498a0
mov edx, dword [esi]
test edx, edx
jne 0x1004986b
push 0x200
push edx
push dword [0x1010e6c0]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100498c7
lea edi, [esi + 8]
jmp 0x10049895
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x10049895
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1010e6c0]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x100498c7
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [esp + 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x1c
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10049820
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100498df
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x100498df
push eax
push ebx
push dword [0x1010e6c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
pop edi
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x28]
mov eax, ebx
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100a9d10
add esp, 0x20
ret

Function at 0x10049900
Capabilities:
Suspend thread

Disassembly:
push ecx
push edi
mov edi, ecx
mov dword [esp + 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.100497d0
test eax, eax
jne 0x1004992d
mov eax, 9
pop edi
pop ecx
ret
cmp dword [edi], 0
je 0x10049980
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1004997a
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10049972
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov edx, dword [esp + 0x10]
mov ecx, ebx
push ebp
call fcn.10049660
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10049940
pop ebp
pop ebx
pop esi
xor eax, eax
pop edi
pop ecx
ret
xor eax, eax
pop edi
pop ecx
ret
Function at 0x10049990
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
je 0x100499e0
push esi
xor esi, esi
cmp dword [ebx + 8], esi
jbe 0x100499cf
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
mov eax, dword [ebx]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x100499c7
push edi
call ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebx + 8]
jb 0x100499a8
pop edi
pop ebp
push dword [ebx]
push 0
push dword [0x1010e6c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebx
ret

Function at 0x100499f0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 8
mov eax, dword [0x10106040]
xor eax, esp
mov dword [esp + 4], eax
push ebx
push ebp
push esi
imul esi, ecx, 0x2c
mov ebx, edx
push edi
add esi, dword [0x1011ab60]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebp, [eax*2 + 5]
lea eax, [esp + 0x10]
push eax
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10049a50
pop edi
pop esi
pop ebp
mov eax, 0xa
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.100a9d10
add esp, 8
ret
test ebx, ebx
je 0x10049a71
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 0x10049a92
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0x10049a92
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0x10049a8c
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0x10049a92
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebp
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 [esp + 0x14]
pop edi
mov byte [esi + 0x14], bl
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100a9d10
add esp, 8
ret
Function at 0x10049af0
Capabilities:
Resume thread

Disassembly:
mov edx, dword [0x1011ab68]
sub esp, 0xc
push ebx
push esi
xor esi, esi
mov ebx, ecx
test edx, edx
je 0x10049b24
mov eax, dword [0x1011ab60]
add eax, 0x14
nop dword [eax + eax]
movzx ecx, byte [eax]
shr ecx, 1
and ecx, 1
cmp ecx, ebx
jne 0x10049b2c
inc esi
add eax, 0x2c
cmp esi, edx
jb 0x10049b10
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret
xor eax, eax
cmp esi, 0xffffffff
je 0x10049beb
test ebx, ebx
lea ecx, [esp + 8]
push ebp
setne al
or edx, 0xffffffff
push eax
call fcn.10049900
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10049bea
mov ecx, dword [0x1011ab68]
push edi
cmp esi, ecx
jae 0x10049ba0
imul edi, esi, 0x2c
nop word [eax + eax]
mov eax, dword [0x1011ab60]
movzx eax, byte [edi + eax + 0x14]
shr eax, 1
and eax, 1
cmp eax, ebx
je 0x10049b98
mov edx, ebx
mov ecx, esi
call fcn.100499f0
mov ebp, eax
test ebp, ebp
jne 0x10049ba0
mov ecx, dword [0x1011ab68]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x10049b70
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x10049be7
xor esi, esi
cmp dword [esp + 0x18], esi
jbe 0x10049bd8
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10049bd1
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [esp + 0x18]
jb 0x10049bb0
push ebx
push 0
push dword [0x1010e6c0]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
add esp, 0xc
ret