joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402190
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
shr ebx, 2
push esi
mov eax, ebx
mov esi, ecx
shr eax, 1
add eax, 3
mov dword [esi], eax
add esi, 0x10
xor ecx, ecx
push edi
mov dword [ebp - 4], 1
test ebx, ebx
je 0x4021c5
mov eax, dword [edx]
mov dword [esi + ecx*4], eax
inc ecx
lea edx, [edx + 4]
cmp ecx, ebx
jb 0x4021b8
mov eax, dword [esi + ebx*4 - 4]
lea ecx, [ebx + 0xe]
lea ecx, [ebx + ecx*2]
lea edi, [esi + ecx*4]
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 8]
xor edi, edi
lea ebx, [ebx]
test edi, edi
jne 0x402246
movzx ecx, al
mov edi, ebx
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
shl edx, 8
movzx ecx, byte [ecx + str.cw]
or edx, ecx
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
shr eax, 8
movzx ecx, byte [ecx + str.cw]
and eax, 0xff
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, ecx
mov ecx, dword [ebp - 4]
xor eax, ecx
shl edx, 8
add ecx, ecx
or eax, edx
test ecx, 0x100
mov edx, 0x1b
cmovne ecx, edx
mov dword [ebp - 4], ecx
jmp 0x402299
cmp edi, 4
jne 0x40229c
cmp ebx, 6
jbe 0x40229c
mov ecx, eax
shr ecx, 0x10
and ecx, 0xff
movzx edx, byte [ecx + str.cw]
mov ecx, eax
shr ecx, 0x18
movzx ecx, byte [ecx + str.cw]
shl ecx, 8
or edx, ecx
mov ecx, eax
shr ecx, 8
and ecx, 0xff
movzx eax, al
movzx ecx, byte [ecx + str.cw]
movzx eax, byte [eax + str.cw]
shl edx, 8
or edx, ecx
shl edx, 8
or eax, edx
mov ecx, dword [ebp + 8]
xor eax, dword [esi]
add esi, 4
mov dword [esi + ebx*4 - 4], eax
dec edi
cmp esi, ecx
jne 0x4021e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402fc0
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x44e130]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403009
push str.SetDefaultDllDirectories
push 0x443498
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403009
push 0xc00
call eax
test eax, eax
jne 0x4030a7
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4030a7
cmp eax, 0x104
ja 0x4030a7
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x403047
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x4030a6
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
mov al, byte [esi]
inc esi
mov ecx, edi
test al, al
je 0x403080
movzx eax, al
mov word [ecx], ax
mov al, byte [esi]
add ecx, 2
inc esi
test al, al
jne 0x403070
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx], 0x64002e
mov dword [ecx + 4], 0x6c006c
call ebx
cmp byte [esi], 0
jne 0x403067
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004344b1
mov esp, ebp
pop ebp
ret
Function at 0x406d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, 0x20
mov eax, dword [esi + 4]
cmp eax, ecx
cmova eax, ecx
mov dword [esi + 0x54], eax
mov eax, dword [esi]
push edi
mov dword [esi + 0x78], 0
mov dword [esi + 0x7c], 0
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 0x406eae
mov eax, ecx
lea ebx, [esi + 0xd0]
mov dword [ebp + 8], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x406e88
mov dword [ebx], 0
mov eax, dword [ebx - 8]
mov edi, dword [ecx]
mov eax, dword [eax + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov ecx, edi
test edi, edi
jne 0x406e70
mov eax, dword [ebp + 8]
add ebx, 0x28
dec eax
mov dword [ebp + 8], eax
jne 0x406e64
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x406ea9
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], 0
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
lea eax, [ecx + 5]
mov dword [esi + 0x28], 0
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ecx + 1]
mov dword [esi + 0x58], eax
lea eax, [ebx + 0x20]
push eax
call fcn.004085f0
mov edi, eax
test edi, edi
jne 0x406f60
lea eax, [ebx + 0x1c]
push eax
call fcn.004085f0
mov edi, eax
test edi, edi
jne 0x406f60
lea eax, [ebx + 0x20]
push eax
call fcn.00408710
mov edi, eax
test edi, edi
jne 0x406f60
lea eax, [ebx + 0x1c]
push eax
call fcn.00408710
mov edi, eax
test edi, edi
jne 0x406f60
push ebx
call fcn.00407f20
mov edi, eax
test edi, edi
je 0x406f72
push esi
mov dword [esi + 0x44], 0
call fcn.00406d40
test edi, edi
jle 0x406f6b
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x406f72
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x406f8b
cmp dword [esi + 0x40], 0
jne 0x406f8b
cmp dword [esi + 0x3c], 0
jne 0x406f8b
mov dword [esi + 0x44], 0
xor eax, eax
cmp dword [esi + 0x44], eax
cmovne edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4083b0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
inc edx
mov byte [edx + esi + 0x3f], 0x80
cmp edx, 0x38
jbe 0x4083f9
cmp edx, 0x40
je 0x4083eb
mov ecx, 0x40
sub ecx, edx
lea edi, [esi + 0x40]
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
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.00434b70
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
shld eax, ecx, 3
shl ecx, 3
bswap eax
add esp, 0xc
mov dword [esi + 0x78], eax
bswap ecx
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
mov edi, dword [ebp + 0xc]
lea edx, [esi + 0x20]
mov ebx, 4
nop
mov ecx, dword [edx + 4]
bswap ecx
mov eax, dword [edx]
mov dword [edi + 4], ecx
bswap eax
mov dword [edi], eax
lea edi, [edi + 8]
lea edx, [edx + 8]
dec ebx
jne 0x408440
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 ebx
pop ebp
ret 8

