joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421337
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x421365
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x42136a
cmp eax, 1
je 0x42136a
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x42136e
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43355c]
push ebx
mov ebx, dword [ebp + 0x98]
xor eax, ebp
test ebx, ebx
push edi
mov edi, dword [ebp + 0x9c]
mov dword [ebp + 0x8c], eax
je 0x4213fe
push ebx
call fcn.00421337
test eax, eax
pop ecx
jne 0x4213d3
mov dword [0x434dc0], 0xf
mov dword [0x434dbc], 0xd
xor eax, eax
mov ecx, dword [ebp + 0x8c]
pop edi
xor ecx, ebp
pop ebx
call fcn.00427899
add ebp, 0x90
leave
ret
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x104
lea eax, [ebp - 0x7c]
add bl, 0x40
push eax
mov byte [ebp - 0x7c], bl
mov byte [ebp - 0x7b], 0x3a
mov byte [ebp - 0x7a], 0x2e
mov byte [ebp - 0x79], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x42140d
lea eax, [ebp - 0x78]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4213ba
inc eax
cmp eax, 0x104
ja 0x4213ba
test edi, edi
mov ecx, edi
jne 0x421449
cmp eax, dword [ebp + 0xa0]
jg 0x42142d
mov eax, dword [ebp + 0xa0]
push eax
call fcn.0041fcea
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x421460
mov dword [0x434dbc], 0xc
jmp 0x4213ba
cmp eax, dword [ebp + 0xa0]
jle 0x421460
mov dword [0x434dbc], 0x22
jmp 0x4213ba
lea eax, [ebp - 0x78]
push eax
push ecx
call fcn.00427770
pop ecx
pop ecx
jmp 0x4213bc
Function at 0x4217ae
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x42cbf0
call fcn.00427ee0
mov edi, 0x94
mov eax, edi
call fcn.00421490
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x434dc8], ecx
mov eax, dword [esi + 4]
mov dword [0x434dd4], eax
mov edx, dword [esi + 8]
mov dword [0x434dd8], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x434dcc], esi
cmp ecx, 2
je 0x42180e
or esi, 0x8000
mov dword [0x434dcc], esi
shl eax, 8
add eax, edx
mov dword [0x434dd0], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x421849
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421849
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x421861
cmp eax, 0x20b
je 0x42184e
mov dword [ebp - 0x1c], esi
jmp 0x421875
cmp dword [ecx + 0x84], 0xe
jbe 0x421849
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x42186f
cmp dword [ecx + 0x74], 0xe
jbe 0x421849
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push esi
call fcn.004229f7
pop ecx
test eax, eax
jne 0x4218a1
cmp dword [0x434db8], 1
jne 0x42188e
call fcn.004281ad
push 0x1c
call fcn.00428035
push 0xff
call fcn.0042198a
pop ecx
pop ecx
call fcn.004287ab
mov dword [ebp - 4], esi
call fcn.00423ee6
test eax, eax
jge 0x4218ba
push 0x1b
call fcn.00421789
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4363f4], eax
call fcn.00428689
mov dword [0x434db0], eax
call fcn.004285e7
test eax, eax
jge 0x4218e0
push 8
call fcn.00421789
pop ecx
call fcn.004283b4
test eax, eax
jge 0x4218f1
push 9
call fcn.00421789
pop ecx
push 1
call fcn.004219ba
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x421907
push eax
call fcn.00421789
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00428357
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x421928
movzx eax, word [ebp - 0x40]
jmp 0x42192b
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00418f70
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x421949
push edi
call fcn.00421ae5
call fcn.00421b07
jmp 0x42197b
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00427f1b
ret
Function at 0x421a24
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x434e08], esi
push edi
jne 0x421a44
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x434e04], esi
mov byte [0x434e00], al
jne 0x421aaa
mov ecx, dword [0x4363ec]
test ecx, ecx
je 0x421a8b
mov eax, dword [0x4363e8]
sub eax, 4
cmp eax, ecx
jmp 0x421a84
mov eax, dword [eax]
test eax, eax
je 0x421a76
call eax
mov eax, dword [0x4363e8]
sub eax, 4
cmp eax, dword [0x4363ec]
mov dword [0x4363e8], eax
jae 0x421a6e
mov eax, 0x43302c
mov esi, 0x433034
cmp eax, esi
mov edi, eax
jae 0x421aaa
mov eax, dword [edi]
test eax, eax
je 0x421aa3
call eax
add edi, 4
cmp edi, esi
jb 0x421a9b
mov eax, 0x433038
mov esi, 0x433040
cmp eax, esi
mov edi, eax
jae 0x421ac9
mov eax, dword [edi]
test eax, eax
je 0x421ac2
call eax
add edi, 4
cmp edi, esi
jb 0x421aba
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x421ae3
push dword [ebp + 8]
mov dword [0x434e08], 1
call fcn.0042198a
pop ebp
ret
Function at 0x4224a9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x4362a8]
push edi
jae 0x422680
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x4362c0]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x422680
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x422554
test dl, 2
jne 0x422554
test dl, 0x48
je 0x42251e
cmp byte [eax + 5], 0xa
je 0x42251e
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x422567
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x42254f
mov dword [0x434dc0], ecx
jmp 0x422687
cmp eax, 0x6d
jne 0x42255b
xor eax, eax
jmp 0x422694
push eax
call fcn.00427d23
pop ecx
jmp 0x422691
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x42267b
test eax, eax
je 0x42258e
cmp byte [ebx], 0xa
jne 0x42258e
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x422597
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x422675
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x422665
cmp al, 0xd
je 0x4225c9
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x422657
dec ecx
cmp dword [ebp - 8], ecx
jae 0x4225e3
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4225de
add dword [ebp - 8], 2
jmp 0x422637
mov dword [ebp - 8], eax
jmp 0x422653
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42260b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x422653
cmp dword [ebp - 0x10], 0
je 0x422653
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x42262c
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x422637
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x422656
cmp ebx, dword [ebp + 0xc]
jne 0x42263c
cmp byte [ebp - 1], 0xa
jne 0x42263c
mov byte [ebx], 0xa
jmp 0x422656
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004291fd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x422657
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4225ad
jmp 0x422675
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x422675
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x422694
and dword [0x434dc0], 0
mov dword [0x434dbc], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x424091
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x43355c]
mov ecx, dword [ebp + 0x3ac]
push ebx
push esi
xor eax, ebp
cmp ecx, dword [0x4362a8]
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x78], edi
jae 0x424233
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4362c0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x424233
and dword [ebp - 0x70], 0
and dword [ebp - 0x7c], 0
cmp dword [ebp + 0x3b4], 0
jne 0x424107
xor eax, eax
jmp 0x424247
test al, 0x20
je 0x42411a
push 2
push 0
push 0
push ecx
call fcn.004291fd
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4241af
and dword [ebp - 0x68], 0
cmp dword [ebp + 0x3b4], 0
mov dword [ebp - 0x6c], edi
jbe 0x424210
mov ecx, dword [ebp - 0x6c]
xor edi, edi
sub ecx, dword [ebp - 0x78]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x424174
mov edx, dword [ebp - 0x6c]
inc dword [ebp - 0x6c]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x424165
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x424147
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x74]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4241d4
mov eax, dword [ebp - 0x74]
add dword [ebp - 0x70], eax
cmp eax, edi
jl 0x4241dd
mov eax, dword [ebp - 0x6c]
sub eax, dword [ebp - 0x78]
cmp eax, dword [ebp + 0x3b4]
jb 0x42413c
jmp 0x4241dd
push 0
lea ecx, [ebp - 0x74]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4241d4
mov eax, dword [ebp - 0x74]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x70], eax
jmp 0x4241dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x70]
test eax, eax
jne 0x42422e
cmp dword [ebp - 0x68], eax
je 0x42420d
push 5
pop eax
cmp dword [ebp - 0x68], eax
jne 0x424202
mov dword [0x434dbc], 9
mov dword [0x434dc0], eax
jmp 0x424244
push dword [ebp - 0x68]
call fcn.00427d23
pop ecx
jmp 0x424244
mov edi, dword [ebp - 0x78]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x424222
cmp byte [edi], 0x1a
je 0x424100
mov dword [0x434dbc], 0x1c
jmp 0x42423d
sub eax, dword [ebp - 0x7c]
jmp 0x424247
mov dword [0x434dbc], 9
and dword [0x434dc0], 0
or eax, 0xffffffff
mov ecx, dword [ebp + 0x3a0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00427899
add ebp, 0x3a4
leave
ret
Function at 0x427dfa
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00421490
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x427e95
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x434dc8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x427e95
cmp eax, 1
je 0x427eb6
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x427e95
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x427e62
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x427e91
xor eax, eax
inc eax
jmp 0x427ed5
cmp edi, eax
jae 0x427e99
xor eax, eax
jmp 0x427ed5
cmp eax, esi
jae 0x427ea0
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x434dc8]
jmp 0x427eb9
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x428035
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x43355c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x4339e0]
je 0x42806c
inc eax
cmp eax, 0x13
jb 0x42805d
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x4339e0]
jne 0x42818f
mov eax, dword [0x434db8]
cmp eax, 1
je 0x42816a
cmp eax, edx
jne 0x42809c
cmp dword [0x433504], 1
je 0x42816a
cmp ecx, 0xfc
je 0x42818f
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4280d2
lea eax, [ebp - 0x7c]
push str._program_name_unknown_
push eax
call fcn.00427770
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004265b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x428106
mov eax, edi
push eax
call fcn.004265b0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x431048
push edi
call fcn.00420140
add esp, 0x10
push edi
call fcn.004265b0
push dword [esi + 0x4339e4]
mov ebx, eax
call fcn.004265b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00421490
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00427770
push edi
push ebx
call fcn.00427780
push 0x431028
push ebx
call fcn.00427780
push dword [esi + 0x4339e4]
push ebx
call fcn.00427780
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0042a90a
add esp, 0x2c
jmp 0x42818f
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x4339e4]
push dword [esi]
call fcn.004265b0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.00427899
add ebp, 0x90
leave
ret
Function at 0x42a6e1
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x42a70f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x42a716
cmp ebx, dword [eax + 4]
jae 0x42a716
xor eax, eax
jmp 0x42a906
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x42a727
xor eax, eax
inc eax
jmp 0x42a905
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x42a73d
cmp ecx, edx
jae 0x42a882
cmp dword [eax + 4], 0
je 0x42a746
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x42a72e
cmp dword [ebp + 8], 0
je 0x42a768
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x42a882
cmp eax, esi
jae 0x42a882
mov eax, dword [0x434fe0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x42a78d
cmp dword [esi*4 + 0x434fe8], edi
je 0x42a886
inc esi
cmp esi, eax
jl 0x42a77b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42a902
cmp dword [ebp - 8], 0x1000000
jne 0x42a902
test byte [ebp - 0xc], 0xcc
je 0x42a80b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x42a902
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x42a902
cmp word [eax + 0x18], 0x10b
jne 0x42a902
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x42a902
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x42a80b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x42a80b
test byte [ecx + 0x27], 0x80
jne 0x42a882
push 1
push 0x435028
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x42a71f
mov ecx, dword [0x434fe0]
test ecx, ecx
mov edx, ecx
jle 0x42a83f
lea eax, [ecx*4 + 0x434fe4]
cmp dword [eax], edi
je 0x42a83f
dec edx
sub eax, 4
test edx, edx
jg 0x42a833
test edx, edx
jne 0x42a870
push 0xf
pop ebx
cmp ecx, ebx
jg 0x42a84c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x42a864
lea eax, [edx*4 + 0x434fe8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x42a852
cmp ecx, 0x10
jge 0x42a870
inc ecx
mov dword [0x434fe0], ecx
push 0
push 0x435028
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x42a71f
xor eax, eax
jmp 0x42a905
test esi, esi
jle 0x42a71f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x435028
call ebx
test eax, eax
jne 0x42a71f
cmp dword [esi*4 + 0x434fe8], edi
je 0x42a8dc
mov eax, dword [0x434fe0]
lea esi, [eax - 1]
test esi, esi
jl 0x42a8ca
cmp dword [esi*4 + 0x434fe8], edi
je 0x42a8c6
dec esi
jns 0x42a8ba
test esi, esi
jge 0x42a8da
cmp eax, 0x10
jge 0x42a8d5
inc eax
mov dword [0x434fe0], eax
lea esi, [eax - 1]
jmp 0x42a8dc
je 0x42a8f4
xor ecx, ecx
test esi, esi
jl 0x42a8f4
lea eax, [ecx*4 + 0x434fe8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x42a8e2
push 0
push 0x435028
call ebx
jmp 0x42a71f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42a90a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43502c], ebx
push esi
push edi
jne 0x42a98a
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x42a9c5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x431364
push edi
call esi
test eax, eax
mov dword [0x43502c], eax
je 0x42a9c5
push 0x431354
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x435030], eax
call esi
cmp dword [0x434dc8], 2
mov dword [0x435034], eax
jne 0x42a98a
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43503c], eax
je 0x42a98a
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x435038], eax
mov eax, dword [0x435038]
test eax, eax
je 0x42a9cf
call eax
test eax, eax
je 0x42a9b6
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43503c]
test eax, eax
je 0x42a9b6
test byte [ebp - 8], 1
jne 0x42a9cf
cmp dword [0x434dd4], 4
jb 0x42a9c9
or byte [ebp + 0x12], 0x20
jmp 0x42a9ee
xor eax, eax
jmp 0x42a9fe
or byte [ebp + 0x12], 4
jmp 0x42a9ee
mov eax, dword [0x435030]
test eax, eax
je 0x42a9ee
call eax
mov ebx, eax
test ebx, ebx
je 0x42a9ee
mov eax, dword [0x435034]
test eax, eax
je 0x42a9ee
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43502c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42aa9f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00421490
mov eax, dword [0x43355c]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
cmp ebx, dword [0x4362a8]
mov dword [ebp - 4], eax
jae 0x42abea
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4362c0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x42abea
push 1
push esi
push ebx
call fcn.00421b25
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x42abf4
push 2
push esi
push ebx
call fcn.00421b25
add esp, 0xc
cmp eax, 0xffffffff
je 0x42abf4
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x42ab94
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00427710
push 0x8000
push ebx
call fcn.0042ba0c
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x42ab50
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00424091
add esp, 0xc
cmp eax, 0xffffffff
je 0x42ab6e
sub edi, eax
test edi, edi
jg 0x42ab45
jmp 0x42ab84
cmp dword [0x434dc0], 5
jne 0x42ab81
mov dword [0x434dbc], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.0042ba0c
pop ecx
pop ecx
jmp 0x42abd4
jge 0x42abd4
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00421b25
push ebx
call fcn.004289c1
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x42abd4
mov dword [0x434dbc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x434dc0], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00421b25
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42abf7
mov dword [0x434dbc], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00427899
leave
ret
Function at 0x40f850
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x5dccb4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x40fa63
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40fa63
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f883
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x40fa63
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00516300
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00516300
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x58a5cc
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40f904
test al, 1
je 0x40f904
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x40fa49
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40fa3d
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x40f9b8
cmp word [ebp - 0x638], 0x2e
jne 0x40f977
mov ax, word [ebp - 0x636]
test ax, ax
je 0x40fa22
cmp ax, 0x2e
jne 0x40f977
cmp word [ebp - 0x634], 0
je 0x40fa22
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f850
add esp, 4
jmp 0x40fa20
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00516300
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40fa0f
test al, 1
je 0x40fa0f
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f940
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b0a78
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004b0a78
mov esp, ebp
pop ebp
ret