joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430532
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x50c], eax
mov byte [ebp - 0x4f9], bl
mov dword [ebp - 0x500], ebx
cmp byte [ebp - 0x4f9], bl
jne 0x430729
push 0xff
lea eax, [ebp - 0x103]
push ebx
push eax
mov byte [ebp - 0x104], bl
call fcn.0044d460
push 0x3e7
lea eax, [ebp - 0x4eb]
push ebx
push eax
mov byte [ebp - 0x4ec], bl
call fcn.0044d460
push dword [ebp - 0x500]
lea eax, [ebp - 0x104]
push str..PhysicalDrive_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x24
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x504], eax
cmp eax, 0xffffffff
je 0x430716
push 0x2710
push 8
mov dword [ebp - 0x508], ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
je 0x43070a
xor eax, eax
lea edi, [ebp - 0x4f8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push ebx
stosd dword es:[edi], eax
lea eax, [ebp - 0x508]
push eax
mov edi, 0x2710
push edi
push esi
push 0xc
lea eax, [ebp - 0x4f8]
push eax
push 0x2d1400
push dword [ebp - 0x504]
mov dword [ebp - 0x4f8], ebx
mov dword [ebp - 0x4f4], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x43067d
mov eax, dword [esi + 0x18]
cmp eax, ebx
je 0x43067d
lea ecx, [ebp - 0x4ec]
push ecx
add eax, esi
push eax
call fcn.0043103f
lea eax, [ebp - 0x4ec]
push eax
call fcn.004311a6
movsx ax, byte [ebp - 0x4ec]
movzx eax, ax
add esp, 0xc
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
jne 0x4306dd
push edi
push ebx
push esi
call fcn.0044d460
add esp, 0xc
push ebx
lea eax, [ebp - 0x508]
push eax
push edi
push esi
push ebx
push ebx
push 0x2d0c10
push dword [ebp - 0x504]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4306fb
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x4ec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x4ec]
push eax
call fcn.004311a6
movsx ax, byte [ebp - 0x4ec]
movzx eax, ax
pop ecx
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x4306fb
push 0x31
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp - 0x50c]
call fcn.0044c310
mov byte [ebp - 0x4f9], 1
add esp, 0xc
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x504]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x500]
cmp dword [ebp - 0x500], 0x10
jl 0x43055f
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x4f9]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044bf82
leave
ret
Function at 0x4308ed
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 1
push ebx
push ebx
push ebx
push str..SMARTVSD
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x4309ac
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, 0x104
push esi
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push 8
mov dword [ebp - 8], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], ebx
je 0x430993
cmp eax, ebx
je 0x430986
push esi
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.SMARTVSD.VXD
push dword [ebp - 8]
call esi
push str.IOSUBSYSSMARTVSD.VXD
push dword [ebp - 0xc]
call esi
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push dword [ebp - 8]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0xc], ebx
je 0x4309a5
push dword [ebp - 0xc]
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor al, al
jmp 0x430ac9
push 0x21
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
push 0x210
push 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call edi
mov dword [ebp - 8], eax
cmp esi, ebx
je 0x430aa7
cmp eax, ebx
je 0x430a98
mov dword [ebp - 0xc], ebx
cmp byte [ebp - 1], bl
jne 0x430a98
push 8
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov edi, 0x210
push edi
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x14], ebx
call fcn.0044d460
mov al, byte [ebp - 0xc]
add esp, 0xc
push ebx
mov byte [esi + 0xc], al
lea eax, [ebp - 0x14]
push eax
push edi
mov edi, dword [ebp - 8]
push edi
push 0x20
push esi
push 0x7c088
push dword [ebp - 0x10]
mov dword [esi], 0x200
mov dword [esi + 4], 0x10100
mov word [esi + 8], 0xa000
mov byte [esi + 0xa], 0xec
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x430a8b
add edi, 0x24
mov eax, edi
call fcn.004308d6
push 0x31
push ebx
push dword [ebp + 8]
call fcn.0044d460
push 0x14
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.0044c310
push edi
call fcn.004311a6
movsx ax, byte [edi]
movzx eax, ax
add esp, 0x1c
push eax
call dword [sym.imp.USER32.dll_IsCharAlphaNumericW]
test eax, eax
je 0x430a8b
mov byte [ebp - 1], 1
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x10
jl 0x4309e7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 8], ebx
je 0x430abd
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430db6
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x430de5
xor al, al
jmp 0x430eab
mov eax, dword [0x4a7088]
xor edi, edi
cmp eax, edi
jne 0x430e0d
push str.inetmib1.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4a7088], eax
cmp eax, 0x20
jae 0x430e0d
mov dword [0x4a7088], edi
jmp 0x430dde
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [0x4a708c], edi
jne 0x430e2c
push str.SnmpExtensionInit
push eax
call esi
mov dword [0x4a708c], eax
cmp eax, edi
je 0x430dde
push 0x4a5f3c
push 0x4a5f38
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call dword [0x4a708c]
cmp dword [0x4a7090], edi
jne 0x430e65
push str.SnmpExtensionInitEx
push dword [0x4a7088]
call esi
mov dword [0x4a7090], eax
cmp eax, edi
je 0x430dde
cmp dword [0x4a7094], edi
jne 0x430e87
push str.SnmpExtensionQuery
push dword [0x4a7088]
call esi
mov dword [0x4a7094], eax
cmp eax, edi
je 0x430dde
cmp dword [0x4a7098], edi
jne 0x430ea9
push str.SnmpExtensionTrap
push dword [0x4a7088]
call esi
mov dword [0x4a7098], eax
cmp eax, edi
je 0x430dde
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044bf82
leave
ret

