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

Disassembly:
cmp al, 0x60
mov ebp, esp
add ebp, 0x24
push esp
call fcn.00403574
in eax, 0x9c
dec ebx
xchg esp, eax
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x405738
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00403574
cwde
psubq mm6, qword [ebp - 0x75]
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00403574
fdivp st(7)
jmp esp
imul ebp, dword [eax + 0x56], 0x49
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x405761
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x405761
call fcn.00403574
in al, dx
and dword [esi], ecx
test dword [ebx - 0x20fcdba6], ecx
mov cx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00403574
xchg esp, eax
sar dword [ebx], 0x63
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.00403d74
push ebp
push esi
call ebx
test eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
mov esi, 0x42bbe8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
push esi
push ebp
push str._s_s_r_n
push 0x42b7e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x42eb70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405a2e
push 4
push 0xc0000000
push esi
call fcn.004056e3
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4058b7
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4058b0
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4058b0
cmp edi, dword [esp + 0x18]
jne 0x4058b0
push str._Rename__r_n
push esi
call fcn.00405658
test eax, eax
jne 0x4058c4
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405a0c
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x42b7e8
push eax
call fcn.004056a4
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x42ebf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405658
test eax, eax
je 0x40587b
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4058eb
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4058e0
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40587d
Function at 0x40106c
Capabilities:
Delete directory
Delete file

