joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443290
Capabilities:
Check if file exists
Create directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d1cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4432d4
sub edx, esi
sar edx, 1
push edx
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040beb0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x18]
test edx, edx
je 0x443324
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, 0x5c
cmovae eax, dword [ebp - 0x28]
cmp cx, word [eax + edx*2 - 2]
je 0x443324
push 1
push 0x4e9980
lea ecx, [ebp - 0x28]
call fcn.004086c0
mov edx, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
test edx, edx
je 0x443352
mov eax, edx
mov esi, ecx
nop word [eax + eax]
cmp word [esi], 0x5c
je 0x44341b
add esi, 2
sub eax, 1
jne 0x443340
or esi, 0xffffffff
cmp esi, 0xffffffff
je 0x443442
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop word [eax + eax]
xor eax, eax
mov dword [ebp - 0x30], 0
cmp edx, esi
mov word [ebp - 0x40], ax
mov ecx, esi
mov dword [ebp - 0x2c], 7
cmovb ecx, edx
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
push ecx
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x40]
push eax
call fcn.0040beb0
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4433db
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call ebx
test eax, eax
je 0x443436
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push eax
call edi
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
inc esi
cmp dword [ebp - 0x14], 8
cmovae ecx, dword [ebp - 0x28]
cmp esi, eax
jae 0x443403
sub eax, esi
lea esi, [ecx + esi*2]
je 0x443403
cmp word [esi], 0x5c
je 0x44342c
add esi, 2
sub eax, 1
jne 0x4433f5
or esi, 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.0040c2c0
cmp esi, 0xffffffff
je 0x443442
mov edx, dword [ebp - 0x18]
jmp 0x443370
test esi, esi
je 0x443352
sub esi, ecx
sar esi, 1
jmp 0x443355
test esi, esi
je 0x443403
sub esi, ecx
sar esi, 1
jmp 0x443406
lea ecx, [ebp - 0x40]
call fcn.0040c2c0
xor bl, bl
jmp 0x443444
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.0040c2c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
Function at 0x445ca0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d468d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00445ea0
mov edi, dword [ebp + 8]
mov ebx, eax
mov dword [ebp - 4], 0
push edi
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 0x10]
mov word [ebx + 0xc], 0
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.00429230
lea eax, [edi + 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x18]
call fcn.00429230
lea eax, [edi + 0x30]
mov byte [ebp - 4], 2
push eax
lea ecx, [esi + 0x30]
call fcn.00429230
lea eax, [edi + 0x48]
mov byte [ebp - 4], 3
push eax
lea ecx, [esi + 0x48]
call fcn.00429230
lea eax, [edi + 0x60]
mov byte [ebp - 4], 4
push eax
lea ecx, [esi + 0x60]
call fcn.00429230
lea eax, [edi + 0x78]
mov byte [ebp - 4], 5
push eax
lea ecx, [esi + 0x78]
call fcn.00429230
lea eax, [edi + 0x90]
mov byte [ebp - 4], 6
push eax
lea ecx, [esi + 0x90]
call fcn.00429230
lea eax, [edi + 0xa8]
mov byte [ebp - 4], 7
push eax
lea ecx, [esi + 0xa8]
call fcn.00429230
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x445da0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d46b8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
call fcn.00445e60
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebp - 4], 0
push ebx
mov dword [ebp - 0x14], edi
lea esi, [edi + 0x10]
mov word [edi + 0xc], 0
mov ecx, esi
mov dword [ebp - 0x18], esi
call fcn.00429230
lea eax, [ebx + 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [esi + 0x18]
call fcn.00429230
mov eax, dword [ebx + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [ebx + 0x34]
mov dword [esi + 0x34], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x447be0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4908
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x508164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 4], 0
mov dword [esi + 0x24], 0xffffffff
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
cmp esi, eax
je 0x447c52
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x447c47
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.0040e3a0
mov byte [esi + 0x18], 1
mov eax, esi
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
cmp dword [esi + 0x14], 0x10
jb 0x447c6e
mov eax, dword [esi]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esi + 0x24], eax
cmp eax, 0xffffffff
je 0x447d00
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
je 0x447d00
test eax, eax
je 0x447d00
cmp byte [esi + 0x18], 0
je 0x447ce5
push 0
push 0
push 0
push 2
push 0
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 0x28], eax
test eax, eax
je 0x447d00
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0x2c], eax
test eax, eax
je 0x447d00
push dword [esi + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x447d00
mov dword [esi + 0x1c], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x447d15
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x447d2a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x28], 0
mov eax, dword [esi + 0x24]
cmp eax, 0xffffffff
je 0x447d40
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x24], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x44f790
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4b07
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x15c
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x140], esi
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0xf
mov byte [ebp - 0x138], 0
push 0x104
lea eax, [ebp - 0x120]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004a5f00
mov eax, dword fs:[0x2c]
add esp, 0xc
mov dword [ebp - 0x144], 0x104
mov dword [ebp - 0x140], 7
mov ecx, dword [eax]
mov eax, dword [0x50fea4]
cmp eax, dword [ecx + 4]
jle 0x44f8b0
push 0x50fea4
call fcn.0048de6a
add esp, 4
cmp dword [0x50fea4], 0xffffffff
jne 0x44f8b0
push 0x4ec960
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x44f878
xor al, al
jmp 0x44f89a
lea ecx, [ebp - 0x168]
push ecx
call eax
mov ax, word [ebp - 0x168]
cmp ax, 9
je 0x44f898
cmp ax, 6
je 0x44f898
xor al, al
jmp 0x44f89a
mov al, 1
push 0x50fea4
mov byte [0x50fea8], al
mov byte [ebp - 4], 0
call fcn.0048de20
add esp, 4
cmp byte [0x50fea8], 0
lea eax, [ebp - 0x13c]
push eax
je 0x44f8c7
push 0x20119
jmp 0x44f8cc
push 0x20219
push 0
push str.SOFTWAREVRVEDPCEMS
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp - 0x13c]
test eax, eax
jne 0x44f906
push eax
mov dword [esi + 0x10], eax
mov ecx, esi
mov dword [esi + 0x14], 0xf
push 0x4ea2b7
mov byte [esi], al
call fcn.0040e3a0
jmp 0x44f9c1
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0x120]
push ecx
lea ecx, [ebp - 0x140]
push ecx
push 0
push str.InstallDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44f93f
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44f936
jmp 0x44f97b
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push str.WorkDir
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44f990
lea ecx, [ebp - 0x120]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x44f974
sub ecx, edx
lea eax, [ebp - 0x120]
push ecx
push eax
lea ecx, [ebp - 0x138]
call fcn.0040e3a0
push dword [ebp - 0x13c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [ebp - 0x138]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x128]
movq qword [esi + 0x10], xmm0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x44f9e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4b51
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x508164]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
mov eax, dword [esi + 0x10]
add eax, 0xe
mov dword [ebp - 0x18], 0
push eax
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 1
call fcn.00428cc0
push esi
lea ecx, [ebp - 0x28]
call fcn.0040e250
push str.cemsStore.dll
lea ecx, [ebp - 0x28]
call fcn.0040d920
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], 0xffffffff
mov edi, eax
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x44faad
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x44faa3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44fbdb
push edx
push ecx
call fcn.0048d8eb
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
test edi, edi
je 0x44fbbd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DB_SQLOpen
push edi
call esi
push str.DB_SQLClose
push edi
mov dword [0x50d2d8], eax
call esi
push str.DB_SQLExecute
push edi
mov dword [0x50d2d4], eax
call esi
push str.DB_SQLRead
push edi
mov dword [0x50d2d0], eax
call esi
push str.DB_NewDbRecord
push edi
mov dword [0x50d2cc], eax
call esi
push str.DB_FreeDbRecord
push edi
mov dword [0x50d2c8], eax
call esi
cmp dword [0x50d2d8], 0
mov dword [0x50d2c4], eax
je 0x44fbbd
cmp dword [0x50d2d4], 0
je 0x44fbbd
cmp dword [0x50d2d0], 0
je 0x44fbbd
cmp dword [0x50d2cc], 0
je 0x44fbbd
cmp dword [0x50d2c8], 0
je 0x44fbbd
test eax, eax
je 0x44fbbd
mov edx, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push str.emsstore.dat
call fcn.0042fd40
add esp, 4
mov dword [ebp - 4], 1
cmp dword [eax + 0x14], 0x10
jb 0x44fb76
mov eax, dword [eax]
push 0
push eax
call dword [0x50d2d8]
mov edx, dword [ebp - 0x14]
add esp, 8
mov dword [ebx], eax
cmp edx, 0x10
jb 0x44fbb4
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x44fbaa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x44fbe0
push edx
push ecx
call fcn.0048d8eb
add esp, 8
cmp dword [ebx], 0
je 0x44fbbd
mov al, 1
jmp 0x44fbbf
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
call fcn.004b0023
call fcn.004b0023
int3
Function at 0x452980
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, 0x400000
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
nop
cmp esi, 0x400000
mov dword [ebp + 0x10], 0
push 0
mov eax, esi
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x4529e8
test ecx, ecx
je 0x4529dd
add edi, ecx
mov edx, 0x400000
sub esi, ecx
mov ecx, dword [ebp - 4]
jne 0x4529a0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
ret
Function at 0x4538a0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4538c6
test al, 0x10
jne 0x4538c6
test al, 1
je 0x4538c6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4538d5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4538d5
mov al, 1
pop esi
ret
xor al, al
pop esi
ret
Function at 0x453ff0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45403d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x45403d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45402c
mov eax, 0x80004005
pop edi
mov esp, ebp
pop ebp
ret 8
jle 0x454051
movzx eax, ax
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, edi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x457e00
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x508164]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x14], edi
cmp dword [edi], 0x3f
jne 0x457e96
xor edx, edx
cmp dword [edi + 4], edx
jbe 0x457e3e
nop dword [eax]
mov al, byte [edi + edx + 8]
mov byte [edi + edx + 0x20], al
inc edx
cmp edx, dword [edi + 4]
jb 0x457e30
xor ecx, ecx
cmp dword [edi + 0x1c], ecx
jbe 0x457e5f
cmp edx, 0x20
jae 0x457f9d
mov eax, dword [edi + 0x18]
mov al, byte [ecx + eax]
inc ecx
mov byte [edi + edx + 0x20], al
inc edx
cmp ecx, dword [edi + 0x1c]
jb 0x457e45
cmp edx, 0x20
jae 0x457f9d
add edi, 0x20
mov ecx, 0x20
sub ecx, edx
add edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x1c]
xor esi, esi
mov ecx, dword [edi + 4]
add eax, 8
add eax, ecx
mov dword [esp + 0x10], eax
je 0x457eb7
push eax
call fcn.0048d929
mov ecx, dword [edi + 4]
add esp, 4
mov esi, eax
push ecx
lea eax, [edi + 8]
push eax
push esi
call fcn.004a5400
mov eax, dword [edi + 4]
add esp, 0xc
add eax, esi
push dword [edi + 0x1c]
push dword [edi + 0x18]
push eax
call fcn.004a5400
mov ebx, dword [edi + 0x1c]
xorps xmm0, xmm0
add ebx, esi
mov dword [esp + 0x24], 0x6a09e667
add ebx, dword [edi + 4]
xor ecx, ecx
add esp, 0xc
mov dword [esp + 0x1c], 0xbb67ae85
mov dword [esp + 0x20], 0x3c6ef372
mov dword [esp + 0x24], 0xa54ff53a
movq qword [ebx], xmm0
mov eax, dword [edi]
xor edi, edi
bts edi, eax
mov dword [esp + 0x28], 0x510e527f
cmp eax, 0x20
mov dword [esp + 0x2c], 0x9b05688c
mov dword [esp + 0x30], 0x1f83d9ab
cmovae ecx, edi
mov dword [esp + 0x34], 0x5be0cd19
xor edi, ecx
movlpd qword [esp + 0x38], xmm0
cmp eax, 0x40
cmovae ecx, edi
mov dword [esp + 0xc], ecx
nop dword [eax]
push dword [esp + 0x10]
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.004677b0
add esp, 4
xor eax, eax
add byte [eax + ebx], 1
jne 0x457f70
inc eax
cmp eax, 8
jb 0x457f64
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov eax, edi
adc ecx, 0xffffffff
or eax, ecx
mov dword [esp + 0xc], ecx
jne 0x457f50
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [edx + 0x20]
call fcn.00467870
push esi
call fcn.0048d8c3
add esp, 4
mov ecx, dword [esp + 0x84]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0048d8b2
mov esp, ebp
pop ebp
ret
Function at 0x464e00
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
lea eax, [ebp - 0x24]
mov ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
lea ecx, [ebx + 0x20]
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov byte [ebx + 0x44], 1
mov dword [ebx + 0x10], 4
call fcn.00463500
mov eax, dword [ebx + 0x2c]
xor ecx, ecx
mov dword [ebx + 0x30], 0
mov byte [eax], 0
mov eax, dword [ebx + 0x38]
mov dword [ebx + 0x3c], 0
mov word [eax], cx
mov edi, dword [ebx + 0x18]
test edi, edi
je 0x464e9f
mov esi, dword [ebx + 0x14]
dec edi
mov esi, dword [esi + edi*4]
test esi, esi
je 0x464e91
push dword [esi + 0x18]
call fcn.0048d8c3
push dword [esi + 0xc]
call fcn.0048d8c3
add esp, 8
mov ecx, esi
call fcn.004575a0
push 0x24
push esi
call fcn.0048d8eb
add esp, 8
test edi, edi
jne 0x464e61
mov dword [ebx + 0x18], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov dword [ebx + 0x18], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x467870
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, dword [edi + 0x20]
and esi, 0x3f
mov byte [esi + edi + 0x28], 0x80
inc esi
cmp esi, 0x38
je 0x46789f
and esi, 0x3f
jne 0x467894
mov ecx, edi
call fcn.00466b00
mov byte [edi + esi + 0x28], 0
inc esi
cmp esi, 0x38
jne 0x467888
mov ecx, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
shld eax, ecx, 3
shl ecx, 3
bswap ecx
bswap eax
mov dword [edi + 0x64], ecx
mov ecx, edi
mov dword [edi + 0x60], eax
call fcn.00466b00
xor edx, edx
nop
mov ecx, dword [edi + edx*4 + 4]
lea ebx, [ebx + 8]
mov eax, dword [edi + edx*4]
add edx, 2
bswap eax
mov dword [ebx - 8], eax
bswap ecx
mov dword [ebx - 4], ecx
cmp edx, 8
jb 0x4678c0
mov dword [edi], 0x6a09e667
mov dword [edi + 4], 0xbb67ae85
mov dword [edi + 8], 0x3c6ef372
mov dword [edi + 0xc], 0xa54ff53a
mov dword [edi + 0x10], 0x510e527f
mov dword [edi + 0x14], 0x9b05688c
mov dword [edi + 0x18], 0x1f83d9ab
mov dword [edi + 0x1c], 0x5be0cd19
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
pop edi
pop esi
pop ebx
ret

Function at 0x467930
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 8]
push edx
push 0
push 0
call fcn.004b3b90
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x46795a
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret
Function at 0x467cd0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
lea esi, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], esi
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
mov dword [ebp - 8], ebx
test edi, edi
je 0x467d0d
nop dword [eax]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x467d00
cmp ecx, esi
jae 0x467dea
mov eax, ecx
sub eax, edi
lea esi, [ebx + eax*4]
mov dword [ebp + 8], esi
nop
xor edx, edx
mov ebx, dword [ebx + ecx*4 - 4]
mov eax, ecx
div edi
mov dword [ebp - 4], eax
test edx, edx
jne 0x467d83
movzx edx, bl
movzx esi, byte [edx + str.cw]
mov edx, ebx
shr edx, 0x18
shl esi, 8
movzx eax, byte [edx + str.cw]
or esi, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl esi, 8
shr ebx, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, bl
shl esi, 8
movzx ebx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x4e90e4]
xor ebx, eax
or ebx, esi
mov esi, dword [ebp + 8]
jmp 0x467dd0
cmp edi, 6
jbe 0x467dd0
cmp edx, 4
jne 0x467dd0
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esi]
add esi, 4
xor eax, ebx
mov dword [ebp + 8], esi
mov ebx, dword [ebp - 8]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x467d20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4