joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403403
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40e1a8]
je 0x40341e
inc edi
cmp edi, 0x17
jb 0x40340f
cmp edi, 0x17
jae 0x40359e
push ebp
push 3
call fcn.0040765a
cmp eax, 1
pop ecx
je 0x40356a
push 3
call fcn.0040765a
test eax, eax
pop ecx
jne 0x403452
cmp dword [0x40e020], 1
je 0x40356a
cmp ebx, 0xfc
je 0x40359d
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x40f3c8
push ebp
call fcn.004075f5
add esp, 0xc
test eax, eax
je 0x403488
push esi
push esi
push esi
push esi
push esi
call fcn.00402cc7
add esp, 0x14
push 0x104
mov esi, 0x40f3e1
push esi
push 0
mov byte [0x40f4e5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4034cc
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004075f5
add esp, 0xc
test eax, eax
je 0x4034cc
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00402cc7
add esp, 0x14
push esi
call fcn.00405e50
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x403511
push esi
call fcn.00405e50
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x40f6dc
push 0x40bce4
sub ecx, eax
push ecx
push eax
call fcn.00407542
add esp, 0x14
test eax, eax
je 0x403511
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00402cc7
add esp, 0x14
jmp 0x403513
xor esi, esi
push 0x40bce0
push ebx
push ebp
call fcn.004074d1
add esp, 0xc
test eax, eax
je 0x403533
push esi
push esi
push esi
push esi
push esi
call fcn.00402cc7
add esp, 0x14
push dword [edi*8 + 0x40e1ac]
push ebx
push ebp
call fcn.004074d1
add esp, 0xc
test eax, eax
je 0x403555
push esi
push esi
push esi
push esi
push esi
call fcn.00402cc7
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00407314
add esp, 0xc
jmp 0x40359d
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40359d
cmp ebp, 0xffffffff
je 0x40359d
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40e1ac]
push dword [esi]
call fcn.00405e50
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x404109
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x4040f9
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x404117
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
or byte [ecx], al
add byte [eax], al
or byte [ecx], al
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x404175
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40415c
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x404165
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40416f
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x404151
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
dec ebp
or al, 0x66
cmp ecx, dword [eax + 6]
jbe 0x4040db
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x4041c2
dec eax
je 0x4041b9
sub eax, 3
je 0x4041b0
mov dword [ebp - 4], 0x40
jmp 0x4041df
mov dword [ebp - 4], 4
jmp 0x4041c5
mov dword [ebp - 4], 0x20
jmp 0x4041c5
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x404211
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x404191
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00403a22
and bh, byte [esp + eax - 0x53]
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x40421d
push 0x8000
push ebx
push esi
call dword [ebp - 8]

Function at 0x10001269
Capabilities:
Encode data using xor

Disassembly:
in al, 0xcf
scasd eax, dword es:[edi]
stosd dword es:[edi], eax
xor ch, ch
test byte [ebx], ch
out dx, al
mov word [edx - 0x1e5b213a], ds
test dh, 0x32
adc al, ch
or cl, byte [esi]
mov al, byte [0x69795361]
sub edx, dword [ebp + 0x1cb4d735]
leave
invalid
Function at 0x402bf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44cdba
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x466240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0040f600
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x402c96
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00412110
push 0x46484c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004178b0
push edi
push esi
call fcn.0040fdd0
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410850
mov esp, ebp
pop ebp
ret 4