Disassembly:
mov eax, 0x45e953
call fcn.0043b400
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x1c], esi
cmp byte [esi + 0x20], 0
push 1
pop ebx
mov dword [ebp - 4], ebx
jne 0x401253
mov edi, dword [esi + 4]
mov eax, dword [esi + 8]
cmp edi, eax
je 0x401162
mov ecx, edi
call fcn.00401f3e
push eax
lea eax, [ebp - 0xd]
push ebx
push eax
push 0x47611c
lea ecx, [ebp - 0x48]
call fcn.00401712
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401794
push eax
lea eax, [ebp - 0xe]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
push eax
push 0x476108
call fcn.00401712
sub esp, 0x28
lea eax, [ebp - 0xf]
mov ecx, esp
mov dword [ebp - 0x20], esp
push ebx
push eax
push 0x4760f8
mov byte [ebp - 4], 3
call fcn.00401712
mov byte [ebp - 4], 2
call fcn.00432663
add esp, 0x58
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00401279
and dword [ebp - 0x18], 0
push 0xc
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x20], esp
push ebx
push edi
call fcn.004016e8
call fcn.0042c706
add esp, 0x2c
test al, al
je 0x401156
mov ecx, edi
call fcn.00401f3e
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401156
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x18]
cmp eax, 0x64
jge 0x401156
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401112
add edi, 0x28
cmp edi, dword [esi + 8]
jne 0x40109f
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
cmp eax, dword [esi + 0x14]
je 0x401246
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0x28]
call fcn.00401f3e
push eax
lea eax, [ebp - 0xf]
push ebx
push eax
push 0x4760ec
lea ecx, [ebp - 0x48]
call fcn.00401712
mov ecx, eax
mov byte [ebp - 4], 4
call fcn.00401794
push eax
lea eax, [ebp - 0xe]
sub esp, 0x28
mov ecx, esp
mov dword [ebp - 0x20], esp
push ebx
push eax
push 0x4760d8
call fcn.00401712
sub esp, 0x28
lea eax, [ebp - 0xd]
mov ecx, esp
mov dword [ebp - 0x18], esp
push ebx
push eax
push 0x4760f8
mov byte [ebp - 4], 5
call fcn.00401712
mov byte [ebp - 4], 4
call fcn.00432663
add esp, 0x58
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00401279
and dword [ebp - 0x18], 0
push 0xc
lea ecx, [ebp - 0x14]
sub esp, 0x28
mov edi, esp
mov dword [ebp - 0x20], esp
push ebx
call fcn.00401a9a
push eax
mov ecx, edi
call fcn.004016e8
call fcn.0042c706
add esp, 0x2c
test al, al
je 0x40123a
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0x28]
call fcn.00401f3e
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x40123a
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x18]
cmp eax, 0x64
jge 0x40123a
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4011e8
sub dword [ebp - 0x14], 0x28
mov eax, dword [ebp - 0x14]
jmp 0x401168
cmp byte [esi + 0x21], 0
je 0x401253
push ebx
call fcn.004012f3
pop ecx
and byte [ebp - 4], 0
lea ecx, [esi + 0x10]
call fcn.00401a67
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00401a67
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x402b4e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
xor ebx, ebx
mov dword [esi + 8], ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, ebx
jne 0x402b77
push ebx
push ebx
call fcn.0043bb6a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
mov dword [ebp + 0x10], eax
jne 0x402b8f
push ebx
push ebx
call fcn.0043bb6a
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, ebx
mov dword [esi + 4], eax
jne 0x402ba7
push ebx
push ebx
call fcn.0043bb6a
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
cmp eax, ebx
mov dword [esi], eax
jne 0x402bbd
push ebx
push ebx
call fcn.0043bb6a
push dword [esi + 4]
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.0043b420
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4041b8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov byte [ebp - 0x1c], 0x49
cmp byte [ebp + 0xc], al
mov dword [ebp - 4], eax
mov byte [ebp - 0x1b], 0x6e
mov byte [ebp - 0x1a], 0x73
mov byte [ebp - 0x19], 0x74
mov byte [ebp - 0x18], 0x61
mov byte [ebp - 0x17], 0x6c
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x53
mov byte [ebp - 0x14], 0x68
mov byte [ebp - 0x13], 0x69
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x64
mov byte [ebp - 0xf], al
je 0x40421e
mov byte [ebp - 0xf], 0x20
mov byte [ebp - 0xe], 0x57
mov byte [ebp - 0xd], 0x69
mov byte [ebp - 0xc], 0x7a
mov byte [ebp - 0xb], 0x61
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], al
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 1
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00401712
mov eax, dword [ebp + 8]
leave
ret 8
Function at 0x40463d
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, 0x45efae
call fcn.0043b400
sub esp, 0x224
push ebx
push esi
lea eax, [ebp - 0x230]
push edi
xor ebx, ebx
push eax
push 0x104
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x404681
lea ecx, [ebp - 0x58]
call fcn.00404821
lea eax, [ebp - 0x58]
push 0x46a278
push eax
call fcn.0043bb6a
push 0x24
xor eax, eax
pop ecx
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x12c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov edi, 0x467578
mov esi, 0x467570
je 0x4047c0
cmp dword [ebp - 0x11c], 1
jne 0x4047c0
lea eax, [ebp - 0xe]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.004054b0
push 0x4763fc
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 1
call fcn.00404c04
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea ecx, [ebp - 0x3c]
call fcn.00405854
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x40479f
lea eax, [ebp - 0x64]
push ebx
push eax
call fcn.004049a3
pop ecx
pop ecx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00404ae0
push dword [0x467558]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 3
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
lea ecx, [ebp - 0x38]
call fcn.0040238d
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 2
call fcn.00401279
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.00401279
push 0x4763f0
lea ecx, [ebp - 0x3c]
call fcn.00404c04
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401b15
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x3c]
jmp 0x40480a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x3c]
call fcn.00405854
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00401279
lea eax, [ebp - 0xd]
push ebx
push eax
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.004054b0
push 0x4763ec
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 4
call fcn.00404c04
mov ecx, dword [ebp + 8]
push ebx
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401b15
mov dword [ebp - 0x14], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x64]
call fcn.00401279
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x4049a3
Capabilities:
Get common file path

