joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460b46
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
push dword [ebp + 8]
mov eax, edx
mov ebx, ecx
push str._unknown_
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [ebp + 0x10]
xor edi, edi
push 0x1c
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x460c23
push esi
mov esi, dword [ebp - 0x1c]
test esi, esi
jne 0x460b96
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
push dword [ebp + 8]
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x460bba
push dword [ebp + 8]
push str._unknown_
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x460c22
test esi, esi
je 0x460c22
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x460c22
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x460c22
lea edx, [eax + esi]
cmp dword [edx], 0x4550
jne 0x460c22
movzx eax, word [edx + 0x14]
lea ecx, [edx + 0x18]
sub ebx, esi
add ecx, eax
movzx esi, word [edx + 6]
test esi, esi
je 0x460c22
mov edx, dword [ecx + 0xc]
mov eax, dword [ecx + 8]
cmp ebx, edx
jb 0x460c09
cmp dword [ecx + 0x10], eax
sbb eax, eax
and eax, 0xfffffff8
mov eax, dword [eax + ecx + 0x10]
add eax, edx
cmp ebx, eax
jbe 0x460c13
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x460bed
jmp 0x460c22
mov ecx, dword [ebp + 0xc]
lea eax, [edi + 1]
sub ebx, edx
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
pop esi
pop edi
pop ebx
leave
ret

Function at 0x460ed2
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
push ebx
push esi
lea eax, [ebp - 4]
mov esi, 0x101
push eax
lea eax, [ebp - 0x30c]
mov dword [ebp - 4], esi
push eax
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x460f1a
push ecx
push 0
lea eax, [ebp - 0x30c]
mov edx, esi
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x108]
call fcn.0046af4b
add esp, 0x10
jmp 0x460f2b
push edi
mov esi, str._unknown_
lea edi, [ebp - 0x108]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
mov eax, dword [ebx]
lea ecx, [ebp - 0x108]
push ecx
push str.User:
push str.__10s_s
push ebx
call dword [eax + 4]
add esp, 0x10
pop esi
pop ebx
leave
ret
Function at 0x460f49
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x20
push eax
lea eax, [ebp - 0x34]
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x460f84
push ecx
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x34]
push eax
push 0x10
pop edx
lea ecx, [ebp - 0x14]
call fcn.0046af4b
add esp, 0x10
jmp 0x460f94
push esi
push edi
mov esi, str._unknown_
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop edi
pop esi
mov eax, dword [ebx]
lea ecx, [ebp - 0x14]
push ecx
push str.Computer:
push str.__10s_s
push ebx
call dword [eax + 4]
add esp, 0x10
pop ebx
leave
ret

Function at 0x46131f
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0xc]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
push eax
push 4
mov dword [ebp - 4], ecx
mov dword [esi], eax
mov dword [ebx], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x4613a1
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x46139a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp + 8], eax
jmp 0x46138b
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x46138b
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x14], eax
jne 0x46138b
mov eax, dword [esi]
cmp eax, 0x80
jae 0x461389
mov edx, dword [ebp - 4]
mov dword [edx + eax*4], ecx
inc eax
mov dword [esi], eax
inc dword [ebx]
lea eax, [ebp - 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x461368
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esi], 0
jne 0x4613b8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
xor eax, eax
inc eax
mov dword [esi], eax
mov dword [ebx], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4624e6
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov edx, 0x104
sub esp, 0xc
push ecx
lea ecx, [ebp - 0x208]
call fcn.0046b0c4
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x462545
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x46252b
cmp eax, 5
jne 0x462541
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x462541
test al, 0x10
jne 0x462545
xor al, al
leave
ret
mov al, 1
leave
ret

