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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x48
movaps xmm0, xmmword [0x100aec90]
xor edx, edx
push esi
push edi
mov edi, ecx
mov byte [esp + 0x2c], 0
mov dword [esp + 0x18], edi
movups xmmword [esp + 0x1c], xmm0
mov al, byte [esp + 0x1c]
xor byte [esp + edx + 0x1d], al
inc edx
cmp edx, 0xf
jb 0x1003eb84
xorps xmm0, xmm0
mov byte [esp + 0x2c], 0
lea ecx, [esp + 0x1d]
movaps xmmword [esp + 0x30], xmm0
mov dword [esp + 0x40], 0
lea edx, [ecx + 1]
mov dword [esp + 0x44], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1003ebb6
sub ecx, edx
lea eax, [esp + 0x1d]
push ecx
push eax
lea ecx, [esp + 0x38]
call fcn.10002540
cmp dword [esp + 0x40], 0
mov edi, dword [edi + 4]
mov dword [esp + 0x10], edi
je 0x1003ec52
test edi, edi
je 0x1003ec52
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1003ec52
mov eax, dword [edi + 0xc4]
mov dword [esp + 0x14], eax
mov esi, dword [eax]
cmp esi, eax
je 0x1003ec52
nop dword [eax]
cmp esi, dword [edi + 0xc4]
jne 0x1003ec0d
call fcn.10084bcf
mov edi, dword [esi + 8]
test edi, edi
je 0x1003ec39
cmp dword [edi + 0x78], 0x10
lea ecx, [edi + 0x64]
jb 0x1003ec1f
mov ecx, dword [ecx]
cmp dword [esp + 0x44], 0xf
lea eax, [esp + 0x30]
cmova eax, dword [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1003ec54
mov edi, dword [esp + 0x10]
cmp esi, dword [edi + 0xc4]
jne 0x1003ec4a
call fcn.10084bcf
mov esi, dword [esi]
cmp esi, dword [esp + 0x14]
jne 0x1003ec00
xor edi, edi
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x44]
mov dword [eax], edi
cmp ecx, 0xf
jbe 0x1003ec8c
mov edx, dword [esp + 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1003ec82
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003ec92
push ecx
push edx
call fcn.1007fa46
add esp, 8
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call fcn.10084bdf
int3
Function at 0x1007b960
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a077d
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x100b7040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 0xf
lea ecx, [ebp - 0x84]
push dword [ebp + 0x18]
cmova eax, dword [ebp + 8]
push eax
mov byte [ebp - 0x84], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0x67452301
mov dword [ebp - 0x34], 0xefcdab89
mov dword [ebp - 0x30], 0x98badcfe
mov dword [ebp - 0x2c], 0x10325476
call fcn.1007b7f0
cmp byte [ebp - 0x84], 0
jne 0x1007bab1
xor ecx, ecx
lea edx, [ebp - 0x3f]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x18], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x17], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x16], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x15], al
add ecx, 4
cmp ecx, 8
jb 0x1007b9f5
mov edx, dword [ebp - 0x40]
mov ecx, 0x78
shr edx, 3
mov eax, 0x38
and edx, 0x3f
sub ecx, edx
sub eax, edx
cmp edx, 0x38
cmovae eax, ecx
lea ecx, [ebp - 0x84]
push eax
push 0x100b90e0
call fcn.1007b7f0
push 8
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x84]
call fcn.1007b7f0
xor ecx, ecx
lea edx, [ebp - 0x37]
movzx eax, byte [edx - 1]
lea edx, [edx + 4]
mov byte [ebp + ecx - 0x28], al
movzx eax, byte [edx - 4]
mov byte [ebp + ecx - 0x27], al
movzx eax, byte [edx - 3]
mov byte [ebp + ecx - 0x26], al
movzx eax, byte [edx - 2]
mov byte [ebp + ecx - 0x25], al
add ecx, 4
cmp ecx, 0x10
jb 0x1007ba64
push 0x40
lea eax, [ebp - 0x83]
push 0
push eax
call fcn.10081b50
xorps xmm0, xmm0
mov byte [ebp - 0x84], 1
add esp, 0xc
movq qword [ebp - 0x40], xmm0
push esi
lea ecx, [ebp - 0x84]
call fcn.1007b8a0
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0xf
jbe 0x1007baed
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1007bae3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1007bb09
push ecx
push edx
call fcn.1007fa46
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007f9e5
mov esp, ebp
pop ebp
ret
call fcn.10084bdf
int3
Function at 0x1007bb10
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x100b7040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edx
mov eax, 5
mov dword [ebp - 0xc], edi
add eax, eax
mov ecx, 0xffffffff
cmovo eax, ecx
push eax
call fcn.10087c92
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
mov ebx, esi
push eax
push 0x40
push 5
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx]
mov dword [esi], eax
mov al, byte [ecx + 4]
mov byte [esi + 4], al
add esi, 5
mov eax, ecx
sub eax, esi
mov dword [esi + 1], eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
mov byte [esi], 0xe9
sub eax, 5
mov byte [ecx], 0xe9
mov dword [ecx + 1], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 5
push ecx
call edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1007f9e5
mov esp, ebp
pop ebp
ret