Disassembly:
mov eax, 0x45f01b
call fcn.0043b400
sub esp, 0x15c
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
push 1
mov esi, 0x104
pop ebx
cmp dword [ebp + 0xc], ebx
jne 0x404a4e
push 0x47642c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x404a4e
push 0x476410
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
mov dword [0x47640c], eax
je 0x404a4e
lea ecx, [ebp - 0x168]
push esi
push ecx
call eax
test eax, eax
je 0x404a4e
lea eax, [ebp + 0xf]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x467578
mov esi, 0x467570
push eax
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x44], esi
call fcn.004054b0
push 0x4763ec
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.00404c04
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401b15
mov dword [ebp - 0x14], ebx
and byte [ebp - 4], 0
lea ecx, [ebp - 0x64]
jmp 0x404ac9
lea eax, [ebp - 0x168]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x404a76
lea ecx, [ebp - 0x30]
call fcn.00404821
lea eax, [ebp - 0x30]
push 0x46a278
push eax
call fcn.0043bb6a
lea eax, [ebp - 0xd]
push 0
push eax
lea eax, [ebp - 0x168]
mov edi, 0x467578
mov esi, 0x467570
push eax
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x1c], esi
call fcn.004054b0
push 0x4763ec
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 2
call fcn.00404c04
mov ecx, dword [ebp + 8]
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401b15
and byte [ebp - 4], 0
mov dword [ebp - 0x14], ebx
lea ecx, [ebp - 0x3c]
call fcn.00401279
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x407018
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
mov esi, ecx
mov eax, dword [esi]
movzx ecx, word [eax + 0x48]
cmp ecx, dword [ebp + 8]
jne 0x407036
mov ax, word [eax + 0x4e]
cmp ax, 0xffff
jne 0x407077
lea eax, [ebp - 0x14]
push 0x14
push eax
push 0x1004
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jle 0x407071
lea eax, [ebp - 0x14]
push eax
call fcn.0043c3f4
pop ecx
lea ecx, [ebp - 0x34]
push 2
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x407071
mov eax, dword [esi]
mov cx, word [ebp - 0x34]
mov word [eax + 0x4e], cx
mov eax, dword [esi]
mov ax, word [eax + 0x4e]
pop esi
leave
ret 4
Function at 0x40a131
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x45f9fb
call fcn.0043b400
mov eax, 0x10a0
call fcn.0043afe0
push ebx
push esi
xor esi, esi
push edi
lea eax, [ebp - 0x21]
mov ebx, 0x4675b0
mov edi, 0x4675a8
push esi
push eax
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x34], edi
call fcn.0040b222
or dword [ebp - 0x20], 0xffffffff
push 1
pop eax
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push esi
push 0x80
push 3
push esi
push eax
push SysReAllocStringLen
mov byte [ebp - 4], 2
call fcn.0040bbda
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
je 0x40a261
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0xac]
push eax
call fcn.0043640a
pop ecx
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0x10ac]
push 0x1000
push eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40a1ee
push dword [ebp + 0xc]
lea eax, [ebp - 0x10ac]
push eax
lea eax, [ebp - 0xac]
push eax
call fcn.00436432
add esp, 0xc
cmp dword [ebp + 0xc], esi
ja 0x40a1b2
lea eax, [ebp - 0xac]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004364d0
movzx eax, byte [ebp - 0xd]
pop ecx
pop ecx
push eax
movzx eax, byte [ebp - 0xe]
push eax
movzx eax, byte [ebp - 0xf]
push eax
movzx eax, byte [ebp - 0x10]
push eax
movzx eax, byte [ebp - 0x11]
push eax
movzx eax, byte [ebp - 0x12]
push eax
movzx eax, byte [ebp - 0x13]
push eax
movzx eax, byte [ebp - 0x14]
push eax
movzx eax, byte [ebp - 0x15]
push eax
movzx eax, byte [ebp - 0x16]
push eax
movzx eax, byte [ebp - 0x17]
push eax
movzx eax, byte [ebp - 0x18]
push eax
movzx eax, byte [ebp - 0x19]
push eax
movzx eax, byte [ebp - 0x1a]
push eax
movzx eax, byte [ebp - 0x1b]
push eax
movzx eax, byte [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push 0x476b64
push eax
call fcn.0040af59
add esp, 0x48
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x54]
push 0
push eax
mov ecx, esi
mov dword [esi], ebx
mov dword [esi + 0x20], edi
call fcn.0040b297
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x20], 0xffffffff
je 0x40a291
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x40a291
push dword [ebp - 0x20]
call eax
and byte [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.00406295
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x413cbb
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0
je 0x413d00
mov eax, dword [ebp + 8]
test eax, eax
je 0x413cd5
and dword [eax], 0
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413d5c
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413bb6
lea eax, [ebp - 0x4c]
push 0x46c758
push eax
call fcn.0043bb6a
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413d5c
cmp dword [ebp + 8], 0
jne 0x413d35
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413876
lea eax, [ebp - 0x48]
push 0x46c620
push eax
call fcn.0043bb6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x413d5c
push 1
add esi, 0xc
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.00413aef
lea eax, [ebp - 0x48]
push 0x46c620
push eax
call fcn.0043bb6a
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x417153
Capabilities:
Get disk information

Disassembly:
mov eax, 0x461598
call fcn.0043b400
sub esp, 0x50
push esi
mov esi, ecx
lea eax, [ebp - 0x5c]
push edi
lea ecx, [esi + 4]
push eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov ecx, eax
call fcn.004036c9
and dword [ebp - 4], 0
lea ecx, [ebp - 0x34]
push 0
push ecx
mov ecx, eax
call fcn.00401dbc
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.00401f3e
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
and byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
mov edi, eax
call fcn.00401279
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401279
cmp edi, 2
je 0x4171e3
cmp edi, 5
je 0x4171e3
cmp edi, 3
je 0x4171df
cmp edi, 4
je 0x4171df
cmp edi, 6
je 0x4171df
mov ecx, esi
call fcn.00416fbc
dec ax
neg ax
sbb eax, eax
neg eax
jmp 0x4171e5
xor al, al
jmp 0x4171e5
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x418ea7
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x4619a4
call fcn.0043b400
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x418fb2
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x418ef0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push 0x477cf8
call fcn.00419002
pop ecx
test eax, eax
pop ecx
je 0x418f1c
cmp dword [eax + 0xc], esi
jne 0x418f1c
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x418f6f
push edi
push 0x477cf0
call fcn.00419002
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x418f42
push edi
push 0x477ce8
call fcn.00419002
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x418fb2
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x418fb2
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x418fbd
cmp dword [ebp + 8], 0
je 0x418fbd
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x418fb6
xor eax, eax
jmp 0x418ff3
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x418fdc
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x418fd6
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x418fc7
cmp dword [ebp - 0x10], 0
je 0x418ff0
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x418ff0
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x419048
Capabilities:
Create directory

Disassembly:
mov eax, 0x4619c0
call fcn.0043b400
sub esp, 0x3c
push ebx
push esi
push edi
push 1
lea ecx, [ebp - 0x48]
call fcn.0041a092
mov ecx, dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00419117
mov eax, dword [eax + 0x10]
cmp eax, ebx
jne 0x41907f
xor esi, esi
jmp 0x419088
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
mov esi, eax
lea ecx, [ebp - 0x2c]
call fcn.00419ec6
push 0x5c
inc esi
pop edi
mov dword [ebp - 0x10], edi
mov ecx, dword [ebp + 8]
push esi
lea eax, [ebp - 0x10]
push 1
push eax
call fcn.0041a736
cmp dword [0x467f88], eax
je 0x4190fa
lea esi, [eax + 1]
push ebx
push esi
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x20], 0x467f70
mov dword [ebp - 0x18], 0x467f68
call fcn.00419c00
mov dword [ebp - 0x2c], 0x467f7c
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0043992e
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], bl
call fcn.00419ec6
mov dword [ebp - 0x10], edi
jmp 0x419097
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0041a117
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x41b2e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41b2f4
push 0x26
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b328
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00437c80
test al, al
jne 0x41b35b
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413bb6
lea eax, [ebp - 0x4c]
push 0x46c758
push eax
call fcn.0043bb6a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b35b
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413876
lea eax, [ebp - 0x48]
push 0x46c620
push eax
call fcn.0043bb6a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8