Function at 0x46265f
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x46266b
mov al, 1
pop esi
ret
cmp byte [esi + 4], 0
je 0x462675
xor al, al
pop esi
ret
push ebx
push edi
mov ebx, 0x80abcc
mov byte [esi + 4], 1
push ebx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push str.dbghelp.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x462799
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.StackWalk64
push edi
call ebx
mov dword [esi + 8], eax
test eax, eax
je 0x46278d
push str.SymFunctionTableAccess64
push edi
call ebx
mov dword [esi + 0xc], eax
test eax, eax
je 0x46278d
push str.SymGetLineFromAddr64
push edi
call ebx
mov dword [esi + 0x10], eax
test eax, eax
je 0x46278d
push str.SymGetModuleBase64
push edi
call ebx
mov dword [esi + 0x14], eax
test eax, eax
je 0x46278d
push str.SymGetModuleInfo64
push edi
call ebx
mov dword [esi + 0x18], eax
test eax, eax
je 0x46278d
push str.SymGetOptions
push edi
call ebx
mov dword [esi + 0x1c], eax
test eax, eax
je 0x46278d
push str.SymGetSymFromAddr64
push edi
call ebx
mov dword [esi + 0x20], eax
test eax, eax
je 0x46278d
push str.SymInitialize
push edi
call ebx
mov dword [esi + 0x24], eax
test eax, eax
je 0x46278d
push str.SymCleanup
push edi
call ebx
mov dword [esi + 0x28], eax
test eax, eax
je 0x46278d
push str.SymSetOptions
push edi
call ebx
mov dword [esi + 0x2c], eax
test eax, eax
je 0x46278d
push str.SymEnumerateModules64
push edi
call ebx
mov dword [esi + 0x30], eax
test eax, eax
je 0x46278d
push str.SymEnumerateSymbols64
push edi
call ebx
mov dword [esi + 0x34], eax
test eax, eax
je 0x46278d
push str.MiniDumpWriteDump
push edi
call ebx
push 0x80abcc
mov dword [esi + 0x38], eax
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x4627b0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, 0x80abcc
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
and dword [0x80abcc], 0
xor al, al
pop edi
pop ebx
pop esi
ret
Function at 0x462ba5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push eax
push 0x462b0b
push 0x10000
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x462bdc
push 0xffffffffffffffff
push ebx
call edi
push ebx
call esi
xor eax, eax
push eax
push eax
push eax
push 0x462b7c
push 0x10000
push eax
call fcn.00569600
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x462c02
push 0xffffffffffffffff
push ebx
call edi
push ebx
call esi
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 4], eax
test eax, eax
je 0x462c3c
lea eax, [ebp - 4]
push eax
push 0x10000
push 0x462b8d
call fcn.00569570
add esp, 0xc
cmp eax, 0xffffffff
je 0x462c37
push 0xffffffffffffffff
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4638c7
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x42c
push ebx
push esi
push edi
push 0
push 8
mov edi, edx
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4638ef
xor al, al
jmp 0x463941
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
jmp 0x463934
push 0xffffffffffffffff
lea eax, [esp + 0x34]
mov edx, edi
push eax
push dword [esp + 0x2c]
mov ecx, ebx
call fcn.00463716
add esp, 0xc
test al, al
je 0x463938
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x428
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x463905
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4639c1
Capabilities:
Access peb ldr_data

