joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4061f0
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 0x40630e
mov eax, ecx
lea ebx, [esi + 0xd0]
mov dword [ebp + 8], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x4062e8
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 0x4062d0
mov eax, dword [ebp + 8]
add ebx, 0x28
dec eax
mov dword [ebp + 8], eax
jne 0x4062c4
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x406309
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.004090e0
mov edi, eax
test edi, edi
jne 0x4063c0
lea eax, [ebx + 0x1c]
push eax
call fcn.004090e0
mov edi, eax
test edi, edi
jne 0x4063c0
lea eax, [ebx + 0x20]
push eax
call fcn.00409200
mov edi, eax
test edi, edi
jne 0x4063c0
lea eax, [ebx + 0x1c]
push eax
call fcn.00409200
mov edi, eax
test edi, edi
jne 0x4063c0
push ebx
call fcn.00407380
mov edi, eax
test edi, edi
je 0x4063d2
push esi
mov dword [esi + 0x44], 0
call fcn.004061a0
test edi, edi
jle 0x4063cb
movzx edi, di
or edi, 0x80070000
test edi, edi
je 0x4063d2
mov dword [esi + 0x40], edi
cmp dword [esi + 0x38], 0
jne 0x4063eb
cmp dword [esi + 0x40], 0
jne 0x4063eb
cmp dword [esi + 0x3c], 0
jne 0x4063eb
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 0x407d00
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x98
lea eax, [ebx + 0x110]
push 0
push eax
call fcn.00a0ffc0
mov eax, dword [ebx + 0x30]
add eax, dword [ebx + 0x34]
mov ecx, dword [ebx + 0x28]
mov dword [ebx + 0x40], eax
lea esi, [ecx + eax]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [ebx + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov dword [ebx + 0xc], eax
mov edi, esi
sub edi, edx
mov ecx, 0xc
add esp, 0xc
cmp eax, ecx
cmovb ecx, eax
or eax, 0xffffffff
sub eax, ecx
mov dword [ebx + 0x24], eax
mov dword [ebx + 0x20], eax
lea ecx, [esi - 0xc]
lea eax, [edi + 0x600]
mov dword [ebx + 0x44], edi
mov dword [ebx + 0x38], eax
mov dword [ebx + 8], edi
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x3c], ecx
mov dword [ebx], ecx
mov dword [ebx + 4], ecx
mov dword [ecx + 4], edi
xor eax, eax
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
add edi, 2
jmp 0x407da0
mov byte [edi - 2], al
xor ecx, ecx
inc eax
mov byte [edi - 1], 1
mov dword [edi], ecx
lea edi, [edi + 6]
cmp eax, 0x100
jb 0x407da0
mov eax, dword [ebp + 8]
xor ebx, ebx
add eax, 0x9fc
mov dword [ebp - 4], eax
mov esi, eax
xor edi, edi
jmp 0x407dd0
movzx eax, word [edi + 0xa9a800]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
movzx ecx, cx
xor eax, eax
lea ebx, [ebx]
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x407df0
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x407dd0
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x407dc3
mov ebx, dword [ebp + 8]
mov edx, 0x50
lea esi, [ebx + 0x3bc]
jmp 0x407e30
mov eax, esi
mov ecx, 0x10
jmp 0x407e40
mov word [eax], dx
mov word [eax + 2], 0x403
lea eax, [eax + 4]
dec ecx
jne 0x407e40
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x407e30
pop edi
pop esi
mov dword [ebx + 0x3b8], 0x40070000
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x408e90
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 0x408ed9
cmp edx, 0x40
je 0x408ecb
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.00a0ffc0
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 0x408f20
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 0x408f80
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [section..data]
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 0x4093d0
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.00a10050
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4093fd
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 0x40c360
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0x10]
lea ecx, [ebp - 4]
push 0x2002
mov dword [ebp - 4], 0
call fcn.0040fe30
test al, al
jne 0x40c393
lea ecx, [ebp - 4]
xor bl, bl
call fcn.0040fe60
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
mov edi, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x40c3e3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00a0f7c0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x40c3e3
pop edi
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
mov bl, 1
call fcn.0040fe60
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
lea ecx, [ebp - 4]
xor bl, bl
call fcn.0040fe60
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40c400
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa949f8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0xad82f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
setne bl
mov byte [ebp + 0xb], bl
test bl, bl
je 0x40c4ee
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x40c4ee
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 4]
lea eax, [eax*2 + 2]
push eax
push dword [esi]
push 0xd
call fcn.0040c360
push 0
mov bh, al
push esi
lea eax, [ebp - 0x18]
push eax
call fcn.0040b3b0
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 1
push 1
call fcn.0040c360
mov edi, 1
push edi
movzx ecx, bh
test al, al
push esi
lea eax, [ebp - 0x24]
cmovne ecx, edi
push eax
mov dword [ebp + 0xc], ecx
call fcn.0040b3b0
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00409e00
push dword [ebp - 0x24]
call fcn.00a105e9
mov eax, dword [ebp - 0x14]
add esp, 4
inc eax
push eax
push dword [ebp - 0x18]
push 7
call fcn.0040c360
mov ecx, dword [ebp + 0xc]
push dword [ebp - 0x18]
movzx ecx, cl
test al, al
cmovne ecx, edi
mov dword [ebp + 8], ecx
call fcn.00a105e9
mov eax, dword [ebp + 8]
add esp, 4
jmp 0x40c4f3
xor al, al
mov dword [ebp + 8], eax
test bl, bl
je 0x40c500
call dword [sym.imp.USER32.dll_CloseClipboard]
mov al, byte [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40d5d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa94b58
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0xad82f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0xadd134], 0
mov edi, dword [ebp + 8]
jne 0x40d63f
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.0040b080
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00a105e9
add esp, 4
test esi, esi
je 0x40d662
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 0x40d662
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 0x40d685
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.0040dd80
lea ecx, [ebp - 0x28]
call fcn.00409dd0
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040e220
test al, al
jne 0x40d6af
xor bl, bl
jmp 0x40d6b8
mov ebx, dword [ebp - 0x30]
shr ebx, 4
and bl, 1
push dword [ebp - 0x28]
call fcn.00a105e9
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 0x40d6e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xadd134], 0
jne 0x40d720
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b080
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a105e9
add esp, 4
test esi, esi
pop esi
je 0x40d737
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 0x40d737
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40d740
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040e930
cmp eax, 0xffffffff
je 0x40d76b
test al, 0x10
jne 0x40d76b
test al, 1
je 0x40d76b
and eax, 0xfffffffe
push eax
push esi
call fcn.0040dc00
test al, al
je 0x40d7b3
cmp byte [0xadd134], 0
push esi
jne 0x40d7a0
lea eax, [ebp - 0xc]
push eax
call fcn.0040b080
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a105e9
add esp, 4
test esi, esi
je 0x40d7b3
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40d7b3
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 0x40d7c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa94b96
mov eax, dword fs:[0]
push eax
sub esp, 0x360
mov eax, dword [0xad82f0]
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 [0xadd134], cl
jne 0x40d86d
lea eax, [ebp - 0x128]
push eax
push 0x114
mov byte [ebp - 0x128], cl
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40d938
cmp eax, 0x114
jae 0x40d938
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x36c]
push eax
mov byte [ebp - 0x14], 0
call fcn.0040b050
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00409ec0
push dword [ebp - 0x36c]
call fcn.00a105e9
add esp, 4
mov al, 1
jmp 0x40d93a
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 0x40d938
cmp esi, 0x114
jae 0x40d8ba
xor eax, eax
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
mov ecx, edi
call fcn.00409fc0
mov al, 1
jmp 0x40d93a
lea ecx, [ebp - 0x360]
call fcn.00409dd0
mov dword [ebp - 4], 1
cmp esi, dword [ebp - 0x358]
jbe 0x40d8e0
push esi
lea ecx, [ebp - 0x360]
call fcn.0040a8c0
push dword [ebp - 0x360]
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40d92a
push esi
lea ecx, [ebp - 0x360]
call fcn.0040c5f0
cmp dword [ebp - 0x35c], ebx
jne 0x40d92a
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40d92a
lea eax, [ebp - 0x360]
push eax
mov ecx, edi
call fcn.00409ec0
push dword [ebp - 0x360]
call fcn.00a105e9
add esp, 4
mov al, 1
jmp 0x40d93a
push dword [ebp - 0x360]
call fcn.00a105e9
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.00a0fe04
mov esp, ebp
pop ebp
ret 4

Function at 0x40da70
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa94bf8
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
mov eax, dword [0xad82f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0xadd134], 0
push dword [ebp + 0xc]
jne 0x40daf7
lea eax, [ebp - 0x24]
push eax
call fcn.0040b080
mov esi, eax
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 4], 0
call fcn.0040b080
push dword [esi]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push dword [ebp - 0x18]
mov esi, eax
call fcn.00a105e9
push dword [ebp - 0x24]
call fcn.00a105e9
add esp, 8
test esi, esi
je 0x40db18
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40db18
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40db30
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xadd134], 0
jne 0x40db6e
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b080
push dword [eax]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a105e9
add esp, 4
test esi, esi
pop esi
je 0x40db83
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 0x40db83
mov al, 1
mov esp, ebp
pop ebp
ret 4
xor al, al
mov esp, ebp
pop ebp
ret 4

Function at 0x40dc00
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xadd134], 0
jne 0x40dc41
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b080
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a105e9
add esp, 4
test esi, esi
pop esi
je 0x40dc59
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 0x40dc59
mov al, 1
mov esp, ebp
pop ebp
ret 8
xor al, al
mov esp, ebp
pop ebp
ret 8

Function at 0x40dc70
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 0xc]
test esi, 0xf0000000
je 0x40dc88
and esi, 0x3fff
cmp byte [0xadd134], 0
jne 0x40dcc0
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b080
push esi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a105e9
add esp, 4
test esi, esi
je 0x40dcd7
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40dcd7
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40e930
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0xadd134], 0
jne 0x40e96a
push esi
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.0040b080
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push dword [ebp - 0xc]
mov esi, eax
call fcn.00a105e9
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 0x40e9d0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa94d28
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0xad82f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.004095f0
cmp byte [0xadd134], 0
jne 0x40eadf
mov ecx, ebx
call fcn.004095f0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x40ea3e
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
push edi
call fcn.00a105ee
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
push esi
push edi
mov dword [ebp - 4], 0
call ebx
mov ebx, eax
mov dword [ebp - 0x10], ebx
test ebx, ebx
je 0x40eb9e
cmp ebx, edi
ja 0x40eb9e
lea ecx, [ebp - 0x28]
call fcn.00409b50
xor eax, eax
mov byte [ebp - 4], 1
test ebx, ebx
je 0x40eaca
mov edi, 1
cmp byte [esi + edi - 1], 0
jne 0x40eac3
add eax, esi
push eax
lea ecx, [ebp - 0x28]
call fcn.00409e60
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x14], edi
call fcn.0040b020
mov ecx, dword [ebp + 8]
push eax
mov byte [ebp - 4], 2
call fcn.004094d0
push dword [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.00a105e9
add esp, 4
mov eax, edi
inc edi
dec ebx
jne 0x40ea83
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x28]
cmp eax, ebx
sete bl
call fcn.00a105e9
add esp, 4
jmp 0x40eba0
mov edi, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
je 0x40ea28
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00a105ee
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
push esi
push ebx
mov dword [ebp - 4], 3
call edi
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x40eb9e
cmp edi, ebx
ja 0x40eb9e
lea ecx, [ebp - 0x34]
call fcn.00409dd0
xor eax, eax
xor ebx, ebx
mov byte [ebp - 4], 4
mov dword [ebp - 0x14], eax
test edi, edi
je 0x40eb8c
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edi, 2
lea esp, [esp]
cmp word [esi + edi - 2], 0
jne 0x40eb7e
lea eax, [ecx + esi]
push eax
lea ecx, [ebp - 0x34]
call fcn.00409fc0
mov ecx, dword [ebp + 8]
lea eax, [ebx + 1]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x18], edi
call fcn.004094d0
mov eax, dword [ebp - 0x10]
mov ecx, edi
inc ebx
add edi, 2
cmp ebx, eax
jb 0x40eb50
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x34]
cmp eax, edi
sete bl
call fcn.00a105e9
add esp, 4
jmp 0x40eba0
xor bl, bl
push esi
call fcn.00a105e9
mov al, bl
add esp, 4
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 0x40eea0
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 0x40eed2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40eed2
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 0x40f330
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 0x40f398
test ecx, ecx
je 0x40f38d
add edi, ecx
sub esi, ecx
mov ecx, dword [ebp - 4]
mov edx, 0x400000
jne 0x40f350
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 0x410f40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa94bc8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0xad82f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp byte [0xadd134], 0
je 0x411007
mov edi, dword [ebp + 8]
xor ecx, ecx
mov eax, dword [edi]
mov dword [edi + 4], 0
mov word [eax], cx
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jne 0x410fb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
inc eax
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
cmp esi, dword [edi + 8]
jbe 0x410fc2
push esi
mov ecx, edi
call fcn.0040a8c0
lea eax, [esi + 1]
push eax
push dword [edi]
push dword [ebx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [edi]
cmp esi, eax
cmova esi, eax
xor eax, eax
mov word [ecx + esi*2], ax
cmp word [ecx], ax
je 0x410fea
inc eax
cmp word [ecx + eax*2], 0
jne 0x410fe2
mov dword [edi + 4], eax
test esi, esi
je 0x410f96
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
lea ecx, [ebp - 0x18]
call fcn.00409b50
lea eax, [ebp - 0x18]
push eax
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00410ec0
mov bl, al
push 0
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call fcn.0040b150
push dword [ebp - 0x18]
call fcn.00a105e9
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