joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003130
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x100031d7
push ebp
mov ebp, dword [0x1001a038]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x10003192
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x100031bb
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.100091e0
jmp 0x100031b8
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebx
push edx
call ebp
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push edi
call fcn.100097c0
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x10003163
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret

Function at 0x100031e0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [eax]
movzx ecx, word [ebx + 0x14]
push ebp
xor edx, edx
xor ebp, ebp
lea eax, [ecx + ebx + 0x18]
cmp dx, word [ebx + 6]
jae 0x10003295
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10003237
mov eax, dword [edi - 0x14]
mov ecx, dword [edi - 0x1c]
push 0x4000
push eax
push ecx
call dword [0x1001a048]
jmp 0x1000327d
lea edx, [edx + ecx*2]
lea ecx, [esi + edx*2]
mov edx, dword [ecx*4 + 0x1001e038]
test eax, 0x4000000
je 0x10003251
or edx, 0x200
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x1000326a
test al, 0x40
je 0x10003261
mov ecx, dword [ebx + 0x20]
jmp 0x10003268
test al, al
jns 0x1000327d
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x1000327d
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [0x1001a028]
mov edx, dword [esp + 0x18]
mov ebx, dword [edx]
movzx eax, word [ebx + 6]
inc ebp
add edi, 0x28
cmp ebp, eax
jl 0x10003204
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100035c0
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x100035dc
push 0xc1
call dword [0x1001a064]
xor eax, eax
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
jne 0x100035f5
mov edx, 0x14c
cmp word [edi + 4], dx
je 0x10003604
push 0xc1
call dword [0x1001a064]
xor eax, eax
pop edi
ret
mov eax, dword [edi + 0x50]
mov ecx, dword [edi + 0x34]
push ebx
push ebp
mov ebp, dword [0x1001a038]
push 4
push 0x3000
push eax
push ecx
call ebp
mov ebx, eax
test ebx, ebx
jne 0x10003645
mov edx, dword [edi + 0x50]
push 4
push 0x3000
push edx
push eax
call ebp
mov ebx, eax
test ebx, ebx
jne 0x10003645
push 0xe
call dword [0x1001a064]
pop ebp
pop ebx
xor eax, eax
pop edi
ret
push esi
push 0x30
push 0
call dword [0x1001a06c]
push eax
call dword [0x1001a070]
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x1000367c
push 0xe
call dword [0x1001a064]
push 0x8000
push 0
push ebx
call dword [0x1001a048]
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov dword [esi + 4], ebx
movzx eax, word [edi + 0x16]
shr eax, 0xd
and eax, 1
mov dword [esi + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x24]
push 4
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov edx, dword [edi + 0x54]
push 0x1000
push edx
push ebx
call ebp
mov ecx, dword [esp + 0x14]
mov ebp, eax
mov eax, dword [edi + 0x54]
push eax
push ecx
push ebp
call fcn.100097c0
mov eax, dword [esp + 0x20]
mov edx, dword [eax + 0x3c]
push esi
add ebp, edx
push edi
mov dword [esi], ebp
push eax
mov dword [ebp + 0x34], ebx
call fcn.10003130
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x10003700
push eax
mov ecx, esi
call fcn.100032e0
add esp, 4
mov dword [esi + 0x18], eax
jmp 0x10003707
mov dword [esi + 0x18], 1
call fcn.10003370
test eax, eax
je 0x10003747
push esi
call fcn.100031e0
add esp, 4
mov eax, esi
call fcn.100032a0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
test eax, eax
je 0x1000376f
add eax, ebx
cmp dword [esi + 0x14], 0
je 0x10003765
push 0
push 1
push ebx
call eax
test eax, eax
jne 0x10003757
push 0x45a
call dword [0x1001a064]
push esi
call fcn.10003530
add esp, 4
pop esi
pop ebp
pop ebx
xor eax, eax
pop edi
ret
mov dword [esi + 0x10], 1
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
ret
mov dword [esi + 0x2c], eax
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
ret
mov dword [esi + 0x2c], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop edi
ret
Function at 0x10003810
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push eax
push 0x28
call dword [0x1001a02c]
push eax
call dword [0x1001a008]
test eax, eax
je 0x10003894
lea ecx, [esp + 4]
push ecx
push str.SeDebugPrivilege
push 0
call dword [section..rdata]
test eax, eax
jne 0x1000384e
mov edx, dword [esp]
push edx
call dword [0x1001a074]
add esp, 0x1c
ret
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push 0
push 0
push 0x10
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
push 0
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [0x1001a004]
test eax, eax
jne 0x10003894
mov ecx, dword [esp]
push ecx
call dword [0x1001a074]
add esp, 0x1c
ret

