joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000accf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1000ade8
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], ecx
mov dword [edi], ecx
mov dword [edi + 0xc], ecx
mov dword [edi + 0x10], ecx
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
test eax, eax
je 0x1000ad6d
push 0x1000ad74
push eax
call sub.KERNEL32.dll_GetProcAddress
push 0x1000ad88
push dword [edi + 0x14]
mov dword [edi], eax
call sub.KERNEL32.dll_GetProcAddress
push 0x1000ada0
push dword [edi + 0x14]
mov dword [edi + 0xc], eax
call sub.KERNEL32.dll_GetProcAddress
push 0x1000adb8
push dword [edi + 0x14]
mov dword [edi + 0x10], eax
call sub.KERNEL32.dll_GetProcAddress
push 0x1000add0
push dword [edi + 0x14]
mov dword [edi + 4], eax
call sub.KERNEL32.dll_GetProcAddress
mov ebx, dword [edi]
mov dword [edi + 8], eax
test ebx, ebx
je 0x1000ad6d
lea eax, [edi + 0x18]
mov esi, esp
push eax
mov ecx, ebx
call dword [0x10042294]
call ebx
cmp esi, esp
jne 0x1001d772
mov dword [edi + 0x1c], 1
mov eax, edi
pop edi
pop esi
pop ebx
ret
mov ecx, 4
int 0x29
jmp 0x1000ad66

Function at 0x1000b0c0
Capabilities:
Access peb ldr_data

Disassembly:
mov esi, dword [eax]
jmp 0x1000b0d3
mov eax, dword fs:[0x30]
push esi
mov esi, dword [ecx]
mov eax, dword [eax + 0xc]
add eax, 0x14
test esi, esi
je 0x1000b0b7
cmp esi, eax
je 0x1000b0fa
test edx, edx
je 0x1000b0f2
mov eax, dword [esi + 0x10]
mov dword [edx], eax
mov eax, dword [esi + 0x18]
mov dword [edx + 4], eax
lea eax, [esi + 0x24]
mov dword [edx + 8], eax
lea eax, [esi + 0x1c]
mov dword [edx + 0xc], eax
mov eax, dword [esi]
mov dword [ecx], eax
xor eax, eax
pop esi
ret
mov eax, 0x103
pop esi
ret

