joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42bf37
Capabilities:
Write file on windows

Disassembly:
push 0x68
mov eax, 0x452e03
call fcn.00433618
mov dword [ebp - 0x1c], ecx
xor eax, eax
lea edi, [ebp - 0x73]
stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x30
stosb byte es:[edi], al
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00435650
mov eax, dword [ebp + 0x18]
mov esi, str.kdown_
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x74]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
sar ecx, 2
mov ebx, ecx
movsb byte es:[edi], byte [esi]
imul ebx, ebx, 0x28
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp + 0x10]
add ebx, 0x38
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x44], ecx
call fcn.0042c7fe
push ebx
mov edi, eax
push 0
push edi
mov dword [ebp + 0xc], edi
call fcn.00435650
add esp, 0x1c
lea esi, [ebp - 0x74]
push 0xe
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0xc]
xor edx, edx
lea eax, [edi + 0x38]
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sar eax, 2
test eax, eax
je 0x42bfff
mov ebx, dword [ebp + 0x14]
mov esi, dword [esi + edx*4]
mov eax, dword [ebp + 0x18]
push 0xa
mov edi, ebx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
add ebx, 0x28
inc edx
sar eax, 2
cmp edx, eax
jb 0x42bfda
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp + 0xc]
push 0x46d258
lea ecx, [ebp + 0x14]
call fcn.00404e8e
and dword [ebp - 4], 0
push str..fd.cfg
lea ecx, [ebp + 0x18]
call fcn.00429ca3
mov edx, dword [ebp - 0x1c]
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.00429ce4
pop ecx
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 2
call fcn.00410297
mov ecx, dword [ebp - 0x20]
lea ecx, [ecx - 0x10]
call fcn.0040390b
mov byte [ebp - 4], 0
mov ecx, dword [ebp + 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040390b
mov esi, dword [ebp + 0x14]
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
xorps xmm0, xmm0
push esi
lea ecx, [ebp - 0x2c]
movlpd qword [ebp - 0x34], xmm0
call fcn.004155a0
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x3c]
call fcn.0042bb6a
test eax, eax
je 0x42c0ae
cmp dword [ebp - 0x38], 0
je 0x42c08f
mov dword [ebp - 0x14], ebx
jmp 0x42c0a9
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
push edi
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x42c0ae
cmp dword [ebp - 0x14], ebx
jne 0x42c0ae
xor edi, edi
inc edi
jmp 0x42c0b0
xor edi, edi
push dword [ebp + 0xc]
call fcn.0042db6e
pop ecx
lea ecx, [ebp - 0x3c]
call fcn.0042bc87
mov ecx, dword [ebp - 0x2c]
add ecx, 0xfffffff0
call fcn.0040390b
lea ecx, [esi - 0x10]
call fcn.0040390b
mov eax, edi
call fcn.004335e6
ret 0x14
Function at 0x42c0de
Capabilities:
Delete file

Disassembly:
push 0xc
mov eax, 0x452e36
call fcn.00433618
mov esi, ecx
push 0x46d258
lea ecx, [ebp - 0x14]
call fcn.00404e8e
and dword [ebp - 4], 0
push str..fd.cfg
lea ecx, [ebp - 0x10]
call fcn.00429ca3
lea eax, [ebp - 0x10]
push eax
mov edx, esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00429ce4
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00410297
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.0040390b
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.0040390b
mov esi, dword [ebp - 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [esi - 0x10]
call fcn.0040390b
call fcn.004335e6
ret
Function at 0x44221e
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46d978]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004358b0
mov dword [ebp - 0x14], eax
cmp dword [0x471288], edi
jne 0x44230f
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x44229c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4423ef
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4423ef
push 0x45961c
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4423ef
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x471288], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x47128c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x471290], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x471298], eax
test eax, eax
je 0x44230c
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x471294], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x442334
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x442327
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x442349
push 4
pop eax
jmp 0x4423f1
cmp dword [ebp - 0x14], edi
je 0x442349
push dword [0x471288]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x44232e
mov eax, dword [0x471294]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4423a7
cmp dword [0x471298], esi
je 0x4423a7
push eax
call ebx
push dword [0x471298]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4423a7
test eax, eax
je 0x4423a7
call ecx
test eax, eax
je 0x44239c
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x44239c
test byte [ebp - 8], 1
jne 0x4423a7
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4423d7
mov eax, dword [0x47128c]
cmp eax, esi
je 0x4423d4
push eax
call ebx
test eax, eax
je 0x4423d4
call eax
mov edi, eax
test edi, edi
je 0x4423d4
mov eax, dword [0x471290]
cmp eax, esi
je 0x4423d4
push eax
call ebx
test eax, eax
je 0x4423d4
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x471288]
call ebx
test eax, eax
je 0x4423ef
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4423f1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d3d2
leave
ret
Function at 0x44484b
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00439729
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x444883
xor eax, eax
jmp 0x4448af
cmp esi, dword [ebp - 4]
je 0x4448ac
cmp dword [ebp + 0xc], 0
je 0x4448ac
push dword [edi + 0x9c]
call fcn.00444459
push dword [edi + 0x9c]
mov esi, eax
call fcn.00435b66
pop ecx
pop ecx
cmp esi, eax
je 0x44487f
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x44a400
Capabilities:
Read file on windows

