joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018ab0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x10046074]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x130], eax
push edi
mov dword [ebp - 0x12c], ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x124], esi
cmp eax, dword [0x10037954]
jne 0x10018bd5
mov ecx, esi
mov edx, 0x10037944
mov esi, 0xc
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10018bcf
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10018b00
push 0x100
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x120], 0x11c
push 0
push eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
call fcn.10021960
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
xor eax, eax
mov word [ebp - 0xa], ax
mov dword [ebp - 8], eax
push 3
push 0x20
push 3
push 1
push 3
push 2
push eax
push eax
call esi
push edx
push eax
call esi
push edx
push eax
call esi
push edx
push eax
push 0x23
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 0xa
xor ecx, ecx
mov dword [ebp - 0x118], 0
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
test eax, eax
jne 0x10018bcf
cmp dword [ebx + 0x20], 8
lea eax, [ebx + 0xc]
jb 0x10018baa
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10018bcf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x124]
mov eax, dword [esi + 0x10]
mov edi, 0x10049990
mov dword [ebp - 0x128], eax
xor ebx, ebx
cmp eax, dword [edi + 0x10]
jne 0x10018c3e
mov ecx, esi
mov edx, edi
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10018c32
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10018bf3
mov ecx, dword [ebp - 0x12c]
push dword [ebp - 0x130]
push dword [ebp - 0x124]
mov ecx, dword [ecx + 8]
push ecx
mov eax, dword [ecx]
call dword [eax + 0x14]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ffb1
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp - 0x124]
mov eax, dword [ebp - 0x128]
add ebx, 0x14
add edi, 0x14
cmp ebx, 0x12c
jb 0x10018be5
push 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x118], 0x114
push 0
push eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
call fcn.10021960
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10018d10
cmp dword [ebp - 0x114], 0xa
jb 0x10018d10
cmp dword [ebp - 0x10c], 0x4563
jb 0x10018d10
mov eax, dword [esi + 0x10]
mov edi, 0x10049ac0
mov dword [ebp - 0x128], eax
xor ebx, ebx
nop word [eax + eax]
cmp eax, dword [edi + 0x10]
jne 0x10018d02
mov edx, esi
mov eax, edi
mov esi, 0xc
nop
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x10018cf6
add edx, 4
add eax, 4
sub esi, 4
jae 0x10018ce0
jmp 0x10018c04
mov esi, dword [ebp - 0x124]
mov eax, dword [ebp - 0x128]
add ebx, 0x14
add edi, 0x14
cmp ebx, 0xdc
jb 0x10018cd0
mov ecx, dword [ebp - 4]
mov eax, 0x80004005
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ffb1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10018d30
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x10046074]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
mov dword [ebp - 0x118], 0x114
push 0
push eax
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
call fcn.10021960
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10018dc3
cmp dword [ebp - 0x114], 0xa
jb 0x10018dc3
mov eax, dword [ebp - 0x10c]
cmp eax, dword [ebp + 8]
jb 0x10018dc3
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ffb1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1001ffb1
mov esp, ebp
pop ebp
ret

Function at 0x10018ee0
Capabilities:
Access peb ldr_data
Get number of processors
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100314b0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x10046074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
push 0
lea eax, [edi + 4]
mov dword [edi], vtable.DropboxLogging::LoggingHandler.0
xorps xmm0, xmm0
push 0
movups xmmword [eax], xmm0
push eax
movq qword [eax + 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionEx]
test eax, eax
jne 0x10018f47
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10018f41
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x10019028
mov dword [edi + 0x28], 0
lea esi, [edi + 0x64]
mov dword [edi + 0x2c], 0
xorps xmm0, xmm0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
movups xmmword [edi + 0x40], xmm0
movq qword [edi + 0x50], xmm0
mov byte [edi + 0x58], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x60], 0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
push 8
mov dword [ebp - 4], 0
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
call fcn.1001f814
add esp, 4
mov dword [eax + 4], 0
mov dword [esi], eax
push 0
mov dword [eax], esi
mov eax, dword [ebp + 0xc]
push 0
push 0
mov dword [edi + 0x7c], eax
mov eax, dword [ebp + 8]
push 0
mov byte [edi + 0x78], 0
mov dword [edi + 0x80], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x60], eax
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 8
push eax
call fcn.1000af00
int3
Function at 0x1001d990
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10046074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
movzx ecx, word [esi]
mov eax, ecx
or eax, 0x20
sub eax, 0x61
cmp ax, 0x19
ja 0x1001d9cc
cmp word [esi + 2], 0x3a
jne 0x1001d9cc
cmp word [esi + 4], 0x5c
jne 0x1001d9cc
cmp word [esi + 6], di
je 0x1001da1a
movzx eax, word [esi + 2]
mov word [ebp - 0xa], ax
movzx eax, word [esi + 4]
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1001da1a
push 0
push 0x200000
push eax
push 0
push 7
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1001da2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001ffb1
mov esp, ebp
pop ebp
ret
mov eax, dword [0x10049be4]
lea ecx, [ebp - 0x14]
push 0x23
push 8
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push esi
call eax
test eax, eax
jne 0x1001da59
test dword [ebp - 0x14], 0x400
je 0x1001da59
cmp dword [ebp - 0x10], 0x44
mov eax, 1
cmove edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.1001ffb1
mov esp, ebp
pop ebp
ret
Function at 0x1001e120
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0xc]
mov edx, 0x10046058
test ecx, ecx
jne 0x1001e155
mov ecx, dword [ebp + 8]
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001e24f
mov dword [0x10049be8], 1
mov dword [0x10049bec], eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ecx]
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [ecx + eax*4]
mov eax, dword [edi]
mov dword [ebp - 4], eax
test cl, 3
je 0x1001e188
mov ecx, esi
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x1001e188
mov dword [0x10049be8], 2
mov dword [0x10049bec], eax
push ebx
mov ebx, dword [ebp + 0x14]
push ebx
push 3
push esi
call fcn.1001ef80
push dword [ebp - 4]
push 4
push esi
call fcn.1001ef80
add esp, 0x18
mov dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
push eax
push 0x40
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001e1f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x1001e1d2
movzx ecx, cx
or ecx, 0x80070000
or eax, 0xffffffff
mov edx, 0x10046058
lock cmpxchg dword [edx], esi
test eax, eax
jne 0x1001e24c
pop ebx
pop edi
mov dword [0x10049be8], 5
mov dword [0x10049bec], ecx
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp - 4]
mov dword [edi], ebx
mov dword [eax], ecx
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push 4
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1001e24c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
test ecx, ecx
jle 0x1001e22c
movzx ecx, cx
or ecx, 0x80070000
or eax, 0xffffffff
mov edx, 0x10046058
lock cmpxchg dword [edx], esi
test eax, eax
jne 0x1001e24c
mov dword [0x10049be8], 6
mov dword [0x10049bec], ecx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1001eff0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10049c3c]
sub esp, 0xc
test eax, eax
je 0x1001f0a7
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1001f0a7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, eax
sub ecx, dword [0x10049c48]
cmp ecx, 0x7d0
jbe 0x1001f092
mov dword [0x10049c48], eax
lea eax, [ebp - 8]
push eax
push 0x2021f
push 0
push dword [0x10046054]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001f092
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
mov dword [ebp - 0xc], 4
push eax
push 0
push 0x10
push str.InfPatch
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x1001f082
cmp dword [ebp - 4], eax
je 0x1001f082
mov al, 1
jmp 0x1001f084
xor al, al
push dword [ebp - 8]
mov byte [0x10049c44], al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [0x10049c3c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov al, byte [0x10049c44]
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x10001080
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10030518
push 0x1000eb90
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [section..data]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x38]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x34]
cmp word [ecx], ax
jne 0x10001123
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10001123
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x10001123
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10001123
mov dword [ebp - 4], 0xfffffffe
mov al, 1
jmp 0x1000112c
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1000ce2b
mov esp, ebp
pop ebp
ret
Function at 0x10001440
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x10001509
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001486
sub edi, 0x8000000
jmp 0x10001501
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001509
cmp dword [ebp - 0x10], 0x10000
jne 0x100014ec
cmp dword [ebp - 0x14], 0x10000
jb 0x100014ec
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x100015c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x10001509
sub edi, 0x10000
jmp 0x10001501
mov ecx, dword [ebp - 0x1c]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x10001471
movzx eax, si
test eax, eax
je 0x10001518
sub esi, eax
add esi, 0x10000
mov edi, dword [ebp + 8]
cmp esi, edi
jae 0x100015c2
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x10001545
add esi, 0x8000000
jmp 0x100015ba
push 0x1c
lea eax, [ebp - 0x20]
mov dword [ebp - 8], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x20], xmm0
movq qword [ebp - 0x10], xmm0
call ebx
test eax, eax
je 0x100015c2
cmp dword [ebp - 0x10], 0x10000
mov ecx, dword [ebp - 0x14]
jne 0x100015a5
cmp ecx, 0x10000
jb 0x100015a5
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x100015c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x100015c2
add esi, 0x10000
jmp 0x100015ba
mov esi, dword [ebp - 0x20]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x100015ba
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x10001530
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ce2b
mov esp, ebp
pop ebp
ret
Function at 0x100015e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10033f20], 0
jne 0x10001669
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x10033f20
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10001669
push esi
mov esi, dword [0x10033f2c]
mov dword [0x10033f34], eax
mov dword [0x10033f30], eax
mov dword [0x10033f28], eax
push edi
test esi, esi
je 0x1000164a
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x10001661
mov esi, dword [esi + 4]
test esi, esi
jne 0x10001631
xor eax, eax
pop edi
mov dword [0x10033f1c], eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce2b
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1000164c
mov ecx, dword [ebp - 4]
mov eax, 0x10dd
xor ecx, ebp
call fcn.1000ce2b
mov esp, ebp
pop ebp
ret
Function at 0x10001ab0
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x10033f1c]
push esi
mov esi, ecx
test eax, eax
jne 0x10001b1e
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x10001aca
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.1000ce47
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10001b0b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.1000ce77
add esp, 8
mov dword [0x10033f1c], esi
mov eax, esi
mov dword [0x10033f28], 0
pop edi
pop esi
ret
mov eax, dword [0x10033f30]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x10033f30], edi
pop edi
pop esi
ret
Function at 0x100028b0
Capabilities:
Decompress data using quicklz

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
lea eax, [esi + 0x100000]
cmp eax, 0x1fffff
ja 0x10002914
mov ecx, esi
mov eax, esi
shr ecx, 1
mov edx, esi
xor ecx, dword [ebp + 8]
and ecx, 0x7ff
shl eax, 4
xor ecx, dword [ebp + 8]
xor eax, ecx
shl edx, 6
and eax, 0x3f0000
xor eax, ecx
mov ecx, esi
xor edx, eax
shr ecx, 5
and edx, 0x4000000
shr esi, 8
xor edx, eax
xor ecx, edx
and ecx, 0x2000
xor ecx, edx
xor esi, ecx
and esi, 0x800
xor esi, ecx
mov eax, esi
pop esi
pop ebp
ret 8
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x10005cf0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp eax, 1
jne 0x10005deb
push ecx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str._version.dll
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x10033f08], eax
test eax, eax
jne 0x10005d87
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x310]
push 0x1002f02c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x310]
push 0x10
push str.AheadLib
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x10005d8c
call fcn.10004ec0
cmp dword [0x10033f08], 0
push ebx
setne bl
call fcn.100056b0
call fcn.100015e0
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov ecx, eax
call fcn.10001ab0
sub esp, 0xc
mov edx, 0x10005280
mov ecx, 0x10033f14
call fcn.10001b20
sub esp, 0xc
mov edx, 0x10005330
mov ecx, 0x10033f18
call fcn.10001b20
call fcn.10001680
movzx eax, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ce2b
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x10005dff
mov eax, dword [0x10033f08]
test eax, eax
je 0x10005dff
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.1000ce2b
mov esp, ebp
pop ebp
ret 0xc

Function at 0x10006cc0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x10006cf1
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10006ce0
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x10015167
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100151a6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100151a6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100151a6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100151a6
cmp dword [ecx + 0x74], 0xe
jbe 0x100151a6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1001ba05
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 0x1001baa2
push ebx
push esi
call fcn.1001b9ce
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.1001b962
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001ba4f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001baa1
push edi
push eax
call fcn.100178bc
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001ba6f
call fcn.10017882
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001baa0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001b962
add esp, 0x20
test eax, eax
jne 0x1001ba8e
push edi
call fcn.10017882
jmp 0x1001ba96
push ebx
call fcn.10017882
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 0x1001beef
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b2e0
push 0x1002b2d8
push str.FlsAlloc
push 0x1f
call fcn.1001bdb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001bf23
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002717c]
call esi
jmp 0x1001bf29
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001bf6d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b2f0
push 0x1002b2e8
push str.FlsGetValue
push 0x21
call fcn.1001bdb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001bfa4
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002717c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001bfac
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002b2f8
push 0x1002b2f0
push str.FlsSetValue
push 0x22
call fcn.1001bdb7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001bfe6
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1002717c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x10021e4f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10018b34
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10021ebe
cmp esi, dword [ebp - 4]
je 0x10021eb9
cmp dword [ebp + 0xc], 0
je 0x10021eb9
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x10021e96
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100219a1
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10021ec0
xor eax, eax
inc eax
jmp 0x10021ec0
xor eax, eax
pop edi
pop esi
leave
ret