Function at 0x1000d42e
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push esi
xor esi, esi
cmp dword [0x10041888], esi
je 0x1000e90e
mov eax, esi
pop esi
ret
push 0x1000e98c
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [0x10041888], eax
test eax, eax
je 0x1002085e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1000e94b
push dword [0x10041888]
call dword [sym.imp.iertutil.dll_Ordinal_50]
mov esi, eax
test esi, esi
js 0x10020846
push 0xffffffffffffffff
push dword [0x10041888]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1002081d
sub esp, 0x10
mov ecx, 0x1004188c
call fcn.1000d637
push dword [0x10041888]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test esi, esi
jns 0x1000d43f
jmp 0x10020846
cmp eax, 0x80
je 0x1000e961
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1000e97e
movzx esi, si
or esi, 0x80070000
jmp 0x1000e97c
push dword [0x10041888]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [0x10041888], 0
jmp 0x1000d43f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1000d43f
movzx esi, si
or esi, 0x80070000
jmp 0x1000d43f
Function at 0x1000db2c
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x10041914]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x424], edx
push edi
mov dword [ebp - 0x418], esi
mov edi, 0x80004005
mov dword [ebp - 0x42c], 0x1000dd08
xor ebx, ebx
mov dword [ebp - 0x428], 0x1000dd24
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
and dword [ebp - 0x41c], 0
lea eax, [ebp - 0x41c]
add esp, 0xc
push eax
mov eax, dword [esi + 4]
or eax, 1
push eax
push 0
push dword [ebp + ebx*4 - 0x42c]
push dword [esi]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000dcf8
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x20c]
xor edi, edi
push eax
push edi
push 0x10000002
push 0x1000dd3c
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegGetValueW]
mov esi, eax
test esi, esi
je 0x1000dcdc
lea eax, [ebp - 0x420]
mov dword [ebp - 0x420], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push 2
push edi
push edi
push dword [ebp - 0x41c]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegGetValueW]
mov esi, eax
push dword [ebp - 0x41c]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegCloseKey]
mov ax, word [ebp - 0x20c]
test esi, esi
jne 0x1000dcee
test ax, ax
je 0x1000dcee
mov esi, dword [ebp - 0x418]
test edi, edi
js 0x10020d52
and dword [ebp - 0x418], 0
lea esi, [ebp - 0x20c]
cmp ax, 0x22
jne 0x1000dc83
lea eax, [ebp - 0x418]
push eax
lea esi, [ebp - 0x20a]
mov eax, esi
push 0x1000dd60
push eax
call dword [sym.imp.msvcrt.dll_wcstok_s]
add esp, 0xc
mov ebx, 0x104
lea eax, [ebp - 0x414]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
dec eax
push ebx
mov ebx, dword [ebp - 0x424]
push ebx
cmp eax, 0x102
ja 0x1000dd04
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
mov edx, 0x104
cmp eax, edx
ja 0x10020d61
test eax, eax
je 0x10020d69
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001a60
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], di
je 0x1000dbf5
jmp 0x1000dc20
mov edi, 0x80004005
jmp 0x1000dc44
mov ax, word [ebp - 0x20c]
jmp 0x1000dc4a
push esi
jmp 0x1000dcae
inc ebx
cmp ebx, 2
jae 0x1000dcc9
jmp 0x1000db6d
push 8
pop edi
jmp 0x1000dcc9
push esi
mov ecx, ebx
call fcn.1000d402
jmp 0x1000dcc9
Function at 0x1000dd86
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 8], 4
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
cmp dword [ebx + 0xcc], esi
je 0x1000f64c
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc4]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x10020417
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebx + 0xa8]
call fcn.1000e9cf
test eax, eax
je 0x1000ddab
cmp dword [ebx + 0xcc], esi
jne 0x1000f72f
mov eax, dword [ebx]
mov edi, esp
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x10042294]
mov ecx, ebx
call esi
cmp edi, esp
jne 0x100203ff
mov dword [ebx + 0xc4], eax
lea ecx, [ebp - 4]
xor eax, eax
cmp byte [ebx + 0xd0], al
push ecx
sete al
dec eax
and eax, 0x200
add eax, 0x20019
push eax
push 0
push 0x1000f740
push 0x80000002
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000f72f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebx]
push 0
mov edi, esp
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x10042294]
mov ecx, ebx
call esi
cmp edi, esp
jne 0x1002040b
push eax
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1000f726
cmp dword [ebp - 0xc], 4
jne 0x1000f726
mov edx, dword [ebp - 0x10]
push edx
call fcn.1000e9e8
test eax, eax
js 0x1000f726
mov eax, edx
shr edx, 0x13
and eax, 0xf
mov dword [ebx + 0xc4], eax
xor eax, eax
inc eax
and edx, eax
mov dword [ebx + 0xcc], eax
mov dword [ebx + 0xc8], edx
push dword [ebp - 4]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegCloseKey]
lea ecx, [ebx + 0xa8]
call fcn.1000f7a5
jmp 0x1000ddab
mov ecx, 4
int 0x29
jmp 0x1000f686
mov ecx, 4
int 0x29
jmp 0x1000f6e6
mov eax, dword [ebx + 0xc8]
mov dword [ecx], eax
jmp 0x1000ddc1

Function at 0x1000deff
Capabilities:
Check if file exists
Get file attributes

Disassembly:
test ecx, ecx
je 0x1000df16
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1000df16
test al, 0x10
jne 0x1000df16
mov al, 1
ret
xor al, al
ret
Function at 0x1000df1e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x10041914]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x268]
mov dword [ebp - 0x268], 0x4e
push eax
lea eax, [ebp - 0x54]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x1000df80
push dword [ecx]
mov dword [ebp - 0x260], ebx
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
push 2
mov esi, eax
pop edi
sub esi, edi
neg esi
sbb esi, esi
and esi, 0x80004005
test eax, eax
jne 0x10020cbf
jmp 0x10020b98
push 0x10020cd4
mov edx, 0x104
lea ecx, [ebp - 0x25c]
call fcn.1000d402
mov esi, eax
test esi, esi
js 0x10020cbf
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x25c]
call fcn.1000f7be
mov esi, eax
test esi, esi
js 0x10020cbf
lea eax, [ebp - 0x260]
mov esi, 0x80004005
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x25c]
push eax
push 0x80000000
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x10020cb7
lea eax, [ebp - 0x264]
mov dword [ebp - 0x264], ebx
push eax
push ebx
push ebx
push ebx
push 0x10020d08
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
push ebx
push ebx
push ebx
push ebx
test eax, eax
jne 0x10020c90
push 0x10020d14
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
cmp eax, edi
jne 0x10020ca9
push dword [ebp - 0x264]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10020ca9
lea eax, [ebp - 0x264]
push eax
push edi
push ebx
push ebx
push 0x10020d08
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x10020c87
push 0x10020ce4
push edi
call sub.msvcrt.dll__wcsicmp
neg eax
pop ecx
sbb eax, eax
pop ecx
and esi, eax
push edi
call fcn.1000ff4f
pop ecx
jmp 0x10020ca9
push 0x10020d38
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
sub eax, edi
neg eax
sbb eax, eax
and esi, eax
push dword [ebp - 0x260]
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegCloseKey]
jmp 0x10020cbf
sub eax, edi
neg eax
sbb eax, eax
and esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001a60
mov esp, ebp
pop ebp
ret
Function at 0x1000eaa2
Capabilities:
Query environment variable

Disassembly:
push dword [edi + 8]
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi + 8], eax
cmp dword [edi + 0x10], 0
jne 0x10020ac3
cmp dword [esi + 8], ebx
jne 0x1000eb91
jmp 0x1000eb8d
mov esi, ebx
jmp 0x1000eb09
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x10041914]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x30
push 8
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x1000ea99
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], 5
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
test esi, esi
je 0x1000ebb4
mov dword [esi + 0x24], 4
mov eax, dword [edi]
mov dword [esi + 0x18], eax
cmp dword [edi + 4], 0
je 0x1000ea75
push dword [edi + 4]
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi + 4], eax
test eax, eax
je 0x1000eb83
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edi, eax
test edi, edi
je 0x1000eb7d
cmp edi, 0x104
ja 0x1000eb7d
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi], eax
test eax, eax
je 0x1000eb7d
push 0x5c
pop ecx
cmp cx, word [eax + edi*2 - 2]
je 0x10020aa6
mov bl, 1
mov edi, dword [ebp - 0x210]
cmp dword [edi + 0x10], 0
jne 0x10020ab2
test bl, bl
je 0x1000eba5
mov eax, dword [ebp - 0x214]
push esi
add eax, 4
push eax
call fcn.1000ebcc
test eax, eax
jne 0x1000ebb4
mov ecx, esi
call fcn.1000c4cf
push ecx
mov ecx, esi
call fcn.1000ec53
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001a60
mov esp, ebp
pop ebp
ret 8
xor ecx, ecx
mov word [eax + edi*2 - 2], cx
jmp 0x1000eb7b
push dword [edi + 0x10]
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi + 0x10], eax
jmp 0x1000eb8d
push dword [edi + 0x10]
call dword [sym.imp.api_ms_win_downlevel_shlwapi_l1_1_0.dll_StrDupW]
mov dword [esi + 0x10], eax
jmp 0x1000ea8b
Function at 0x1000ec6f
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x10041914]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x218], edx
xor edi, edi
lea edx, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push edx
lea edx, [ebp - 0x20c]
push edx
lea edx, [ebp - 0x214]
push edx
push edi
push eax
push ecx
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
je 0x1000ece1
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [eax], edi
mov eax, esi
pop edi
pop esi
call fcn.10001a60
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x214], 1
push 2
pop edx
jne 0x1000ed4d
push ebx
mov ebx, dword [ebp - 0x210]
xor ecx, ecx
shr ebx, 1
lea eax, [ebx + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
push 8
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x1000ed47
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
lea edx, [ebx + 1]
call fcn.1000d402
mov esi, eax
and eax, 0x1fff0000
cmp eax, 0x70000
je 0x10020807
test esi, esi
jne 0x1002080f
pop ebx
jmp 0x1000ecc5
cmp dword [ebp - 0x214], edx
je 0x1000eced
jmp 0x100207ff
push 5
pop esi
jmp 0x1000ecc5
movzx esi, si
jmp 0x1000ed3f
push edi
call fcn.1000ff4f
pop ecx
xor edi, edi
jmp 0x1000ed47
Function at 0x10010f4b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x10025314
call fcn.1000f853
mov edi, ecx
call fcn.10010da1
test eax, eax
js 0x1001d19e
push dword [ebp + 8]
xor ebx, ebx
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.100101e7
lea edx, [edi + 4]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1001100c
mov esi, eax
test esi, esi
js 0x1001d215
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], eax
cmp eax, fcn.10010fc0
jne 0x1001d169
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10010fc0
jmp 0x1001d18b
mov esi, esp
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, eax
call dword [0x10042294]
mov ecx, edi
call dword [ebp - 0x18]
cmp esi, esp
je 0x1001d18b
mov ecx, 4
int 0x29
test eax, eax
jne 0x1001d1a6
mov ebx, 0xc8008000
lea ecx, [ebp - 0x28]
call fcn.10003610
mov eax, ebx
call fcn.10002980
ret 8
lea eax, [edi + 0xc]
mov ecx, edi
push eax
lea edx, [edi + 4]
push edx
call fcn.10011d9b
mov esi, eax
test esi, esi
js 0x1001d215
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [edi + 0x18], eax
cmp eax, 0xffffffff
je 0x1001d224
mov dword [ebp - 0x18], 1
lea esi, [edi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [edi + 0x14], eax
cmp eax, 0xffffffff
je 0x100283f0
xor ecx, ecx
inc ecx
cmp dword [edi + 0x18], 0xffffffff
jne 0x1001d194
mov eax, dword [ebp + 0xc]
dec eax
je 0x10028439
dec eax
je 0x10028425
dec eax
dec eax
je 0x10028406
test ecx, ecx
je 0x1001d234
mov esi, 0xc8008000
lea ecx, [ebp - 0x28]
call fcn.10003610
mov eax, esi
jmp 0x1001d19e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], ebx
cmp eax, 2
jne 0x1001d1d3
jmp 0x1001d1cc
cmp dword [ebp - 0x18], 0
jne 0x1001d194
jmp 0x1001d210
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1001d1ea
mov ecx, ebx
jmp 0x1001d1ed
cmp dword [edi + 0x14], 0xffffffff
je 0x1002841b
test byte [edi + 0x14], 0x10
jne 0x1002841b
mov ecx, edi
call fcn.1001c7b7
jmp 0x10028462
mov ecx, edi
push esi
call fcn.1001c561
jmp 0x10028462
cmp dword [edi + 0x14], 0xffffffff
je 0x1001d210
test byte [edi + 0x14], 0x10
mov ecx, edi
jne 0x1002841d
jmp 0x10028414
push esi
mov ecx, edi
call fcn.1001c561
test byte [edi + 0x14], 0x10
mov esi, eax
je 0x1001d215
cmp dword [edi + 0x14], 0xffffffff
je 0x1001d215
mov edx, dword [edi + 4]
mov ecx, dword [edi + 0xc]
call fcn.1001c62c
mov esi, eax
jmp 0x1001d215
Function at 0x10011355
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x100418f8
mov ebx, edx
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [0x1004114c]
xor edi, edi
push ebx
push dword [ebp - 4]
push 0x100113dc
push 9
push 0x10004834
call sym.IEShims.dll_IEShims_Uninitialize
add esp, 0x14
test esi, esi
je 0x100113a9
mov eax, dword [ebp - 4]
cmp dword [esi], eax
jne 0x100113a2
cmp dword [esi + 4], ebx
je 0x10011429
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x10011395
push edi
push 0x10011414
push 9
push 0x10004834
call sym.IEShims.dll_IEShims_Uninitialize
add esp, 0x10
test edi, edi
je 0x10013575
push 0x100418f8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [esi + 8]
jmp 0x100113a9
cmp dword [ebp + 8], 0
je 0x100113c6
jmp 0x10028a76
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
int3

Function at 0x10011cf7
Capabilities:
Get thread local storage value

Disassembly:
push 8
mov eax, 0x10024efd
call fcn.1000f853
mov ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
push edi
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.10005293
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebx]
mov eax, dword [eax + 8]
mov dword [ebp - 0x14], eax
cmp eax, fcn.100108d0
jne 0x1001d06e
mov ecx, ebx
call fcn.100108d0
cmp eax, 0xffffffff
je 0x10011d6e
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x10011d6e
mov dword [ebp - 4], 2
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov dword [ebp - 0x14], eax
cmp eax, fcn.10011d90
jne 0x1001d090
mov ecx, ebx
call fcn.10011d90
push eax
mov ecx, esi
call fcn.10005178
mov eax, dword [esi]
cmp dword [eax - 0xc], edi
jle 0x10011d7f
mov eax, edi
call fcn.10002980
ret 4
mov edi, 0xc0000001
jmp 0x10011d75
mov ecx, eax
mov esi, esp
call dword [0x10042294]
mov ecx, ebx
call dword [ebp - 0x14]
cmp esi, esp
je 0x1001d088
mov ecx, 4
int 0x29
mov esi, dword [ebp + 8]
jmp 0x10011d33
mov ecx, eax
mov esi, esp
call dword [0x10042294]
mov ecx, ebx
call dword [ebp - 0x14]
cmp esi, esp
je 0x1001d0aa
mov ecx, 4
int 0x29
mov esi, dword [ebp + 8]
jmp 0x10011d66

Function at 0x1001a749
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x10
push 0x1001a7a0
call fcn.100098c4
mov edi, edx
mov esi, ecx
cmp dword [esi], edi
je 0x1001a793
lea eax, [ebp - 0x1c]
push eax
push 0x40
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1001a793
and dword [ebp - 4], 0
mov dword [esi], edi
cmp dword [ebp - 0x1c], 0x40
je 0x1001a78c
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x1c]
push 4
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 4], 0xfffffffe
call fcn.10001a6d
ret
Function at 0x1001b230
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push 0x18
mov eax, 0x100256aa
call fcn.1000f853
mov edi, ecx
xor esi, esi
mov dword [ebp - 4], esi
mov eax, dword [0x10041c78]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
push dword [ebp + 8]
inc ebx
mov byte [ebp - 4], bl
call fcn.10008ae0
test eax, eax
je 0x10028b3a
push 0x100418c0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 2
inc dword [edi + 8]
mov eax, dword [edi + 8]
cmp eax, dword [0x100411d8]
jle 0x10028ab3
mov eax, dword [0x10041910]
test eax, eax
je 0x1001c6c1
push esi
push esi
push esi
push esi
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1001c6c1
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push eax
call fcn.10005178
mov eax, dword [edi + 8]
cmp eax, dword [0x100411d8]
jle 0x1001b35c
cmp eax, 0x10
jg 0x1001b35c
push 8
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x1001c6d1
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.10005747
mov byte [ebp - 4], 2
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], esi
test ebx, ebx
je 0x1001b337
push 8
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 4
test eax, eax
je 0x1001b331
push dword [ebp + 0xc]
mov ecx, eax
call fcn.10005747
mov esi, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], esi
test eax, eax
je 0x10028b13
test ebx, ebx
je 0x1001b34b
test esi, esi
je 0x10028b13
lea eax, [ebp - 0x24]
push eax
call fcn.1001b37e
test eax, eax
je 0x1001d533
push 0x100418c0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea ecx, [ebp - 0x1c]
call fcn.10003610
mov eax, ebx
call fcn.10002980
ret 8
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.1001100c
jmp 0x1001d510
mov eax, esi
jmp 0x1001b2fb
test eax, eax
js 0x1001d52c
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
call fcn.1001c6dd
test al, al
jne 0x10028af3
jmp 0x1001b2b8
mov ebx, esi
jmp 0x1001b2b8
mov esi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
jmp 0x10028b13
mov edx, dword [0x100411d0]
lea ecx, [ebp - 0x1c]
mov edx, dword [edx + eax*8 - 8]
call fcn.1001c6dd
test al, al
je 0x1001b289
mov eax, dword [edi + 8]
mov ecx, dword [0x100411d0]
mov eax, dword [ecx + eax*8 - 4]
test eax, eax
je 0x10028aec
mov ecx, dword [ebp + 0xc]
push eax
call fcn.10005178
jmp 0x1001b35c
mov ebx, esi
jmp 0x1001b35c
mov eax, dword [0x10041910]
test eax, eax
je 0x1001b2b8
push esi
push esi
push esi
push esi
push dword [ebp - 0x1c]
push eax
call dword [sym.imp.api_ms_win_downlevel_advapi32_l1_1_0.dll_RegSetValueExW]
jmp 0x1001b2b8
dec dword [edi + 8]
test eax, eax
je 0x10028b25
push ecx
mov ecx, eax
call fcn.1003a3a8
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x1001b35c
push ecx
mov ecx, esi
call fcn.1003a3a8
jmp 0x1001b35c
lea ecx, [ebp - 0x1c]
call fcn.10003610
jmp 0x10028b4a
xor eax, eax
jmp 0x1001b371
Function at 0x1001c561
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x20
mov eax, 0x10026801
call fcn.1000f853
mov dword [ebp - 0x14], ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov esi, ecx
mov eax, dword [0x10041c78]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
mov byte [ebp - 4], 2
mov eax, dword [ebx]
mov eax, dword [eax - 0xc]
mov dword [ebp - 0x18], eax
cmp edi, eax
jge 0x1001c603
mov eax, dword [ebx]
movzx ecx, word [eax + edi*2]
call fcn.10004d9f
test eax, eax
jne 0x1001c5b2
mov eax, dword [ebp - 0x18]
inc edi
jmp 0x1001c599
lea eax, [ebp - 0x20]
mov ecx, ebx
push eax
push edi
call fcn.10006788
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.10011d9b
mov esi, eax
test esi, esi
js 0x1001c603
push dword [ebp - 0x20]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001c5eb
test al, 0x10
je 0x1001c5eb
mov esi, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
mov edx, esi
call fcn.1001c62c
mov esi, eax
test esi, esi
jns 0x1001c5ac
cmp esi, 0xc0000035
je 0x1001c5ac
lea ecx, [ebp - 0x28]
call fcn.10003610
lea ecx, [ebp - 0x20]
call fcn.10003610
lea eax, [esi + 0x3fffffcb]
neg eax
sbb eax, eax
and eax, esi
call fcn.10002980
ret 4