joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003e83
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x1004e00c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x10003f94
push ebx
push edi
push 0x2000000
push 3
push edi
push edi
push 0x60000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10003ece
xor eax, eax
jmp 0x10003f93
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push edi
push edi
push 4
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_GetSecurityInfo]
xor ecx, ecx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push 0x221
push 0x20
push 2
pop esi
push esi
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], ecx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14]
xor ecx, ecx
mov dword [ebp - 0x20], eax
inc ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x38], ecx
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x10000000
push eax
xor edi, edi
mov dword [ebp - 0x34], 3
push ecx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
cmp dword [ebp - 0x10], edi
je 0x10003f6b
push edi
push dword [ebp - 0x10]
push edi
push edi
push 4
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x1c]
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1000a179
mov esp, ebp
pop ebp
ret

Function at 0x10003fa4
Capabilities:
Enumerate processes

Disassembly:
push 0x248
mov eax, 0x1003b922
call fcn.1000ace4
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
push ebx
push 2
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004034
lea eax, [ebp - 0x254]
mov dword [ebp - 0x254], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x10003fff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10004034
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x28]
call fcn.10006c7d
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1000648e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x10003fff
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10006b0c
mov al, bl
call fcn.1000ac9f
ret
Function at 0x100050f7
Capabilities:
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov byte [0x10050a9b], 1
mov esi, ecx
cmp dword [0x10050ca8], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x10005142
push 0x1388
push dword [0x10050ca8]
call ebx
test eax, eax
je 0x10005138
push 0
push dword [0x10050ca8]
call edi
mov dword [0x10050ca8], 0
cmp dword [0x10050cac], 0
je 0x10005170
push 0x898
push dword [0x10050cac]
call ebx
test eax, eax
je 0x10005166
push 0
push dword [0x10050cac]
call edi
mov dword [0x10050cac], 0
cmp dword [0x10050cb0], 0
je 0x1000519e
push 0xc8
push dword [0x10050cb0]
call ebx
test eax, eax
je 0x10005194
push 0
push dword [0x10050cb0]
call edi
mov dword [0x10050cb0], 0
mov eax, dword [esi + 0x416c]
test eax, eax
je 0x100051c5
push 0xc8
push eax
call ebx
test eax, eax
je 0x100051be
push 0
push dword [esi + 0x416c]
call edi
and dword [esi + 0x416c], 0
cmp dword [0x10050a9c], 0
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x10005213
lea eax, [ebp - 4]
push eax
push dword [0x10050a9c]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x100051f7
cmp dword [ebp - 4], 0x103
jne 0x10005201
push 0
push dword [0x10050a9c]
call ebx
push dword [0x10050a9c]
call edi
mov dword [0x10050a9c], 0
cmp dword [0x10050ca0], 0
je 0x10005255
lea eax, [ebp - 8]
push eax
push dword [0x10050ca0]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x10005239
cmp dword [ebp - 8], 0x103
jne 0x10005243
push 0
push dword [0x10050ca0]
call ebx
push dword [0x10050ca0]
call edi
xor ebx, ebx
mov dword [0x10050ca0], ebx
jmp 0x10005257
xor ebx, ebx
cmp dword [esi + 8], 0
je 0x10005265
push dword [esi + 8]
call edi
mov dword [esi + 8], ebx
cmp dword [esi + 0xc], 0
je 0x10005273
push dword [esi + 0xc]
call edi
mov dword [esi + 0xc], ebx
cmp dword [esi + 0x10], 0
je 0x10005281
push dword [esi + 0x10]
call edi
mov dword [esi + 0x10], ebx
cmp dword [0x10050ca4], ebx
je 0x10005297
push dword [0x10050ca4]
call edi
mov dword [0x10050ca4], ebx
xor edi, edi
lea ecx, [esi + 0x419c]
push ebx
inc edi
push edi
call fcn.10006b0c
lea ecx, [esi + 0x4198]
call fcn.10008ac5
push ebx
push edi
lea ecx, [esi + 0x4180]
call fcn.10006b0c
lea ecx, [esi + 0x413c]
call fcn.10006517
lea ecx, [esi + 0x4130]
call fcn.10006517
lea ecx, [esi + 0x4124]
call fcn.10006517
lea ecx, [esi + 0x40e0]
call fcn.10002ef7
lea ecx, [esi + 0x40d0]
call fcn.10006275
push ebx
push edi
lea ecx, [esi + 0x40a8]
call fcn.10006b0c
lea ecx, [esi + 0x4090]
call fcn.100063ab
lea ecx, [esi + 0x407c]
call fcn.100063ab
lea ecx, [esi + 0x60]
call fcn.10006517
lea ecx, [esi + 0x54]
call fcn.10006517
lea ecx, [esi + 0x48]
call fcn.10006517
push ebx
push edi
lea ecx, [esi + 0x30]
call fcn.10006b0c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10005342
Capabilities:
Check if file exists
Read file on windows

