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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x4015c7
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x4015ba
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x401635
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + 0xad60c0]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + 0xad60c0]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + 0xad60c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xad60c0]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x401682
cmp ebx, 4
jne 0x401685
cmp edi, 6
jbe 0x401685
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + 0xad60c0]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + 0xad60c0]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0xad60c0]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + 0xad60c0]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x4015d6
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x402765
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x402786
lea ecx, [ebp - 0x10]
call fcn.00402748
test eax, eax
je 0x402786
mov eax, dword [ebp - 8]
leave
ret
xor eax, eax
leave
ret
Function at 0x4027b9
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0xb0a008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402802
push str.SetDefaultDllDirectories
push 0xad8368
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402802
push 0xc00
call eax
test eax, eax
jne 0x40289e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40289e
cmp eax, 0x104
ja 0x40289e
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402839
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [0xad82f8]
push esi
mov esi, 0xad82f8
test cl, cl
je 0x40289d
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov edx, edi
inc esi
movzx eax, cl
mov cl, byte [esi]
inc esi
mov word [edx], ax
lea edx, [edx + 2]
test cl, cl
jne 0x40285a
push 0x2e
pop eax
push 0x64
mov word [edx], ax
pop eax
mov word [edx + 2], ax
xor eax, eax
push 8
push eax
mov word [edx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [edx + 4], bx
mov word [edx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov cl, byte [esi]
test cl, cl
jne 0x402857
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00a9fec3
leave
ret
Function at 0x408418
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push 0x38
pop eax
mov ecx, dword [esi + 8]
and ecx, 0x3f
mov byte [ecx + esi + 0x40], 0x80
inc ecx
cmp ecx, eax
jbe 0x40845f
push 0x40
pop edx
cmp ecx, edx
je 0x40844c
sub edx, ecx
lea eax, [esi + 0x40]
push edx
add eax, ecx
push 0
push eax
call fcn.00aa2520
add esp, 0xc
lea edi, [esi + 0x20]
lea edx, [esi + 0x40]
mov ecx, edi
push 1
call dword [esi]
push 0x38
xor ecx, ecx
pop eax
jmp 0x408462
lea edi, [esi + 0x20]
sub eax, ecx
push eax
lea eax, [esi + 0x40]
add eax, ecx
push 0
push eax
call fcn.00aa2520
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 ecx
bswap eax
mov dword [esi + 0x7c], ecx
mov ecx, edi
push 1
mov dword [esi + 0x78], eax
call dword [esi]
push 4
pop edx
mov ecx, dword [edi + 4]
mov eax, dword [edi]
lea edi, [edi + 8]
bswap eax
mov dword [ebx], eax
lea ebx, [ebx + 8]
bswap ecx
mov dword [ebx - 4], ecx
sub edx, 1
jne 0x408498
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.00407f6e

Function at 0x40a43e
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xac5abd
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0xb0a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
push dword [ebp + 8]
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x40a4b1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40a4aa
push dword [ebp + 8]
push edi
push eax
call fcn.00aa1fa0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push ebx
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40a4aa
mov al, 1
jmp 0x40a4b3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40a4ca
Capabilities:
Open clipboard

Disassembly:
push 0x1c
mov eax, 0xac5af7
call fcn.00ac4e1b
mov esi, edx
and dword [ebp - 4], 0
push ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne al
mov byte [ebp - 0xd], al
test al, al
je 0x40a58b
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40a588
mov eax, dword [esi + 4]
mov edx, dword [esi]
lea eax, [eax*2 + 2]
push eax
push 0xd
pop ecx
call fcn.0040a43e
push 0
mov edx, esi
lea ecx, [ebp - 0x1c]
mov bl, al
call fcn.00409ba2
xor eax, eax
inc eax
mov byte [ebp - 4], al
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
inc ecx
push ecx
mov ecx, eax
call fcn.0040a43e
push 1
pop edi
test al, al
movzx ebx, bl
push edi
mov edx, esi
lea ecx, [ebp - 0x28]
cmovne ebx, edi
call fcn.00409ba2
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00409071
push dword [ebp - 0x28]
call fcn.00a9fed1
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
inc eax
pop ecx
push eax
push 7
pop ecx
call fcn.0040a43e
push dword [ebp - 0x1c]
test al, al
movzx ebx, bl
cmovne ebx, edi
call fcn.00a9fed1
pop ecx
jmp 0x40a591
mov al, byte [ebp - 0xd]
xor bl, bl
test al, al
je 0x40a597
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, bl
call fcn.00ac4de9
ret

Function at 0x40af2c
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb0cdb9], 0
push esi
mov esi, edx
jne 0x40af60
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.00409881
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a9fed1
pop ecx
test esi, esi
jmp 0x40af6a
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40af70
mov al, 1
jmp 0x40af72
xor al, al
pop esi
leave
ret

Function at 0x40af75
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb0cdb9], 0
jne 0x40afa7
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409881
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a9fed1
pop ecx
test esi, esi
pop esi
jmp 0x40afb0
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40afb6
mov al, 1
leave
ret
xor al, al
leave
ret

Function at 0x40b022
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb0cdb9], 0
jne 0x40b056
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409881
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a9fed1
pop ecx
test esi, esi
pop esi
jmp 0x40b061
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b067
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x40b06b
Capabilities:
Create directory

Disassembly:
push 0x44
mov eax, 0xac5c19
call fcn.00ac4e1b
mov edi, ecx
cmp byte [0xb0cdb9], 0
jne 0x40b0a6
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.00409881
xor ebx, ebx
push ebx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00a9fed1
pop ecx
test esi, esi
jmp 0x40b0b2
xor ebx, ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b0b8
mov al, 1
jmp 0x40b0fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40b0c9
xor al, al
jmp 0x40b0fe
lea ecx, [ebp - 0x50]
call fcn.0040b4fc
lea ecx, [ebp - 0x28]
call fcn.004092bf
push ebx
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], ebx
call fcn.0040b834
test al, al
je 0x40b0f3
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00a9fed1
pop ecx
mov al, bl
call fcn.00ac4de9
ret

Function at 0x40b253
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040b7ef
cmp eax, 0xffffffff
je 0x40b280
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x40b280
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.0040af2c
test al, al
je 0x40b2b9
cmp byte [0xb0cdb9], 0
jne 0x40b2aa
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.00409881
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a9fed1
pop ecx
test esi, esi
jmp 0x40b2b3
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40b2b9
mov al, 1
jmp 0x40b2bb
xor al, al
pop esi
leave
ret

Function at 0x40b7ef
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xb0cdb9], 0
jne 0x40b821
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.00409881
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a9fed1
pop ecx
mov eax, esi
pop esi
leave
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
leave
ret
Function at 0x40beb2
Capabilities:
Get disk information

Disassembly:
push 0x30
mov eax, 0xac5dbc
call fcn.00ac4e1b
mov ebx, ecx
mov dword [ebp - 0x18], ebx
call fcn.00408aab
cmp byte [0xb0cdb9], 0
jne 0x40bfae
mov ecx, ebx
call fcn.00408aab
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
xor ebx, ebx
push ebx
push ebx
call esi
mov edi, eax
test edi, edi
je 0x40bfc0
push edi
call fcn.00aa0007
pop ecx
mov dword [ebp - 0x14], eax
push eax
push edi
mov dword [ebp - 4], ebx
call esi
mov esi, eax
mov dword [ebp - 0x20], esi
test esi, esi
je 0x40bfa6
cmp esi, edi
ja 0x40bfa6
lea ecx, [ebp - 0x30]
call fcn.00408ffa
mov byte [ebp - 4], 1
mov edi, dword [ebp - 0x14]
test esi, esi
je 0x40bf9f
xor eax, eax
mov ecx, esi
mov esi, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
cmp byte [edi + eax - 1], 0
jne 0x40bf90
lea eax, [edi + ebx]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040901c
mov ebx, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_AreFileApisANSI]
xor ecx, ecx
lea edx, [ebp - 0x30]
test eax, eax
sete cl
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00409b07
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.00408b56
lea eax, [ebp - 0x3c]
mov ecx, esi
push eax
call fcn.00408b17
mov byte [ebp - 4], 1
push dword [ebp - 0x3c]
call fcn.00a9fed1
pop ecx
mov ecx, dword [ebp - 0x1c]
mov eax, ebx
inc eax
sub ecx, 1
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ecx
jne 0x40bf39
mov esi, dword [ebp - 0x20]
cmp ebx, esi
jmp 0x40c060
mov edi, dword [ebp - 0x14]
jmp 0x40c071
mov esi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ebx, ebx
push ebx
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x40bfc7
xor al, al
jmp 0x40c07a
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00aa0007
pop ecx
mov dword [ebp - 0x1c], eax
push eax
push edi
mov dword [ebp - 4], 3
call esi
mov esi, eax
test esi, esi
je 0x40c06e
cmp esi, edi
ja 0x40c06e
lea ecx, [ebp - 0x30]
call fcn.004092bf
mov byte [ebp - 4], 4
mov edx, ebx
mov edi, dword [ebp - 0x1c]
mov ecx, ebx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], ecx
test esi, esi
je 0x40c05e
push 2
pop eax
mov dword [ebp - 0x10], eax
cmp word [edi + eax - 2], bx
jne 0x40c04d
lea eax, [edx + edi]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040939b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x20], eax
call fcn.00408b56
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x30]
push eax
call fcn.00408b17
mov eax, dword [ebp - 0x10]
mov edx, eax
mov ecx, dword [ebp - 0x14]
inc ecx
add eax, 2
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
cmp ecx, esi
jb 0x40c017
mov edx, dword [ebp - 0x20]
cmp edx, esi
push dword [ebp - 0x30]
sete bl
call fcn.00a9fed1
pop ecx
jmp 0x40c071
mov edi, dword [ebp - 0x1c]
push edi
call fcn.00a9fed1
mov al, bl
pop ecx
call fcn.00ac4de9
ret
Function at 0x40c163
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xac5df6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0xb0a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40c1ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40c1ac
xor al, al
jmp 0x40c1c0
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret 4
Function at 0x41414e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov esi, ecx
xor ebx, ebx
push dword [ebp + 8]
mov byte [eax], bl
lea ecx, [esi - 4]
call fcn.00413dcd
mov eax, dword [esi + 0x78]
mov edi, ebx
test eax, eax
je 0x4141e6
cmp edi, dword [esi + 0x60]
je 0x4141de
mov eax, dword [esi + 0x74]
mov eax, dword [eax + edi*4]
mov dword [ebp + 0xc], eax
lea ecx, [eax + 4]
call fcn.00408900
mov ecx, eax
test ecx, ecx
jne 0x41425d
mov ecx, dword [ebp + 0xc]
add ecx, 8
call fcn.00408900
mov ecx, eax
test ecx, ecx
jne 0x41425d
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x10], bl
cmp dword [eax + 0xc], ebx
jne 0x4141de
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push 0x417903
push ebx
push ebx
call fcn.00aa5c83
mov ecx, dword [ebp + 0xc]
add esp, 0x18
mov dword [ecx + 0xc], eax
test eax, eax
jne 0x4141de
call fcn.0040880f
mov ecx, eax
test ecx, ecx
jne 0x41425d
mov eax, dword [esi + 0x78]
inc edi
cmp edi, eax
jb 0x414174
mov edi, ebx
test eax, eax
je 0x41420e
cmp edi, dword [esi + 0x60]
je 0x414208
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + edi*4]
mov byte [ecx + 0x10], bl
add ecx, 4
call fcn.0040885d
mov ecx, eax
test ecx, ecx
jne 0x41425d
inc edi
cmp edi, dword [esi + 0x78]
jb 0x4141ec
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x74]
push dword [ebp + 0x10]
mov ecx, dword [ecx + eax*4]
call fcn.00413a22
mov edi, ebx
cmp dword [esi + 0x78], ebx
jbe 0x41426f
cmp ebx, dword [esi + 0x60]
je 0x41423e
mov eax, dword [esi + 0x74]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx + 8]
call fcn.00408841
test edi, edi
cmove edi, eax
inc ebx
cmp ebx, dword [esi + 0x78]
jb 0x414226
push 0
pop ebx
test edi, edi
je 0x41426f
movzx eax, di
or eax, 0x80070000
test edi, edi
cmovle eax, edi
jmp 0x41431a
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x41431a
lea edi, [esi - 4]
push 0x80004004
mov ecx, edi
call fcn.0041411f
test eax, eax
jne 0x41431a
push 0x8007000e
mov ecx, edi
call fcn.0041411f
test eax, eax
jne 0x41431a
mov ecx, dword [esi + 0x78]
mov edx, ebx
test ecx, ecx
je 0x4142cd
mov edi, dword [esi + 0x74]
mov eax, dword [edi]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x4142c2
cmp eax, 0x20000010
je 0x4142c2
cmp eax, 1
je 0x4142c2
cmp eax, 0x80004005
jne 0x41431a
inc edx
add edi, 4
cmp edx, ecx
jb 0x4142a6
lea edi, [esi - 4]
push 1
mov ecx, edi
call fcn.0041411f
test eax, eax
jne 0x41431a
mov ecx, ebx
cmp dword [esi + 0x78], eax
jbe 0x414318
mov edx, dword [esi + 0x74]
mov eax, dword [edx]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x4142f4
cmp eax, 0x20000010
jne 0x41431a
inc ecx
add edx, 4
cmp ecx, dword [esi + 0x78]
jb 0x4142e4
mov eax, dword [esi + 0x74]
push dword [ebp + 0x14]
mov ecx, dword [eax + ebx*4]
add ecx, 0x18
call fcn.00413560
test eax, eax
jne 0x41431a
inc ebx
cmp ebx, dword [esi + 0x78]
jb 0x4142fd
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4162ce
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xac5df6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0xb0a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x14]
xor edi, edi
test esi, esi
je 0x4162fd
mov dword [esi], edi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x416343
push edi
lea ecx, [ebp + 0x14]
push ecx
mov ecx, 0x8000
cmp eax, ecx
cmovae eax, ecx
push eax
push dword [ebp + 0xc]
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x14]
add dword [ecx + 8], edx
adc dword [ecx + 0xc], edi
test esi, esi
je 0x416338
add dword [esi], edx
test eax, eax
jne 0x416343
call fcn.0040c080
mov edi, eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret 0x10
Function at 0x41e865
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xac709f
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0xb0a008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea ecx, [esi + 0xa8]
call fcn.0041d79b
lea ecx, [esi + 0x78]
call fcn.0041d79b
push dword [esi + 0x30]
call fcn.00a9fed1
push dword [esi + 0x24]
call fcn.00a9fed1
push dword [esi + 0x18]
call fcn.00a9fed1
add esp, 0xc
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x41e8c9
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 1
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x41e8dd
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 2
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x41e8f1
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov dword [ebp - 4], 3
mov ecx, dword [esi]
test ecx, ecx
je 0x41e904
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x423ea5
Capabilities:
Get file system object information

Disassembly:
push 0x1f0
mov eax, 0xac7b4d
call fcn.00ac4e4e
mov ebx, ecx
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x1fc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x1e4], eax
call fcn.004092bf
and dword [ebp - 4], 0
cmp byte [edi], 0
je 0x423f3a
push dword [edi + 0xc]
lea ecx, [ebp - 0x54]
push dword [edi + 8]
call fcn.00408d17
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x1cc]
call fcn.004092e3
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 1
push eax
mov edx, 0xdb0
lea ecx, [ebp - 0x1d8]
call fcn.00423dce
push eax
lea ecx, [ebp - 0x1fc]
mov byte [ebp - 4], 2
call fcn.0040940a
push dword [ebp - 0x1d8]
call fcn.00a9fed1
pop ecx
mov byte [ebp - 4], 0
push dword [ebp - 0x1cc]
call fcn.00a9fed1
pop ecx
lea eax, [edi + 0x18]
mov ecx, eax
mov dword [ebp - 0x1e0], eax
call fcn.0040966d
mov esi, eax
lea eax, [ebp - 0x1cc]
lea ecx, [esi + 1]
push ecx
push eax
lea ecx, [edi + 0x18]
call fcn.004145e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1f0]
mov eax, dword [edi + 0x18]
add eax, 2
lea eax, [eax + esi*2]
push eax
call fcn.004092e3
lea eax, [ebp - 0x1cc]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00423e44
lea eax, [ebp - 0x1f0]
mov ecx, ebx
push eax
call fcn.00423e44
lea eax, [ebp - 0x1cc]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.0040936a
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 5
call fcn.00409548
lea eax, [ebp - 0x1f0]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.004095b7
lea ecx, [ebp - 0x1c0]
call fcn.00409548
lea eax, [ebp - 0x1fc]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.004095b7
lea ecx, [ebp - 0x1c0]
call fcn.00409548
cmp byte [edi + 1], 0
je 0x424057
mov edx, 0x3f4
lea ecx, [ebp - 0x1d8]
call fcn.0040cfbe
push eax
lea ecx, [ebp - 0x1c0]
mov byte [ebp - 4], 6
call fcn.004095b7
mov byte [ebp - 4], 5
push dword [ebp - 0x1d8]
call fcn.00a9fed1
lea ecx, [ebp - 0x1c0]
mov dword [esp], 0xad9194
call fcn.004095f5
push 0
lea eax, [ebp - 0x34]
push eax
lea ecx, [edi + 0x10]
call fcn.0040cd35
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c0]
call fcn.004095f5
push dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call edi
push dword [ebp - 0x1c0]
lea ecx, [ebp - 0x1dc]
mov dword [ebp - 0x1dc], eax
call fcn.0042101a
mov edx, dword [ebp - 0x1e0]
lea ecx, [ebp - 0x1d8]
push 0
call fcn.00409ba2
push 0x110
push 0x160
lea eax, [ebp - 0x1b4]
push eax
push 0x80
push dword [ebp - 0x1d8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
push dword [ebp - 0x1d8]
mov esi, eax
call fcn.00a9fed1
pop ecx
test esi, esi
je 0x4240e2
push dword [ebp - 0x1e4]
push dword [ebx + 4]
call edi
push 0
push dword [ebp - 0x1b4]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp - 0x1c0]
call fcn.00a9fed1
pop ecx
push dword [ebp - 0x1f0]
call fcn.00a9fed1
pop ecx
push dword [ebp - 0x1cc]
call fcn.00a9fed1
pop ecx
push dword [ebp - 0x1fc]
call fcn.00a9fed1
pop ecx
call fcn.00ac4dfd
ret 0xc