Function at 0x4084a0
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x44e020]
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
pop ebp
ret 4

Function at 0x4088e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00434c00
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40890d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
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 0xc
Function at 0x40b780
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x440958
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x44e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x451730], 0
mov edi, dword [ebp + 8]
jne 0x40b7ef
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00409f00
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00435199
add esp, 4
test esi, esi
je 0x40b812
mov al, 1
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
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b812
mov al, 1
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
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b835
xor al, al
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
lea ecx, [ebp - 0x50]
call fcn.0040c3d0
lea ecx, [ebp - 0x28]
call fcn.00408f70
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040c7b0
test al, al
jne 0x40b85f
xor bl, bl
jmp 0x40b868
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00435199
add esp, 4
mov al, bl
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 0x40b890
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x451730], 0
jne 0x40b8d0
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409f00
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435199
add esp, 4
test esi, esi
pop esi
je 0x40b8e7
mov al, 1
mov esp, ebp
pop ebp
ret 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b8e7
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4
Function at 0x40bb80
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040cec0
cmp eax, 0xffffffff
je 0x40bbab
test al, 0x10
jne 0x40bbab
test al, 1
je 0x40bbab
and eax, 0xfffffffe
push eax
push esi
call fcn.0040c2c0
test al, al
je 0x40bbf3
cmp byte [0x451730], 0
push esi
jne 0x40bbe0
lea eax, [ebp - 0xc]
push eax
call fcn.00409f00
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435199
add esp, 4
test esi, esi
je 0x40bbf3
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40bbf3
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4409c6
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0x44e130]
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 edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
cmp byte [0x451730], cl
jne 0x40bcad
lea eax, [ebp - 0x128]
push eax
push 0x114
mov byte [ebp - 0x128], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40bd78
cmp eax, 0x114
jae 0x40bd78
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x36c]
push eax
mov byte [ebp - 0x14], 0
call fcn.00409ed0
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00409000
push dword [ebp - 0x36c]
call fcn.00435199
add esp, 4
mov al, 1
jmp 0x40bd7a
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x40bd78
cmp esi, 0x114
jae 0x40bcfa
xor eax, eax
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
mov ecx, edi
call fcn.00409100
mov al, 1
jmp 0x40bd7a
lea ecx, [ebp - 0x360]
call fcn.00408f70
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40bd20
push esi
lea ecx, [ebp - 0x360]
call fcn.00409850
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40bd6a
push esi
lea ecx, [ebp - 0x360]
call fcn.0040bef0
cmp dword [ebp - 0x35c], ebx
jne 0x40bd6a
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40bd6a
lea eax, [ebp - 0x360]
push eax
mov ecx, edi
call fcn.00409000
push dword [ebp - 0x360]
call fcn.00435199
add esp, 4
mov al, 1
jmp 0x40bd7a
push dword [ebp - 0x360]
call fcn.00435199
add esp, 4
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.004344b1
mov esp, ebp
pop ebp
ret 4
Function at 0x40be00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4409fb
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x44e130]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x451730], 0
mov esi, dword [ebp + 8]
jne 0x40be8d
lea eax, [ebp - 0x128]
push eax
push 0x114
mov byte [ebp - 0x128], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, eax
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x360]
push eax
call fcn.00409ed0
push eax
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.00409000
push dword [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.00435199
add esp, 4
jmp 0x40beb8
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edi, eax
lea eax, [ebp - 0x354]
push eax
mov ecx, esi
call fcn.00409100
push esi
call fcn.0040ddb0
test edi, edi
je 0x40bece
cmp edi, 0x114
jae 0x40bece
mov al, 1
jmp 0x40bed0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004344b1
mov esp, ebp
pop ebp
ret 4

Function at 0x40bf50
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x451730], 0
jne 0x40bf8e
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409f00
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435199
add esp, 4
test esi, esi
pop esi
je 0x40bfa3
mov al, 1
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40bfa3
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40c1f0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x451730], 0
jne 0x40c22f
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409f00
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435199
add esp, 4
xor eax, eax
test esi, esi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4

Function at 0x40c2c0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x451730], 0
jne 0x40c301
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409f00
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435199
add esp, 4
test esi, esi
pop esi
je 0x40c319
mov al, 1
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40c319
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8
Function at 0x40cec0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x451730], 0
jne 0x40cefa
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00409f00
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00435199
add esp, 4
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d1f0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d222
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d222
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 4]
xor ecx, ecx
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40d320
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
mov edx, 0x400000
mov edi, edi
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, esi
cmp esi, 0x400000
cmova eax, edx
push eax
push edi
push dword [ecx]
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40d388
test ecx, ecx
je 0x40d37d
add edi, ecx
sub esi, ecx
mov ecx, dword [ebp - 4]
mov edx, 0x400000
jne 0x40d340
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 0x40d5f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebx], 0
mov edx, 0x400000
mov edi, edi
push 0
mov eax, esi
cmp esi, 0x400000
cmova eax, edx
lea edx, [ebp + 0x10]
push edx
push eax
push edi
push dword [ecx]
mov dword [ebp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x40d658
test ecx, ecx
je 0x40d64d
add edi, ecx
sub esi, ecx
mov ecx, dword [ebp - 4]
mov edx, 0x400000
jne 0x40d610
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 0x41f2b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4417f5
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x44e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [esi], ecx
test ecx, ecx
je 0x41f2eb
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 4]
mov dword [ebp - 4], 0
mov dword [esi + 4], ecx
test ecx, ecx
je 0x41f302
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 8]
mov byte [ebp - 4], 1
mov dword [esi + 8], ecx
test ecx, ecx
je 0x41f316
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov ecx, dword [edi + 0xc]
mov byte [ebp - 4], 2
mov dword [esi + 0xc], ecx
test ecx, ecx
je 0x41f32a
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
movzx eax, byte [edi + 0x10]
mov byte [esi + 0x10], al
movzx eax, byte [edi + 0x11]
mov byte [esi + 0x11], al
movzx eax, byte [edi + 0x12]
mov byte [esi + 0x12], al
movzx eax, byte [edi + 0x13]
mov byte [esi + 0x13], al
movzx eax, byte [edi + 0x14]
mov byte [esi + 0x14], al
movzx eax, byte [edi + 0x15]
mov byte [esi + 0x15], al
movzx eax, byte [edi + 0x16]
mov byte [esi + 0x16], al
movzx eax, byte [edi + 0x17]
mov byte [esi + 0x17], al
lea eax, [edi + 0x18]
push eax
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 3
call fcn.00408e40
lea eax, [edi + 0x24]
push eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 4
call fcn.00408e40
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
call fcn.00408e40
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
movq xmm0, qword [edi + 0x44]
movq qword [esi + 0x44], xmm0
mov eax, dword [edi + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [edi + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x5c]
mov dword [esi + 0x5c], eax
movzx eax, byte [edi + 0x60]
mov byte [esi + 0x60], al
mov eax, dword [edi + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [edi + 0x6c]
mov dword [esi + 0x6c], eax
mov eax, dword [edi + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [edi + 0x74]
mov dword [esi + 0x74], eax
lea eax, [edi + 0x78]
push eax
lea ecx, [esi + 0x78]
mov byte [ebp - 4], 6
call fcn.0041f570
lea eax, [edi + 0xa8]
push eax
lea ecx, [esi + 0xa8]
mov byte [ebp - 4], 7
call fcn.0041f570
mov eax, dword [edi + 0xd8]
mov dword [esi + 0xd8], eax
mov eax, dword [edi + 0xdc]
mov dword [esi + 0xdc], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41f440
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44187b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x44e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
lea ecx, [edi + 0x18]
mov byte [ebp - 4], 3
mov dword [edi + 0x11], 0
mov word [edi + 0x15], 0
mov byte [edi + 0x17], 0
call fcn.00408f70
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 4
call fcn.00408f70
lea ecx, [edi + 0x30]
mov byte [ebp - 4], 5
call fcn.00408f70
lea esi, [edi + 0x78]
xor eax, eax
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], eax
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 6
mov dword [ebp - 0x14], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
call fcn.00408f70
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 7
call fcn.00408f70
lea esi, [edi + 0xa8]
mov byte [ebp - 4], 8
lea ecx, [esi + 0x18]
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.00408f70
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 9
call fcn.00408f70
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41f610
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441912
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x44e130]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi + 0x10], 0
mov dword [edi], 0x443e7c
mov dword [edi + 4], 0x443e90
mov dword [edi + 8], 0x443ea4
mov dword [edi + 0xc], 0x443eb4
mov byte [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
lea ecx, [edi + 0x44]
mov byte [ebp - 4], 2
mov dword [edi + 0x3c], 0
mov dword [edi + 0x40], 0
call fcn.00408f70
lea ecx, [edi + 0x50]
mov byte [ebp - 4], 3
call fcn.00408f70
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 4
call fcn.0040c3d0
lea ecx, [edi + 0x88]
call fcn.00408f70
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 5
call fcn.0041d9f0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret