joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410883
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004106f4

Function at 0x410c7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004052c0
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040f8e9
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x410cbf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x410e1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041ad00
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x478430]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00411c74
mov ecx, dword [esi*4 + 0x478430]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x410e14
cmp eax, dword [edi + ecx + 0x24]
jne 0x410e14
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410e14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00411c74
add esp, 0x14
test edx, edx
jl 0x410e14
jg 0x410d8a
test eax, eax
jb 0x410e14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x410e14
jl 0x410da4
cmp dword [ebp - 0x1008], eax
ja 0x410e14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x410dc2
test ebx, ebx
je 0x410dfb
cmp ecx, edi
jae 0x410dfb
mov al, byte [ecx]
cmp al, 0xd
jne 0x410ddc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x410de8
cmp byte [ecx + 1], 0xa
jne 0x410de8
inc ecx
jmp 0x410de8
movzx eax, al
movsx eax, byte [eax + 0x4272f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x410dc2
cmp edx, ebx
jne 0x410dc2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x410e19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00404791
leave
ret
Function at 0x411112
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x478430]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x411152
cmp byte [ebx], 0xa
jne 0x411152
or byte [eax + edi + 0x28], 4
jmp 0x411157
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x411255
mov al, byte [edx]
cmp al, 0x1a
je 0x411237
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x411186
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4111ab
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4111b5
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x411168
jmp 0x411255
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411232
cmp dword [ebp - 0xc], 0
je 0x411232
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x478430]
test byte [eax + edi + 0x28], 0x48
je 0x41120c
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4111f7
mov byte [esi], dl
jmp 0x411208
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x478430]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x411255
cmp byte [ebp - 1], 0xa
jne 0x41121b
cmp esi, ebx
jne 0x41121b
mov byte [esi], 0xa
jmp 0x411254
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00411c92
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x411255
mov byte [esi], 0xd
jmp 0x411254
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x478430]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x411251
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x411255
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41125e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x478430]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4112a1
cmp word [esi], dx
jne 0x4112a1
or byte [edi + eax + 0x28], 4
jmp 0x4112a6
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4113f9
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4113d9
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4112e8
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41131e
cmp eax, edx
jae 0x41132a
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4112c0
jmp 0x4113f9
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4113d5
cmp dword [ebp - 0x14], 0
je 0x4113d5
mov eax, dword [ebx*4 + 0x478430]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4113ad
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x411376
mov word [esi], cx
jmp 0x4113a9
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x478430]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x478430]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x478430]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4113f9
pop ebx
cmp word [ebp - 4], bx
jne 0x4113be
cmp esi, dword [ebp + 0xc]
jne 0x4113be
mov word [esi], bx
jmp 0x4113f6
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00411c92
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4113f9
push 0xd
jmp 0x4113f2
mov ecx, dword [ebx*4 + 0x478430]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4113f0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4113f9
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x415056
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4150f3
push ebx
push esi
call fcn.0041501f
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00413ca4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4150a0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4150f2
push edi
push eax
call fcn.00411e71
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4150c0
call fcn.0040ee48
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4150f1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00413ca4
add esp, 0x20
test eax, eax
jne 0x4150df
push edi
call fcn.0040ee48
jmp 0x4150e7
push ebx
call fcn.0040ee48
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41acc0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41aced
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41aced
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41c217
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call fcn.0040172b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.Free
lea ecx, [ebp - 0x1c]
mov esi, eax
call fcn.004015b7
mov edi, str.Cons
push edi
call fcn.00408c70
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040166a
mov edi, 0x423ea8
push edi
call fcn.00408c70
pop ecx
push eax
push edi
lea ecx, [ebp - 0x1c]
call fcn.0040166a
cmp dword [ebp - 8], 0xf
lea eax, [ebp - 0x1c]
cmova eax, dword [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call eax
mov edi, 0x4ac
xor ebx, ebx
push 0x40
push 0x1000
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
call section..bss
push edi
push 0x4770c0
push esi
call fcn.00405370
pop ecx
call fcn.0041c0a0
pop ecx
pop ecx
push ebx
push ebx
push 0x427ac0
lea eax, [esi + 0x188]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push ebx
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
lea ecx, [ebp - 0x1c]
call fcn.00401644
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404791
leave
ret
Function at 0x40213d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40217c
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40217c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40217c
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40217c
cmp dword [ecx + 0x74], 0xe
jbe 0x40217c
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402d61
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x432d50]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402ddc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402de3
cmp dword [ebp + 0x10], ebx
jne 0x402dd0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402d61
test eax, eax
jne 0x402de3
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402da3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.0040622d
cmp eax, ebx
je 0x402e08
push ebx
push dword [0x432d50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402ddc
cmp dword [0x432d50], ebx
jne 0x402dd9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402dd9
jmp 0x402ddc
Function at 0x4032c1
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4032ee
mov ecx, dword [0x432cf8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41de2c], eax
push dword [0x40f030]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004033ec
cmp eax, edi
jl 0x4033e5
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40f030]
call ebx
test eax, eax
je 0x4033e2
cmp dword [ebp - 4], esi
jne 0x4033e2
push dword [ebp + 8]
add dword [0x41de2c], esi
call fcn.004033ec
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4033e5
cmp dword [ebp + 0x10], edi
jne 0x4033b1
cmp dword [ebp + 8], edi
jle 0x4033dd
mov esi, 0x419e28
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403361
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40f030]
call ebx
test eax, eax
je 0x4033e2
cmp edi, dword [ebp - 4]
jne 0x4033e2
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4033ad
cmp dword [ebp + 0x14], edi
jne 0x4033ad
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41de2c], eax
cmp dword [ebp + 8], 0
jg 0x403354
jmp 0x4033dd
push 0xfffffffffffffffe
jmp 0x4033e4
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4033bc
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40f030]
call ebx
test eax, eax
je 0x4033e2
mov eax, dword [ebp - 4]
add dword [0x41de2c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4033e5
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4033ec
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41de2c]
sub esi, dword [0x411d98]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x432c8c], eax
jle 0x403554
push dword [0x41de3c]
call fcn.004035ed
push ebx
push ebx
push dword [0x411d98]
push dword [0x40f030]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41de38], esi
mov dword [0x41de28], ebx
mov ebp, 0x411e28
mov eax, dword [0x41de30]
mov edi, 0x4000
sub eax, dword [0x41de3c]
cmp eax, edi
jg 0x403461
mov edi, eax
mov esi, 0x419e28
push edi
push esi
call fcn.0040356b
test eax, eax
je 0x40353c
add dword [0x41de3c], edi
mov dword [0x411db8], esi
mov dword [0x411dbc], edi
cmp dword [0x432c90], ebx
je 0x4034b8
cmp dword [0x432d40], ebx
jne 0x4034b8
mov eax, dword [0x41de38]
push ebx
sub eax, dword [0x41de2c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x411d98]
mov dword [0x41de28], eax
call fcn.00402f0a
pop ecx
mov ecx, 0x411da0
mov dword [0x411dc0], ebp
mov dword [0x411dc4], 0x8000
call fcn.0040c2e1
test eax, eax
jl 0x403566
mov esi, dword [0x411dc0]
sub esi, ebp
je 0x403516
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40f030]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403541
cmp esi, dword [esp + 0x10]
jne 0x403541
add dword [0x411d98], esi
cmp dword [0x411dbc], ebx
jne 0x403487
jmp 0x403522
cmp dword [0x411dbc], ebx
jne 0x403566
cmp edi, ebx
je 0x403566
mov eax, dword [0x41de2c]
mov ecx, eax
sub ecx, dword [0x411d98]
add ecx, dword [esp + 0x18]
test ecx, ecx
jle 0x403545
jmp 0x40344b
or eax, 0xffffffff
jmp 0x40355e
push 0xfffffffffffffffe
jmp 0x403568
push ebx
push ebx
push eax
push dword [0x40f030]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402f0a
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x40355e