Disassembly:
push 0x16c
mov eax, 0x1003bbb5
call fcn.1000ace4
mov esi, ecx
push 0x100
xor ebx, ebx
lea eax, [ebp - 0x114]
push ebx
push eax
call fcn.10022700
add esp, 0xc
mov dword [ebp - 0x178], ebx
add esi, 0x414c
mov dword [ebp - 0x130], 7
xor eax, eax
mov dword [ebp - 0x134], ebx
lea ecx, [ebp - 0x144]
mov word [ebp - 0x144], ax
push 0x10050aa0
mov byte [esi], bl
call fcn.10006c7d
push str.Databasedaily.cld
lea edx, [ebp - 0x144]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x12c]
call fcn.100078e2
pop ecx
xor edi, edi
mov byte [ebp - 4], 2
push ebx
inc edi
lea ecx, [ebp - 0x144]
push edi
call fcn.10006b0c
cmp dword [ebp - 0x118], 8
lea eax, [ebp - 0x12c]
cmovae eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10005456
push 0x10050aa0
lea ecx, [ebp - 0x15c]
mov dword [ebp - 0x148], 7
mov dword [ebp - 0x14c], ebx
mov word [ebp - 0x15c], ax
call fcn.10006c7d
push str.Databasedaily.cvd
lea edx, [ebp - 0x15c]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x174]
call fcn.100078e2
pop ecx
push eax
lea ecx, [ebp - 0x12c]
call fcn.10006619
push ebx
push edi
lea ecx, [ebp - 0x174]
call fcn.10006b0c
push ebx
push edi
lea ecx, [ebp - 0x15c]
call fcn.10006b0c
cmp dword [ebp - 0x118], 8
lea eax, [ebp - 0x12c]
push ebx
cmovae eax, dword [ebp - 0x12c]
push 0x80
push 3
push ebx
push edi
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x100054ce
push ebx
lea eax, [ebp - 0x178]
push eax
push 0x100
lea eax, [ebp - 0x114]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xf1]
push 0x10046070
push eax
call fcn.10027de2
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x100054ce
sub esi, ecx
mov al, byte [ecx]
mov byte [esi + ecx], al
inc ecx
test al, al
jne 0x100054c4
push ebx
push 1
lea ecx, [ebp - 0x12c]
call fcn.10006b0c
call fcn.1000ac9f
ret
Function at 0x100054e2
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x10050cb4]
xor ebx, ebx
push edi
push 0x44
push ebx
lea eax, [esi + 0x40e0]
mov dword [ebp - 0xc], esi
push eax
call fcn.10022700
push 0x10050cb8
call fcn.100011cf
add esp, 0x10
mov byte [esi + 0x40dd], bl
lea ecx, [esi + 0x407c]
mov byte [esi + 0x40da], bl
mov byte [esi + 0x29], bl
call fcn.100068e0
lea ecx, [esi + 0x4130]
mov dword [esi + 0x40a4], ebx
mov dword [esi + 0x416c], ebx
call fcn.10006467
lea eax, [esi + 0x413c]
mov ecx, eax
mov dword [ebp - 8], eax
call fcn.10006467
mov edi, dword [ebp + 8]
mov byte [esi + 0x40dc], 1
push 0x18
pop ecx
mov eax, dword [edi + 4]
sub eax, dword [edi]
cdq
idiv ecx
test eax, eax
je 0x10005592
mov esi, ebx
mov eax, dword [edi]
mov ecx, dword [ebp - 8]
add eax, ebx
push eax
call fcn.1000648e
mov eax, dword [edi + 4]
inc esi
sub eax, dword [edi]
push 0x18
pop ecx
cdq
add ebx, ecx
idiv ecx
cmp esi, eax
jb 0x1000556e
mov esi, dword [ebp - 0xc]
xor ebx, ebx
mov eax, dword [edi + 4]
sub eax, dword [edi]
cdq
idiv ecx
push ebx
push ebx
push esi
push 0x100021f6
push ebx
push ebx
mov dword [esi + 0x40fc], eax
call fcn.10027ad1
push 0x10050cb8
mov dword [esi + 0x416c], eax
call fcn.100011ee
add esp, 0x1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x100055cb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x10050cb4]
xor ebx, ebx
push 0x44
push ebx
mov dword [ebp - 0xc], esi
lea eax, [esi + 0x40e0]
push eax
call fcn.10022700
push 0x10050cb8
call fcn.100011cf
add esp, 0x10
mov byte [esi + 0x40dd], bl
lea ecx, [esi + 0x407c]
mov byte [esi + 0x40da], bl
mov byte [esi + 0x29], bl
call fcn.100068e0
lea eax, [esi + 0x4130]
mov dword [esi + 0x40a4], ebx
mov ecx, eax
mov dword [esi + 0x416c], ebx
mov dword [ebp - 8], eax
call fcn.10006467
lea ecx, [esi + 0x413c]
call fcn.10006467
mov ebx, dword [ebp + 8]
mov byte [esi + 0x40dc], 1
push 0x18
pop ecx
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
cdq
idiv ecx
test eax, eax
je 0x1000567c
push edi
xor edi, edi
mov esi, edi
mov eax, dword [ebx]
mov ecx, dword [ebp - 8]
add eax, edi
push eax
call fcn.1000648e
mov eax, dword [ebx + 4]
inc esi
sub eax, dword [ebx]
push 0x18
pop ecx
cdq
add edi, ecx
idiv ecx
cmp esi, eax
jb 0x10005659
mov esi, dword [ebp - 0xc]
pop edi
xor eax, eax
push eax
push eax
push esi
push 0x100021f6
push eax
push eax
call fcn.10027ad1
push 0x10050cb8
mov dword [esi + 0x416c], eax
call fcn.100011ee
add esp, 0x1c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10006095
Capabilities:
Check if file exists
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
cmp byte [0x10050a9a], 0
push esi
push edi
mov esi, ecx
je 0x10006115
push ecx
push ecx
call fcn.10005c14
test eax, eax
je 0x10006115
push ecx
mov ecx, esi
call fcn.1000611b
test eax, eax
je 0x10006115
push str.GlobalPCAPDBUpdaterMutex
xor edi, edi
push edi
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x100060df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10006115
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10006115
cmp dword [0x10050ca8], edi
je 0x100060fe
push dword [0x10050ca8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push edi
push esi
push 0x100033ae
push edi
push edi
call fcn.10027ad1
add esp, 0x18
mov dword [0x10050ca8], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x1000611b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1004e00c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
push esi
push edi
lea esi, [ebx + 0x4178]
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x10006182
lea eax, [ebx + 0x419c]
cmp dword [eax + 0x14], 8
jb 0x1000614b
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10006182
push 0
lea eax, [ebp - 0x24]
push eax
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x20], 0
lea edi, [ebp - 0x16]
and dword [ebp - 0x1c], 0
xor eax, eax
mov word [ebp - 0x18], ax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
or edx, dword [ebp - 0x20]
and ecx, 0x7fffffff
mov edi, edx
mov eax, ecx
sub edi, dword [esi]
sbb eax, dword [esi + 4]
cmp eax, 0xc9
jl 0x10006226
jg 0x100061d8
cmp edi, 0x2b025680
jb 0x10006226
lea eax, [ebx + 0x419c]
mov dword [esi], edx
mov dword [esi + 4], ecx
cmp dword [eax + 0x14], 8
jb 0x100061eb
mov eax, dword [eax]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10006221
push ebx
lea ecx, [ebp - 0x24]
push ecx
push 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
jmp 0x10006228
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000a179
mov esp, ebp
pop ebp
ret 4
Function at 0x10008622
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000867d
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000866e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x1000866a
cmp esi, ecx
jae 0x1000866e
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x10008658
cmp esi, ecx
jb 0x10008672
xor eax, eax
jmp 0x1000867c
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x1000bde8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1002fa90
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1002f750
Function at 0x100010e1
Capabilities:
Read file via mapping