Function at 0x4313a8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push ecx
push dword [edi + 4]
mov dword [ebp - 0x38], ecx
push edx
lea ecx, [ebp - 0x24]
push ebx
push ecx
lea esi, [ebp - 0x40]
call fcn.00431926
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 0x14
push 0
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0x1e
lea eax, [ebp - 0x24]
push eax
push dword [edi]
call esi
push 0
lea eax, [ebp - 0x34]
push eax
movzx eax, word [ebp - 0xa]
push eax
push ebx
push dword [edi]
call esi
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x12]
push dword [ebp - 0x28]
push dword [edi]
call esi
cmp dword [ebp - 0x38], 0
jne 0x43141c
push dword [ebp - 0x28]
call fcn.0044d937
pop ecx
lea ecx, [edi + 8]
lea eax, [ebp - 0x40]
call fcn.00431afc
movzx ecx, word [ebp - 0xa]
mov edx, dword [ebp - 0x12]
lea eax, [ecx + edx + 0x1e]
add dword [edi + 4], eax
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0x2c]
lea ecx, [ecx + edx + 0x1e]
add eax, dword [ebp - 0x30]
pop esi
sub eax, ecx
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0044bf82
leave
ret
Function at 0x43147b
Capabilities:
Get file size
Read file via mapping
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x30], esi
cmp esi, 0xffffffff
jne 0x4314c0
xor al, al
jmp 0x431598
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, ebx
jne 0x4314d8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4314b9
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push ebx
push ebx
push ebx
push 4
push eax
mov dword [ebp - 0x40], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push ebx
push dword [edi + 4]
mov dword [ebp - 0x44], eax
push eax
push dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
lea esi, [ebp - 0x4c]
call fcn.00431926
add esp, 0x14
push dword [ebp - 0x44]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x40]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x30]
call esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0x38]
push eax
push 0x1e
lea eax, [ebp - 0x24]
push eax
push dword [edi]
call esi
push ebx
lea eax, [ebp - 0x3c]
push eax
movzx eax, word [ebp - 0xa]
push eax
push dword [ebp - 0x2c]
push dword [edi]
call esi
push ebx
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x12]
push dword [ebp - 0x28]
push dword [edi]
call esi
push dword [ebp - 0x28]
call fcn.0044d937
pop ecx
lea ecx, [edi + 8]
lea eax, [ebp - 0x4c]
call fcn.00431afc
movzx ecx, word [ebp - 0xa]
mov edx, dword [ebp - 0x12]
lea eax, [ecx + edx + 0x1e]
add dword [edi + 4], eax
mov eax, dword [ebp - 0x3c]
add eax, dword [ebp - 0x34]
lea ecx, [ecx + edx + 0x1e]
add eax, dword [ebp - 0x38]
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044bf82
leave
ret
Function at 0x4315a6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a2d54]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea esi, [edi + 8]
mov eax, dword [esi + 4]
sub eax, dword [esi]
xor ebx, ebx
sar eax, 3
mov dword [ebp - 0x20], ebx
test eax, eax
je 0x43160e
mov eax, dword [esi]
mov ecx, dword [ebp - 0x20]
lea eax, [eax + ecx*8]
push 0
lea ecx, [ebp - 0x24]
push ecx
push dword [eax + 4]
push dword [eax]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi]
mov ecx, dword [ebp - 0x20]
push dword [eax + ecx*8]
call fcn.0044d937
mov eax, dword [esi]
pop ecx
mov ecx, dword [ebp - 0x20]
add ebx, dword [eax + ecx*8 + 4]
mov ecx, dword [esi + 4]
inc dword [ebp - 0x20]
sub ecx, eax
sar ecx, 3
cmp dword [ebp - 0x20], ecx
jb 0x4315cc
mov ecx, dword [esi + 4]
sub ecx, dword [esi]
push dword [edi + 4]
sar ecx, 3
push ebx
lea eax, [ebp - 0x1c]
call fcn.00431aae
pop ecx
pop ecx
push 0
lea eax, [ebp - 0x24]
push eax
push 0x16
lea eax, [ebp - 0x1c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00431cd0
push edi
call fcn.0044bdaa
pop ecx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044bf82
leave
ret
Function at 0x432427
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x476995
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x4a2d54]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
mov eax, dword [0x4a2d54]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x18], eax
call fcn.0044bd14
cmp byte [ebp + 0x1c], 0
pop ecx
mov esi, eax
je 0x432541
push ebx
push dword [esp + 0x18]
push esi
call fcn.0044bfa0
and dword [esp + 0x58], 0
add esp, 0xc
push edi
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], 0xf
mov byte [esp + 0x40], 0
call fcn.00409a42
and dword [esp + 0xe8], 0
lea eax, [esp + 0x3c]
push eax
lea edi, [esp + 0x78]
call fcn.0043235a
pop ecx
mov byte [esp + 0xe8], 1
push eax
lea edi, [esp + 0x18]
lea eax, [esp + 0x94]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
call fcn.00433a00
pop ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xe8], 2
mov edi, dword [ecx + 0xc]
push eax
mov ecx, edi
call fcn.004343eb
push eax
lea esi, [esp + 0x18]
mov eax, edi
call fcn.00433b36
xor esi, esi
push esi
push 1
lea ecx, [esp + 0x98]
call fcn.004063f1
push esi
push 1
lea ecx, [esp + 0x7c]
call fcn.004063f1
lea ecx, [esp + 0x3c]
push esi
push 1
call fcn.004063f1
mov al, 1
jmp 0x43260c
mov eax, dword [esp + 0x1c]
movzx eax, byte [eax + 0x10]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
push dword [esp + 0x24]
call fcn.004391e8
test al, al
je 0x432603
and dword [esp + 0x30], 0
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x38], 0xf
mov byte [esp + 0x24], 0
call fcn.00409a42
lea eax, [esp + 0x20]
push eax
lea edi, [esp + 0x5c]
mov dword [esp + 0xec], 3
call fcn.0043235a
pop ecx
mov byte [esp + 0xe8], 4
push eax
lea edi, [esp + 0x18]
lea eax, [esp + 0xb8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ebx
call fcn.00433a00
pop ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0xe8], 5
mov edi, dword [ecx + 0xc]
push eax
mov ecx, edi
call fcn.004343eb
push eax
lea esi, [esp + 0x18]
mov eax, edi
call fcn.00433b36
xor esi, esi
push esi
push 1
lea ecx, [esp + 0xbc]
call fcn.004063f1
push esi
push 1
lea ecx, [esp + 0x60]
call fcn.004063f1
lea ecx, [esp + 0x20]
jmp 0x432532
push esi
call fcn.0044bdaa
pop ecx
xor al, al
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc8]
xor ecx, esp
call fcn.0044bf82
mov esp, ebp
pop ebp
ret 0x18
Function at 0x432683
Capabilities:
Read file via mapping

Disassembly:
push 0x78
mov eax, 0x476934
call fcn.0044cfd2
mov esi, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push esi
push ebx
push 4
push ebx
push 0xffffffffffffffff
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x74], eax
cmp eax, ebx
jne 0x4326bc
xor al, al
jmp 0x43279f
push ebx
push ebx
push ebx
push 6
push eax
mov byte [ebp - 0x6d], bl
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x84], eax
cmp eax, ebx
je 0x43279c
cmp byte [ebp + 0x1c], bl
je 0x4326eb
push esi
push edi
push eax
call fcn.0044bfa0
add esp, 0xc
jmp 0x43270c
mov ecx, dword [ebp - 0x7c]
movzx ecx, byte [ecx + 0x10]
push ecx
push dword [ebp + 0x18]
mov ebx, esi
push dword [ebp + 0x14]
push eax
push edi
call fcn.004391e8
test al, al
je 0x432790
xor ebx, ebx
push dword [ebp - 0x80]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0x6d], 1
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00409a42
lea eax, [ebp - 0x2c]
push eax
lea edi, [ebp - 0x48]
mov dword [ebp - 4], ebx
call fcn.0043235a
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x74]
push eax
lea edi, [ebp - 0x78]
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 0x74], esi
call fcn.00433a4a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x7c]
mov byte [ebp - 4], 2
mov edi, dword [ecx + 0xc]
push eax
mov ecx, edi
call fcn.00434451
push eax
lea esi, [ebp - 0x78]
mov eax, edi
call fcn.00433bff
push ebx
push 1
lea ecx, [ebp - 0x6c]
call fcn.004063f1
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.004063f1
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004063f1
push dword [ebp - 0x84]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov al, byte [ebp - 0x6d]
call fcn.0044d055
ret 0x18

Function at 0x432832
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x18]
push dword [ebp + 8]
call fcn.0046f446
pop ecx
pop ecx
test eax, eax
jne 0x4328c8
push ebx
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
cmp dword [esi + 0xc], ebx
je 0x43287a
push ebx
push edi
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, dword [esi + 0xc]
push ebx
push ebx
push ebx
mov dword [ecx], eax
mov eax, dword [esi + 0xc]
push 6
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
jmp 0x432881
push edi
call fcn.0044bd14
pop ecx
mov dword [ebp + 0x10], eax
cmp byte [ebp + 0x1c], bl
je 0x432898
push edi
push dword [ebp + 0xc]
push eax
call fcn.0044bfa0
add esp, 0xc
jmp 0x4328ae
push ebx
push dword [ebp + 0x18]
mov ebx, edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004391e8
xor ebx, ebx
mov eax, dword [esi + 0x14]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
cmp eax, ebx
je 0x4328bf
mov ecx, dword [ebp + 0x10]
mov dword [eax], ecx
pop edi
mov byte [esi + 8], bl
mov al, 1
pop ebx
jmp 0x4328ca
xor al, al
pop esi
pop ebp
ret 0x18
Function at 0x432cc2
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475cc6
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x4a2d54]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push esi
push edi
mov eax, dword [0x4a2d54]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
and dword [esp + 0x3c], 0
mov edi, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], 0xf
mov byte [esp + 0x2c], 0
and dword [esp + 0x58], 0
push esi
call fcn.0044bd14
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
push eax
call fcn.0044bfa0
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x18]
add esp, 0x10
mov dword [esp + 0x28], eax
mov al, byte [ebp + 0x1c]
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x28], al
call fcn.00409a42
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push ecx
push eax
call fcn.004332a1
push 0
push 1
lea ecx, [esp + 0x34]
call fcn.004063f1
mov al, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.0044bf82
mov esp, ebp
pop ebp
ret 0x18
Function at 0x439224
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp + 8]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 8], eax
cmp eax, 0xffffffff
je 0x43927e
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push edi
push edi
push edi
push 4
push eax
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
push dword [esi + 8]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
mov eax, esi
pop edi
pop ebp
ret 4

Function at 0x43a6ff
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, eax
test edx, edx
jne 0x43a70a
xor eax, eax
pop edi
ret
or eax, 0xffffffff
push esi
mov ecx, 0xff
cmp edi, 8
jb 0x43a7bf
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ada8]
movzx ebx, byte [edx + 1]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ada8]
movzx ebx, byte [edx + 2]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ada8]
movzx ebx, byte [edx + 3]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ada8]
movzx ebx, byte [edx + 4]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ada8]
movzx ebx, byte [edx + 5]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ada8]
movzx ebx, byte [edx + 6]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ada8]
movzx ebx, byte [edx + 7]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x48ada8]
add edx, 8
sub edi, 8
dec esi
jne 0x43a722
pop ebx
test edi, edi
je 0x43a7d8
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x48ada8]
inc edx
dec edi
jne 0x43a7c3
pop esi
not eax
pop edi
ret

Function at 0x43a7dd
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
xor ebx, ebx
push ebx
push ebx
push 2
push ebx
push ebx
mov edi, 0xc0000000
push edi
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
jne 0x43a832
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x43a822
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffa
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push ebx
push 0x80
push 2
push ebx
push ebx
push edi
push dword [ebp + 8]
call esi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x43ae00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x43ae33
push esi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
pop esi
leave
ret
xor eax, eax
leave
ret