Function at 0x1003dc10
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
sub esp, 0x4c
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1003dd1c
test eax, eax
je 0x1003dd1c
push esi
push edi
mov ecx, 0x10
mov esi, 0x10058fe8
lea edi, [ebp - 0x4c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
add esi, eax
mov dword [ebp - 8], esi
xor esi, esi
mov dword [ebp - 4], 0
mov ecx, eax
test edx, edx
jbe 0x1003dd03
lea edi, [eax + 4]
jmp 0x1003dc67
mov ebx, dword [ebp + 8]
movzx eax, byte [esi + ebx]
inc esi
shl eax, 0x10
cmp esi, edx
jne 0x1003dc7c
mov dword [ebp - 4], 2
jmp 0x1003dc9d
movzx ebx, byte [esi + ebx]
shl ebx, 8
inc esi
or eax, ebx
cmp esi, edx
jne 0x1003dc93
mov dword [ebp - 4], 1
jmp 0x1003dc9d
mov edx, dword [ebp + 8]
movzx edx, byte [esi + edx]
or eax, edx
inc esi
mov edx, eax
and edx, 0x3f
cmp edi, dword [ebp - 8]
ja 0x1003dd13
mov ebx, eax
shr ebx, 0x12
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
mov byte [ecx], bl
mov ebx, eax
shr ebx, 0xc
and ebx, 0x3f
movzx ebx, byte [ebp + ebx - 0x4c]
inc ecx
inc edi
mov byte [ecx], bl
mov ebx, dword [ebp - 4]
inc ecx
inc edi
cmp ebx, 1
jbe 0x1003dcd6
mov byte [ecx], 0x3d
jmp 0x1003dce2
shr eax, 6
and eax, 0x3f
mov al, byte [ebp + eax - 0x4c]
mov byte [ecx], al
inc ecx
inc edi
test ebx, ebx
jbe 0x1003dced
mov byte [ecx], 0x3d
jmp 0x1003dcf3
mov dl, byte [ebp + edx - 0x4c]
mov byte [ecx], dl
mov edx, dword [ebp + 0xc]
inc ecx
inc edi
cmp esi, edx
jb 0x1003dc64
mov eax, dword [ebp + 0x10]
sub ecx, eax
mov eax, dword [ebp + 0x14]
pop edi
pop esi
mov dword [eax], ecx
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407c61
Capabilities:
Open clipboard

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x34], esp
mov dword [esp], eax
mov dword [ebp - 0x44], 0x454964
mov dword [ebp - 0x40], 0x455b04
mov dword [ebp - 0x3c], ebp
mov dword [ebp - 0x38], 0x407d7a
call fcn.00442d0b
mov eax, dword [ebp + 8]
and dword [ebp - 0x58], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
push edx
setne byte [ebp - 0x21]
jne 0x407caf
mov byte [ebp - 0x60], 0
jmp 0x407dc8
mov dword [ebp - 0x58], 1
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x407ca6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x60], eax
lea ecx, [eax + 1]
mov eax, dword [ebp + 0xc]
add ecx, ecx
mov edx, dword [eax]
push 0xd
pop eax
call fcn.00407ae8
mov edx, dword [ebp + 0xc]
and dword [esp + 8], 0
mov byte [ebp - 0x60], al
lea eax, [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00406379
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push 1
lea ecx, [eax + 1]
pop eax
call fcn.00407ae8
or eax, dword [ebp - 0x60]
mov dword [esp + 8], 1
mov byte [ebp - 0x60], al
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x58], 2
mov dword [esp + 4], eax
lea eax, [ebp - 0x14]
mov dword [esp], eax
call fcn.00406379
lea eax, [ebp - 0x14]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x58], 3
mov dword [esp], eax
call fcn.004043d2
push eax
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x407d52
mov dword [esp], eax
call fcn.00454644
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
push 7
lea ecx, [eax + 1]
pop eax
call fcn.00407ae8
or eax, dword [ebp - 0x60]
mov byte [ebp - 0x60], al
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x407dc8
mov dword [esp], eax
call fcn.00454644
jmp 0x407dc8
lea ecx, [ebp - 0x21]
call fcn.00407bf2
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.00442d61
mov al, byte [ebp - 0x60]
leave
ret

