joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409bc0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fe64
mov eax, dword fs:[0]
push eax
sub esp, 0x814
mov eax, dword [0x43f440]
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 eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov dword [ebp - 0x820], 0
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x409dd0
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041e140
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x3ff
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x409dd0
lea eax, [ebp - 0x810]
mov dword [ebp - 0x814], 0
push eax
lea ecx, [ebp - 0x814]
call fcn.004015f0
mov eax, dword [ebp - 0x814]
mov dword [ebp - 4], 1
mov dword [ebp - 0x81c], 0
mov ecx, dword [eax - 0x10]
test ecx, ecx
je 0x409c86
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x409c9c
call fcn.00401e80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x409dee
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x820], 1
mov dword [ebp - 0x81c], eax
mov eax, dword [ebp - 0x814]
push dword [eax - 0xc]
push eax
push 3
lea eax, [ebp - 0x81c]
push 0x4315e8
push eax
call fcn.00409ae0
add esp, 0x14
mov esi, dword [ebp - 0x81c]
mov ecx, dword [esi - 0x10]
lea ebx, [esi - 0x10]
mov byte [ebp - 4], 2
mov dword [ebp - 0x818], 0
test ecx, ecx
je 0x409cfd
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
test ecx, ecx
jne 0x409d13
call fcn.00401e80
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x10]
mov ecx, eax
test ecx, ecx
je 0x409df8
mov eax, dword [ecx]
call dword [eax + 0xc]
push 4
push str.__a_
push dword [esi - 0xc]
add eax, 0x10
mov dword [ebp - 0x820], 3
mov dword [ebp - 0x818], eax
lea eax, [ebp - 0x818]
push esi
push eax
call fcn.00409ae0
add esp, 0x14
lea eax, [ebp - 0x818]
lea ecx, [ebp - 0x814]
push eax
call fcn.004024b0
mov edx, dword [ebp - 0x818]
or esi, 0xffffffff
mov dword [ebp - 0x820], 1
add edx, 0xfffffff0
mov byte [ebp - 4], 1
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x409d85
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x409d9d
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp - 0x814]
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edx, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x409dcc
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov al, 1
jmp 0x409dd2
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.0041c66f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
push 0x80004005
call fcn.00401f80
int3
Function at 0x40ba30
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4300c1
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x43f440]
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 eax, dword fs:[0x2c]
mov ecx, dword [0x444644]
mov edi, dword [ebp + 8]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x443b7c]
cmp eax, dword [ecx + 4]
jg 0x40bb67
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
test eax, eax
jne 0x40bafd
mov dword [ebp - 0x14], eax
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0xcab
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, 0x4a7
mov dword [ebp - 0x18], 8
nop dword [eax]
push 0
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
sub dword [ebp - 0x18], 1
jne 0x40bac0
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.0041c66f
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x14], 1
jb 0x40ba96
mov ecx, 0x443b18
call fcn.00407d10
cmp eax, 1
ja 0x40ba96
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, 0x4a7
nop dword [eax]
lea eax, [esi - 0x4a7]
cmp eax, dword [ebp - 0x14]
ja 0x40bb3c
push 1
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
jmp 0x40bb4b
push 0
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push esi
push edi
call ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
lea eax, [esi - 0x4a7]
cmp eax, 8
jb 0x40bb20
jmp 0x40bae1
push 0x443b7c
call fcn.0041c13f
add esp, 4
cmp dword [0x443b7c], 0xffffffff
jne 0x40ba7e
mov ecx, 0x443b18
mov dword [ebp - 4], 0
call fcn.00407390
push 0x430d10
call fcn.0041c3df
push 0x443b7c
mov dword [ebp - 4], 0xffffffff
call fcn.0041c0ee
add esp, 8
jmp 0x40ba7e
Function at 0x40bbc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430105
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x43f440]
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 eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push eax
push edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, eax
test ebx, ebx
je 0x40bd31
push ebx
call fcn.00409aa0
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.0041e140
add esp, 0x10
lea ecx, [ebp - 0x74]
call fcn.00407390
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0
call fcn.00407d10
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x80], eax
cmp eax, 1
ja 0x40bc7d
push 0
push ebx
call esi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push ebx
call edi
mov ebx, dword [ebp - 0x7c]
push 0
push dword [ebp - 0x78]
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
push 0
push dword [ebp - 0x78]
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call edi
jmp 0x40bd29
push 1
push ebx
call esi
push 1
push dword [ebp - 0x78]
push edi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call esi
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x40bd4d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push 0x431628
push eax
call fcn.00402f40
add esp, 8
push dword [ebp - 0x78]
push 0
push 0x143
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
xor edi, edi
push edi
lea eax, [ebp - 0x78]
push 0x431630
push eax
call fcn.00402f40
mov esi, dword [ebp - 0x78]
add esp, 0xc
push esi
push 0
push 0x143
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
inc edi
cmp edi, dword [ebp - 0x80]
jb 0x40bcd3
push 0
push 0
push 0x14e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40bd29
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x74]
call fcn.004074f0
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.0041c66f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
int3
Function at 0x413200
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4304c0
mov eax, dword fs:[0]
push eax
sub esp, 0x80c
mov eax, dword [0x43f440]
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 esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x818], edi
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x413425
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x814]
mov dword [ebp - 4], 0
push eax
push 0x80000002
mov ecx, esi
call fcn.00412ef0
cmp al, 1
je 0x413392
lea eax, [ebp - 0x814]
mov ecx, esi
push eax
push 0x80000001
call fcn.00412ef0
cmp al, 1
je 0x413392
call fcn.0041b320
push 0x800
mov bl, al
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.0041e140
add esp, 0xc
mov eax, 0x23
test bl, bl
mov ecx, 0x1c
cmovne ecx, eax
lea eax, [ebp - 0x810]
push 1
push ecx
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x413383
mov ebx, dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [ebp - 0x810]
push 0
push eax
push 0
call ebx
lea edi, [ebp - 0x810]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4132f5
push 0
lea eax, [ebp - 0x810]
mov ecx, 7
push eax
mov esi, 0x431598
rep movsd dword es:[edi], dword [esi]
push 0
call ebx
lea ecx, [ebp - 0x810]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x413323
mov eax, dword [str.config]
mov dword [ecx], eax
mov eax, dword [0x4348ac]
mov dword [ecx + 4], eax
mov eax, dword [0x4348b0]
mov dword [ecx + 8], eax
mov eax, dword [0x4348b4]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413357
mov edi, dword [ebp - 0x818]
lea eax, [ebp - 0x810]
sub ecx, edx
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00401840
mov esi, dword [ebp - 0x814]
jmp 0x4133df
mov ecx, edi
call fcn.004019b0
mov esi, dword [ebp - 0x814]
jmp 0x4133df
mov esi, dword [ebp - 0x814]
cmp dword [esi - 0xc], 0
jl 0x4133b9
push str.config
push esi
call fcn.0041d8e7
add esp, 8
test eax, eax
je 0x4133b9
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jne 0x4133d1
push 7
push str.config
lea ecx, [ebp - 0x814]
call fcn.00403bd0
mov esi, dword [ebp - 0x814]
lea eax, [ebp - 0x814]
mov ecx, edi
push eax
call fcn.004024b0
push edi
call fcn.00406560
add esp, 4
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413407
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.0041c66f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00401f80
int3
Function at 0x413430
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x430500
mov eax, dword fs:[0]
push eax
mov eax, 0x2014
call fcn.0041c7d0
mov eax, dword [0x43f440]
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 esi, ecx
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004019b0
lea eax, [ebp - 0x2018]
mov dword [ebp - 0x2018], 0
push eax
mov ecx, esi
call fcn.00413640
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push dword [ebp - 0x2018]
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4134be
mov ecx, edi
call fcn.004019b0
jmp 0x4135f0
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x201c], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x1000
jae 0x4135e2
cmp dword [ebp - 0x201c], 0
jne 0x4135e2
test ebx, ebx
jne 0x41350a
mov ecx, edi
call fcn.004019b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x4135f2
push 0x2002
lea eax, [ebp - 0x2014]
push 0
push eax
call fcn.0041e140
add esp, 0xc
mov dword [ebp - 0x2020], 0
lea eax, [ebp - 0x2020]
push 0
push eax
push ebx
lea eax, [ebp - 0x2014]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4135e9
lea ecx, [ebp - 0x2014]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413553
sub ecx, edx
lea eax, [ebp - 0x2014]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00401840
push 0x431414
push 0x434958
mov ecx, edi
call fcn.004082c0
push 0x431414
push 0x4318a4
mov ecx, edi
call fcn.004082c0
push 0x431414
push 0x43b0ac
mov ecx, edi
call fcn.004082c0
push 0x431414
push 0x431554
mov ecx, edi
call fcn.004082c0
push 0x431414
push 0x43a6ec
mov ecx, edi
call fcn.004082c0
push 0x431414
push 0x43495c
mov ecx, edi
call fcn.004082c0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
jmp 0x4135f2
mov ecx, edi
call fcn.004019b0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor bl, bl
mov eax, dword [ebp - 0x2018]
or ecx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x413617
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.0041c66f
mov esp, ebp
pop ebp
ret 4
Function at 0x413a20
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42fe9d
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x43f440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x3054]
test eax, eax
je 0x413ac1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x3054], 0
call fcn.00401e80
mov ecx, eax
test ecx, ecx
je 0x413ad3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00412dc0
push 9
push str..pl_lock
lea ecx, [ebp - 0x10]
call fcn.00403bd0
mov esi, dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x413ac1
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401f80
int3
Function at 0x41ced2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41cf11
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41cf11
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41cf11
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41cf11
cmp dword [ecx + 0x74], 0xe
jbe 0x41cf11
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x42777c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4385cc
push 0x4385c4
push str.FlsAlloc
push 0x1f
call fcn.004276b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4277b0
push dword [ebp + 8]
mov ecx, esi
call dword [0x43131c]
call esi
jmp 0x4277b6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4277fa
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4385dc
push 0x4385d4
push str.FlsGetValue
push 0x21
call fcn.004276b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427831
push dword [ebp + 8]
mov ecx, esi
call dword [0x43131c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x427839
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4385e4
push 0x4385dc
push str.FlsSetValue
push 0x22
call fcn.004276b7
mov esi, eax
add esp, 0x10
test esi, esi
je 0x427873
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x43131c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x428ff4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43f440]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x42903f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0042918f
test al, al
jne 0x429039
sub edx, 2
cmp edx, edi
jne 0x42901f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x429061
lea eax, [edi + 2]
cmp edx, eax
je 0x429061
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00428f3f
add esp, 0x10
jmp 0x42915b
push esi
lea ecx, [ebp - 0x255]
call fcn.0042918f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4290a4
push dword [ebp - 0x25c]
jmp 0x429051
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4290e1
cmp word [ebp - 0x226], 0
je 0x429102
cmp word [ebp - 0x226], ax
jne 0x4290e1
cmp word [ebp - 0x224], 0
je 0x429102
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00428f3f
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x42914e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4290bb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x429136
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x42915b
push 0x428d6f
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0042d6b0
add esp, 0x10
jmp 0x42912b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c66f
leave
ret
Function at 0x42f490
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42f4bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42f4bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402e0a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x402e28
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x402e46
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
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 0x402ea4
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 0x402e8b
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x402e94
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x402e9e
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x402e80
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe fcn.00402e0a
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 0x402ef1
dec eax
je 0x402ee8
sub eax, 3
je 0x402edf
mov dword [ebp - 4], 0x40
jmp 0x402f0e
mov dword [ebp - 4], 4
jmp 0x402ef4
mov dword [ebp - 4], 0x20
jmp 0x402ef4
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
jne 0x402f0c
call dword [ebp - 0xbc]
test eax, eax
je 0x402f40
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x402ec0
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00402751
shl dword [edx], 1
push ds
jo 0x402f34
push dword [ebp + 0x14]
jne 0x402f4b
push 1
push esi
call edi
mov eax, esi
jmp 0x402f4c
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x405b8f
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push esi
mov esi, ecx
je 0x405c9f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x405bbc
dec eax
je 0x405bb1
dec eax
jne 0x405bbc
push 0xfffffffffffffff4
jmp 0x405bb3
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [esi + 0xc], edi
je 0x405c0b
cmp dword [ebp + 0xc], edi
jbe 0x405c26
mov ecx, dword [ebp + 0xc]
sub ecx, edi
mov eax, 0x4000
cmp ecx, eax
jae 0x405be3
mov eax, ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [ebp + 8]
add eax, edi
push eax
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
je 0x405c26
add edi, 0x4000
cmp edi, dword [ebp + 0xc]
jb 0x405bd3
jmp 0x405c22
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call ebx
dec eax
neg eax
sbb al, al
inc al
test al, al
jne 0x405c99
cmp byte [esi + 0x14], 0
je 0x405c99
cmp dword [esi + 0xc], 0
jne 0x405c99
push 0
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
mov edi, 0x415e7c
push eax
mov ecx, edi
call fcn.0040352c
test al, al
je 0x405c83
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x405bc4
test eax, eax
jbe 0x405bc4
push 0
mov ecx, esi
call fcn.00405595
mov ecx, dword [ebp - 4]
xor edi, edi
sub eax, ecx
sbb edx, edi
push edx
push eax
mov ecx, esi
call fcn.00405af0
jmp 0x405bc4
lea eax, [esi + 0x418]
push eax
lea eax, [esi + 0x17]
push eax
push 0
push 0
mov ecx, edi
call 0x4037b6
pop edi
mov byte [esi + 8], 1
pop ebx
pop esi
leave
ret 8

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

Disassembly:
call fcn.004074bc
test eax, eax
je 0x405db9
mov eax, dword [esp + 8]
test eax, eax
je 0x405db9
cmp word [eax], 0
je 0x405db9
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
jmp 0x405dd6
cmp dword [esp + 4], 0
je 0x405dd4
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405dd4
xor eax, eax
inc eax
jmp 0x405dd6
xor eax, eax
ret 8

Function at 0x405e04
Capabilities:
Get file attributes

Disassembly:
call fcn.004074bc
test eax, eax
je 0x405e24
mov eax, dword [esp + 8]
test eax, eax
je 0x405e24
cmp word [eax], 0
je 0x405e24
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
jmp 0x405e2e
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
ret 8

Function at 0x405e31
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
call fcn.004074bc
test eax, eax
je 0x405e56
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x405e56
cmp word [eax], 0
je 0x405e56
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x405e68
cmp dword [ebp + 8], 0
je 0x405e6f
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
jmp 0x405e71
xor al, al
pop ebp
ret 0xc