Function at 0x4033c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44ce58
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x466240]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x1c
mov ecx, esp
push dword [ebp + 0x10]
call fcn.00404320
push dword [ebp + 0xc]
lea eax, [esp + 0x30]
push dword [ebp + 8]
push eax
call fcn.00403320
add esp, 0x28
mov dword [esp + 0x38], 0
cmp dword [eax + 0x18], 0x10
jb 0x40341f
mov eax, dword [eax + 4]
jmp 0x403422
add eax, 4
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.00412110
lea ecx, [esp + 0x10]
mov dword [esi], vtable.std::runtime_error.0
call fcn.00402020
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4080d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4080e9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x408124
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x408120
lea ebx, [ebx]
cmp esi, edx
jae 0x408124
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x408110
cmp esi, edx
jb 0x40812b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4084f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x466240]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [ebx], 0
mov edi, dword [ebp + 0x10]
jne 0x40853c
push str.m_hKey___0
push 0x45f9c0
push 0
push 0x17aa
push str.C:Program_Files__x86_Microsoft_Visual_Studio_12.0VC_atlmfcinclude_atlbase.h
push 2
call fcn.00411440
add esp, 0x18
cmp eax, 1
jne 0x40853c
int3
test edi, edi
jne 0x408565
push str.pnChars___0
push 0x45f9c0
push edi
push 0x17ab
push str.C:Program_Files__x86_Microsoft_Visual_Studio_12.0VC_atlmfcinclude_atlbase.h
push 2
call fcn.00411440
add esp, 0x18
cmp eax, 1
jne 0x408565
int3
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4085d8
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x408599
cmp eax, 2
jne 0x4085b5
mov ecx, dword [ebp - 0xc]
test esi, esi
je 0x4085d2
test ecx, ecx
je 0x4085cd
test cl, 1
jne 0x4085b5
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4085d2
pop edi
pop esi
mov eax, 0xd
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410850
mov esp, ebp
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410850
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4085f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x408621
push str.m_hKey___0
push 0x45f9c0
push 0
push 0x187d
push str.C:Program_Files__x86_Microsoft_Visual_Studio_12.0VC_atlmfcinclude_atlbase.h
push 2
call fcn.00411440
add esp, 0x18
cmp eax, 1
jne 0x408621
int3
mov edx, dword [ebp + 0xc]
xor eax, eax
test edx, edx
setne al
test eax, eax
jne 0x40865e
push str.__atl_condVal
push 0x45f9c0
push eax
push 0x187e
push str.C:Program_Files__x86_Microsoft_Visual_Studio_12.0VC_atlmfcinclude_atlbase.h
push 2
call fcn.00411440
add esp, 0x18
cmp eax, 1
jne 0x408654
int3
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x408664
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x409170
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d368
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x466240]
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 dword [ebp - 0x248], edx
push 0x228
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x240], 0x22c
push 0
push eax
call fcn.0041b5f0
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x24c], esi
cmp esi, 0xffffffff
jne 0x4091e2
xor eax, eax
jmp 0x40932e
lea eax, [ebp - 0x240]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov edi, eax
mov dword [ebp - 0x244], 0
call fcn.004087d0
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x40923d
push str.__atl_condVal
push 0x45f9c0
push ecx
push 0xcd
push str.C:Program_Files__x86_Microsoft_Visual_Studio_12.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00411440
add esp, 0x18
cmp eax, 1
jne 0x409233
int3
push 0x80004005
call fcn.00407f90
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 0
test edi, edi
je 0x4092d7
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea eax, [ebp - 0x21c]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x409270
sub eax, edx
lea ecx, [ebp - 0x14]
sar eax, 1
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040d980
mov ebx, dword [ebp - 0x14]
push str.explorer.exe
push ebx
call fcn.00411be0
add esp, 8
test eax, eax
je 0x4092b4
lea eax, [ebp - 0x240]
push eax
push esi
call edi
test eax, eax
jne 0x409260
jmp 0x4092d7
mov edi, dword [ebp - 0x248]
lea esi, [ebp - 0x240]
mov ecx, 0x8b
mov dword [ebp - 0x244], 1
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x24c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx + 0xc], 0
lea esi, [ebx + 0xc]
jne 0x409314
push str.nRefs___0
push 0x45f9c0
push 0
push 0x56
push str.C:Program_Files__x86_Microsoft_Visual_Studio_12.0VC_atlmfcinclude_atlsimpstr.h
push 2
call fcn.00411440
add esp, 0x18
cmp eax, 1
jne 0x409314
int3
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x409328
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x244]
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.00410850
mov esp, ebp
pop ebp
ret
Function at 0x409a20
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d4db
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x466240]
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 dword [ebp - 0x22c], ecx
xor edi, edi
xor esi, esi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x234], esi
lea edx, [ebp - 0x468]
mov dword [ebp - 4], esi
call fcn.00409170
test eax, eax
je 0x409b91
push dword [ebp - 0x460]
push esi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x409b91
lea ecx, [ebp - 0x220]
mov esi, eax
push ecx
push 0xa
push eax
mov dword [ebp - 0x234], esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x409b91
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
test eax, eax
je 0x409b91
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.0041b5f0
add esp, 0xc
mov dword [ebp - 0x21c], 0x104
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
lea edx, [ebp - 0x228]
mov dword [ebp - 0x228], edi
lea ecx, [ebp - 0x218]
call fcn.00409bd0
mov ebx, dword [ebp - 0x228]
lea eax, [ebp - 0x224]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
mov edx, dword [ebp - 0x224]
test edx, edx
jne 0x409b43
xor ecx, ecx
jmp 0x409b63
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x228], eax
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b50
sub ecx, dword [ebp - 0x228]
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x22c]
push edx
call fcn.0040d980
mov ecx, dword [ebp - 0x22c]
mov eax, dword [ecx]
mov ecx, 1
cmp dword [eax - 0xc], 0
cmovg edi, ecx
test ebx, ebx
je 0x409b91
push ebx
call fcn.00414870
add esp, 4
mov eax, dword [ebp - 0x220]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x409ba4
push eax
call ebx
test esi, esi
je 0x409bab
push esi
call ebx
mov eax, edi
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.00410850
mov esp, ebp
pop ebp
ret
Function at 0x409bd0
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d510
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x466240]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], eax
xor ebx, ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], ebx
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 4], ebx
push eax
push ebx
lea eax, [ebp - 0x1c]
xor esi, esi
push eax
push ebx
push ecx
push ebx
mov dword [ebp - 0x1c], esi
xor edi, edi
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x409cac
push dword [ebp - 0x1c]
call fcn.00415710
mov esi, eax
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, 2
mul edx
mov dword [ebp - 0x34], esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00415710
add esp, 8
mov edi, eax
mov dword [ebp - 0x2c], edi
test esi, esi
je 0x409c87
test edi, edi
je 0x409c87
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 0x28]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x409c90
push 0
push 0
call fcn.004178b0
mov ebx, 1
jmp 0x409cac
test edi, edi
je 0x409cb9
push edi
call fcn.00414870
add esp, 4
test ebx, ebx
jne 0x409ccc
test esi, esi
je 0x409cd1
push esi
call fcn.00414870
add esp, 4
jmp 0x409cd1
mov eax, dword [ebp - 0x24]
mov dword [eax], esi
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00410850
mov esp, ebp
pop ebp
ret
Function at 0x1000d885
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 4], edx
push esi
push esi
push 2
push esi
push esi
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000d8b3
mov esi, 0x80040116
jmp 0x1000d8e1
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push eax
push ebx
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1000d8d2
mov esi, 0x80040116
jmp 0x1000d8dc
cmp ebx, dword [ebp - 8]
je 0x1000d8dc
mov esi, 0x80004005
pop ebx
test edi, edi
je 0x1000d8e8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x1000fd46
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
mov dword [ebp - 0x14], edx
push ebx
mov dword [ebp - 4], eax
mov ebx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], eax
mov eax, dword [0x10089098]
push esi
push edi
mov dword [ebp - 0x10], ecx
xor edi, edi
mov ecx, dword [eax + 0x38]
inc edi
mov edx, dword [eax + 0x3c]
mov eax, ecx
or eax, edx
mov dword [ebp - 0xc], 2
je 0x1000fd8a
push edi
push edx
push ecx
push 0x29
pop edx
call fcn.10010290
mov ecx, dword [ebp + 8]
lea edx, [ebp - 4]
call fcn.100153b4
mov esi, eax
test esi, esi
js 0x1000fe8f
mov ecx, dword [ebp - 4]
call fcn.1000f9c6
push 6
pop ecx
test eax, eax
je 0x1000fdb1
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], ecx
jne 0x1000fdef
mov ecx, dword [ebp + 8]
call fcn.10031469
push dword [ebp + 8]
neg eax
sbb edi, edi
and edi, 0x1c00
add edi, 0x401
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 1
je 0x1000fdef
or edi, 0x100
test edi, 0x400
jne 0x1000fdef
or edi, 0x80
xor eax, eax
inc eax
test eax, eax
jne 0x1000fe13
mov eax, dword [0x10089098]
mov ecx, dword [eax + 0x38]
mov edx, dword [eax + 0x3c]
mov eax, ecx
or eax, edx
je 0x1000fe13
push 1
push edx
push ecx
push 0x29
pop edx
call fcn.10010290
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x1c], 0
push eax
push dword [ebp + 0xc]
push edi
push dword [ebp - 4]
call fcn.10010062
mov esi, eax
test esi, esi
js 0x1000fe8f
test dword [ebp - 8], 0x10000
je 0x1000fe3f
xor ebx, ebx
inc ebx
mov eax, dword [ebp - 8]
and al, 2
movzx eax, al
neg eax
sbb eax, eax
and ebx, eax
je 0x1000fe6b
mov edx, dword [ebp + 0xc]
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
lea ecx, [ebp - 4]
mov esi, ebx
call fcn.100181d6
mov ebx, eax
neg ebx
sbb ebx, ebx
and ebx, esi
test byte [ebp - 8], 4
je 0x1000fe82
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 4]
call fcn.1000fbbb
mov esi, eax
test esi, esi
js 0x1000fe8f
mov eax, dword [ebp - 0x1c]
test ebx, ebx
jne 0x1000fdf2
xor esi, esi
lea ecx, [ebp - 4]
call fcn.1000b34b
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10011e79
Capabilities:
Get graphical window text

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0x14]
mov ebx, ecx
push 0x208
push 0
push eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp + 0xc]
add esp, 0xc
dec eax
sub eax, 1
je 0x10011efd
sub eax, 0x48
jne 0x10011f08
push 0x104
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x10011f08
lea eax, [ebp - 0x20c]
push eax
push 0x10004438
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
je 0x10011f08
push dword [edi + 8]
mov ecx, ebx
call fcn.10011f2d
xor ecx, ecx
test eax, eax
setns cl
jmp 0x10011f18
push 0
push 0xffffffffffffffeb
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.USER32.dll_DefWindowProcW]
mov ecx, eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10018003
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x1008a418]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x208
lea eax, [ebp - 0x418]
push esi
mov ebx, ecx
lea ecx, [ebp - 0x634]
push eax
mov dword [ebp - 0x628], ebx
call fcn.100102ed
push esi
lea eax, [ebp - 0x620]
xor edi, edi
push eax
lea ecx, [ebp - 0x644]
mov dword [ebp - 0x638], edi
call fcn.100102ed
push esi
lea eax, [ebp - 0x210]
mov dword [ebp - 0x648], edi
push edi
push eax
call sub.msvcrt.dll_memset
mov ebx, dword [ebx]
lea edx, [ebp - 0x638]
add esp, 0xc
mov dword [ebp - 0x624], ebx
mov ecx, ebx
call fcn.10019079
test eax, eax
jns 0x1001808c
inc edi
jmp 0x1001819f
mov ecx, ebx
call fcn.1000f9c6
test eax, eax
jne 0x1001819f
mov ebx, dword [ebp - 0x638]
mov esi, 0x10003f08
mov eax, esi
test ebx, ebx
je 0x100180b2
mov eax, dword [ebp - 0x634]
push eax
mov edx, 0x104
lea ecx, [ebp - 0x210]
call fcn.1000b82d
mov edi, eax
test edi, edi
js 0x1001819f
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, esi
test ebx, ebx
je 0x100180e6
mov eax, dword [ebp - 0x634]
lea ecx, [ebp - 0x648]
push ecx
push 0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
mov ecx, dword [ebp - 0x624]
lea edx, [ebp - 0x210]
push eax
call fcn.100198ff
mov edi, eax
test edi, edi
js 0x1001819f
cmp dword [ebp - 0x648], 0
mov ecx, esi
mov edi, dword [ebp - 0x644]
je 0x10018125
mov ecx, edi
mov eax, esi
test ebx, ebx
je 0x10018131
mov eax, dword [ebp - 0x634]
push ecx
push eax
call dword [sym.imp.msvcrt.dll__wrename]
pop ecx
pop ecx
test eax, eax
jne 0x1001819d
and dword [ebp - 0x624], eax
mov ecx, esi
cmp dword [ebp - 0x648], eax
je 0x10018151
mov ecx, edi
lea edx, [ebp - 0x624]
call fcn.10018c3c
test eax, eax
js 0x10018179
mov ecx, dword [ebp - 0x628]
call fcn.1000b34b
mov ecx, dword [ebp - 0x628]
mov eax, dword [ebp - 0x624]
mov dword [ecx], eax
cmp dword [ebp - 0x648], 0
jne 0x10018184
mov edi, esi
test ebx, ebx
je 0x1001818e
mov esi, dword [ebp - 0x634]
push edi
push esi
push 0x3005
push 1
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
xor edi, edi
and dword [ebp - 0x648], 0
lea ecx, [ebp - 0x644]
call fcn.1000deab
and dword [ebp - 0x638], 0
lea ecx, [ebp - 0x634]
call fcn.1000deab
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10087900
mov esp, ebp
pop ebp
ret