joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100354e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jae 0x10035545
cmp dword [esi], edi
je 0x10035529
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x1003554f
cmp ebx, 2
jb 0x1003551d
mov dword [esi], edi
call fcn.1007c020
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 8]
movups xmm0, xmmword [eax + 4]
movups xmm1, xmmword [eax + 0x10]
movups xmmword [esi + 0x10], xmm1
movups xmmword [esi + 4], xmm0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.1007c020
mov eax, dword [ebp + 8]
jmp 0x100354fc
call fcn.1007c020
push dword [esi]
call fcn.10084410
add esp, 4
mov dword [esi], 0
jmp 0x10035511

Function at 0x100356e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007e160

Function at 0x10037990
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x10147d10]
cmp eax, 0xffffffff
je 0x100379b0
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
jmp 0x100379ae

Function at 0x100379c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov eax, dword [0x10147d10]
cmp eax, 0xffffffff
je 0x10037a81
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x10037a81
mov eax, dword [0x1014c4cc]
mov ecx, dword [0x10149ec8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10037a8b
mov edi, dword [0x1014c4c8]
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x10037ad0
mov ecx, dword [0x1014b8c4]
inc ecx
xor edx, edx
lea eax, [ecx + edx]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x1014b8c8], 0
jne 0x10037adc
lea eax, [eax*4 + 0x1014b8c8]
mov dword [eax], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x1014b8cc], ecx
mov dword [0x1014b8c4], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x1014b8d0]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
cmp dword [esi], 0x100
jae 0x10037aeb
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.10037af0
jmp 0x100379e5
push 0x1014c4cc
call fcn.100c1ca7
add esp, 4
cmp dword [0x1014c4cc], 0xffffffff
jne 0x10037a06
push 4
call fcn.100c1c01
add esp, 4
mov edi, eax
mov ecx, eax
call fcn.1006ae90
mov dword [0x1014c4c8], edi
push 0x1014c4cc
call fcn.100c1d1d
add esp, 4
jmp 0x10037a06
mov ecx, edi
call fcn.10084100
jmp 0x10037a1b
inc edx
cmp edx, 0x100
jne 0x10037a24
jmp 0x10037a6b
int3
Function at 0x10037af0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x10147d10]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
je 0x10037b9d
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x10037be6
mov edi, 0x800
lea ebx, [ebp - 0x810]
push edi
push 0
push ebx
call fcn.100c5370
add esp, 0xc
lea eax, [ebp - 0x80d]
push eax
push dword [ebp - 0x814]
call fcn.1004e500
add esp, 8
push edi
call fcn.100c1c63
add esp, 4
mov esi, eax
push edi
push ebx
push eax
call fcn.100c4df0
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call fcn.1004e500
add esp, 8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c2603
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
lea esi, [ebp - 0x814]
push esi
call fcn.1004e4e0
add esp, 4
test al, al
je 0x10037be9
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
je 0x10037bec
xor eax, eax
dec eax
lock cmpxchg dword [0x10147d10], ecx
je 0x10037b21
push ecx
call fcn.10114d70
add esp, 4
mov ecx, dword [0x10147d10]
mov dword [ebp - 0x814], ecx
jmp 0x10037b21
int3
int3
push esi
call fcn.1004e4e0
add esp, 4
test al, al
je 0x10037c14
cmp dword [ebp - 0x814], 0xffffffff
je 0x10037c14
push 0xffffffffffffffff
call fcn.10114d70
add esp, 4
mov ecx, dword [ebp - 0x814]
jmp 0x10037bbb
int3

Function at 0x10037ce0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x20
mov edi, ecx
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [esp + 0x1c], eax
push dword [0x10147d10]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
and ecx, 3
cmp ecx, 2
jne 0x10037d53
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x11e1a300
mov esi, esp
push 0x1db
push str....._base_threading_thread_local_storage.cc
push 0x10139315
push esi
call fcn.1007bff0
add esp, 4
movsd xmm0, qword [esp + 0x1c]
movsd qword [esp + 4], xmm0
mov dword [esp], esi
call fcn.101094a0
add esp, 0xc
xor esi, esi
jmp 0x10037d68
xor esi, esi
and eax, 0xfffffffc
je 0x10037d68
mov ecx, dword [edi]
mov edx, dword [eax + ecx*8 + 4]
cmp edx, dword [edi + 4]
jne 0x10037d68
mov esi, dword [eax + ecx*8]
mov ecx, dword [esp + 0x1c]
xor ecx, ebp
call fcn.100c2603
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x100385e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
call fcn.1004e450
mov byte [esi + 4], 0
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi], 0x101345c0
mov dword [esi + 0xc], eax
movaps xmm0, xmmword [0x10139390]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp dword [esi + 0xc], eax
je 0x1003864a
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
inc eax
cmp eax, 2
jae 0x10038654
lea eax, [edi + 1]
cmp eax, 2
jb 0x1003863e
mov dword [esi + 0xc], edi
call fcn.1007c020
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1007c020
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.10084410
mov dword [esi + 0xc], 0
jmp 0x1003862e

Function at 0x10038bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jb 0x10038c11
call fcn.1007c020
mov dword [esi], 0
test edi, edi
je 0x10038c40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x10038c61
cmp ebx, 2
jb 0x10038c39
mov dword [esi], edi
mov edi, eax
call fcn.1007c020
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov byte [edi + 4], 0
mov eax, dword [edi]
inc eax
cmp eax, 2
jae 0x10038c7e
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.1007c020
push dword [esi]
call fcn.10084410
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x10038c29
call fcn.1007c020
push dword [edi]
call fcn.10084410
add esp, 4
mov dword [edi], 0
jmp 0x10038c55
Function at 0x10038f50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov ebx, ecx
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x10038f87
mov eax, dword [0x10147d20]
cmp eax, 0xffffffff
je 0x10039014
mov ebx, 0x100000
test eax, eax
jne 0x10038f87
mov ebx, 0x80000
push 0x10
call fcn.100c1c01
add esp, 4
mov esi, eax
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x1014e7e8]
bt ecx, eax
jb 0x10039009
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x101567e8], 1
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
setne byte [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push 0x10000
push esi
push 0x100393f0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x10039038
test edi, edi
je 0x10039096
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c2603
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push edi
call fcn.1007e220
add esp, 4
jmp 0x10038fb5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x10147d20
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x1003910a
mov eax, dword [0x10147d20]
jmp 0x10038f79
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x10039054
mov edi, eax
cmp eax, 0x5af
je 0x10039054
cmp edi, 0xe
jne 0x100390a6
push ebx
call fcn.101132e0
add esp, 4
test esi, esi
mov eax, dword [ebp - 0x20]
je 0x10038ff0
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x1014e7e8]
bt edx, ecx
jae 0x10039085
push eax
call fcn.1007e340
add esp, 4
push esi
call fcn.100c1c31
add esp, 4
mov eax, dword [ebp - 0x20]
jmp 0x10038ff0
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x10038ff0
mov eax, dword [0x1014c514]
mov ecx, dword [0x10149ec8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10039119
lea ebx, [ebp - 0x1c]
push edi
push ebx
call fcn.100448e0
add esp, 8
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x100390e0
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
jmp 0x100390e3
and eax, 0x7f
push eax
push ebx
push dword [0x1014c510]
call fcn.100997f0
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x1003905d
push dword [ebp - 0x1c]
call fcn.100c1c31
jmp 0x1003905a
mov dword [0x10147d20], 0
jmp 0x10038f82
push 0x1014c514
call fcn.100c1ca7
add esp, 4
cmp dword [0x1014c514], 0xffffffff
jne 0x100390c3
push 0x20
push str.create_thread_last_error
call fcn.10044f10
add esp, 8
mov dword [0x1014c510], eax
push 0x1014c514
call fcn.100c1d1d
add esp, 4
jmp 0x100390c3
Function at 0x10039960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, dword [ecx]
lea eax, [ebx + 1]
cmp eax, 2
jb 0x10039a5e
mov esi, ecx
mov dword [ebp - 0x1c], eax
cmp dword [ecx + 4], 1
jne 0x10039a62
mov dword [esi], 0
call fcn.1007c020
test ebx, ebx
je 0x100399b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.1007c020
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edi, [ebp - 0x14]
mov dword [edi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ecx, ecx
push ecx
push ecx
push 5
push edi
push eax
mov dword [ebp - 0x20], ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
test eax, eax
je 0x10039a11
mov ebx, dword [ebp - 0x14]
cmp dword [esi], ebx
je 0x10039a0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x10039a41
lea ecx, [ebx + 1]
cmp ecx, 2
jb 0x10039a03
mov dword [esi], ebx
mov ebx, eax
call fcn.1007c020
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [esi + 4], 0
test edi, edi
setne bl
cmp dword [ebp - 0x1c], 2
mov esi, dword [ebp - 0x20]
jb 0x10039a2d
call fcn.1007c020
push esi
call fcn.10084410
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c2603
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x18], eax
call fcn.1007c020
push dword [esi]
call fcn.10084410
mov eax, dword [ebp - 0x18]
add esp, 4
mov dword [esi], 0
jmp 0x100399f0
xor ebx, ebx
jmp 0x10039a2d
int3
Function at 0x10041a70
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10084670
Function at 0x10041df0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10094e10

Function at 0x10041e50
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov dword [ecx], 1
xor eax, eax
mov dword [ecx + 4], eax
mov ebx, dword [ebp + 8]
mov dword [ebp + 8], eax
lea edi, [ebx + 1]
cmp edi, 2
jb 0x10041e77
call fcn.1007c020
lea ecx, [ebp + 8]
cmp dword [esi + 4], ebx
je 0x10041ea9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
inc ecx
cmp ecx, 2
jae 0x10041ebd
cmp edi, 2
jb 0x10041e9f
mov dword [esi + 4], ebx
mov edi, eax
call fcn.1007c020
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp + 8]
mov eax, dword [ecx]
inc eax
cmp eax, 2
jae 0x10041edc
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.1007c020
push dword [esi + 4]
call fcn.10084410
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi + 4], 0
jmp 0x10041e8e
mov edi, ecx
call fcn.1007c020
push dword [edi]
call fcn.10084410
add esp, 4
jmp 0x10041eb1
Function at 0x10048bf0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [esp + 0x28], eax
cmp dword [ebp + 8], 0
je 0x10048dc3
cmp dword [0x10148df8], 0xe69e32f3
jne 0x10048dc6
mov ecx, 0x308
mov esi, dword [ebp + 8]
add ecx, dword [esi + 0xc]
mov byte [esp + 0xf], 0xff
movzx eax, byte [esi + 2]
push eax
mov dword [esp + 8], ecx
push ecx
call fcn.1007e030
add esp, 8
movzx ebx, ax
shl ebx, 5
lea edi, [esi + ebx]
add edi, 0x48
add esi, 0x40
push esi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x10048d8b
mov dword [esp + 8], esi
mov eax, dword [edi]
mov esi, dword [eax]
test esi, esi
je 0x10048d3a
mov byte [esp + 0xf], 0
mov ecx, dword [esi]
test ecx, ecx
je 0x10048d30
mov edi, dword [ebp + 8]
add ebx, edi
mov ebx, dword [ebx + 0x54]
bswap ecx
mov edx, ecx
xor edx, esi
cmp edx, 0x1fffff
ja 0x10048d97
mov edx, ecx
and edx, 0x1fc000
je 0x10048d97
prefetcht0 byte [ecx]
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov eax, dword [eax + 8]
mov ecx, dword [edi + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [edi + 0x1180]
mov dword [edi + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [edi + 0x1180], ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, esi
push edi
call fcn.1009eee0
push esi
push dword [0x1015a9f0]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x10149ec8]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0x90], esi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.100c2603
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor ecx, ecx
mov edi, dword [ebp + 8]
jmp 0x10048cab
lea eax, [esp + 0xf]
mov ecx, edi
push eax
push 0x4000
push dword [esp + 0xc]
push 2
mov edi, dword [ebp + 8]
push edi
call fcn.1009fd10
test eax, eax
je 0x10048dc9
mov esi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x10048cc4
mov ecx, esi
call fcn.1009fbb0
jmp 0x10048c61
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi], xmm0
mov ecx, edi
push 0
push dword [esi]
push str.first
call fcn.1010b020
push edi
call fcn.100106c0
add esp, 4
mov ecx, ebx
call fcn.1010b0a0
int3
int3
xor esi, esi
jmp 0x10048ce7
Function at 0x10059b40
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x10059b57
test eax, eax
je 0x10059b57
pop esi
pop edi
pop ebp
ret 0xc
test eax, eax
jne 0x10059b65
mov ecx, dword [0x1015c05c]
test ecx, ecx
jne 0x10059ba1
cmp dword [0x1015c054], 0
je 0x10059b51
mov esi, dword [0x1015c058]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test edi, edi
jne 0x10059bab
test esi, esi
je 0x10059b51
mov ecx, dword [0x1015c054]
call dword [section..00cfg]
push esi
call ecx
add esp, 4
jmp 0x10059b51
call dword [section..00cfg]
call ecx
jmp 0x10059b65
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10059b89

Function at 0x10059bd0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov esi, dword [ebp + 8]
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [esp + 0x28], eax
mov al, byte [ebp + 0x10]
movzx eax, al
lea ebx, [eax + eax]
add ebx, 4
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test eax, eax
je 0x10059c55
pcmpeqd xmm0, xmm0
mov ebx, esp
movdqu xmmword [ebx + 0xc], xmm0
movdqa xmmword [ebx], xmm0
push 0x1c
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov ecx, dword [ebx + 0xc]
sub ecx, edi
add ecx, dword [ebx + 4]
test eax, eax
cmove ecx, eax
mov byte [esi], 1
mov dword [esi + 4], ecx
mov dword [esi + 8], edi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.100c2603
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18
call fcn.10121450
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test eax, eax
jne 0x10059c0f
call fcn.10121450
mov byte [esi], 0
jmp 0x10059c3e

Function at 0x10059d40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, 4
lea edx, [ebp - 0x14]
mov dword [edx], eax
lea esi, [ebp - 0x18]
mov dword [esi], eax
xor eax, eax
lea edi, [ebp - 0x1c]
mov dword [edi], eax
mov ebx, dword [ebp + 8]
push esi
push edi
push edx
push eax
push ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10059db3
mov eax, dword [ebp - 0x14]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x10059d9d
cmp dword [ebp - 0x18], 4
jne 0x10059d9d
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c2603
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x10059d9d
Function at 0x10059dc0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.100c2f20
mov esi, ecx
mov eax, dword [0x10146014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.100c5370
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10059e59
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x10059e5d
push edi
call fcn.100da260
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.10030620
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c2603
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x10059e40
cmp eax, 2
jne 0x10059ea9
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.100c5370
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x10059eb0
push ebx
call fcn.100da260
add esp, 4
mov ecx, esi
push eax
push ebx
jmp 0x10059e39
mov esi, 0x3f4
jmp 0x10059e40
mov esi, 0xea
jmp 0x10059e40
Function at 0x1005a650
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x14], ecx
mov ebx, dword [ebp + 0xc]
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1005a66e
mov eax, dword [ebx + 4]
mov ebx, dword [ebx]
jmp 0x1005a671
and eax, 0x7f
mov esi, eax
mov ecx, ebx
mov edx, eax
mov dword [ebp - 0x18], eax
cmp eax, 4
jb 0x1005a6ac
mov eax, dword [ebp - 0x18]
mov edx, eax
mov ecx, ebx
imul esi, dword [ecx], 0x5bd1e995
mov edi, esi
shr edi, 0x18
xor edi, esi
imul esi, edi, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, esi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x1005a686
cmp edx, 1
je 0x1005a6cd
cmp edx, 2
je 0x1005a6c4
cmp edx, 3
jne 0x1005a6d8
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
xor ecx, ecx
mov dword [ebp - 0x10], edx
test edx, edx
je 0x1005a7f6
mov dword [ebp - 0x1c], ebx
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov esi, eax
shr esi, 0xf
xor esi, eax
mov eax, dword [ebp - 0x10]
mov edx, eax
shr edx, 1
and edx, 0x55555555
sub eax, edx
mov edx, 0x33333333
mov ebx, eax
and ebx, edx
shr eax, 2
and eax, edx
add eax, ebx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x28], eax
cmp eax, 1
jbe 0x1005a809
mov edx, esi
cmp esi, dword [ebp - 0x10]
jb 0x1005a751
mov eax, esi
xor edx, edx
div dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x1005a7f6
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x14], esi
mov ebx, dword [eax]
test ebx, ebx
je 0x1005a7f6
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x20], eax
mov esi, dword [ebp - 0x1c]
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 0x14]
jne 0x1005a7bd
movzx edx, byte [ebx + 0x13]
mov eax, edx
and eax, 0x7f
mov ecx, eax
test dl, dl
jns 0x1005a795
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x18]
jne 0x1005a7d4
lea ecx, [ebx + 8]
test dl, dl
jns 0x1005a7a3
mov ecx, dword [ecx]
js 0x1005a7dc
test al, al
je 0x1005a7f4
xor ecx, ecx
mov dl, byte [ebx + ecx + 8]
mov edi, eax
cmp dl, byte [esi + ecx]
jne 0x1005a7d4
inc ecx
cmp eax, ecx
jne 0x1005a7ab
jmp 0x1005a7f4
cmp dword [ebp - 0x28], 1
jbe 0x1005a816
cmp eax, dword [ebp - 0x10]
jb 0x1005a7cf
xor edx, edx
div dword [ebp - 0x10]
mov eax, edx
cmp eax, dword [ebp - 0x24]
jne 0x1005a805
mov ebx, dword [ebx]
test ebx, ebx
jne 0x1005a77b
jmp 0x1005a805
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005a7f4
push eax
push dword [ebp - 0x1c]
push ecx
call fcn.100c3edd
add esp, 0xc
test eax, eax
jne 0x1005a7d4
mov ecx, ebx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor ecx, ecx
jmp 0x1005a7f6
mov eax, dword [ebp - 0x10]
lea edx, [eax - 1]
and edx, esi
jmp 0x1005a751
and eax, dword [ebp - 0x20]
jmp 0x1005a7cf