Disassembly:
push 0xc
push 0x7d1f28
call fcn.006b6da0
mov ebx, edx
mov dword [ebp - 0x1c], ecx
push 0x787584
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x46396c
xor al, al
jmp 0x4639b2
and dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0x14
mov esi, dword [edi]
cmp esi, edi
je 0x4639ac
movzx eax, word [esi + 0x1c]
push eax
push dword [esi + 0x20]
push dword [esi + 0x10]
mov edx, ebx
mov ecx, dword [ebp - 0x1c]
call fcn.00463716
add esp, 0xc
test al, al
je 0x4639ac
mov esi, dword [esi]
jmp 0x463981
or dword [ebp - 4], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.004637a0
test al, al
jne 0x4639e8
mov edx, esi
mov ecx, edi
call fcn.004638c7
test al, al
jne 0x4639e8
mov ecx, edi
mov edx, esi
pop edi
pop esi
jmp 0x463948
pop edi
pop esi
ret
Function at 0x4659bf
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0xffffffff
jne 0x465a07
push 8
pop ecx
call fcn.0046581c
push dword [edi + 0x54]
lea eax, [esp + 0x1c]
push str.Win32_Execute____s
push eax
call fcn.00434c8d
add esp, 0xc
mov edx, eax
push 1
push 8
pop ecx
call fcn.00465855
pop ecx
xor al, al
jmp 0x465a91
mov esi, dword [ebp + 0x14]
mov ebx, dword [esi]
test ebx, ebx
je 0x465a8f
push dword [ebp + 0x10]
lea eax, [esp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0xc]
mov dword [esi], ecx
test eax, eax
jne 0x465a8f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x26
jne 0x465a98
lea eax, [esp + 0x10]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x465a98
mov edx, dword [ebp + 0x10]
xor ecx, ecx
mov eax, dword [edx + 0xc]
or ecx, dword [edx + 8]
cmp eax, dword [esp + 0x14]
jg 0x465a98
jl 0x465a65
cmp ecx, dword [esp + 0x10]
ja 0x465a98
push 7
pop ecx
call fcn.0046581c
push dword [edi + 0x54]
lea eax, [esp + 0x1c]
push str.Win32_Read___End_of_File____s
push eax
call fcn.00434c8d
add esp, 0xc
mov edx, eax
push 1
push 7
pop ecx
call fcn.00465855
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
mov esi, eax
mov ecx, esi
call fcn.004658b0
push 5
pop ecx
call fcn.0046581c
push dword [esp + 0xc]
lea eax, [esp + 0x1c]
push ebx
push dword [edi + 0x54]
push esi
push str.Win32_Read___d_____s__u__u
push eax
call fcn.00434c8d
push 1
push 5
mov edx, eax
pop ecx
call fcn.00465855
add esp, 0x1c
jmp 0x465a00