Disassembly:
cmp dword [esi + 0x3c], 0
jne 0x44a453
cmp dword [esi + 4], 0
jne 0x44a45c
call fcn.00434ca6
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.00431087
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x44a457
mov edx, dword [esi + 0x40]
push edx
mov dword [esi + 0x3c], 1
call fcn.0044ee40
add esp, 4
test eax, eax
je 0x44a453
mov dword [esi + 0x38], 0xffffffff
or eax, 0xffffffff
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi]
dec dword [esi + 4]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
movzx eax, cl
ret

Function at 0x44a470
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
cmp edi, 2
jae 0x44a4e5
test edi, edi
je 0x44a489
mov eax, dword [esi]
mov ecx, dword [esi + 0x44]
mov dl, byte [eax]
mov byte [ecx], dl
call fcn.00434ca6
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, edi
push eax
mov eax, dword [esi + 0x44]
mov edx, 0x4000
sar edx, cl
add eax, edi
push edx
push 1
push eax
call fcn.00431087
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x44a4cf
mov ecx, dword [esi + 0x40]
push ecx
call fcn.0044ee40
add esp, 4
test eax, eax
je 0x44a4cf
mov dword [esi + 0x38], 0xffffffff
add dword [esi + 4], edi
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x44]
mov dword [esi], edx
cmp eax, 2
jae 0x44a4e5
pop edi
mov dword [esi + 0x58], eax
pop esi
ret
mov eax, dword [esi]
cmp byte [eax], 0x1f
jne 0x44a5be
cmp byte [eax + 1], 0x8b
jne 0x44a5be
add dword [esi + 4], 0xfffffffe
add eax, 2
push ebx
mov dword [esi], eax
call fcn.0044a400
mov edi, eax
call fcn.0044a400
mov ebx, eax
cmp edi, 8
jne 0x44a5b3
test bl, 0xe0
jne 0x44a5b3
mov edi, 6
lea esp, [esp]
call fcn.0044a400
sub edi, 1
jne 0x44a530
test bl, 4
je 0x44a561
call fcn.0044a400
mov edi, eax
call fcn.0044a400
shl eax, 8
add edi, eax
mov eax, edi
dec edi
test eax, eax
je 0x44a561
call fcn.0044a400
cmp eax, 0xffffffff
jne 0x44a550
test bl, 8
je 0x44a574
call fcn.0044a400
test eax, eax
je 0x44a574
cmp eax, 0xffffffff
jne 0x44a566
test bl, 0x10
je 0x44a58e
lea esp, [esp]
call fcn.0044a400
test eax, eax
je 0x44a58e
cmp eax, 0xffffffff
jne 0x44a580
test bl, 2
je 0x44a5a2
mov edi, 2
call fcn.0044a400
sub edi, 1
jne 0x44a598
mov ecx, dword [esi + 0x3c]
neg ecx
sbb ecx, ecx
pop ebx
and ecx, 0xfffffffd
pop edi
mov dword [esi + 0x38], ecx
pop esi
ret
pop ebx
pop edi
mov dword [esi + 0x38], 0xfffffffd
pop esi
ret
pop edi
mov dword [esi + 0x58], 1
pop esi
ret
Function at 0x44a680
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x44a72b
cmp byte [esi + 0x5c], 0x77
jne 0x44a72b
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
mov dword [esi], ebp
mov dword [esi + 4], edi
test edi, edi
je 0x44a711
lea ebx, [ebx]
cmp dword [esi + 0x10], 0
jne 0x44a6da
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.0042f436
add esp, 0x10
cmp eax, 0x4000
jne 0x44a70a
mov dword [esi + 0x10], eax
mov edx, dword [esi + 4]
mov eax, dword [esi + 0x10]
add dword [esi + 0x64], edx
add dword [esi + 0x68], eax
push 0
push esi
call fcn.0044ba90
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
sub dword [esi + 0x64], ecx
sub dword [esi + 0x68], edx
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x44a711
test ecx, ecx
jne 0x44a6b0
jmp 0x44a711
mov dword [esi + 0x38], 0xffffffff
mov eax, dword [esi + 0x4c]
push edi
push ebp
push eax
call fcn.0044b9f0
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
sub eax, dword [esi + 4]
pop edi
pop ebp
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x44a740
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x44a7f4
cmp byte [esi + 0x5c], 0x77
jne 0x44a7f4
mov dword [esi + 4], ebx
push edi
lea esp, [esp]
mov edi, 0x4000
sub edi, dword [esi + 0x10]
je 0x44a78e
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.0042f436
add esp, 0x10
cmp eax, edi
jne 0x44a7ea
mov edx, dword [esi + 0x48]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x4000
test ebx, ebx
jne 0x44a7da
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x10]
add dword [esi + 0x68], eax
push ecx
push esi
call fcn.0044ba90
mov ecx, dword [esi + 0x10]
sub dword [esi + 0x68], ecx
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x44a7bb
cmp eax, 0xfffffffb
jne 0x44a7bb
mov dword [esi + 0x38], edi
test ecx, ecx
jne 0x44a7c9
cmp dword [esi + 0x38], 1
je 0x44a7c9
xor ebx, ebx
jmp 0x44a7ce
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x44a760
cmp eax, 1
je 0x44a760
mov esi, dword [esi + 0x38]
mov eax, esi
dec eax
neg eax
sbb eax, eax
pop edi
and eax, esi
pop esi
pop ebx
ret
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x100011d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x100011f4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
push eax
push eax
push eax
push 0x100016f3
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor eax, eax
inc eax
pop ebp
ret 0xc

Function at 0x100011fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x1009de80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
push edi
mov dword [ebp - 8], ebx
mov edi, ebx
mov dword [ebp - 8], ebx
xor eax, eax
push 0x2489
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebx], edi
mov dword [ebx + 4], edi
mov dword [ebx + 8], edi
call fcn.10001bcf
mov esi, eax
mov dword [esp], 0x2489
push edi
mov dword [ebx], esi
push esi
lea eax, [esi + 0x2489]
mov dword [ebx + 8], eax
call fcn.10051b60
lea eax, [esi + 0x2489]
add esp, 0xc
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 7
jbe 0x10001266
mov eax, dword [eax]
push edi
push 0x80
push 3
push edi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
mov esi, eax
push 0x737e9
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 8]
push eax
push 0x2489
push dword [ebx]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100503ce
leave
ret
Function at 0x10001c20
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
mov edi, ecx
lea ebp, [edi + 0x84]
push ebp
call esi
lea eax, [edi + 0x9c]
push eax
call esi
lea eax, [edi + 0xbc]
push eax
call esi
lea eax, [edi + 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeConditionVariable]
lea eax, [edi + 0xd8]
push eax
call esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [edi + 0xb8], eax
lea eax, [edi + 0x7c]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0xf8]
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x100]
push 0
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x110]
push 0
mov dword [eax + 4], eax
mov dword [eax], eax
lea eax, [edi + 0x118]
push 1
push 0
mov dword [eax + 4], eax
mov dword [eax], eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0xc], eax
test eax, eax
jne 0x10001cd7
xor ecx, ecx
call fcn.100063d0
push eax
push str.CreateEvent_failed:__s
push str.usbi_create_event
push 1
push 0
call fcn.10006120
mov ebx, 0xffffff9d
jmp 0x10001dbb
push ecx
mov edx, eax
mov ecx, edi
call fcn.10003630
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
add esp, 4
test ebx, ebx
js 0x10001d97
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerW]
mov dword [edi + 0x10], eax
test eax, eax
jne 0x10001d3e
xor ecx, ecx
call fcn.100063d0
push eax
push str.CreateWaitableTimer_failed:__s
push str.usbi_create_timer
push 2
push 0
call fcn.10006120
push str.timer_not_available_for_timeouts
push str.usbi_io_init
push 4
push edi
call fcn.10006120
add esp, 0x24
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
push str.using_timer_for_timeouts
push str.usbi_io_init
push 4
push edi
call fcn.10006120
mov edx, dword [edi + 0x10]
add esp, 0xc
mov ecx, edi
call fcn.10003630
mov ebx, eax
add esp, 4
test ebx, ebx
jns 0x10001d37
push dword [edi + 0x10]
call esi
test eax, eax
jne 0x10001d8d
xor ecx, ecx
call fcn.100063d0
push eax
push str.CloseHandle_failed:__s
push str.usbi_destroy_timer
push 2
push 0
call fcn.10006120
add esp, 0x14
mov edx, dword [edi + 0xc]
mov ecx, edi
call fcn.100036e0
push dword [edi + 0xc]
call esi
test eax, eax
jne 0x10001dbe
xor ecx, ecx
call fcn.100063d0
push eax
push str.CloseHandle_failed:__s
push str.usbi_destroy_event
push 2
push 0
call fcn.10006120
add esp, 0x14
mov esi, dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
push ebp
call esi
lea eax, [edi + 0x9c]
push eax
call esi
lea eax, [edi + 0xbc]
push eax
call esi
lea eax, [edi + 0xd8]
push eax
call esi
push dword [edi + 0xb8]
call dword [sym.imp.KERNEL32.dll_TlsFree]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x100064c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x1009de80]
xor eax, esp
mov dword [esp + 0x10c], eax
push ebx
push esi
push edi
push 0x104
lea eax, [esp + 0x10]
mov edi, edx
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
test edx, edx
je 0x10006554
cmp edx, 0x104
jae 0x10006554
mov ecx, edi
lea ebx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10006500
sub ecx, ebx
lea eax, [edx + 6]
add eax, ecx
cmp eax, 0x104
jb 0x1000651c
push str.program_assertion_failed___library_path_buffer_overflow
jmp 0x10006559
push edi
lea eax, [esp + 0x10]
add eax, edx
push str._s.dll
push eax
call fcn.10006390
add esp, 0xc
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.100503ce
add esp, 0x110
ret
push str.program_assertion_failed___could_not_get_system_directory
push str.load_system_library
push 1
push esi
call fcn.10006120
mov ecx, dword [esp + 0x128]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100503ce
add esp, 0x110
ret
Function at 0x100065e0
Capabilities:
Hash data using djb2

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov edx, 0x1505
mov dword [esp + 4], ebx
push esi
mov esi, ebx
test ebx, ebx
jne 0x100065fe
pop esi
xor eax, eax
pop ebx
add esp, 8
ret
movsx ecx, byte [ebx]
test ecx, ecx
je 0x10006618
mov eax, edx
lea esi, [esi + 1]
shl edx, 5
add edx, ecx
movsx ecx, byte [esi]
add edx, eax
test ecx, ecx
jne 0x10006605
push ebp
test edx, edx
mov ebp, 1
mov ecx, ebp
mov eax, 0xc0906d
cmovne ecx, edx
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3fd
push edi
push 0x1009fc08
sub ecx, eax
cmovne ebp, ecx
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x1009fbf8]
mov ecx, dword [eax + esi*8]
test ecx, ecx
je 0x10006740
lea edi, [eax + esi*8]
cmp ecx, ebp
jne 0x1000669d
mov ecx, dword [edi + 4]
mov eax, ebx
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10006690
test dl, dl
je 0x1000668c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10006690
add eax, 2
add ecx, 2
test dl, dl
jne 0x10006670
xor eax, eax
jmp 0x10006695
sbb eax, eax
or eax, 1
test eax, eax
je 0x100067a7
push dword [edi + 4]
push ebx
push str.hash_collision___s_vs__s_
push str.htab_hash
push 4
push 0
call fcn.10006120
mov eax, 0x14191f7
add esp, 0x18
mul ebp
mov eax, ebp
sub eax, edx
shr eax, 1
add eax, edx
mov edx, ebp
shr eax, 9
imul eax, eax, 0x3fb
sub edx, eax
inc edx
mov dword [esp + 0x14], edx
mov ecx, esi
sub ecx, edx
cmp esi, edx
lea eax, [ecx + 0x3fd]
cmova eax, ecx
mov esi, eax
mov edi, esi
cmp edi, ebp
je 0x1000673c
mov eax, dword [0x1009fbf8]
mov ebx, dword [eax + edi*8]
cmp ebx, ebp
jne 0x10006730
mov eax, dword [eax + edi*8 + 4]
mov ecx, dword [esp + 0x10]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10006723
test dl, dl
je 0x1000671f
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10006723
add ecx, 2
add eax, 2
test dl, dl
jne 0x10006703
xor eax, eax
jmp 0x10006728
sbb eax, eax
or eax, 1
test eax, eax
je 0x10006738
mov edx, dword [esp + 0x14]
mov esi, edi
test ebx, ebx
je 0x1000673c
jmp 0x100066d8
mov esi, edi
jmp 0x100067a7
mov ebx, dword [esp + 0x10]
cmp dword [0x1009fadc], 0x3fd
jb 0x1000676b
push 0x3fd
push str.hash_table_is_full___lu_entries_
push str.htab_hash
push 1
push 0
call fcn.10006120
add esp, 0x14
xor esi, esi
jmp 0x100067a7
push ebx
call fcn.1005efee
mov ecx, eax
add esp, 4
mov eax, dword [0x1009fbf8]
mov dword [eax + esi*8 + 4], ecx
lea eax, [eax + esi*8]
test ecx, ecx
jne 0x1000679f
push str.could_not_duplicate_string_for_hash_table
push str.htab_hash
push 1
push ecx
call fcn.10006120
add esp, 0x10
xor esi, esi
jmp 0x100067a7
inc dword [0x1009fadc]
mov dword [eax], ebp
push 0x1009fc08
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebp
mov eax, esi
pop esi
pop ebx
add esp, 8
ret
Function at 0x10006ee0
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x1009fc20]
push ebx
inc eax
xor bl, bl
mov dword [0x1009fc20], eax
push esi
mov esi, dword [esp + 0xc]
push edi
cmp eax, 1
jne 0x10007008
call fcn.10006850
mov dword [0x1009fddc], eax
test eax, eax
jne 0x10006f2a
push str.failed_to_detect_Windows_version
push str.windows_init
push 1
push esi
call fcn.10006120
add esp, 0x10
mov edi, 0xfffffff4
jmp 0x10007093
cmp eax, 4
jge 0x10006f36
push str.Windows_version_is_too_old
jmp 0x10006f10
cmp dword [0x1009fbf8], 0
je 0x10006f90
push str.program_assertion_failed___hash_table_already_allocated
push str.htab_create
push 1
push esi
call fcn.10006120
add esp, 0x10
push esi
call fcn.10008cb0
mov edi, eax
add esp, 4
test edi, edi
jne 0x10007093
push esi
mov bl, 1
call fcn.10010a70
add esp, 4
test eax, eax
jne 0x10006ff3
push str.UsbDk_backend_is_available
push str.windows_init
push 4
push esi
call fcn.10006120
mov byte [0x1009fab1], bl
jmp 0x10007005
push 0x1009fc08
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x3fd
push str.using__lu_entries_hash_table
push str.htab_create
push 4
push esi
call fcn.10006120
push 8
push 0x3fe
mov dword [0x1009fadc], 0
call fcn.10058137
add esp, 0x1c
mov dword [0x1009fbf8], eax
test eax, eax
jne 0x10006f54
push str.could_not_allocate_space_for_hash_table
push str.htab_create
push 1
push esi
call fcn.10006120
add esp, 0x10
mov edi, 0xfffffff5
jmp 0x10007093
push str.UsbDk_backend_is_not_available
push str.windows_init
push 3
push esi
call fcn.10006120
add esp, 0x10
push 1
push 0
push 0
push 0xffffffffffffffff
mov dword [esi + fcn.10008cb0], 0x10093540
mov edi, 0xfffffff5
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x12c], eax
test eax, eax
jne 0x1000704e
xor ecx, ecx
call fcn.100063d0
push eax
push str.failed_to_create_I_O_completion_port:__s
push str.windows_init
push 1
push esi
call fcn.10006120
add esp, 0x14
jmp 0x10007093
push 0
push 0
push esi
push 0x10006c90
push 0
push 0
call fcn.1005ef5d
add esp, 0x18
mov dword [esi + 0x130], eax
test eax, eax
jne 0x10007091
push str.failed_to_create_I_O_completion_port_thread
push str.windows_init
push 1
push esi
call fcn.10006120
add esp, 0x10
push dword [esi + 0x12c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10007093
xor edi, edi
cmp dword [0x1009fc20], 1
jne 0x100070e2
test edi, edi
je 0x100070e2
cmp byte [0x1009fab1], 0
je 0x100070ca
mov eax, dword [0x1009fd8c]
test eax, eax
je 0x100070c3
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x1009fd8c], 0
mov byte [0x1009fab1], 0
test bl, bl
je 0x100070d7
push esi
call fcn.10008d30
add esp, 4
call fcn.10006590
dec dword [0x1009fc20]
mov eax, edi
pop edi
pop esi
pop ebx
ret