Function at 0x41b363
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
push esi
cmp eax, 0xffffffff
mov esi, ecx
jne 0x41b377
push 6
pop eax
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41b3ab
lea edx, [ebp + 8]
push edx
push eax
push dword [ebp + 8]
call fcn.00437c80
test al, al
jne 0x41b3de
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x4c]
call fcn.00413bb6
lea eax, [ebp - 0x4c]
push 0x46c758
push eax
call fcn.0043bb6a
lea ecx, [ebp + 8]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b3de
add esi, 0xc
push 1
push esi
lea ecx, [ebp - 0x48]
call fcn.00413876
lea eax, [ebp - 0x48]
push 0x46c620
push eax
call fcn.0043bb6a
mov eax, dword [ebp + 8]
pop esi
leave
ret 8
Function at 0x41fad3
Capabilities:
Get common file path
Set current directory

Disassembly:
mov eax, 0x462550
call fcn.0043b400
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
and dword [ebp - 4], 0
lea eax, [ebp - 0xd]
push 0
push eax
mov dword [esi], 0x467548
mov dword [esi + 0x20], 0x467550
call fcn.00401aa0
lea eax, [ebp - 0x20]
push 0x105
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.00401799
mov edi, eax
mov ecx, dword [edi]
mov byte [ebp - 4], 2
call fcn.00401f3e
push eax
push 0x104
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004019ee
lea ecx, [ebp + 8]
call fcn.00401f3e
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401279
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 0x28

Function at 0x41fb6c
Capabilities:
Set current directory

Disassembly:
mov eax, 0x462564
call fcn.0043b400
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
cmp dword [esi + 0xc], 0
je 0x41fb93
call fcn.00401f3e
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00401279
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret