joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a04f0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4beb88
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x20]
mov ecx, esi
mov eax, dword [edi]
push eax
mov eax, dword [esi + 0x24]
push str.Host
push eax
call fcn.00408380
mov eax, dword [edi + 4]
mov ecx, dword [esi + 0x24]
push eax
push str.Port
push ecx
mov ecx, esi
call fcn.00408300
mov eax, dword [edi + 8]
mov edx, dword [esi + 0x24]
push eax
push str.User
push edx
mov ecx, esi
call fcn.00408380
mov eax, dword [edi + 0x10]
mov ecx, esi
push eax
mov eax, dword [esi + 0x24]
push str.RemoteDir
push eax
call fcn.00408380
mov eax, dword [edi + 0x14]
mov ecx, dword [esi + 0x24]
push eax
push str.LocalDir
push ecx
mov ecx, esi
call fcn.00408380
lea edx, [esp + 0x20]
push 0x47
push edx
call fcn.004749a0
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0xc
test eax, eax
jne 0x4a059a
mov eax, dword [edi + 0x20]
test eax, eax
jne 0x4a059a
xor bl, bl
jmp 0x4a059c
mov bl, 1
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x4a05c0
mov eax, dword [esi + 0x24]
push 0x4e6998
push str.Pass
push eax
mov ecx, esi
call fcn.00408380
jmp 0x4a0609
push ecx
lea edx, [edi + 0xc]
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 0x20]
push eax
call fcn.00424f00
add esp, 8
mov eax, dword [eax]
mov ecx, dword [esi + 0x24]
push eax
push str.Pass
push ecx
mov ecx, esi
mov dword [esp + 0x20], 0
call fcn.00408380
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [edi + 0x18]
mov eax, dword [esi + 0x24]
push edx
push str.Logontype
push eax
mov ecx, esi
call fcn.00408300
mov ecx, dword [edi + 0x1c]
mov edx, dword [esi + 0x24]
push ecx
push str.FWBypass
push edx
mov ecx, esi
call fcn.00408300
mov eax, dword [edi + 0x20]
mov ecx, dword [esi + 0x24]
push eax
push str.DontSavePass
push ecx
mov ecx, esi
call fcn.00408300
mov edx, dword [edi + 0x24]
mov eax, dword [esi + 0x24]
push edx
push str.ServerType
push eax
mov ecx, esi
call fcn.00408300
mov ecx, dword [edi + 0x30]
mov edx, dword [esi + 0x24]
push ecx
push str.PasvMode
push edx
mov ecx, esi
call fcn.00408300
mov eax, dword [edi + 0x34]
mov ecx, dword [esi + 0x24]
push eax
push str.TimeZoneOffset
push ecx
mov ecx, esi
call fcn.00408300
mov edx, dword [edi + 0x38]
mov eax, dword [esi + 0x24]
push edx
push str.TimeZoneOffsetMinutes
push eax
mov ecx, esi
call fcn.00408300
mov ecx, dword [edi + 0x3c]
mov edx, dword [esi + 0x24]
push ecx
push str.Comments
push edx
mov ecx, esi
call fcn.00408380
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x4a1200
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x4bec53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x428]
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push ecx
push reloc.WS2_32.dll_accept
mov dword [esp + 0x434], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x4a1301
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edx, [esp + 0x18]
push 0x400
push edx
push eax
mov eax, dword [esp + 0x18]
push eax
call ebp
test eax, eax
jne 0x4a12e1
lea ecx, [esp + 0x428]
push 0x4e01dc
lea edx, [esp + 0x14]
push ecx
push edx
call sub.MFC42.DLL_operator_3
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x424], 1
call fcn.004ac20a
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_1
mov ecx, edi
call fcn.004a1200
test eax, eax
je 0x4a12ba
inc esi
lea ecx, [esp + 0x10]
mov byte [esp + 0x420], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x18]
push 0x400
push eax
push esi
push ecx
call ebp
test eax, eax
je 0x4a1270
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x428]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
lea ecx, [esp + 0x428]
mov dword [esp + 0x420], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x418]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebp
add esp, 0x418
ret 4
Function at 0x4a32b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4bf0af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call sub.MFC42.DLL_CString::CString_2
xor edi, edi
lea ecx, [esi + 8]
mov dword [esp + 0x14], edi
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0xc]
mov byte [esp + 0x14], 1
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 2
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x14]
mov byte [esp + 0x14], 3
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x28]
mov byte [esp + 0x14], 4
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esi + 0x3c]
mov byte [esp + 0x14], 5
call sub.MFC42.DLL_CString::CString_2
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 4], 0x15
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4ab880
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bfbc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.004ab7a0
add esp, 4
push str.Trusted_Certs.dat
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_operator_3
mov eax, dword [eax]
push 0
push 0
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
mov ebx, eax
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
cmp ebx, 0xffffffff
je 0x4ab955
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x18]
push 0
push edx
lea eax, [esp + 0x24]
push 0x14
push eax
push ebx
call ebp
test eax, eax
je 0x4ab94e
cmp dword [esp + 0x18], 0x14
jne 0x4ab94e
mov esi, dword [esp + 0x40]
mov ecx, 5
lea edi, [esp + 0x1c]
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x4ab900
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x4abb50
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4bfc5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
xor ebx, ebx
push eax
mov dword [esp + 0x24], ebx
call fcn.004abab0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x74], 1
mov eax, dword [ecx - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x18]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x24]
mov edx, ecx
mov esi, edi
mov edi, ebp
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x2c], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
cmp edi, ebx
jne 0x4abbea
mov esi, dword [esp + 0x78]
push str.8uftp
mov ecx, esi
call fcn.004ac198
mov dword [esp + 0x20], 1
jmp 0x4abd1d
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
push esi
push edi
push ebx
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x30]
lea edx, [esp + 0x28]
push ecx
push edx
push str.VarFileInfoTranslation
push esi
mov byte [esp + 0x80], 2
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4abc73
mov eax, dword [esp + 0x28]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x3c]
push str.StringFileInfo_04x_04xProductName
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
lea eax, [esp + 0x34]
push ecx
push edx
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4abc73
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea edx, [esp + 0x2c]
lea eax, [esp + 0x14]
push edx
push eax
push 0x4e01dc
push esi
mov byte [esp + 0x80], 3
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4abcd7
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
mov eax, ecx
lea edx, [esp + 0x20]
and eax, 0xffff
shr ecx, 0x10
push eax
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
push str._s__d._d._d._d
push edx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x1c
push ebp
call sub.MFC42.DLL_operatordelete
push esi
call sub.MFC42.DLL_operatordelete
mov esi, dword [esp + 0x80]
add esp, 8
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov dword [esp + 0x20], 1
mov byte [esp + 0x70], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x70], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x70], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x68]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x64
ret
Function at 0x4abd40
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4bfc80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
xor bl, bl
call fcn.004abab0
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x6c], 0
mov eax, dword [ecx - 8]
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x18]
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x1c]
push eax
push ebp
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x4abddf
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
push esi
call sub.MFC42.DLL_operatornew
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebp
call sub.VERSION.dll_GetFileVersionInfoA
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x28]
lea edx, [esp + 0x20]
push ecx
push edx
push str.VarFileInfoTranslation
push edi
mov byte [esp + 0x78], 1
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4abe66
mov eax, dword [esp + 0x20]
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 2]
mov dx, word [eax]
push ecx
push edx
lea eax, [esp + 0x34]
push str.StringFileInfo_04x_04xProductName
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x24]
lea edx, [esp + 0x14]
lea eax, [esp + 0x2c]
push ecx
push edx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4abe66
mov ecx, dword [esp + 0x14]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x24]
lea eax, [esp + 0x14]
push edx
push eax
push 0x4e01dc
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4abeb9
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 8]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
mov eax, ecx
and eax, 0xfff
shr ecx, 0x10
push eax
push ecx
mov ecx, dword [esp + 0x80]
push str._d._d._d._d
push ecx
call sub.MFC42.DLL_CString::Format_1
add esp, 0x18
mov bl, 1
push ebp
call sub.MFC42.DLL_operatordelete
push edi
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x18]
mov byte [esp + 0x68], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x68], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5c
ret
Function at 0x402700
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov ebp, 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x402731
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x402724
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [esp + 0x14], esi
xor esi, esi
mov eax, dword [esp + 0x14]
test esi, esi
jne 0x4027a3
movzx eax, bl
mov esi, edi
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
mov eax, 0x1b
xor ebx, ebp
add ebp, ebp
or ebx, edx
test ebp, 0x100
cmovne ebp, eax
jmp 0x4027f0
cmp esi, 4
jne 0x4027f4
cmp edi, 6
jbe 0x4027f4
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 [esp + 0x14]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x402748
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x404390
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x2d4
mov eax, dword [0x46a164]
xor eax, esp
mov dword [esp + 0x2d0], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4043da
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4043da
push 0xc00
call eax
test eax, eax
jne 0x404466
push 0x106
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404466
cmp eax, 0x104
ja 0x404466
cmp word [esp + eax*2 - 2], 0x5c
je 0x404407
mov ecx, 0x5c
mov word [esp + eax*2], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x404465
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push ebp
push edi
lea edi, [esp + 0x10]
lea edi, [edi + eax*2]
mov al, byte [esi]
mov ecx, edi
inc esi
test al, al
je 0x404440
nop
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x404430
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [esp + 0x18]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x404426
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.0044b950
add esp, 0x2d4
ret
Function at 0x408570
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, 0x20
push edi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x408686
lea ebx, [esi + 0xd0]
mov ebp, ecx
mov ecx, dword [ebx]
test ecx, ecx
je 0x408665
mov dword [ebx], 0
nop dword [eax]
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
push ecx
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, edi
test edi, edi
jne 0x408650
add ebx, 0x28
sub ebp, 1
jne 0x408640
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x408681
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], ebp
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x10]
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ecx + 1]
lea ebp, [ebx + 0x20]
mov dword [esi + 0x58], eax
push ebp
call fcn.0040a570
mov edi, eax
test edi, edi
jne 0x408735
lea eax, [ebx + 0x1c]
push eax
call fcn.0040a570
mov edi, eax
test edi, edi
jne 0x408735
push ebp
call fcn.0040a270
mov edi, eax
test edi, edi
jne 0x408735
lea eax, [ebx + 0x1c]
push eax
call fcn.0040a270
mov edi, eax
test edi, edi
jne 0x408735
push ebx
call fcn.00408970
mov edi, eax
test edi, edi
je 0x408747
push esi
mov dword [esi + 0x44], 0
call fcn.004089b0
test edi, edi
jle 0x408740
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x408747
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x408760
cmp dword [esi + 0x40], 0
jne 0x408760
cmp dword [esi + 0x3c], 0
jne 0x408760
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x409850
Capabilities:
Hash data using sha256

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [0x46a0ec]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret 4

Function at 0x409950
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x409998
cmp edx, 0x40
je 0x40998a
mov ecx, 0x40
lea edi, [esi + 0x40]
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
mov eax, dword [esi]
lea edx, [esi + 0x40]
push 1
lea ecx, [esi + 0x20]
call eax
xor edx, edx
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.0044d380
mov ecx, dword [esi + 8]
lea edx, [esi + 0x40]
mov eax, dword [esi + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
lea ecx, [esi + 0x20]
push 1
call eax
mov edi, dword [esp + 0x18]
lea edx, [esi + 0x20]
mov ebx, 4
nop
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x4099e0
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
pop edi
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret 8

Function at 0x40a150
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push 0
push 0
call fcn.00451021
mov ecx, dword [esp + 0x20]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40a17b
xor eax, eax
pop ecx
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
pop ecx
ret 0xc
Function at 0x4106a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45aa68
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x46a164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.0040cf20
lea esi, [edi + 0xc]
mov dword [ebp - 4], 0
lea ecx, [esi + 4]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
call fcn.0040cf20
mov dword [esi + 0x10], 0
mov eax, edi
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x412400
Capabilities:
Set file attributes

Disassembly:
sub esp, 0xc
cmp byte [0x46cf90], 0
jne 0x412442
push esi
push dword [esp + 0x14]
lea eax, [esp + 8]
push eax
call fcn.0040dfa0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
mov esi, eax
call fcn.0044bb66
add esp, 4
test esi, esi
pop esi
je 0x41245c
mov al, 1
add esp, 0xc
ret 8
push dword [esp + 0x14]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x41245c
mov al, 1
add esp, 0xc
ret 8
xor al, al
add esp, 0xc
ret 8

Function at 0x412490
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45ad4e
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0x46a164]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x46cf90], 0
push dword [ebp + 0xc]
jne 0x412517
lea eax, [ebp - 0x24]
push eax
call fcn.0040dfa0
mov esi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
call fcn.0040dfa0
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.0044bb66
push dword [ebp - 0x24]
call fcn.0044bb66
add esp, 8
test esi, esi
je 0x412538
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x412538
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x4125a0
Capabilities:
Delete directory

Disassembly:
sub esp, 0xc
cmp byte [0x46cf90], 0
jne 0x4125de
push esi
push dword [esp + 0x14]
lea eax, [esp + 8]
push eax
call fcn.0040dfa0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [esp + 4]
mov esi, eax
call fcn.0044bb66
add esp, 4
test esi, esi
pop esi
je 0x4125f4
mov al, 1
add esp, 0xc
ret 4
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x4125f4
mov al, 1
add esp, 0xc
ret 4
xor al, al
add esp, 0xc
ret 4
Function at 0x412600
Capabilities:
Create directory

Disassembly:
sub esp, 0xc
cmp byte [0x46cf90], 0
jne 0x412640
push esi
push dword [esp + 0x14]
lea eax, [esp + 8]
push eax
call fcn.0040dfa0
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [esp + 4]
mov esi, eax
call fcn.0044bb66
add esp, 4
test esi, esi
pop esi
je 0x412658
mov al, 1
add esp, 0xc
ret 4
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x412658
mov al, 1
add esp, 0xc
ret 4
xor al, al
add esp, 0xc
ret 4