joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11b7e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x11cd8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x11b7ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.011b47a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x11b7e61
mov edx, dword [eax]
jmp 0x11b7e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.011b6050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x11b7ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x11b7ebf
cmp esi, edi
je 0x11b7ebf
mov ecx, esi
call fcn.011afa00
push esi
call fcn.011bd1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.011b4990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x11b7ef5
mov eax, dword [eax]
jmp 0x11b7ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.011b3640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x11b7f25
mov eax, dword [eax]
jmp 0x11b7f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x11b7f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x11b7f76
cmp esi, edi
je 0x11b7f76
mov eax, dword [esi]
cmp eax, edi
je 0x11b7f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x11b7f6d
push eax
call fcn.011bd1c8
add esp, 4
push esi
call fcn.011bd1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x11b7f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x11b7ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x11b8035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.011b7e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x11b7fc5
mov edi, 0x11d28b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x11b8035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.011b7e00
add edi, 4
add esp, 0xc
cmp edi, 0x11d28c0
jb 0x11b8000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x11b8070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.011be082
mov esi, eax
add esp, 8
test esi, esi
je 0x11b8107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x11b8102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.011bd946
add esp, 8
test eax, eax
je 0x11b80e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x11b80e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.011bd946
add esp, 8
test eax, eax
jne 0x11b80c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x11b8102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x11b8f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x11cd9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x11b9002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.011bcdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x11b9002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.011b46e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.011bd20b
push 0x10
call fcn.011bd1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x11b8fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.011a91c0
jmp 0x11b8fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.011b8b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x11b8ff0
mov ecx, edi
call fcn.011a92c0
push edi
call fcn.011bd1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x11b9021
inc ebx
cmp ebx, 0x20
jb 0x11b8f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x11ba250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x11ce808
push 0x11be288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x11ba329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x11ba329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.011bd1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x11ba329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x11ba329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x11ba32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.011ba351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x11bad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x11bad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x11bad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x11bad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x11bad94
push eax
push esi
call fcn.011bd20b
add esp, 8
pop esi
ret 0x10

Function at 0x11bada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x11bae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x11bae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x11d3320
push ecx
mov dword [esp + 0x1c], 4
call fcn.011bcdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x11badda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x11bae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x11baec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x11baeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x11d3320
push ecx
mov dword [esp + 0x1c], 4
call fcn.011bcdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x11baeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x11bae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x11bb000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x11bb131
push esi
call fcn.011be145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.011ad080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x11bb131
push 0
push ebp
call fcn.011ad3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.011ad260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x11bb08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.011ad2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x11bb121
push 0x11d3918
push edi
call fcn.011bc3f0
push eax
push ebx
push esi
call fcn.011baf60
push 0x11d38f8
push edi
call fcn.011bc3f0
push eax
push ebx
push esi
call fcn.011baf60
push 0x11d38d8
push edi
call fcn.011bc3f0
push eax
push ebx
push esi
call fcn.011baf60
push 0x11d38c0
push edi
call fcn.011bc3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.011baf60
push 0x11d38a0
push edi
call fcn.011bc3f0
push eax
push ebx
push esi
call fcn.011baf60
push 0x11d3888
push edi
call fcn.011bc3f0
push eax
push ebx
push esi
call fcn.011baf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x11bc1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.011bc140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.011bc140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.011bc140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.011bc140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x11bcbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x11bcc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x11ce87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x11bcc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x11bcc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x40138a
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
lea eax, [esp + 0x18]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.msvcrt.dll__beginthreadex
mov edx, dword [esp + 0x20]
mov dword [edx], eax
mov dword [esp], eax
call fcn.00401306
add esp, 0x1c
ret
Function at 0x40cda4
Capabilities:
Get memory capacity

Disassembly:
push ebx
sub esp, 0x48
mov dword [esp + 0x20], 0x20
lea eax, [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalMemoryStatus
sub esp, 4
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.0040ca14
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x34]
cmp ebx, eax
jbe 0x40cdd9
mov ebx, eax
sub ebx, 0x500000
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.0040cbe2
mov eax, ebx
add esp, 0x48
pop ebx
ret