Function at 0x409020
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
cmp eax, 0xfffffff
jbe 0x409035
and eax, 0x3fff
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], edx
pop ebp
jmp fcn.00408f5c
Function at 0x409041
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0x454964
mov dword [esp], eax
mov dword [ebp - 0x30], 0x455b62
mov dword [ebp - 0x2c], ebp
mov dword [ebp - 0x28], 0x4090d8
mov dword [ebp - 0x24], esp
call fcn.00442d0b
cmp byte [0x45f024], 0
jne 0x4090b1
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
or dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00405c67
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
call fcn.00408c0a
cmp dword [ebp - 0x50], 0
jmp 0x4090c4
mov eax, dword [ebp + 8]
or dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push edx
test eax, eax
lea eax, [ebp - 0x4c]
setne byte [ebp - 0x50]
mov dword [esp], eax
call fcn.00442d61
mov al, byte [ebp - 0x50]
leave
ret

Function at 0x4090f5
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
lea eax, [ebp - 0x5c]
mov dword [ebp - 0x44], 0x454964
mov dword [esp], eax
mov dword [ebp - 0x40], 0x455b68
mov dword [ebp - 0x3c], ebp
mov dword [ebp - 0x38], 0x4091c3
mov dword [ebp - 0x34], esp
call fcn.00442d0b
cmp byte [0x45f024], 0
jne 0x409194
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x14]
or dword [ebp - 0x58], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00405c67
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x20]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.00405c67
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x58], 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push ecx
push ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x20]
call fcn.00408c0a
mov eax, dword [ebp - 0x14]
call fcn.00408c0a
cmp dword [ebp - 0x60], 0
jmp 0x4091af
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x58], 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push edx
test eax, eax
push edx
lea eax, [ebp - 0x5c]
setne byte [ebp - 0x60]
mov dword [esp], eax
call fcn.00442d61
mov al, byte [ebp - 0x60]
leave
ret
Function at 0x40925c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0x454964
mov dword [esp], eax
mov dword [ebp - 0x30], 0x455b70
mov dword [ebp - 0x2c], ebp
mov dword [ebp - 0x28], 0x4092ff
mov dword [ebp - 0x24], esp
call fcn.00442d0b
cmp byte [0x45f024], 0
jne 0x4092d2
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
or dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00405c67
mov eax, dword [ebp - 0x14]
and dword [esp + 4], 0
mov dword [ebp - 0x48], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push ecx
push ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
call fcn.00408c0a
cmp dword [ebp - 0x50], 0
jmp 0x4092eb
mov eax, dword [ebp + 8]
and dword [esp + 4], 0
or dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edx
test eax, eax
push edx
lea eax, [ebp - 0x4c]
setne byte [ebp - 0x50]
mov dword [esp], eax
call fcn.00442d61
mov al, byte [ebp - 0x50]
leave
ret
Function at 0x4096a5
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0x454964
mov dword [esp], eax
mov dword [ebp - 0x30], 0x455b82
mov dword [ebp - 0x2c], ebp
mov dword [ebp - 0x28], 0x40976b
mov dword [ebp - 0x24], esp
call fcn.00442d0b
mov eax, dword [ebp + 8]
or dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
call fcn.0040af13
cmp eax, 0xffffffff
jne 0x4096f0
cmp byte [0x45f024], 0
jne 0x409752
jmp 0x409717
mov edx, eax
and edx, 0x11
dec edx
jne 0x4096e5
and eax, 0xfffffffe
or dword [ebp - 0x48], 0xffffffff
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00408f5c
mov byte [ebp - 0x50], al
test al, al
jne 0x4096e5
jmp 0x409788
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x14]
or dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00405c67
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
call fcn.00408c0a
cmp dword [ebp - 0x50], 0
jmp 0x409765
mov eax, dword [ebp + 8]
or dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edx
test eax, eax
setne byte [ebp - 0x50]
jmp 0x409788
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.00442d61
mov al, byte [ebp - 0x50]
leave
ret
Function at 0x409b70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x25c], ebp
mov dword [esp], eax
mov dword [ebp - 0x264], 0x454964
mov dword [ebp - 0x260], 0x455b9c
mov dword [ebp - 0x258], 0x409d94
mov dword [ebp - 0x254], esp
call fcn.00442d0b
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
mov eax, dword [eax]
and word [eax], 0
mov al, byte [0x45f024]
mov byte [ebp - 0x281], al
test al, al
jne 0x409c56
lea eax, [ebp - 0x234]
mov byte [ebp - 0x234], 0
mov dword [esp + 4], eax
mov dword [esp], 0x114
or dword [ebp - 0x278], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
dec eax
push edx
push edx
cmp eax, 0x112
ja 0x409dd7
lea eax, [ebp - 0x234]
mov byte [ebp - 0x120], 0
mov dword [esp + 4], eax
lea eax, [ebp - 0x240]
mov dword [esp], eax
call fcn.00405d0a
lea eax, [ebp - 0x240]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x278], 1
mov dword [esp], eax
call fcn.004051ca
push ecx
mov eax, dword [ebp - 0x240]
call fcn.00408bf4
mov byte [ebp - 0x281], 1
jmp 0x409dd7
lea eax, [ebp - 0x234]
mov dword [esp], 0x114
mov dword [esp + 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
and word [ebp - 0x234], 0
mov dword [ebp - 0x288], eax
or dword [ebp - 0x278], 0xffffffff
call eax
push edx
push edx
mov dword [ebp - 0x280], eax
test eax, eax
je 0x409d37
cmp eax, 0x113
ja 0x409cb6
lea eax, [ebp - 0x234]
mov ecx, dword [ebp + 8]
and word [ebp - 0xc], 0
mov dword [esp], eax
call fcn.00405154
push eax
jmp 0x409dd7
lea ecx, [ebp - 0x234]
or dword [ebp - 0x278], 0xffffffff
call fcn.00404ec0
mov eax, dword [ebp - 0x280]
cmp dword [ebp - 0x22c], eax
jb 0x409d16
mov dword [ebp - 0x278], 2
mov eax, dword [ebp - 0x234]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x280]
mov dword [esp], eax
mov eax, dword [ebp - 0x288]
call eax
push ecx
push ecx
test eax, eax
je 0x409d80
mov edx, dword [ebp - 0x280]
mov ecx, dword [ebp - 0x234]
and word [ecx + edx*2], 0
xor edx, edx
jmp 0x409d43
mov eax, dword [ebp - 0x280]
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x278], 2
mov dword [esp], eax
call fcn.00404aba
push edx
jmp 0x409cd6
mov byte [ebp - 0x281], 0
jmp 0x409dd7
cmp word [ecx + edx*2], 0
je 0x409d4d
inc edx
jmp 0x409d43
mov dword [ebp - 0x230], edx
cmp eax, edx
jne 0x409d80
mov edx, dword [ebp - 0x280]
dec edx
cmp edx, eax
jne 0x409d80
lea eax, [ebp - 0x234]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x278], 2
mov dword [esp], eax
call fcn.004051ca
push eax
jmp 0x409d87
mov byte [ebp - 0x281], 0
mov eax, dword [ebp - 0x234]
call fcn.00408bf4
jmp 0x409dd7
lea eax, [ebp - 0x27c]
mov dword [esp], eax
call fcn.00442d61
mov al, byte [ebp - 0x281]
leave
ret
Function at 0x409ee1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
lea eax, [ebp - 0x27c]
mov dword [ebp - 0x25c], ebp
mov dword [esp], eax
mov dword [ebp - 0x264], 0x454964
mov dword [ebp - 0x260], 0x455baa
mov dword [ebp - 0x258], 0x409fdb
mov dword [ebp - 0x254], esp
call fcn.00442d0b
cmp byte [0x45f024], 0
jne 0x409f99
lea eax, [ebp - 0x232]
mov byte [ebp - 0x232], 0
mov dword [esp + 4], eax
mov dword [esp], 0x114
or dword [ebp - 0x278], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edx
push edx
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x232]
mov dword [esp + 4], eax
lea eax, [ebp - 0x240]
mov dword [esp], eax
call fcn.00405d0a
lea eax, [ebp - 0x240]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x278], 1
mov dword [esp], eax
call fcn.004051ca
push eax
mov eax, dword [ebp - 0x240]
call fcn.00408bf4
jmp 0x40a007
lea eax, [ebp - 0x232]
mov dword [esp], 0x114
mov dword [esp + 4], eax
and word [ebp - 0x232], 0
or dword [ebp - 0x278], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp + 8]
push edx
push edx
mov dword [ebp - 0x280], eax
lea eax, [ebp - 0x232]
mov dword [esp], eax
call fcn.00405154
push ecx
jmp 0x40a007
mov eax, dword [ebp + 8]
or dword [ebp - 0x278], 0xffffffff
mov dword [esp], eax
call fcn.0040ca38
mov eax, dword [ebp - 0x280]
dec eax
cmp eax, 0x112
lea eax, [ebp - 0x27c]
mov dword [esp], eax
setbe byte [ebp - 0x280]
call fcn.00442d61
mov al, byte [ebp - 0x280]
leave
ret

Function at 0x40af13
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x34], 0x454964
mov dword [esp], eax
mov dword [ebp - 0x30], 0x455be4
mov dword [ebp - 0x2c], ebp
mov dword [ebp - 0x28], 0x40af95
mov dword [ebp - 0x24], esp
call fcn.00442d0b
cmp byte [0x45f024], 0
jne 0x40af7f
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x14]
or dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00405c67
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x48], 1
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push ecx
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
call fcn.0040a7f0
jmp 0x40afb2
mov eax, dword [ebp + 8]
or dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edx
mov dword [ebp - 0x50], eax
jmp 0x40afb2
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.00442d61
mov eax, dword [ebp - 0x50]
leave
ret
Function at 0x40c3da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x4c]
mov ebx, ecx
sub esp, 0x70
mov dword [ebp - 0x34], 0x454964
mov dword [ebp - 0x30], 0x455c4a
mov dword [esp], esi
call fcn.00442d0b
lea eax, [ebp - 0xc]
and dword [ebp - 0xc], 0
and dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
and dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
sub esp, 0x14
test eax, eax
setne byte [ebp - 0x4d]
mov dword [edx], ecx
mov dword [esp], esi
call fcn.00442d61
mov al, byte [ebp - 0x4d]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x40c450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov edx, 0x400000
mov ebp, esp
mov eax, dword [ebp + 0xc]
cmp eax, edx
cmova eax, edx
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.0040c3da

Function at 0x40c638
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
lea esi, [ebp - 0x4c]
mov ebx, ecx
sub esp, 0x70
mov dword [ebp - 0x34], 0x454964
mov dword [ebp - 0x30], 0x455c52
mov dword [esp], esi
call fcn.00442d0b
lea eax, [ebp - 0xc]
and dword [ebp - 0xc], 0
mov dword [esp + 0xc], eax
mov eax, 0x400000
and dword [esp + 0x10], 0
cmp dword [ebp + 0xc], eax
cmovbe eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebx]
mov dword [esp], eax
and dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
sub esp, 0x14
test eax, eax
setne byte [ebp - 0x4d]
mov dword [edx], ecx
mov dword [esp], esi
call fcn.00442d61
mov al, byte [ebp - 0x4d]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 0xc

Function at 0x40fee6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov eax, dword [esi]
and dword [esi + 4], 0
mov byte [eax], 0
mov eax, dword [ecx]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push edx
test eax, eax
je 0x40ff55
xchg ebx, eax
cmp dword [esi + 8], ebx
jae 0x40ff1e
mov dword [esp], ebx
mov ecx, esi
call fcn.00403f10
push eax
lea eax, [ebx + 1]
mov dword [esp + 8], eax
mov eax, dword [esi]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
sub esp, 0xc
cmp eax, ebx
cmovbe ebx, eax
mov eax, dword [esi]
mov byte [eax + ebx], 0
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov dword [esi + 4], eax
mov al, 1
test ebx, ebx
jne 0x40ff60
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4