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

Disassembly:
mov eax, 0x401c
call fcn.10173ed0
mov eax, dword [0x101f9740]
xor eax, esp
mov dword [esp + 0x4018], eax
push esi
mov esi, edx
mov edx, ecx
lea ecx, [esp + 0x2010]
call fcn.10053c60
test eax, eax
js 0x10041191
push 0
lea eax, [esp + 8]
push eax
push 0x1006
lea eax, [esp + 0x201c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x100411cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x100411a9
call fcn.10179268
mov dword [eax], 0x26
xor eax, eax
pop esi
mov ecx, dword [esp + 0x4018]
xor ecx, esp
call fcn.10173495
add esp, 0x401c
ret
call fcn.10179268
pop esi
mov dword [eax], 0x16
xor eax, eax
mov ecx, dword [esp + 0x4018]
xor ecx, esp
call fcn.10173495
add esp, 0x401c
ret
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x100411ff
call fcn.10179268
pop esi
mov dword [eax], 2
xor eax, eax
mov ecx, dword [esp + 0x4018]
xor ecx, esp
call fcn.10173495
add esp, 0x401c
ret
test esi, esi
jne 0x1004124e
mov esi, dword [fcn.1005f470]
mov ecx, esi
push 0x32c
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_srcwin32posix_w32.c
push 0x2ffe
call dword [0x101a64ac]
call esi
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x1004124e
call fcn.10179268
pop esi
mov dword [eax], 0xc
xor eax, eax
mov ecx, dword [esp + 0x4018]
xor ecx, esp
call fcn.10173495
add esp, 0x401c
ret
lea edx, [esp + 4]
mov ecx, esi
call fcn.10053ea0
test eax, eax
js 0x10041191
mov ecx, esi
call fcn.1003ff50
mov ecx, dword [esp + 0x401c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.10173495
add esp, 0x401c
ret

Function at 0x100413a0
Capabilities:
Move file

Disassembly:
mov eax, 0x401c
call fcn.10173ed0
mov eax, dword [0x101f9740]
xor eax, esp
mov dword [esp + 0x4018], eax
push esi
mov esi, edx
mov edx, ecx
lea ecx, [esp + 0x2010]
call fcn.10053c60
test eax, eax
js 0x10041429
mov edx, esi
lea ecx, [esp + 4]
call fcn.10053c60
test eax, eax
js 0x10041429
mov esi, 0xa
push 3
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x2018]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10041449
call fcn.10040170
test al, al
je 0x10041442
cmp esi, 1
jle 0x1004141c
lea ecx, [esp + 4]
call fcn.10040190
test eax, eax
je 0x1004141c
cmp eax, 0xffffffe0
jne 0x1004142c
jmp 0x10041424
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esi, 1
jne 0x100413e1
or eax, 0xffffffff
pop esi
mov ecx, dword [esp + 0x4018]
xor ecx, esp
call fcn.10173495
add esp, 0x401c
ret
call fcn.1003ff70
jmp 0x10041429
mov ecx, dword [esp + 0x401c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.10173495
add esp, 0x401c
ret
Function at 0x10041470
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, dword [esp + 0x40]
mov ebp, ecx
push edi
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x18]
push 0
push 0x14
push esi
xorps xmm0, xmm0
mov dword [esp + 0x20], 0
push edi
mov ebx, edx
movlpd qword [esp + 0x34], xmm0
mov dword [esp + 0x44], 0
call fcn.1003f460
add esp, 0x10
test eax, eax
je 0x100414c8
call fcn.10179268
mov dword [eax], 0x16
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push ebp
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], esi
call fcn.10185662
add esp, 4
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x18]
push ecx
push 0x14
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100414fd
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
call fcn.1003ff70
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x28
ret
Function at 0x10053700
Capabilities:
Get common file path

Disassembly:
push esi
push edi
mov edi, ecx
push edi
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test esi, esi
jne 0x10053739
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
mov ecx, 0xd
mov esi, 2
cmove esi, ecx
call fcn.10179268
pop edi
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret
cmp esi, 0x1000
jle 0x10053752
call fcn.10179268
pop edi
pop esi
mov dword [eax], 0x26
or eax, 0xffffffff
ret
push 4
push str.__
push edi
call fcn.101864a6
add esp, 0xc
test eax, eax
jne 0x1005377a
sub esi, 4
lea eax, [esi + esi]
push eax
lea eax, [edi + 8]
push eax
push edi
call fcn.10174d90
add esp, 0xc
pop edi
mov eax, esi
pop esi
ret
Function at 0x10053a30
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebx
mov eax, edx
push ebp
mov ebx, eax
mov dword [esp + 0x14], eax
push esi
mov ebp, ecx
push edi
mov dword [esp + 0x14], ebp
lea esi, [ebx + 2]
nop dword [eax + eax]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x10053a50
push 0
push 0
sub ebx, esi
push str.PATH
sar ebx, 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
test edi, edi
jne 0x10053ac6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
jne 0x10053b02
xor esi, esi
mov dword [esp + 0x18], esi
nop dword [eax + eax]
xor edx, edx
test esi, esi
je 0x10053c33
movzx eax, word [esi]
test ax, ax
je 0x10053c33
cmp eax, 0x22
jne 0x10053b1c
movzx eax, word [esi + 2]
lea edi, [edx + 0x22]
add esi, 2
mov dword [esp + 0x10], esi
mov ecx, esi
test ax, ax
je 0x10053b4c
jmp 0x10053b25
mov esi, dword [fcn.1005f470]
lea eax, [edi + edi]
push 0xc8
push str.D:DevelopmentMillennium_vendor_vcpkg_buildtreeslibgit2_src_v1.4.2_3f39c3e750.clean_srcwin32path_w32.c
push eax
mov ecx, esi
call dword [0x101a64ac]
call esi
mov esi, eax
add esp, 0xc
mov dword [esp + 0x18], esi
test esi, esi
je 0x10053b11
push edi
push esi
push str.PATH
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x10053a90
push str.could_not_load_PATH
push 2
call fcn.10028e40
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov edi, 0x3b
mov dword [esp + 0x10], esi
movzx eax, word [esi]
mov ebp, esi
mov ecx, esi
nop dword [eax]
cmp ax, di
je 0x10053b46
movzx eax, word [ebp + 2]
lea esi, [ebp + 2]
inc edx
mov ecx, esi
mov ebp, esi
test ax, ax
jne 0x10053b30
cmp di, 0x22
jne 0x10053b55
cmp word [esi], 0
je 0x10053b55
lea esi, [ecx + 2]
cmp word [esi], 0x3b
jne 0x10053b69
nop dword [eax + eax]
add esi, 2
cmp word [esi], 0x3b
je 0x10053b60
mov ecx, dword [esp + 0x10]
xor edi, edi
test edx, edx
je 0x10053b85
test ebx, ebx
je 0x10053b85
cmp word [ecx + edx*2 - 2], 0x5c
mov eax, 1
cmovne edi, eax
lea eax, [edi + edx]
mov dword [esp + 0x10], eax
add eax, ebx
mov dword [esp + 0x20], eax
cmp eax, 0x104
jbe 0x10053bb1
push str.path_too_long
push 3
call fcn.10028e40
mov ebp, dword [esp + 0x1c]
add esp, 8
jmp 0x10053a90
lea ebp, [edx + edx]
push ebp
push ecx
push dword [esp + 0x1c]
call fcn.10174d90
add esp, 0xc
test edi, edi
je 0x10053bd3
mov eax, dword [esp + 0x14]
mov ecx, 0x5c
mov word [eax + ebp], cx
mov ebp, dword [esp + 0x14]
lea eax, [ebx + ebx]
push eax
mov eax, dword [esp + 0x14]
push dword [esp + 0x20]
lea eax, [eax*2]
add eax, ebp
push eax
call fcn.10174d90
mov eax, dword [esp + 0x2c]
add esp, 0xc
xor ecx, ecx
push ecx
push ebp
mov word [ebp + eax*2], cx
call fcn.10185198
add esp, 8
test eax, eax
jne 0x10053a90
push dword [esp + 0x18]
mov esi, dword [fcn.10033600]
mov ecx, esi
call dword [0x101a64ac]
call esi
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push dword [esp + 0x18]
mov esi, dword [fcn.10033600]
mov ecx, esi
call dword [0x101a64ac]
call esi
add esp, 4
xor eax, eax
mov word [ebp], ax
mov eax, 0xfffffffd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x1007d500
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x38
mov eax, dword [ecx + 0x10]
push ebx
push ebp
mov ebp, edx
mov eax, dword [eax + 0x1c]
mov dword [esp + 8], eax
push esi
push edi
test ebp, ebp
jne 0x1007d53b
push str.data
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov ebx, dword [esp + 0x54]
test ebx, ebx
jne 0x1007d567
push str.size
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, dword [0x10200554]
test eax, eax
jne 0x1007d584
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x40]
mov dword [0x10200554], eax
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
push 0
push eax
push edi
push esi
call fcn.10173ab0
sub esi, eax
mov dword [esp + 0x14], eax
sbb edi, 0
push edi
push esi
push dword [esp + 0x18]
lea edx, [eax + ebx]
push ecx
push 2
lea ecx, [esp + 0x2c]
call fcn.10094ae0
add esp, 0x14
test eax, eax
js 0x1007d5d9
mov eax, dword [esp + 0x18]
add eax, dword [esp + 0x14]
push ebx
push ebp
push eax
call fcn.10174d90
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.10094cb0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret

Function at 0x1007d5f0
Capabilities:
Get system information on windows
Write file on windows

Disassembly:
sub esp, 0x38
mov eax, dword [ecx + 0x10]
push ebx
mov ebx, dword [esp + 0x40]
mov dword [esp + 0x10], ecx
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x24]
mov dword [esp + 0x14], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
push ebp
push esi
push edi
test ebx, ebx
jne 0x1007d622
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
mov ebp, dword [0x10200554]
test ebp, ebp
jne 0x1007d649
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov dword [0x10200554], ebp
mov esi, ebx
xor edi, edi
add esi, ecx
adc edi, eax
xor ebx, ebx
push ebx
push ebp
push edi
push esi
call fcn.10173ab0
sub ebp, eax
mov dword [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x34], 0
sbb ebx, ebx
movlpd qword [esp + 0x24], xmm0
add ebp, esi
mov esi, dword [esp + 0x1c]
adc ebx, edi
sub ebp, 1
mov dword [esp + 0x2c], ebp
mov eax, dword [esi + 0x10]
sbb ebx, 0
mov dword [esp + 0x30], ebx
push dword [eax + 0x1c]
call fcn.10185662
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x28]
add esp, 4
push ecx
lea ecx, [esp + 0x18]
push ecx
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1007d6e1
cmp dword [esp + 0x14], 0
jl 0x1007d6e6
mov eax, dword [esi + 0x10]
mov edx, edi
push dword [esp + 0x4c]
mov ecx, esi
push dword [eax + 0x24]
push dword [eax + 0x20]
call fcn.1007d500
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
call fcn.1003ff70
mov eax, dword [esi + 0x10]
add eax, 0xa8
push eax
push str.cannot_extend_packfile__s
push 2
call fcn.10028e40
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x100808b0
Capabilities:
Hash data using sha1

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x100808df
push 0x101e7694
push str.invalid_argument
push 0x101d8a38
push 3
call fcn.10028e40
add esp, 0x10
mov dword [esi + 0x960], 1
or eax, 0xffffffff
pop esi
ret
mov dword [esi], 0
xor eax, eax
mov dword [esi + 4], 0
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov dword [esi + 0x18], 0xc3d2e1f0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 1
mov dword [esi + 0x68], 1
mov dword [esi + 0x64], 1
mov dword [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov dword [esi + 0x960], 1
pop esi
ret

Function at 0x10080950
Capabilities:
Hash data using sha1

Disassembly:
push ecx
mov eax, dword [ecx + 0x960]
sub eax, 1
je 0x10080970
push str.unknown_hash_algorithm
push 0x23
call fcn.10028e40
add esp, 8
or eax, 0xffffffff
pop ecx
ret
mov dword [ecx], 0
xor eax, eax
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 1
mov dword [ecx + 0x68], 1
mov dword [ecx + 0x64], 1
mov dword [ecx + 0x6c], 0
mov dword [ecx + 0x70], 0
pop ecx
ret
Function at 0x10087e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x101f9740]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
mov eax, ecx
mov dword [esp + 4], 0x102025ed
push esi
mov esi, edx
mov dword [esp + 0x14], eax
xor ebx, ebx
mov dword [esp + 0xc], 0
mov dword [eax], ebx
lea edx, [esp + 0x1c]
push edi
mov ecx, dword [esi + 0x34]
mov dword [esp + 0x14], 0
call fcn.10040f60
test eax, eax
js 0x10087f0f
mov ecx, dword [esp + 0x50]
cmp dword [esi], ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
jne 0x10087ef1
mov eax, dword [esp + 0x54]
cmp dword [esi + 4], eax
jne 0x10087ef1
cmp dword [esi + 8], ecx
jne 0x10087ef1
cmp dword [esi + 0x10], edi
jne 0x10087ef1
cmp dword [esi + 0x14], edx
jne 0x10087ef1
movzx eax, word [esp + 0x24]
cmp dword [esi + 0x18], eax
je 0x10087f61
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov dword [esi], eax
movzx eax, word [esp + 0x24]
mov dword [esi + 4], ebx
mov dword [esi + 8], ecx
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edx
mov dword [esi + 0x18], eax
mov edx, dword [esi + 0x34]
lea ecx, [esp + 0xc]
call fcn.10039700
mov edi, dword [esp + 0xc]
mov ebx, eax
test ebx, ebx
js 0x10087fb0
push ecx
push dword [esp + 0x18]
mov edx, edi
lea ecx, [esp + 0x78]
call fcn.10080b90
mov ebx, eax
add esp, 8
test ebx, ebx
js 0x10087fb0
lea edx, [esi + 0x20]
mov edi, 0x10
lea ecx, [esp + 0x70]
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10087fa2
add ecx, 4
add edx, 4
sub edi, 4
jae 0x10087f50
xor edi, edi
cmp dword [esi + 0x3c], edi
jbe 0x10087fac
xor eax, eax
mov dword [esp + 0x1c], eax
nop
mov edx, dword [esi + 0x38]
add edx, eax
je 0x10087fac
mov ecx, dword [esp + 0x18]
call fcn.10087e70
mov ebx, eax
test ebx, ebx
js 0x10087fac
mov eax, dword [esp + 0x18]
cmp dword [eax], 0
jne 0x10087fac
mov eax, dword [esp + 0x1c]
inc edi
add eax, 0x48
mov dword [esp + 0x1c], eax
cmp edi, dword [esi + 0x3c]
jb 0x10087f70
jmp 0x10087fac
mov eax, dword [esp + 0x18]
mov dword [eax], 1
mov edi, dword [esp + 0xc]
cmp dword [esp + 0x10], 0
jbe 0x10087fd7
test edi, edi
je 0x10087fd7
cmp edi, 0x102025ec
je 0x10087fd7
mov esi, dword [fcn.10033600]
mov ecx, esi
push edi
call dword [0x101a64ac]
call esi
add esp, 4
mov ecx, dword [esp + 0x84]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10173495
mov esp, ebp
pop ebp
ret
Function at 0x10094ae0
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
sub esp, 0x34
push ebx
mov ebx, dword [esp + 0x3c]
push ebp
push esi
push edi
push dword [esp + 0x50]
mov edi, edx
mov esi, ecx
mov dword [esp + 0x18], edi
call fcn.10185662
mov ecx, dword [0x10200554]
add esp, 4
mov dword [esp + 0x10], eax
test ecx, ecx
jne 0x10094b26
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x10]
mov dword [0x10200554], ecx
xor ebp, ebp
test esi, esi
je 0x10094c86
test edi, edi
je 0x10094c86
test bl, 3
jne 0x10094b47
push str._prot__0x2____prot__0x1_
jmp 0x10094c8b
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
cmp eax, 0xffffffff
jne 0x10094b79
call fcn.10179268
push str.failed_to_mmap._Invalid_handle_value
push 2
mov dword [eax], 9
call fcn.10028e40
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov edi, ebx
and ebx, 1
and edi, 2
je 0x10094b8a
mov ebp, 4
jmp 0x10094b94
test ebx, ebx
mov eax, 2
cmovne ebp, eax
push 0
push ecx
push dword [esp + 0x60]
neg edi
push dword [esp + 0x60]
sbb edi, edi
and edi, 2
call fcn.10173ab0
mov ecx, dword [esp + 0x54]
sub ecx, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x58]
sbb ecx, edx
or eax, edx
mov dword [esp + 0x1c], ecx
je 0x10094be8
call fcn.10179268
push str.failed_to_mmap._Offset_must_be_multiple_of_allocation_granularity
push 2
mov dword [eax], 0x16
call fcn.10028e40
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push 0
push 0
push 0
push ebp
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ecx, eax
mov dword [esi + 8], ecx
test ecx, ecx
je 0x10094c65
cmp ecx, 0xffffffff
je 0x10094c65
mov ebp, dword [esp + 0x14]
mov eax, edi
push ebp
push dword [esp + 0x1c]
or eax, 4
test ebx, ebx
push dword [esp + 0x24]
cmove eax, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi], eax
test eax, eax
jne 0x10094c58
push str.failed_to_mmap._No_data_written
push 2
call fcn.10028e40
add esp, 8
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
mov dword [esi + 4], ebp
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push str.failed_to_mmap._Invalid_handle_value
push 2
call fcn.10028e40
add esp, 8
mov dword [esi + 8], 0
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push str.out_____void__0___len___0
push str.unrecoverable_internal_error
push 0x101d8a38
push 0x23
call fcn.10028e40
add esp, 0x10
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
Function at 0x100a5710
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 8], 0x4016
push eax
push 0x20019
push 0
push dword [esp + 0x24]
mov esi, ecx
mov edi, 0xfffffffd
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a57b3
lea eax, [esp + 8]
push eax
push esi
lea eax, [esp + 0x18]
push eax
push 0
push str.InstallLocation
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100a57a9
cmp dword [esp + 0x10], 1
jne 0x100a57a9
mov ecx, dword [esp + 8]
lea eax, [ecx - 1]
cmp eax, 0x200a
ja 0x100a57a9
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
lea eax, [ecx - 1]
je 0x100a5789
xor edx, edx
mov eax, ecx
mov word [esi + ecx*2], dx
cmp word [esi + eax*2 - 2], 0x5c
jne 0x100a5798
xor ecx, ecx
mov word [esi + eax*2 - 2], cx
push 0
push esi
call fcn.10185198
add esp, 8
neg eax
sbb eax, eax
and edi, eax
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
add esp, 0xc
ret
Function at 0x100c3280
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], edx
mov ecx, dword [esp + 0x20]
mov esi, 0x1505
and ecx, 0x1e
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ecx
mov ebx, dword [edi]
cmp ebx, edx
jae 0x100c32dc
push ebp
mov al, byte [ebx]
cmp al, 0xa
je 0x100c32d7
cmp ecx, 0x10
jne 0x100c32ef
cmp al, 0xd
jne 0x100c32c2
lea eax, [ebx + 1]
cmp eax, edx
jae 0x100c32c2
cmp byte [eax], 0xa
je 0x100c32ce
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebx]
xor esi, eax
mov ecx, dword [esp + 0x18]
inc ebx
cmp ebx, edx
jb 0x100c32a7
mov edi, dword [esp + 0x1c]
pop ebp
cmp ebx, edx
lea eax, [ebx + 1]
cmovae eax, ebx
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x10
ret
movzx eax, al
push eax
call fcn.101845f0
mov edx, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x100c32c2
lea edi, [ebx + 1]
mov ebp, ebx
mov dword [esp + 0x14], ebp
cmp edi, edx
jae 0x100c3335
mov ebp, edx
movzx eax, byte [edi]
push eax
call fcn.101845f0
add esp, 4
test eax, eax
je 0x100c332d
cmp byte [edi], 0xa
je 0x100c332d
inc edi
inc ebx
cmp edi, ebp
jb 0x100c3312
mov ebp, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
lea ecx, [ebx + 1]
cmp edx, ecx
jbe 0x100c3345
cmp byte [ecx], 0xa
je 0x100c3345
xor eax, eax
jmp 0x100c334a
mov eax, 1
test byte [esp + 0x24], 2
jne 0x100c32ce
test byte [esp + 0x24], 4
je 0x100c336f
test eax, eax
jne 0x100c336f
mov eax, esi
shl esi, 5
add esi, eax
xor esi, 0x20
jmp 0x100c32ce
test byte [esp + 0x24], 8
je 0x100c32ce
test eax, eax
jne 0x100c32ce
cmp ebp, ecx
je 0x100c32ce
nop word [eax + eax]
mov eax, esi
shl esi, 5
add esi, eax
movsx eax, byte [ebp]
inc ebp
xor esi, eax
cmp ebp, ecx
jne 0x100c3390
jmp 0x100c32ce
Function at 0x100cffc0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019ee95
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x101f9740]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 1
jne 0x100d0048
push 4
call fcn.1017305d
add esp, 4
test eax, eax
je 0x100d0001
mov dword [eax], fcn.10033600
jmp 0x100d0003
xor eax, eax
mov dword [ebp + 0xc], eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push 0
push eax
push 0x100cdfd0
push 0
push 0
call fcn.10178b38
add esp, 0x18
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100d0065
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test ecx, ecx
je 0x100d005e
push ecx
push eax
call fcn.10170d8d
add esp, 8
test eax, eax
jne 0x100d005e
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0xc
push 1
call fcn.10171003
push 6
mov dword [ebp - 0x10], 0
call fcn.10171003
int3
Function at 0x100d0d20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019f07d
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x101f9740]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 8]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x68], eax
lea eax, [esi + 0x10]
push eax
call fcn.100e3920
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
lea ebx, [esi + 4]
push dword [0x101feb8c]
mov esi, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], 0
mov dword [ebp - 0x6c], eax
call edi
test eax, eax
je 0x100d0da3
cmp dword [eax], esi
je 0x100d0dba
mov eax, dword [eax + 8]
test eax, eax
jne 0x100d0d98
push dword [0x101feb78]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x78], eax
call edi
test eax, eax
je 0x100d0dd3
mov eax, dword [eax + 4]
jmp 0x100d0dd5
cmp dword [eax + 4], 0
je 0x100d0da3
nop
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 1
call fcn.100e90b0
nop
jmp 0x100d0e8f
xor eax, eax
push 8
push 0x80
push eax
push dword [ebp - 0x6c]
call fcn.100d3ca0
add esp, 0x10
mov edi, eax
mov dword [edi + 0x14], 0
lea ecx, [edi + 0x30]
mov dword [edi + 0x18], 0x100ed3e0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x1c], 0
mov eax, dword [ebp - 0x68]
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x60]
mov dword [edi + 0x28], eax
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 2
call fcn.100e4e30
mov ecx, dword [ebp - 0x6c]
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov eax, dword [ebp - 0x28]
mov dword [edi + 0x60], eax
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x64], eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
push edi
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], edx
mov eax, dword [ebp - 0x18]
push ebx
mov dword [edi + 0x70], eax
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x74], 0
call fcn.100ed950
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x100d0eb7
or edi, 0xffffffff
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100d0eb7
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100d0eb7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x100d0ecf
mov edx, dword [ecx]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10173495
mov esp, ebp
pop ebp
ret 8