joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1008ad50
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ff29
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esi + 0x54], 0xf
mov dword [esi + 0x50], 0
mov byte [esi + 0x40], 0
lea ebx, [esi + 0x58]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov dword [esi + 0x84], 0xf
mov dword [esi + 0x80], 0
mov byte [esi + 0x70], 0
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp byte [edx], 0
jne 0x1008ae27
xor ecx, ecx
jmp 0x1008ae3c
mov ecx, edx
lea ebx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008ae30
sub ecx, ebx
lea ebx, [esi + 0x58]
push ecx
push edx
lea ecx, [esi + 0x40]
call fcn.10008870
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0
jne 0x1008ae52
xor ecx, ecx
jmp 0x1008ae60
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008ae57
sub ecx, edi
push ecx
push edx
mov ecx, ebx
call fcn.10008870
mov edx, dword [ebp + 0x10]
cmp byte [edx], 0
jne 0x1008ae75
xor ecx, ecx
jmp 0x1008ae89
mov ecx, edx
lea edi, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1008ae80
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x70]
call fcn.10008870
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1008aeb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009ff29
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x40]
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
lea edi, [esi + 0x58]
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], 0
mov byte [edi], 0
lea ebx, [esi + 0x70]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 4], 3
cmp ecx, eax
je 0x1008af8a
push 0xffffffffffffffff
push 0
push eax
call fcn.10008ab0
mov eax, dword [ebp + 0xc]
cmp edi, eax
je 0x1008af9d
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.10008ab0
mov eax, dword [ebp + 0x10]
cmp ebx, eax
je 0x1008afb0
push 0xffffffffffffffff
push 0
push eax
mov ecx, ebx
call fcn.10008ab0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1008afd0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009fed9
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x100e6018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 5
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.TiXmlDeclaration.0
mov dword [esi + 0x54], 0xf
mov dword [esi + 0x50], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x6c], 0xf
mov dword [esi + 0x68], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x84], 0xf
mov dword [esi + 0x80], 0
mov byte [esi + 0x70], 0
mov ecx, dword [ebp + 8]
push esi
mov byte [ebp - 4], 3
call sym.iImportLib.dll_protected:_void___thiscall_TiXmlDeclaration::CopyTo_class_TiXmlDeclaration__const
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1008ee90
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x1008ee9b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.1008eeb0
Function at 0x1008fe70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x2c]
mov edi, edi
mov edx, dword [edi + 0x3c]
sub edx, dword [edi + 0x74]
mov eax, dword [edi + 0x2c]
sub edx, dword [edi + 0x6c]
add eax, 0xfffffefa
add eax, esi
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x1008fefc
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call sub.MSVCR110.dll_memcpy
mov edx, dword [edi + 0x4c]
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
add esp, 0xc
sub dword [edi + 0x5c], esi
lea ecx, [eax + edx*2]
mov edi, edi
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x1008fecf
sub eax, esi
jmp 0x1008fed1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x1008fec0
mov eax, dword [edi + 0x40]
mov edx, esi
lea ecx, [eax + esi*2]
nop
movzx eax, word [ecx - 2]
lea ecx, [ecx - 2]
cmp eax, esi
jb 0x1008feef
sub eax, esi
jmp 0x1008fef1
xor eax, eax
mov word [ecx], ax
dec edx
jne 0x1008fee0
mov edx, dword [ebp - 4]
add edx, esi
mov ebx, dword [edi]
cmp dword [ebx + 4], 0
je 0x10090030
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [ebx + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x1008ff29
xor eax, eax
jmp 0x1008ff7c
sub eax, ecx
mov dword [ebx + 4], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x1008ff46
mov edx, dword [ebx]
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.1008eb70
jmp 0x1008ff5e
cmp eax, 2
jne 0x1008ff64
mov edx, dword [ebx]
test edx, edx
jne 0x1008ff55
xor eax, eax
jmp 0x1008ff61
push ecx
mov ecx, dword [ebx + 0x30]
call fcn.1008eeb0
add esp, 4
mov dword [ebx + 0x30], eax
push dword [ebp - 4]
push dword [ebx]
push dword [ebp - 8]
call sub.MSVCR110.dll_memcpy
mov eax, dword [ebp - 4]
add dword [ebx], eax
add esp, 0xc
add dword [ebx + 8], eax
add dword [edi + 0x74], eax
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x1008ffa4
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x1008ffb8
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x1008fe80
mov edx, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp edx, ecx
jae 0x10090030
mov esi, dword [edi + 0x6c]
add esi, ebx
cmp edx, esi
jae 0x10090000
sub ecx, esi
mov eax, 0x102
cmp ecx, eax
cmova ecx, eax
mov eax, dword [edi + 0x38]
push ecx
add eax, esi
push 0
push eax
mov dword [ebp - 8], ecx
call sub.MSVCR110.dll_memset
mov eax, dword [ebp - 8]
add esp, 0xc
add eax, esi
mov dword [edi + 0x16c0], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x102]
cmp edx, eax
jae 0x10090030
mov eax, dword [edi + 0x38]
sub esi, edx
sub ecx, edx
add esi, 0x102
cmp esi, ecx
cmova esi, ecx
push esi
add eax, edx
push 0
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10095cd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x10095d90
push 0xffffffffffffffff
push 0x10097748
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100e6024]
cmp eax, 0xffffffff
jne 0x10095dc9
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x10095dd6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x10095e3d
jmp 0x10095e0c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x10095e7a
test edi, edi
jne 0x10095e80
push 0x100959c0
push 0x100e8438
call fcn.10095750
mov eax, dword [0x100e6024]
add esp, 8
cmp eax, 0xffffffff
je 0x10095e3d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x10095e66
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10095e66
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x10095eb8
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10095ea9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10095e80
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov esi, dword [ebx]
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x10095e00
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x10095f17
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10095efc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10095f17
jmp 0x10095ef0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10095ef0
jmp 0x10095f17
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10095f15
cmp esi, dword [eax + 8]
jne 0x10095f15
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10095f05
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x10095f2b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x10095f2b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.10095a40
cmp esi, ebx
jne 0x10095ed0
mov ebp, dword [esp + 0x14]
jmp 0x10095e00
Function at 0x10095d90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x10095d90
push 0xffffffffffffffff
push 0x10097748
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100e6018]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov eax, dword [0x100e6024]
cmp eax, 0xffffffff
jne 0x10095dc9
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x10095dd6
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], ebp
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [esp + 0x2c], 0
test ebp, ebp
je 0x10095e3d
jmp 0x10095e0c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp + 0x14], 0
mov edi, dword [ebp + 0xc]
jne 0x10095e7a
test edi, edi
jne 0x10095e80
push 0x100959c0
push 0x100e8438
call fcn.10095750
mov eax, dword [0x100e6024]
add esp, 8
cmp eax, 0xffffffff
je 0x10095e3d
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x2c], 0xffffffff
test ebp, ebp
je 0x10095e66
lea eax, [ebp + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x10095e66
mov eax, dword [ebp]
push 0
mov ecx, ebp
call dword [eax]
push ebp
push 0
call esi
push eax
call ebx
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
test edi, edi
je 0x10095eb8
mov edi, edi
mov eax, dword [edi + 4]
mov dword [ebp + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10095ea9
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [edi]
push 0
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call ebx
push edi
push 0
call esi
push eax
call ebx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x10095e80
mov ebx, dword [ebp + 0x10]
lea eax, [ebp + 0x10]
mov esi, dword [ebx]
mov dword [esp + 0x18], eax
cmp esi, ebx
je 0x10095e00
mov ebp, eax
mov edi, edi
cmp byte [esi + 0xd], 0
mov edi, esi
jne 0x10095f17
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
jne 0x10095efc
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
jne 0x10095f17
jmp 0x10095ef0
mov esi, eax
mov eax, dword [esi]
cmp byte [eax + 0xd], 0
je 0x10095ef0
jmp 0x10095f17
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10095f15
cmp esi, dword [eax + 8]
jne 0x10095f15
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10095f05
mov esi, eax
mov ecx, dword [edi + 0x14]
test ecx, ecx
je 0x10095f2b
mov edx, dword [edi + 0x1c]
test edx, edx
je 0x10095f2b
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push edi
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.10095a40
cmp esi, ebx
jne 0x10095ed0
mov ebp, dword [esp + 0x14]
jmp 0x10095e00
Function at 0x10001010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x1006ec00]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x14], 0x5c5d80bc
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
sub eax, 0xc424097d
je 0x100011a8
jmp 0x10001048
mov eax, dword [ebp - 0x1c]
sub eax, 0xcb5ab2d5
je 0x100010d6
jmp 0x1000105b
mov eax, dword [ebp - 0x1c]
sub eax, 0xf9b5b244
je 0x10001197
jmp 0x1000106e
mov eax, dword [ebp - 0x1c]
sub eax, 0x24250b57
je 0x10001149
jmp 0x10001081
mov eax, dword [ebp - 0x1c]
sub eax, 0x5c5d80bc
je 0x10001099
jmp 0x10001094
jmp 0x100011af
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x10]
not byte [edi]
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
add byte [edi], 0x47
sub byte [edi], 0x25
push ebx
pop ebx
nop
mov ebx, eax
xor ebx, 0x39
imul byte [edi]
inc edi
loop 0x100010ad
mov dword [ebp - 0x14], 0xcb5ab2d5
jmp 0x100011af
mov ecx, dword [0x1006ff50]
mov eax, dword [0x1006ff4c]
mov edx, ecx
sub edx, 0xfb621f65
sub edx, 1
add edx, 0xfb621f65
imul ecx, edx
and ecx, 1
cmp ecx, 0
sete bl
cmp eax, 0xa
setl dh
mov al, bl
xor al, 0xff
mov ah, dh
xor ah, 0xff
mov cl, 1
xor cl, 1
mov dl, al
and dl, 0xff
and bl, cl
mov ch, ah
and ch, 0xff
and dh, cl
or dl, bl
or ch, dh
xor dl, ch
or al, ah
xor al, 0xff
or cl, 1
and al, cl
or dl, al
mov eax, 0xc424097d
mov ecx, 0x24250b57
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x100011af
mov eax, dword [0x1006ff50]
mov ecx, dword [0x1006ff4c]
mov edx, eax
sub edx, 0x3cad613b
sub edx, 1
add edx, 0x3cad613b
imul eax, edx
and eax, 1
cmp eax, 0
sete al
cmp ecx, 0xa
setl cl
mov dl, al
and dl, cl
xor al, cl
or dl, al
mov eax, 0xc424097d
mov ecx, 0xf9b5b244
test dl, 1
cmovne eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x100011af
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10017150
add esp, 0x14
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x14], 0x24250b57
jmp 0x10001032
Function at 0x1001a523
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001d27c
push ebx
push esi
call fcn.1001d1a8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001d13c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d229
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d27b
push edi
push eax
call fcn.1001e19a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d249
call fcn.1001bc84
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d27a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d13c
add esp, 0x20
test eax, eax
jne 0x1001d268
push edi
call fcn.1001bc84
jmp 0x1001d270
push ebx
call fcn.1001bc84
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1001d4e9
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024cc8
push 0x10024cc0
push str.FlsAlloc
push 0x1f
call fcn.1001d405
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d51d
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002314c]
call esi
jmp 0x1001d523
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d567
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024cd8
push 0x10024cd0
push str.FlsGetValue
push 0x21
call fcn.1001d405
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d59e
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002314c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001d5a6
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10024ce0
push 0x10024cd8
push str.FlsSetValue
push 0x22
call fcn.1001d405
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d5e0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002314c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10022c70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022c9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022c9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x49e4ee
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.0049e56d
jae 0x49e4fa
xor ecx, ecx
call fcn.0049e56d
jae 0x49e524
xor eax, eax
call fcn.0049e56d
jae 0x49e535
mov al, 0x10
call fcn.0049e56d
adc al, al
jae 0x49e516
jne 0x49e562
stosb byte es:[edi], al
jmp 0x49e4fb
call fcn.0049e579
dec ecx
loop 0x49e541
mov eax, ebp
call fcn.0049e577
jmp 0x49e563
lodsb al, byte [esi]
shr eax, 1
je 0x49e589
adc ecx, 2
mov ebp, eax
jmp 0x49e563
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.0049e577
cmp eax, 0x7d00
jae 0x49e561
cmp eax, 0x500
jae 0x49e562
cmp eax, 0x7f
ja 0x49e563
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x49e4fb
pop ebp
ret 8
Function at 0x4112ab
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x40
push 0x1000
push 0x1000
push 0
mov eax, 0x46
call sub.kernel32.dll_VirtualAlloc
cmp dword [ebp - 8], esp
je 0x4112f8
push 0x5d
push 0x401d1ea
push 6
call fcn.0041d271
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp]
mov eax, dword [eax + 8]
mov ecx, eax
mov ebx, dword [ebp + 8]
dec ebx
imul ebx, ebx, 4
mov eax, dword [eax]
mov eax, dword [eax]
add eax, ebx
mov ebx, dword [eax]
mov eax, dword [ebp - 4]
mov word [eax], 0xb85b
mov dword [eax + 2], ebx
mov byte [eax + 6], 0x68
mov dword [eax + 7], ecx
mov word [eax + 0xb], 0xff53
mov byte [eax + 0xd], 0xe0
mov eax, dword [ebp - 4]
jmp 0x411336
mov esp, ebp
pop ebp
ret 4

Function at 0x4137e0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp eax, 0x8000
jg 0x4138fa
je 0x4138f1
cmp eax, 0x80
jg 0x413877
je 0x41386e
cmp eax, 8
jg 0x413840
je 0x413837
cmp eax, 0x80000000
je 0x41382e
cmp eax, 2
je 0x413825
cmp eax, 4
jne 0x4139dd
mov eax, 2
pop ebp
ret 4
mov eax, 1
pop ebp
ret 4
mov eax, 0x1f
pop ebp
ret 4
mov eax, 3
pop ebp
ret 4
cmp eax, 0x10
je 0x413865
cmp eax, 0x20
je 0x41385c
cmp eax, 0x40
jne 0x4139dd
mov eax, 6
pop ebp
ret 4
mov eax, 5
pop ebp
ret 4
mov eax, 4
pop ebp
ret 4
mov eax, 7
pop ebp
ret 4
cmp eax, 0x800
jg 0x4138bd
je 0x4138b4
cmp eax, 0x100
je 0x4138ab
cmp eax, 0x200
je 0x4138a2
cmp eax, 0x400
jne 0x4139dd
mov eax, 0xa
pop ebp
ret 4
mov eax, 9
pop ebp
ret 4
mov eax, 8
pop ebp
ret 4
mov eax, 0xb
pop ebp
ret 4
cmp eax, 0x1000
je 0x4138e8
cmp eax, 0x2000
je 0x4138df
cmp eax, 0x4000
jne 0x4139dd
mov eax, 0xe
pop ebp
ret 4
mov eax, 0xd
pop ebp
ret 4
mov eax, 0xc
pop ebp
ret 4
mov eax, 0xf
pop ebp
ret 4
cmp eax, 0x800000
jg 0x413986
je 0x41397d
cmp eax, 0x80000
jg 0x41394d
je 0x413944
cmp eax, 0x10000
je 0x41393b
cmp eax, 0x20000
je 0x413932
cmp eax, 0x40000
jne 0x4139dd
mov eax, 0x12
pop ebp
ret 4
mov eax, 0x11
pop ebp
ret 4
mov eax, 0x10
pop ebp
ret 4
mov eax, 0x13
pop ebp
ret 4
cmp eax, 0x100000
je 0x413974
cmp eax, 0x200000
je 0x41396b
cmp eax, 0x400000
jne 0x4139dd
mov eax, 0x16
pop ebp
ret 4
mov eax, 0x15
pop ebp
ret 4
mov eax, 0x14
pop ebp
ret 4
mov eax, 0x17
pop ebp
ret 4
cmp eax, 0x8000000
jg 0x4139c8
je 0x4139bf
cmp eax, 0x1000000
je 0x4139b6
cmp eax, 0x2000000
je 0x4139ad
cmp eax, 0x4000000
jne 0x4139dd
mov eax, 0x1a
pop ebp
ret 4
mov eax, 0x19
pop ebp
ret 4
mov eax, 0x18
pop ebp
ret 4
mov eax, 0x1b
pop ebp
ret 4
cmp eax, 0x10000000
je 0x4139f5
cmp eax, 0x20000000
je 0x4139ec
cmp eax, 0x40000000
je 0x4139e3
xor eax, eax
pop ebp
ret 4
mov eax, 0x1e
pop ebp
ret 4
mov eax, 0x1d
pop ebp
ret 4
mov eax, 0x1c
pop ebp
ret 4
Function at 0x10001e39
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.10001fd0
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x10001f37
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10001eda
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x10001f1d
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x10001ef1
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x10001f0c
test al, 0x40
je 0x10001f03
mov ecx, dword [edi + 0x20]
jmp 0x10001f0a
test al, 0x80
je 0x10001f1d
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x10001f1d
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x10001ea9
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret