joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1014e3a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
movzx ebx, byte [edx + 0x1c]
mov dword [ebp - 0x20], ecx
xor eax, eax
mov ecx, 0
mov edi, edx
call 0x1014e3be
pop esi
cmp bl, 1
setne dl
sbb ecx, ecx
or cl, dl
cmp cl, 0xff
movzx edx, cl
je 0x1014e3d5
test edx, edx
jne 0x1014e3fe
mov byte [ebp - 0x14], bl
movzx ebx, byte [edi + 0x1e]
cmp cl, 0xff
mov dword [ebp - 0x18], ebx
je 0x1014e3e8
test edx, edx
jne 0x1014e3f2
mov ecx, edi
call fcn.1014e2b0
movzx eax, al
movzx ebx, byte [ebp - 0x14]
xor ecx, ecx
test bl, bl
jne 0x1014e45f
jmp 0x1014e40b
mov dword [ebp - 0x18], 0
xor ecx, ecx
test bl, bl
jne 0x1014e45f
xor ecx, ecx
cmp byte [edi + 8], 6
lea edx, [edi + 8]
cmove edx, ecx
je 0x1014e45f
movzx ebx, byte [edx]
mov ecx, 6
add esi, dword [ebx*4 + 0x1014e578]
jmp esi
add eax, ecx
movzx ecx, byte [ebp - 0x18]
mov esi, dword [edi + 4]
lea ebx, [eax + ecx]
mov dword [ebp - 0x1c], ecx
cmp esi, ebx
jb 0x1014e55e
mov ecx, edi
mov edi, dword [edi]
cmp esi, ebx
mov edx, edi
lea edx, [edi + ebx]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov edx, esi
jne 0x1014e49b
movzx eax, byte [ecx + 8]
mov edi, dword [ebp - 0x18]
mov ecx, edx
mov byte [ebp - 0xd], al
xor eax, eax
jmp 0x1014e50c
movzx ecx, byte [ecx + 8]
cmp cl, 3
mov byte [ebp - 0xd], cl
jae 0x1014e4cd
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
mov ecx, edx
sub eax, edx
lea esi, [edx + esi - 1]
nop dword [eax + eax]
cmp byte [esi], 0x5c
je 0x1014e4f8
dec esi
inc eax
jne 0x1014e4c0
xor eax, eax
jmp 0x1014e50c
add eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x14]
mov ecx, edx
sub eax, edx
lea edi, [edx + esi - 1]
nop dword [eax + eax]
movzx esi, byte [edi]
cmp esi, 0x2f
je 0x1014e4f8
cmp esi, 0x5c
je 0x1014e4f8
dec edi
inc eax
jne 0x1014e4e0
mov edi, dword [ebp - 0x18]
xor eax, eax
jmp 0x1014e50c
not eax
lea ebx, [ebx + eax + 1]
cmp ecx, ebx
jb 0x1014e566
mov edi, dword [ebp - 0x14]
mov eax, 1
add edi, ebx
sub ecx, ebx
je 0x1014e533
movzx ebx, byte [ebp - 0xd]
mov dl, 9
cmp ecx, 2
je 0x1014e537
cmp ecx, 1
jne 0x1014e546
cmp byte [edi], 0x2e
jne 0x1014e546
xor edx, edx
cmp bl, 3
setae dl
lea edx, [edx + edx*2 + 7]
jmp 0x1014e546
mov dl, 0xa
jmp 0x1014e546
cmp byte [edi], 0x2e
jne 0x1014e546
cmp byte [edi + 1], 0x2e
sete dl
xor dl, 9
mov esi, dword [ebp - 0x20]
add eax, ecx
mov dword [esi], eax
mov byte [esi + 4], dl
mov dword [esi + 8], edi
mov dword [esi + 0xc], ecx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1034b0e4
push esi
jmp 0x1014e56c
push 0x1034b0f4
push ecx
push ebx
call fcn.1002a130
add esp, 0xc
ud2
Function at 0x10151ca0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
lea eax, [ebp - 0x20]
push dword [ebp + 8]
push edx
push eax
call fcn.1001a940
add esp, 0xc
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x10151ce3
mov ecx, dword [0x1034b300]
mov edx, dword [0x1034b304]
cmp dword [ebp - 0x1c], 0
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], 1
je 0x10151d5f
push eax
jmp 0x10151d52
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
xorps xmm0, xmm0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x40]
movups xmmword [ebp - 0x40], xmm0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x38], 1
push eax
push ecx
push 0
push edi
call sub.ws2_32.dll_getaddrinfo
test eax, eax
je 0x10151d35
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 8], eax
mov dword [esi + 4], 0
mov eax, 1
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
jne 0x10151d51
jmp 0x10151d5f
mov ecx, dword [ebp - 0x10]
movzx eax, word [ebp + 0xc]
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov word [esi + 0xc], ax
xor eax, eax
test ebx, ebx
mov dword [esi], eax
mov byte [edi], 0
je 0x10151d5f
push edi
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101543c0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1024
call fcn.101c4c20
mov esi, edx
mov edi, ecx
lea ebx, [ebp - 0x1030]
push 0x1000
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push 0x1015be60
push eax
push 0x1000
push ebx
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x101544e6
mov dword [ebp - 0x10], edi
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x1015441e
cmp dword [ebp - 0x18], 0
jne 0x101544f5
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x101544f5
cmp ebx, 0x1000
ja 0x1015451d
xor edi, edi
mov eax, ebx
sub eax, edi
jb 0x1015450c
xorps xmm0, xmm0
lea edx, [ebp - 0x1c]
lea ecx, [ebp + edi - 0x1030]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edx
push 0x1015be60
lea edx, [ebp - 0x30]
push edx
push eax
push ecx
push esi
call sub.KERNEL32.dll_WriteFileEx
test eax, eax
je 0x101544ed
nop word [eax + eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x10154490
cmp dword [ebp - 0x18], 0
jne 0x101544f2
add edi, dword [ebp - 0x14]
cmp edi, ebx
jne 0x10154450
xorps xmm0, xmm0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], eax
push 0x1015be60
lea eax, [ebp - 0x30]
push eax
push 0x1000
lea eax, [ebp - 0x1030]
push eax
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
jne 0x1015441e
call sub.KERNEL32.dll_GetLastError
jmp 0x101544f5
call sub.KERNEL32.dll_GetLastError
mov edi, dword [ebp - 0x10]
push edi
call sub.KERNEL32.dll_CloseHandle
push esi
call sub.KERNEL32.dll_CloseHandle
add esp, 0x1024
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1034c18c
push ebx
push edi
call fcn.1002a1f0
add esp, 0xc
jmp 0x10154530
push 0x1034c18c
push 0x1000
push ebx
call fcn.1002a190
add esp, 0xc
ud2

Function at 0x10158450
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, ecx
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
call fcn.10161ba0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x101584b1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x18]
push 1
call fcn.1015ac90
add esp, 4
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ebx, ebx
je 0x101584ae
push 0
push ebx
call sub.KERNEL32.dll_CreateDirectoryW
test eax, eax
je 0x101584b8
mov byte [esi], 4
test edi, edi
jne 0x101584c7
jmp 0x101584d5
mov eax, dword [ebp - 0x1c]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x101584d5
call sub.KERNEL32.dll_GetLastError
mov byte [esi], 0
mov dword [esi + 4], eax
test edi, edi
je 0x101584d5
push ebx
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10158880
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x10]
call fcn.10161ba0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
test ecx, ecx
je 0x10158948
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x18]
push 1
call fcn.1015ac90
add esp, 4
mov ebx, dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
test ebx, ebx
je 0x10158945
mov edx, dword [ebp + 0x14]
lea ecx, [ebp - 0x18]
push dword [ebp + 0x18]
call fcn.10161ba0
add esp, 4
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
test ecx, ecx
je 0x10158952
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 1
call fcn.1015ac90
add esp, 4
mov ebx, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
test ebx, ebx
je 0x1015894f
push 1
push ebx
push dword [ebp - 0x1c]
call sub.KERNEL32.dll_MoveFileExW
test eax, eax
je 0x1015897a
mov eax, dword [ebp + 8]
test esi, esi
mov byte [eax], 4
je 0x1015893c
push ebx
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
mov esi, dword [ebp + 8]
test edi, edi
je 0x10158970
jmp 0x10158960
mov eax, dword [ebp - 0x20]
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x10158970
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
mov dword [ecx], esi
mov esi, ecx
mov dword [ecx + 4], eax
test edi, edi
je 0x10158970
push dword [ebp - 0x1c]
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov ecx, dword [ebp + 8]
test esi, esi
mov esi, ecx
mov byte [ecx], 0
mov dword [ecx + 4], eax
je 0x1015895c
push ebx
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
jmp 0x1015895c
Function at 0x10159320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10159364
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x1015936a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtReadFile
cmp eax, 0x103
jne 0x1015939d
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0xc0000011
jne 0x101593ad
mov dword [esi + 4], 0
jmp 0x101593bf
cmp eax, 0x103
je 0x101593d8
test eax, eax
js 0x101593ca
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov byte [esi], 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov byte [esi], 0
mov dword [esi + 4], eax
jmp 0x101593c2
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1034bf0c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.1014caf0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.1012de90
mov ecx, 7
int 0x29
ud2

Function at 0x10159440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x10159484
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x1015948a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x101594c4
push 0xffffffffffffffff
push edi
call sub.KERNEL32.dll_WaitForSingleObject
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x101594e8
test eax, eax
js 0x101594d3
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x101594de
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x1034bf0c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.1014caf0
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.1012de90
mov ecx, 7
int 0x29
ud2
Function at 0x1015ba20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 4]
mov ebx, dword [esi + 8]
mov eax, ecx
sub eax, ebx
jb 0x1015bac9
mov ecx, dword [esi]
xorps xmm0, xmm0
lea edi, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], edi
lea edi, [ebp - 0x30]
add ecx, ebx
push 0x1015be60
push edi
push eax
push ecx
push edx
call sub.KERNEL32.dll_ReadFileEx
test eax, eax
je 0x1015ba99
nop dword [eax]
push 1
push 0xffffffffffffffff
call sub.KERNEL32.dll_SleepEx
cmp dword [ebp - 0x1c], 0
je 0x1015ba70
mov edi, dword [ebp - 0x18]
test edi, edi
jne 0x1015baa0
add ebx, dword [ebp - 0x14]
mov dword [esi + 8], ebx
mov eax, dword [esi + 0xc]
cmp eax, ebx
cmova ebx, eax
mov dword [esi + 0xc], ebx
jmp 0x1015baad
call sub.KERNEL32.dll_GetLastError
mov edi, eax
push edi
call fcn.101614b0
add esp, 4
cmp al, 0xb
jne 0x1015bab5
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
jmp 0x1015bac1
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], edi
mov dword [eax], 0
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1034ad80
push ecx
push ebx
call fcn.1002a130
add esp, 0xc
ud2

Function at 0x1015bf50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
cmp dword [edx], 0
mov edi, edx
jne 0x1015c024
mov ebx, dword [edi + 0xc]
mov esi, ecx
mov edx, dword [ebx + 4]
test edx, edx
jne 0x1015bf7d
mov eax, dword [ebx + 8]
xor edx, edx
lea ecx, [eax + 0xf]
cmp ecx, 0xf
jbe 0x1015bff1
mov eax, dword [ebx + 8]
cmp edx, eax
je 0x1015c00d
mov ecx, dword [edi + 8]
sub edx, eax
add eax, dword [ebx]
mov dword [ebp - 0x24], 0
lea ebx, [ebp - 0x24]
push ecx
push ebx
push edx
push eax
push dword [edi + 0x10]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x1015bfb7
mov eax, dword [ebp - 0x24]
mov ecx, 2
test eax, eax
jne 0x1015bfd4
jmp 0x1015bfc8
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x3e5
je 0x1015bfcf
cmp eax, 0x6d
jne 0x1015bfe6
mov word [esi], 4
jmp 0x1015bfde
mov ecx, 1
mov dword [edi], ecx
mov dword [edi + 4], eax
mov word [esi], 0x104
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [esi], 0
mov dword [esi + 4], eax
jmp 0x1015bfde
mov edx, eax
mov ecx, ebx
push 0x10
call fcn.101340a0
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
cmp edx, eax
jne 0x1015bf88
mov ecx, ebx
push 1
call fcn.101340a0
add esp, 4
mov edx, dword [ebx + 4]
mov eax, dword [ebx + 8]
jmp 0x1015bf88
lea edx, [ebp - 0x24]
mov ecx, edi
mov dword [ebp - 0x24], 0
call fcn.10130000
ud2
Function at 0x1015f880
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, ecx
lea ecx, [ebp - 0x28]
push dword [ebp + 8]
call fcn.10161ba0
add esp, 4
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
test ecx, ecx
je 0x1015f8e5
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
lea ecx, [ebp - 0x1c]
lea edx, [ebp - 0x34]
call fcn.10157d70
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x1015f8f8
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push edi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x1015f924
mov eax, dword [ebp - 0x10]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov dword [esi + 8], eax
jmp 0x1015f966
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], 0
cmp al, 3
je 0x1015f903
jmp 0x1015f960
movzx eax, byte [ebp - 0x18]
mov edi, dword [ebp - 0x14]
cmp al, 3
jne 0x1015f960
mov ebx, dword [edi + 4]
mov ecx, dword [edi]
mov eax, dword [ebx]
mov dword [ebp - 0x10], ecx
push ecx
call eax
add esp, 4
cmp dword [ebx + 4], 0
je 0x1015f952
cmp dword [ebx + 8], 9
jae 0x1015f93e
mov eax, dword [ebp - 0x10]
jmp 0x1015f944
test ebx, ebx
mov dword [esi], 0
je 0x1015f966
push edi
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
jmp 0x1015f966
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 4]
push eax
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
mov dword [esi], 0
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10160000
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, ecx
xorps xmm0, xmm0
movaps xmmword [esp], xmm0
mov eax, esp
push 0x10
push eax
call sub.advapi32.dll_SystemFunction036
test al, al
je 0x10160045
mov eax, dword [esp]
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esi + 0xc], edi
mov dword [esi + 8], edx
mov dword [esi + 4], ecx
mov dword [esi], eax
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call sub.KERNEL32.dll_GetLastError
mov byte [esp + 0x20], 0
mov dword [esp + 0x24], eax
lea edi, [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 0x1034c2d0
mov dword [esp + 0x2c], 1
mov dword [esp + 0x38], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x1c], fcn.1014adc0
mov dword [esp + 0x34], 1
lea eax, [esp + 0x28]
push 0x1034c2fc
push eax
call fcn.10026810
add esp, 8
ud2
Function at 0x10160c30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [0x103564a0]
mov ebx, dword [ebp + 0x10]
movzx eax, byte [eax]
mov eax, dword [0x1038a110]
test eax, eax
jne 0x10160c5d
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x10160cf0
mov dword [0x1038a110], eax
push 8
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x10160cf0
mov edi, eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov dword [edi], ebx
mov dword [edi + 4], ecx
push 0
push 0x10000
push edi
push 0x10160d40
push eax
push 0
call sub.KERNEL32.dll_CreateThread
test eax, eax
je 0x10160ca0
mov dword [esi + 4], eax
mov byte [esi], 4
jmp 0x10160ce6
mov esi, dword [edi + 4]
mov ebx, dword [edi]
mov eax, dword [esi]
push ebx
call eax
add esp, 4
cmp dword [esi + 4], 0
je 0x10160cca
cmp dword [esi + 8], 9
jb 0x10160cbc
mov ebx, dword [ebx - 4]
push ebx
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
push edi
push 0
push dword [0x1038a110]
call sub.KERNEL32.dll_HeapFree
call sub.KERNEL32.dll_GetLastError
mov esi, dword [ebp + 8]
mov byte [esi], 0
mov dword [esi + 4], eax
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
push 8
push 4
call fcn.1001a7e0
add esp, 8
ud2
Function at 0x10160f60
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [ebp + 8]
cmp dword [edi + 4], 0
je 0x10160fc9
lea ebx, [edi + 0xc]
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push 0
push ebx
call sub.KERNEL32.dll_InitOnceBeginInitialize
cmp eax, 1
mov dword [ebp - 0x10], eax
jne 0x10161003
cmp dword [ebp - 0x14], 0
je 0x10160fea
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x10161025
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x1038a128]
mov dword [edi + 8], eax
lock cmpxchg dword [0x1038a128], edi
jne 0x10160fb0
push 0
push 0
push ebx
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x10160ff9
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x10161065
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x10160fee
mov esi, dword [ebp - 0x10]
jmp 0x10160ff9
mov esi, dword [edi]
jmp 0x10160ff8
mov esi, eax
push dword [ebp - 0x10]
call sub.KERNEL32.dll_TlsFree
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x2c], 0
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x10]
mov edx, 0x1034c6c8
push 0x1034c728
push eax
call fcn.1012ffa0
add esp, 8
ud2
push 0
push 4
push ebx
call sub.KERNEL32.dll_InitOnceComplete
mov dword [ebp - 0x2c], 0x1034c6e0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x2c]
push 0x1034c718
push eax
call fcn.10026810
add esp, 8
ud2
lea ecx, [ebp - 0x10]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x1034c6e0
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x24], str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.10130060
ud2
Function at 0x101610a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 0xc]
cmp eax, 3
je 0x101610b7
test eax, eax
jne 0x10161218
mov edi, dword [0x1038a128]
test edi, edi
je 0x10161218
mov dword [ebp - 0x10], 0
jmp 0x101610d7
mov edi, dword [edi + 8]
test edi, edi
je 0x10161106
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x10161257
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x101610d0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x101610d0
test byte [ebp - 0x10], 1
je 0x10161218
mov edi, dword [0x1038a128]
test edi, edi
je 0x10161218
mov dword [ebp - 0x10], 0
jmp 0x10161137
mov edi, dword [edi + 8]
test edi, edi
je 0x10161166
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x10161257
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x10161130
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x10161130
test byte [ebp - 0x10], 1
je 0x10161218
mov edi, dword [0x1038a128]
test edi, edi
je 0x10161218
mov dword [ebp - 0x10], 0
jmp 0x10161197
mov edi, dword [edi + 8]
test edi, edi
je 0x101611c6
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x10161257
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x10161190
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x10161190
test byte [ebp - 0x10], 1
je 0x10161218
mov edi, dword [0x1038a128]
test edi, edi
je 0x10161218
mov dword [ebp - 0x10], 0
jmp 0x101611e7
mov edi, dword [edi + 8]
test edi, edi
je 0x10161212
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x10161257
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x101611e0
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
mov al, 1
mov dword [ebp - 0x10], eax
jmp 0x101611e0
test byte [ebp - 0x10], 1
jne 0x10161222
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov edi, dword [0x1038a128]
jmp 0x1016122d
mov edi, dword [edi + 8]
test edi, edi
je 0x10161218
mov esi, dword [edi]
mov ebx, dword [edi + 4]
test ebx, ebx
je 0x10161257
dec esi
push esi
call sub.KERNEL32.dll_TlsGetValue
test eax, eax
je 0x1016122a
push 0
push esi
mov esi, eax
call sub.KERNEL32.dll_TlsSetValue
push esi
call ebx
add esp, 4
jmp 0x1016122a
push 0x1034c74c
push 0x2b
push str.called__Option::unwrap____on_a__None__value_rustc_d5c2e9c342b358556da91d61ed4133f6f50fc0c3library_alloc_srccollections_btree_navigate.rs
call fcn.10026890
add esp, 0xc
ud2