Function at 0x465ad7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0xffffffff
jne 0x465afc
push 8
pop ecx
call fcn.0046581c
xor al, al
jmp 0x465b8f
mov esi, dword [ebp + 0x14]
cmp dword [esi], 0
je 0x465b8d
push dword [ebp + 0x10]
lea eax, [esp + 0x10]
mov byte [edi + 8], 0
push eax
push dword [esi]
push dword [ebp + 0xc]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0xc]
mov dword [esi], ecx
test eax, eax
jne 0x465b8d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0x27
je 0x465b5e
cmp esi, 0x70
je 0x465b5e
push 6
pop ecx
call fcn.0046581c
push dword [edi + 0x54]
lea eax, [esp + 0x14]
push esi
push str.Win32_Write___d_____s
push eax
call fcn.00434c8d
push 1
push 6
jmp 0x465b7d
push 0xb
pop ecx
call fcn.0046581c
push dword [edi + 0x54]
lea eax, [esp + 0x14]
push esi
push str.Win32_Write___d_____s
push eax
call fcn.00434c8d
push 1
push 0xb
mov edx, eax
pop ecx
call fcn.00465855
add esp, 0x14
jmp 0x465af5
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x465c1a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
push esi
push edi
mov edi, ecx
cmp byte [edi + 8], 0
je 0x465c37
test byte [edi + 4], 8
je 0x465d75
lea eax, [ebp - 0xc]
mov byte [edi + 8], 0
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x465c5c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x465d75
mov eax, dword [edi + 0x50]
test eax, eax
je 0x465c68
cmp dword [eax], 0
jne 0x465c75
mov ecx, dword [ebp - 0xc]
xor eax, eax
or eax, esi
mov dword [edi + 0x1c], ecx
mov dword [edi + 0x18], eax
push dword [edi + 0x10]
lea ecx, [ebp - 0x290]
call fcn.0046aea9
lea ecx, [ebp - 4]
push ecx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeW]
lea ecx, [ebp - 0x288]
mov dword [ebp - 8], eax
cmp dword [ebp - 0x28c], ecx
je 0x465cb0
push dword [ebp - 0x28c]
call fcn.0053b990
mov eax, dword [ebp - 8]
pop ecx
cmp eax, 0xffffffff
jne 0x465cc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x465d75
mov eax, dword [ebp - 8]
push dword [edi + 0x54]
mov dword [edi + 0x20], eax
lea ecx, [ebp - 0x290]
mov eax, dword [ebp - 4]
mov dword [edi + 0x24], eax
call fcn.0046aea9
lea ecx, [ebp - 0x30]
push ecx
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
mov esi, eax
lea eax, [ebp - 0x288]
cmp dword [ebp - 0x28c], eax
je 0x465d08
push dword [ebp - 0x28c]
call fcn.0053b990
pop ecx
test esi, esi
je 0x465d71
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0046bf62
push dword [ebp - 0x18]
mov dword [edi + 0x30], eax
push dword [ebp - 0x1c]
mov dword [edi + 0x34], edx
call fcn.0046bf62
push dword [ebp - 0x20]
mov dword [edi + 0x38], eax
push dword [ebp - 0x24]
mov dword [edi + 0x3c], edx
call fcn.0046bf62
mov esi, dword [ebp - 0x30]
add esp, 0x18
mov ecx, esi
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], edx
call fcn.00465dd2
mov ecx, eax
mov dword [edi + 0x28], eax
shr ecx, 5
and cl, 1
mov byte [edi + 0x4c], cl
cmp esi, 0xffffffff
jne 0x465d65
and dword [edi + 0x48], 0
jmp 0x465d71
test al, 0x40
push 0
pop eax
setne al
inc eax
mov dword [edi + 0x48], eax
mov byte [edi + 8], 1
pop edi
pop esi
leave
ret

Function at 0x465f82
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push ecx
lea ecx, [esp + 0xc]
call fcn.0046aea9
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea eax, [esp + 0x10]
cmp dword [esp + 0xc], eax
je 0x465fb8
push dword [esp + 0xc]
call fcn.0053b990
pop ecx
cmp ebx, 0xffffffff
jne 0x465fc1
xor eax, eax
jmp 0x465fcb
test bl, 0x10
push 0
pop eax
setne al
inc eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4664c2
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
push ebx
push esi
push ecx
lea ecx, [esp + 0xc]
mov esi, edx
call fcn.0046aea9
push esi
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
lea eax, [esp + 0x10]
neg ebx
sbb bl, bl
inc bl
cmp dword [esp + 0xc], eax
je 0x466502
push dword [esp + 0xc]
call fcn.0053b990
pop ecx
test bl, bl
je 0x466516
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
jmp 0x466518
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46736e
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
lea eax, [edi + 4]
mov byte [edi + 0xc], bl
push eax
push str.SeManageVolumePrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push edi
push 0x28
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push 3
push dword [edi]
call esi
mov eax, dword [ebp - 4]
call fcn.0053bfc0
mov ebx, esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push 3
push dword [edi]
call esi
test eax, eax
je 0x467402
xor edx, edx
cmp dword [ebx], edx
jbe 0x467402
mov esi, dword [edi + 8]
lea ecx, [ebx + 4]
cmp dword [ecx + 4], esi
jne 0x4673fa
mov eax, dword [ecx]
cmp eax, dword [edi + 4]
jne 0x4673fa
cmp dword [ecx + 8], 2
je 0x4673f5
cmp dword [ecx + 8], 1
je 0x4673f5
xor al, al
jmp 0x4673f7
mov al, 1
mov byte [edi + 0xc], al
inc edx
add ecx, 0xc
cmp edx, dword [ebx]
jb 0x4673d9
mov eax, edi
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x467462
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
lea eax, [esp]
push esi
push edi
push 0
push eax
push dword [ebp + 0xc]
mov edi, ecx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x4674c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
pop ecx
mov esi, eax
call fcn.0046581c
push dword [edi + 0x54]
push esi
push str.PreallocateFast_Win___SetFilePointerEx___err__d____s
lea eax, [esp + 0x1c]
push eax
call fcn.00434c8d
push 1
push 7
mov edx, eax
pop ecx
call fcn.00465855
add esp, 0x14
xor al, al
jmp 0x467516
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4674e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
pop ecx
mov esi, eax
call fcn.0046581c
push dword [edi + 0x54]
push esi
push str.PreallocateFast_Win___SetEndOfFile___err__d____s
jmp 0x4674a3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFileValidData]
test eax, eax
jne 0x467514
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 7
pop ecx
mov esi, eax
call fcn.0046581c
push dword [edi + 0x54]
push esi
push str.PreallocateFast_Win___SetFileValidData___err__d____s
jmp 0x4674a3
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46782e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor eax, eax
inc eax
cmp dword [ebp - 0x10], 0
pop edi
cmovne eax, dword [ebp - 0x10]
leave
ret

Function at 0x46903c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x400
push eax
lea eax, [ebp - 0x804]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x469081
push ecx
push 0
lea eax, [ebp - 0x804]
mov edx, 0x100
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0046af4b
add esp, 0x10
jmp 0x469095
push 0x100
mov edx, str._unknown_
mov ecx, esi
call fcn.0046ab78
add esp, 4
mov eax, esi
pop esi
leave
ret
Function at 0x469f29
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
cmp esi, 0x104
jl 0x469f74
lea eax, [ebp - 0x208]
xor ebx, ebx
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x469f74
push ecx
push ebx
lea eax, [ebp - 0x208]
mov edx, esi
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.0046af4b
add esp, 0x10
mov al, 1
jmp 0x469f76
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x46b431
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.0046b1cb
push dword [ebp + 0xc]
mov edx, esi
mov ecx, edi
call fcn.0046b2b8
mov edi, dword [ebp + 8]
pop ecx
mov ecx, dword [ebp + 0x14]
mov dword [edi], eax
mov dword [eax + 0x18], 1
mov esi, dword [edi]
test ecx, ecx
jne 0x46b46c
mov eax, dword [0x80abe4]
test eax, eax
cmovne ecx, eax
xor edx, edx
lea ebx, [esi + 4]
push ebx
test ecx, ecx
mov eax, 0x10000
cmovle eax, edx
push eax
push esi
push 0x46b72d
push ecx
push edx
call fcn.00569600
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x46b4aa
lea ecx, [esi + 0x38]
test ecx, ecx
je 0x46b4a6
cmp byte [ecx], 0
je 0x46b4a6
mov edx, dword [ebx]
call fcn.0046b6d0
mov al, 1
jmp 0x46b4b6
mov ecx, dword [edi]
call fcn.0046b393
and dword [edi], 0
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x46b57d
Capabilities:
Set thread local storage value

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edx
push esi
mov eax, dword [edi]
not eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [edi + 4], 0
je 0x46b5ae
test esi, esi
je 0x46b5ae
call fcn.0046b4bb
test eax, eax
jne 0x46b5ae
mov edx, dword [edi + 4]
mov ecx, esi
pop edi
pop esi
jmp fcn.0046b953
pop edi
pop esi
ret

Function at 0x46c3ef
Capabilities:
Hash data using fnv

Disassembly:
mov edx, 0x1000193
jmp 0x46c402
movzx eax, al
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
mov al, byte [ecx]
test al, al
jne 0x46c3f6
xor eax, eax
inc eax
test edx, edx
cmovne eax, edx
ret