Function at 0x40356b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x425e48], 0
push esi
jne 0x40359f
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0
push eax
push esi
push dword [ebp + 8]
push dword [0x40f02c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4035e6
cmp dword [ebp + 0xc], esi
jne 0x4035e6
push 1
pop eax
jmp 0x4035e8
mov eax, dword [0x425e40]
mov ecx, dword [0x425e44]
cmp eax, ecx
jae 0x4035e6
push edi
mov edi, dword [ebp + 0xc]
lea edx, [eax + edi]
cmp ecx, edx
sbb esi, esi
neg esi
je 0x4035c1
sub ecx, eax
mov edi, ecx
mov ecx, dword [0x432c9c]
push edi
add ecx, eax
push ecx
push dword [ebp + 8]
call sub.MSVCRT.dll_memcpy
add dword [0x425e40], edi
add esp, 0xc
xor eax, eax
test esi, esi
sete al
pop edi
jmp 0x4035e8
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x40571a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x429288], 0x44
push eax
xor eax, eax
push 0x429288
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405755
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4057fb
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.00405ab1
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x40582f
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x432d28], eax
jmp 0x4059c8
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x40584d
test eax, eax
je 0x405973
test byte [ebp + 0xc], 2
je 0x405973
mov esi, 0x428288
push edi
push esi
call fcn.00405ee5
test ebx, ebx
je 0x40586a
push str..
push esi
call fcn.00405f08
jmp 0x405870
push edi
call fcn.00405a15
cmp byte [edi], 0
jne 0x40587e
cmp byte [0x428288], 0x5c
jne 0x405889
push 0x40f028
push edi
call fcn.00405f08
push edi
call fcn.00405efb
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x405969
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004059f9
cmp byte [eax], 0
je 0x4058cf
cmp byte [ebp - 0x18], 0
je 0x4058cf
lea esi, [ebp - 0x18]
mov al, byte [esi]
cmp al, 0x2e
jne 0x4058ea
cmp byte [esi + 1], 0
je 0x405948
cmp al, al
jne 0x4058ea
cmp byte [esi + 1], al
jne 0x4058ea
cmp byte [esi + 2], 0
je 0x405948
push esi
push ebx
call fcn.00405ee5
test byte [ebp - 0x148], 0x10
je 0x40590f
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405948
push dword [ebp + 0xc]
push edi
call fcn.004057fb
jmp 0x405948
push edi
call fcn.00405b9b
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405940
test byte [ebp + 0xc], 4
je 0x405938
push edi
push 0xfffffffffffffff1
call fcn.0040524e
push 0
push edi
call fcn.00405c32
jmp 0x405948
inc dword [0x432d28]
jmp 0x405948
push edi
push 0xfffffffffffffff2
call fcn.0040524e
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4058ad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x405973
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4059c8
cmp dword [ebp - 8], esi
jne 0x405988
inc dword [0x432d28]
jmp 0x4059c8
push edi
call fcn.00406206
test eax, eax
je 0x4059c8
push edi
call fcn.004059ce
push edi
call fcn.00405b9b
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4059c0
test byte [ebp + 0xc], 4
je 0x405980
push edi
push 0xfffffffffffffff1
call fcn.0040524e
push esi
push edi
call fcn.00405c32
jmp 0x4059c8
push edi
push 0xffffffffffffffe5
call fcn.0040524e
pop edi
pop esi
leave
ret 8
Function at 0x405ab1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x428688
push esi
call fcn.00405ee5
push esi
call fcn.00405a62
mov edi, eax
test edi, edi
jne 0x405ad2
xor eax, eax
jmp 0x405b24
push edi
call fcn.0040616d
test byte [0x432c98], 0x80
je 0x405aeb
mov al, byte [edi]
test al, al
je 0x405ace
cmp al, 0x5c
je 0x405ace
sub edi, esi
push esi
call fcn.00405efb
cmp eax, edi
push esi
jle 0x405b0e
call fcn.00406206
test eax, eax
je 0x405b06
test byte [eax], 0x10
je 0x405ace
push esi
call fcn.00405a15
jmp 0x405aed
call fcn.004059ce
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405b9b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405bb7
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405bba
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405be9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405c2e
mov eax, edi
dec edi
test eax, eax
jne 0x405bf4
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405c28
Function at 0x405c32
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.0040622d
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405c56
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405d8f
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x429410], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x429410
je 0x405c9a
push 1
push 0
push esi
call fcn.00405bba
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405d95
cmp eax, edi
jg 0x405d95
mov esi, 0x428e88
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405d95
cmp eax, edi
jg 0x405d95
push esi
push ebp
push str._s_s_r_n
push 0x428a88
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x432c90]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405f19
push 4
push 0xc0000000
push esi
call fcn.00405bba
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405d8f
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405d88
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405d88
cmp edi, dword [esp + 0x18]
jne 0x405d88
push str._Rename__r_n
push esi
call fcn.00405b29
test eax, eax
jne 0x405d9c
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405ee5
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x428a88
push eax
call fcn.00405b75
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x432d30]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40f3d0
push eax
call fcn.00405b29
test eax, eax
je 0x405d53
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405dc3
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405db8
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405d55