Function at 0x40cdf2
Capabilities:
Get memory capacity

Disassembly:
push ebx
sub esp, 0x48
mov dword [esp + 0x20], 0x20
lea eax, [esp + 0x20]
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalMemoryStatus
sub esp, 4
lea ebx, [esp + 0x10]
mov dword [esp], ebx
call fcn.0040ca14
mov dword [esp], ebx
call fcn.0040ca68
cmp eax, dword [esp + 0x34]
jae 0x40ce39
mov dword [esp], ebx
call fcn.0040ca68
mov ebx, eax
sub ebx, 0x500000
jmp 0x40ce43
mov ebx, dword [esp + 0x34]
sub ebx, 0x500000
lea eax, [esp + 0x10]
mov dword [esp], eax
call fcn.0040cbe2
mov eax, ebx
add esp, 0x48
pop ebx
ret

Function at 0x40f37e
Capabilities:
Get memory capacity

Disassembly:
sub esp, 0x7c
mov dword [esp + 0x30], 0x40
mov dword [esp], str.kernel32.dll
call sub.KERNEL32.dll_GetModuleHandleW
sub esp, 4
mov dword [esp + 4], str.GlobalMemoryStatusEx
mov dword [esp], eax
call sub.KERNEL32.dll_GetProcAddress
sub esp, 8
mov edx, eax
test eax, eax
je 0x40f3cb
lea eax, [esp + 0x30]
mov dword [esp], eax
call edx
sub esp, 4
test eax, eax
je 0x40f3cb
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
jmp 0x40f3eb
mov dword [esp + 0x10], 0x20
lea eax, [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalMemoryStatus
sub esp, 4
mov eax, dword [esp + 0x18]
mov edx, 0
add esp, 0x7c
ret

Function at 0x40f462
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0x4c
lea eax, [esp + 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GetSystemInfo
sub esp, 4
mov eax, dword [esp + 0x24]
add esp, 0x4c
ret
Function at 0x40f47c
Capabilities:
Timestomp file

Disassembly:
push esi
push ebx
sub esp, 0x44
cmp dword [esp + 0x54], 0
jns 0x40f490
mov dword [esp + 0x54], 0x7fffffff
lea eax, [esp + 0x54]
mov dword [esp], eax
call sub.msvcrt.dll_gmtime
mov edx, dword [eax + 0x14]
add edx, 0x76c
mov word [esp + 0x30], dx
mov edx, dword [eax + 0x10]
inc edx
mov word [esp + 0x32], dx
mov edx, dword [eax + 0xc]
mov word [esp + 0x36], dx
mov edx, dword [eax + 8]
mov word [esp + 0x38], dx
mov edx, dword [eax + 4]
mov word [esp + 0x3a], dx
mov eax, dword [eax]
mov word [esp + 0x3c], ax
mov word [esp + 0x3e], 0
lea esi, [esp + 0x28]
mov dword [esp + 4], esi
lea eax, [esp + 0x30]
mov dword [esp], eax
call sub.KERNEL32.dll_SystemTimeToFileTime
sub esp, 8
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x2000000
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x100
mov eax, dword [esp + 0x50]
mov dword [esp], eax
call sub.KERNEL32.dll_CreateFileW
sub esp, 0x1c
mov ebx, eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_SetFileTime
sub esp, 0x10
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
add esp, 0x44
pop ebx
pop esi
ret

Function at 0x40f946
Capabilities:
Create directory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [esp + 0x20]
mov edi, 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_wcschr
mov ebx, eax
sub ebx, 2
cmp ebx, esi
jb 0x40f990
movzx eax, word [ebx]
mov dword [esp + 4], eax
mov dword [esp], 0x44f38c
call sub.msvcrt.dll_wcschr
test eax, eax
je 0x40f989
mov edi, ebx
jmp 0x40f990
sub ebx, 2
cmp ebx, esi
jae 0x40f96e
test edi, edi
je 0x40f9c3
movzx ebx, word [edi]
mov word [edi], 0
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll__waccess
test eax, eax
je 0x40f9c0
mov dword [esp], esi
call fcn.0040f946
mov dword [esp], esi
call sub.msvcrt.dll__wmkdir
mov word [edi], bx
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x412cba
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, 0
mov eax, ebx
mov ecx, 0
mov edx, eax
shr edx, 1
and eax, 1
dec eax
not eax
and eax, 0xedb88320
xor eax, edx
inc ecx
cmp ecx, 7
jle 0x412cc7
mov dword [ebx*4 + 0x73ce10], eax
inc ebx
cmp ebx, 0xff
jbe 0x412cc0
cmp ebx, 0x7ff
ja 0x412d1f
lea eax, [ebx*4]
mov edx, dword [eax + 0x73ca10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x73ce10]
mov dword [eax + 0x73ce10], edx
inc ebx
cmp ebx, 0x7ff
jbe 0x412cf6
pop ebx
ret

Function at 0x412d22
Capabilities:
Encode data using xor

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
cmp dword [0x73ee0c], 0
jne 0x412d42
call fcn.00412cba
cmp byte [0x73ef30], 0
jne 0x412d6b
mov dword [esp + 4], 0
mov dword [esp], str.CrcUpdate
call fcn.004127f6
mov dword [0x73ef40], eax
mov byte [0x73ef30], 1
cmp dword [0x73ef40], 0
je 0x412d92
mov dword [esp + 0xc], 0x73ce10
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [0x73ef40]
jmp 0x412e24
test edi, edi
je 0x412dc0
test esi, 3
je 0x412dc0
movzx eax, byte [esi]
xor al, bl
movzx edx, al
mov eax, ebx
shr eax, 8
mov ebx, eax
xor ebx, dword [edx*4 + 0x73ce10]
inc esi
dec edi
je 0x412dc0
test esi, 3
jne 0x412d9e
cmp edi, 3
jbe 0x412e04
xor ebx, dword [esi]
movzx eax, bl
movzx ecx, bh
mov edx, dword [eax*4 + 0x73da10]
xor edx, dword [ecx*4 + 0x73d610]
mov eax, ebx
shr eax, 0xe
and eax, 0x3fc
xor edx, dword [eax + 0x73d210]
mov eax, ebx
shr eax, 0x18
mov ebx, edx
xor ebx, dword [eax*4 + 0x73ce10]
sub edi, 4
add esi, 4
cmp edi, 3
ja 0x412dc5
test edi, edi
je 0x412e22
movzx eax, byte [esi]
xor al, bl
movzx edx, al
mov eax, ebx
shr eax, 8
mov ebx, eax
xor ebx, dword [edx*4 + 0x73ce10]
inc esi
dec edi
jne 0x412e08
mov eax, ebx
add esp, 0x10
pop ebx
pop esi
pop edi
ret
Function at 0x43db90
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x758d50]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x43dbd0
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.0043f0d0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret

Function at 0x43df80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x758d50]
mov edi, dword [ebp + 8]
test eax, eax
je 0x43e05c
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x43e071
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x43e030
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x43dfc8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x43dfd8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x43e023
test edx, edx
jne 0x43e016
test ecx, ecx
je 0x43dfc0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x43e080
cmp eax, 8
je 0x43dfc0
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x43dfb2
call fcn.0043d580
mov eax, dword [0x758d50]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jns 0x43dfa4
call fcn.0043dbf0
mov eax, dword [0x758d50]
jmp 0x43dfa4
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0043def0
cmp eax, 7
jne 0x43e01b
mov eax, dword [0x758d50]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x43e0d3
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x43e0fe
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x43e0df
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0043d580
mov eax, dword [0x758d50]
jmp 0x43e0b1
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x43e0c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43e0c2
call fcn.0043dbf0
mov eax, dword [0x758d50]
jmp 0x43e0b8