Disassembly:
jmp 0x1002e775
push ebp
lea ebp, [esp - 0xbc]
sub esp, 0x13c
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0xb8], eax
mov eax, dword [ebp + 0xc4]
push 0x8000100
push 0x104
lea ecx, [ebp - 0x4c]
push ecx
push eax
call sym.CoreFoundation.dll_CFStringGetCString
add esp, 0x10
test al, al
jne 0x1002e7b8
xor eax, eax
jmp 0x1002e8b9
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x4c]
push eax
call sym.CoreFoundation.dll__NS_stat
pop ecx
pop ecx
test eax, eax
jne 0x1002e7b1
push edi
xor edi, edi
push edi
lea eax, [ebp - 0x4c]
push 0x8080
push eax
call sym.CoreFoundation.dll__NS_open
add esp, 0xc
cmp eax, edi
jl 0x1002e7f3
push eax
call dword [0x10180ef8]
pop ecx
mov dword [ebp - 0x80], eax
cmp eax, edi
jne 0x1002e7fa
xor eax, eax
jmp 0x1002e8b8
push ebx
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
cmp ebx, edi
jne 0x1002e815
xor eax, eax
jmp 0x1002e8b7
push esi
push dword [ebp - 0x68]
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
xor eax, eax
cmp esi, edi
je 0x1002e8b6
mov ecx, dword [esi]
cmp ecx, 0xbabeface
jne 0x1002e85f
xor edi, edi
inc edi
push 0x42c
push edi
call dword [0x10180ec4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x40c], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 0x410], ecx
jmp 0x1002e889
cmp ecx, 0xcafebabe
je 0x1002e86f
cmp ecx, 0xddba11
jne 0x1002e8b6
xor edi, edi
inc edi
push 0x42c
push edi
call dword [0x10180ec4]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x68]
mov dword [eax + 0x40c], ecx
mov ecx, dword [esi + 0x10]
mov dword [eax + 0x414], ecx
mov ecx, dword [esi + 8]
mov dword [eax + 0x418], ecx
mov ecx, dword [ebp - 0x80]
mov dword [eax + 0x424], ebx
mov dword [eax + 0x428], ecx
mov dword [eax + 0x420], edi
mov dword [eax + 0x408], esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp + 0xb8]
xor ecx, ebp
call fcn.10128382
add ebp, 0xbc
leave
ret
Function at 0x100018a7
Capabilities:
Get disk information