Function at 0x1007cd10
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.1007cee0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1007cded
mov edx, dword [ebp - 4]
cmp edx, dword [0x100b7014]
jb 0x1007cd5a
mov eax, dword [ebp - 4]
cmp eax, dword [0x100b7018]
ja 0x1007cd5a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1007cd2a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10081b50
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 0x1007cd7f
jmp 0x1007cded
cmp dword [ebp - 0x14], 0x10000
jne 0x1007cdd3
cmp dword [ebp - 0x18], 0x10000
jb 0x1007cdd3
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 0x1007cdb6
mov eax, dword [ebp - 8]
jmp 0x1007cdef
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1007cdc6
xor eax, eax
jmp 0x1007cdef
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1007cde8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1007cee0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1007cd2a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1007ce00
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1007cf10
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1007ced5
mov edx, dword [ebp - 4]
cmp edx, dword [0x100b7014]
jb 0x1007ce45
mov eax, dword [ebp - 4]
cmp eax, dword [0x100b7018]
ja 0x1007ce45
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1007ce15
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10081b50
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 0x1007ce6a
jmp 0x1007ced5
cmp dword [ebp - 0x14], 0x10000
jne 0x1007cebe
cmp dword [ebp - 0x18], 0x10000
jb 0x1007cebe
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 0x1007cea1
mov eax, dword [ebp - 8]
jmp 0x1007ced7
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1007ceb1
xor eax, eax
jmp 0x1007ced7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1007ced0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1007cf10
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1007ce15
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1007cf40
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.1007d330
add esp, 0xc
mov dword [ebp - 4], 0
cmp dword [0x100b9aa4], 0
jne 0x1007cf7d
cmp dword [0x100b9aa0], 0
je 0x1007cf7d
mov eax, dword [0x100b9aa0]
mov dword [0x100b9aa4], eax
cmp dword [0x100b9aa4], 0
je 0x1007cffa
mov ecx, dword [0x100b9aa4]
cmp dword [ecx + 8], 0
je 0x1007cffa
mov edx, dword [0x100b9aa4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x10]
jb 0x1007cffa
mov ecx, dword [0x100b9aa4]
mov edx, dword [ecx + 8]
cmp edx, dword [ebp - 0xc]
ja 0x1007cffa
mov eax, dword [0x100b9aa4]
mov ecx, dword [eax + 8]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jb 0x1007cfc9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x1007cfd0
xor eax, eax
jmp 0x1007d119
mov ecx, dword [0x100b9aa4]
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 fcn.10081b50
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x1007d119
mov edx, dword [0x100b9aa0]
mov dword [0x100b9aa4], edx
jmp 0x1007d016
mov eax, dword [0x100b9aa4]
mov ecx, dword [eax + 4]
mov dword [0x100b9aa4], ecx
cmp dword [0x100b9aa4], 0
je 0x1007d056
cmp dword [0x100b9aa4], 0
je 0x1007d054
mov edx, dword [0x100b9aa4]
cmp dword [edx + 8], 0
je 0x1007d054
mov eax, dword [0x100b9aa4]
mov ecx, dword [eax + 8]
cmp ecx, dword [ebp - 0x10]
jb 0x1007d054
mov edx, dword [0x100b9aa4]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0xc]
ja 0x1007d054
jmp 0x1007cfae
jmp 0x1007d008
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.1007d120
add esp, 0xc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x1007d117
mov eax, dword [ebp - 0x18]
mov dword [0x100b9aa4], eax
mov ecx, dword [0x100b9aa4]
mov dword [ecx], 0x52727464
mov edx, dword [0x100b9aa4]
mov dword [edx + 8], 0
mov eax, dword [0x100b9aa4]
mov ecx, dword [0x100b9aa0]
mov dword [eax + 4], ecx
mov edx, dword [0x100b9aa4]
mov dword [0x100b9aa0], edx
mov dword [ebp - 0x14], 0
mov eax, dword [0x100b9aa4]
add eax, 0x48
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0x38c
jmp 0x1007d0e7
mov ecx, dword [ebp - 8]
sub ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 1
jle 0x1007d107
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 0x1007d0de
mov eax, dword [0x100b9aa4]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 8], ecx
jmp 0x1007cfae
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1007de60
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x100b9aa0]
mov dword [ebp - 4], eax
jmp 0x1007de79
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x1007dea0
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 0x1007de9e
call sub.KERNEL32.dll_GetLastError
jmp 0x1007dea2
jmp 0x1007de70
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1007e340
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 [0x100b9ab0], eax
je 0x1007e364
mov eax, 0x10dd
jmp 0x1007e50c
cmp dword [0x100b9ab4], 0
je 0x1007e377
mov eax, dword [0x100b9ab4]
jmp 0x1007e50c
cmp dword [ebp + 0xc], 0
jne 0x1007e387
mov eax, 0x57
jmp 0x1007e50c
cmp dword [ebp + 8], 0
jne 0x1007e397
mov eax, 6
jmp 0x1007e50c
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x1007e3c0
mov dword [ebp - 8], 6
mov ecx, dword [ebp - 8]
mov dword [0x100b9ab4], ecx
mov edx, dword [ebp + 8]
mov dword [0x100b9ab8], edx
mov eax, dword [ebp - 8]
jmp 0x1007e50c
push 0x18
call fcn.1007f9f3
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1007e41b
mov dword [ebp - 8], 8
mov ecx, dword [ebp - 8]
mov dword [0x100b9ab4], ecx
cmp dword [ebp - 4], 0
je 0x1007e40a
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
push 0x18
mov eax, dword [ebp - 0x20]
push eax
call fcn.1007fa46
add esp, 8
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov dword [0x100b9ab8], ecx
mov eax, dword [ebp - 8]
jmp 0x1007e50c
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.1007e320
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.1007e320
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 0x1007e45b
cmp dword [ebp - 0xc], 0x1e
jbe 0x1007e477
mov dword [ebp - 8], 9
cmp dword [0x100b9aa8], 0
je 0x1007e472
jmp 0x1007e3e9
jmp 0x1007e3e0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x1007e49e
mov dword [ebp - 8], 9
cmp dword [0x100b9aa8], 0
je 0x1007e499
jmp 0x1007e3e9
jmp 0x1007e3e0
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 0x1007e4c9
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1007e3e0
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 [0x100b9ac0]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x100b9ac0], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x1007e520
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x100b9ab0], eax
je 0x1007e53d
mov eax, 0x10dd
jmp 0x1007e620
mov eax, dword [0x100b9ac0]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1007e5bc
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 0x1007e598
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
je 0x1007e598
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
push eax
call fcn.1007d3c0
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.1007fa46
add esp, 8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x1007e545
mov dword [0x100b9ac0], 0
call fcn.1007dca0
mov ecx, dword [0x100b9abc]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x1007e60a
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.1007fa46
add esp, 8
mov edx, dword [ebp - 0x18]
mov dword [ebp - 8], edx
jmp 0x1007e5d4
mov dword [0x100b9abc], 0
mov dword [0x100b9ab0], 0
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1007eb00
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x100b9ab4], 0
je 0x1007eb19
mov eax, dword [0x100b9ab4]
jmp 0x1007ebb8
call sub.KERNEL32.dll_GetCurrentThread
cmp dword [ebp + 8], eax
jne 0x1007eb2a
xor eax, eax
jmp 0x1007ebb8
push 8
call fcn.1007f9f3
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x1007eb82
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x1007eb6b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
push 8
mov edx, dword [ebp - 0x10]
push edx
call fcn.1007fa46
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x100b9ab4], eax
mov dword [0x100b9ab8], 0
mov eax, dword [ebp - 8]
jmp 0x1007ebb8
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1007eb9a
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 8], eax
jmp 0x1007eb4a
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x100b9abc]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x100b9abc], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10084e48
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10084e87
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10084e87
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10084e87
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10084e87
cmp dword [ecx + 0x74], 0xe
jbe 0x10084e87
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1008d181
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x100ba280]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1008d1c1
cmp byte [ebx], 0xa
jne 0x1008d1c1
or byte [edi + eax + 0x28], 4
jmp 0x1008d1c6
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1008d2c5
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1008d2a8
inc eax
cmp dl, 0xd
je 0x1008d1f2
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1008d218
cmp eax, ecx
jae 0x1008d226
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1008d1da
jmp 0x1008d2c5
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008d2a3
cmp dword [ebp - 0x10], 0
je 0x1008d2a3
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x100ba280]
test byte [eax + edi + 0x28], 0x48
je 0x1008d27d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1008d268
mov byte [esi], dl
jmp 0x1008d279
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x100ba280]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1008d2c5
cmp byte [ebp - 1], 0xa
jne 0x1008d28c
cmp esi, ebx
jne 0x1008d28c
mov byte [esi], 0xa
jmp 0x1008d2c4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1009616d
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1008d2c5
mov byte [esi], 0xd
jmp 0x1008d2c4
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x100ba280]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1008d2c2
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1008d2c5
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1008d2ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x100ba280]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1008d314
cmp word [ebx], dx
jne 0x1008d314
or byte [eax + edi + 0x28], 4
jmp 0x1008d319
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1008d47c
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1008d45c
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1008d35a
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1008d390
cmp eax, edx
jae 0x1008d39e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1008d335
jmp 0x1008d47c
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008d457
cmp dword [ebp - 0x18], 0
je 0x1008d457
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x100ba280]
test byte [eax + edi + 0x28], 0x48
je 0x1008d42d
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1008d3f1
mov word [esi], cx
jmp 0x1008d428
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x100ba280]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x100ba280]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x100ba280]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1008d47c
pop eax
cmp word [ebp - 4], ax
jne 0x1008d43d
cmp esi, ebx
jne 0x1008d43d
mov word [esi], ax
jmp 0x1008d479
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1009616d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1008d47c
push 0xd
pop eax
jmp 0x1008d438
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x100ba280]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1008d476
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1008d47c
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1008e603
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a5270
push 0x100a5268
push str.FlsAlloc
push 0x1f
call fcn.1008e4cb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008e637
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a12a4]
call esi
jmp 0x1008e63d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1008e681
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a5280
push 0x100a5278
push str.FlsGetValue
push 0x21
call fcn.1008e4cb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008e6b8
push dword [ebp + 8]
mov ecx, esi
call dword [0x100a12a4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1008e6c0
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100a5288
push 0x100a5280
push str.FlsSetValue
push 0x22
call fcn.1008e4cb
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008e6fa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100a12a4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]