Disassembly:
jmp 0x1006685e
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
mov eax, dword [ebp + 0x1b0]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x100669f3
push ebx
push eax
call sym.CoreFoundation.dll_CFStringGetLength
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100669f2
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call esi
mov dword [ebp - 0x6c], eax
test eax, eax
je 0x100669f1
push edi
mov edi, dword [0x10181090]
lea eax, [eax + eax + 2]
push eax
call edi
pop ecx
push eax
push dword [ebp - 0x6c]
mov dword [ebp - 0x70], eax
call esi
test eax, eax
je 0x100669e4
cmp eax, dword [ebp - 0x6c]
jg 0x100669e4
lea esi, [ebx + ebx]
lea eax, [esi + 2]
push eax
call edi
mov edi, eax
push edi
xor eax, eax
push ebx
push eax
push dword [ebp - 0x74]
call sym.CoreFoundation.dll_CFStringGetCharacters
mov ebx, dword [0x10180f80]
xor eax, eax
push edi
mov word [esi + edi], ax
call ebx
mov esi, dword [ebp - 0x70]
add esp, 0x18
and dword [ebp - 0x6c], 0
jmp 0x100669aa
push esi
call ebx
movzx eax, byte [esi]
push eax
call fcn.1000131b
pop ecx
pop ecx
test al, al
jne 0x1006699e
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
mov dword [ebp - 0x78], eax
xor eax, eax
push eax
push eax
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x208
lea eax, [ebp - 0x64]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push dword [ebp - 0x78]
test eax, eax
setne byte [ebp - 0x65]
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
cmp byte [ebp - 0x65], 0
je 0x1006699e
lea eax, [ebp - 0x64]
push eax
call ebx
lea eax, [ebp - 0x64]
push edi
push eax
call dword [0x10180fe8]
add esp, 0xc
test eax, eax
je 0x100669b6
cmp word [ebp - 0x64], 0
jne 0x1006699e
push 0
push str.NONAME
call sym.CoreFoundation.dll___CFStringMakeConstantString
pop ecx
push eax
push dword [ebp - 0x74]
call sym.CoreFoundation.dll_CFStringCompare
add esp, 0xc
test eax, eax
je 0x100669b6
push esi
call dword [0x10180ee4]
pop ecx
lea esi, [esi + eax*2 + 2]
cmp word [esi], 0
jne 0x10066913
jmp 0x100669d0
push esi
call dword [0x10180ee4]
push eax
push esi
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
add esp, 0x10
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x70]
mov esi, dword [0x10181098]
call esi
push edi
call esi
mov eax, dword [ebp - 0x6c]
pop ecx
jmp 0x100669ef
push dword [ebp - 0x70]
call dword [0x10181098]
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1a4]
xor ecx, ebp
call fcn.10128382
add ebp, 0x1a8
leave
ret
Function at 0x10001a32
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
jmp 0x100667c8
push ecx
push ebx
push edi
push dword [0x1016cf2c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, eax
push edi
push dword [0x1016cf2c]
call ebx
test edi, edi
je 0x1006683c
push ebp
mov ebp, 0x1000
cmp edi, ebp
je 0x1006683b
inc dword [edi]
push esi
lea esi, [edi + 4]
mov dword [esp + 0x10], 0x46
mov ecx, dword [esi]
test ecx, ecx
je 0x1006681b
mov eax, dword [esi + 0x118]
test eax, eax
je 0x1006681b
and dword [esi], 0
push ecx
call eax
pop ecx
add esi, 4
dec dword [esp + 0x10]
jne 0x10066804
cmp dword [edi], 3
pop esi
jne 0x1006683b
push edi
call dword [0x10181098]
pop ecx
push ebp
push dword [0x1016cf2c]
call ebx
pop ebp
pop edi
pop ebx
pop ecx
ret

Function at 0x10001f28
Capabilities:
Print debug messages

Disassembly:
jmp 0x100b702d
push ebp
push esi
mov esi, eax
push edi
test esi, esi
je 0x100b6f6a
push esi
call sym.CoreFoundation.dll_CFGetTypeID
pop ecx
mov edi, eax
call sym.CoreFoundation.dll_CFStringGetTypeID
cmp edi, eax
jne 0x100b6f62
push 0
push esi
call fcn.10002e41
mov ebp, eax
pop ecx
pop ecx
test ebp, ebp
jne 0x100b6f7e
push esi
call sym.CoreFoundation.dll_CFCopyDescription
jmp 0x100b6f7b
push 0x1013e5b4
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
call sym.CoreFoundation.dll_CFRetain
pop ecx
pop ecx
mov ebp, eax
push ebx
push ebp
call sym.CoreFoundation.dll_CFStringGetLength
push ebp
call sym.CoreFoundation.dll_CFStringGetCharactersPtr
mov esi, eax
pop ecx
xor bl, bl
pop ecx
test esi, esi
jne 0x100b6fd9
push ebp
call sym.CoreFoundation.dll_CFStringGetLength
mov edi, eax
mov dword [esp], 0x100
push edi
call sym.CoreFoundation.dll_CFStringGetMaximumSizeForEncoding
lea eax, [eax*4 + 8]
push eax
call dword [0x10181090]
mov esi, eax
push esi
xor eax, eax
push edi
push eax
push ebp
call sym.CoreFoundation.dll_CFStringGetCharacters
add esp, 0x1c
push 0xa
lea eax, [esi + edi*2]
pop ecx
mov word [eax], cx
xor ecx, ecx
mov word [eax + 2], cx
inc bl
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
test bl, bl
pop ebx
je 0x100b6fed
push esi
call dword [0x10181098]
pop ecx
test ebp, ebp
je 0x100b6ff8
push ebp
call sym.CoreFoundation.dll_CFRelease
pop ecx
pop edi
pop esi
pop ebp
ret
call dword [0x10180f08]
mov eax, dword [esp + 4]
jmp 0x100b6f37
Function at 0x100021f8
Capabilities:
Get session user name

Disassembly:
jmp 0x10065352
push ebp
lea ebp, [esp - 0x7a8]
sub esp, 0x828
mov eax, dword [0x10178af8]
xor eax, ebp
mov dword [ebp + 0x7a4], eax
xor eax, eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x80], 0x410
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x100653a2
mov eax, dword [ebp - 0x80]
dec eax
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCharacters
jmp 0x100653c2
push str.USERNAME
call fcn.10001023
pop ecx
test eax, eax
je 0x100653c9
push 0x8000100
push eax
push dword [sym.CoreFoundation.dll_kCFAllocatorSystemDefault]
call sym.CoreFoundation.dll_CFStringCreateWithCString
add esp, 0xc
test eax, eax
jne 0x100653db
push 0x1012c876
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
call sym.CoreFoundation.dll_CFRetain
pop ecx
pop ecx
mov ecx, dword [ebp + 0x7a4]
xor ecx, ebp
call fcn.10128382
add ebp, 0x7a8
leave
ret

Function at 0x1000224d
Capabilities:
Get common file path

Disassembly:
jmp 0x10066754
jmp fcn.10066581
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x10066767
call sym.CoreFoundation.dll_CFCopyUserName
mov esi, eax
jmp 0x10066769
xor esi, esi
test edi, edi
je 0x1006679f
push esi
push edi
call sym.CoreFoundation.dll_CFEqual
pop ecx
pop ecx
test al, al
jne 0x1006679f
push str.CFCopyHomeDirectoryURLForUser__:_Unable_to_get_home_directory_for_other_user
call sym.CoreFoundation.dll___CFStringMakeConstantString
push eax
push 3
call sym.CoreFoundation.dll_CFLog
add esp, 0xc
test esi, esi
je 0x1006679a
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
pop edi
xor eax, eax
pop esi
ret
test esi, esi
je 0x100667aa
push esi
call sym.CoreFoundation.dll_CFRelease
pop ecx
pop edi
pop esi
jmp 0x100023ec

Function at 0x100022b1
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
jmp 0x100be591
jo 0x100be5ed
add byte [eax], al
lea esi, [edx + ebp*8]
invalid