joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4025ac
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x4025cf
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x4025e0
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x4025ef
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x4025fc
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.00405dfc
test eax, eax
je 0x402629
test esi, esi
je 0x402629
cmp word [esi], 0
je 0x402629
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x402640
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x402659
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x402659
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x4026c3
mov dword [ebx + 4], edi
test esi, esi
je 0x40268e
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.00405c54
jmp 0x402697
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x4026aa
lea eax, [ebx + 0x17]
mov edx, dword [ebp - 4]
call fcn.0040144c
jmp 0x4026b9
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.00405a30
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.004027c8
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4028dc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
test esi, esi
je 0x402a0d
cmp dword [edi + 0xc], 0
je 0x40291b
mov eax, dword [edi + 0xc]
dec eax
je 0x402905
dec eax
je 0x402911
jmp 0x40291b
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
jmp 0x40291b
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov dword [edi + 4], eax
mov byte [ebp - 5], 0
xor edx, edx
mov dword [ebp - 0xc], edx
cmp dword [edi + 0xc], 0
je 0x402977
xor ebx, ebx
cmp esi, ebx
jle 0x402994
push 0
lea eax, [ebp - 0xc]
push eax
mov edx, esi
sub edx, ebx
cmp edx, 0x4000
jge 0x402948
mov ecx, esi
sub ecx, ebx
jmp 0x40294d
mov ecx, 0x4000
push ecx
mov eax, dword [ebp - 4]
add eax, ebx
push eax
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne dl
and edx, 1
mov byte [ebp - 5], dl
test dl, dl
je 0x402994
add ebx, 0x4000
cmp esi, ebx
jg 0x402930
jmp 0x402994
push 0
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
push dword [edi + 4]
call sub.KERNEL32.DLL_WriteFile
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 5], cl
cmp byte [ebp - 5], 0
jne 0x402a09
cmp byte [edi + 0x14], 0
je 0x402a09
cmp dword [edi + 0xc], 0
jne 0x402a09
lea edx, [edi + 0x17]
mov eax, 0x412874
call fcn.0040de84
test al, al
je 0x4029f3
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
jae 0x40291b
cmp dword [ebp - 0xc], 0
jbe 0x40291b
mov eax, edi
call fcn.00402c44
push edx
push eax
mov eax, dword [ebp - 0xc]
xor edx, edx
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push edx
push eax
xor edx, edx
mov eax, edi
call fcn.00402b8c
jmp 0x40291b
lea ecx, [edi + 0x17]
mov eax, 0x412874
xor edx, edx
call fcn.0040de6c
jmp 0x402a09
mov byte [edi + 8], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402b08
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x402b32
cmp esi, 0x4e20
jle 0x402b28
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x402b82
mov eax, ebx
call fcn.00402e54
test al, al
je 0x402b69
cmp esi, 0x4e20
jle 0x402b69
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.00402b08
jmp 0x402b85
cmp dword [ebx + 0xc], 1
jne 0x402b7d
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x402b7d
xor eax, eax
jmp 0x402b85
or eax, 0xffffffff
jmp 0x402b85
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x402ed8
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
call fcn.00405dfc
test eax, eax
je 0x402efe
test ebx, ebx
je 0x402efe
cmp word [ebx], 0
je 0x402efe
push 0
push ebx
call sub.KERNEL32.DLL_CreateDirectoryW
jmp 0x402f06
push 0
push esi
call sub.KERNEL32.DLL_CreateDirectoryA
test eax, eax
je 0x402f19
mov ecx, edi
mov edx, ebx
mov eax, esi
call fcn.00403350
xor eax, eax
jmp 0x402f34
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
je 0x402f28
cmp eax, 3
jne 0x402f2f
mov eax, 2
jmp 0x402f34
mov eax, 1
pop edi
pop esi
pop ebx
ret

Function at 0x40327c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
lea edx, [ebp - 0x400]
call fcn.004022c8
cmp byte [ebp - 0x400], 0
je 0x4032a1
lea eax, [ebp - 0x400]
jmp 0x4032a3
xor eax, eax
push eax
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
je 0x4032b7
cmp eax, 5
je 0x4032b7
xor edx, edx
jmp 0x4032bc
mov edx, 1
mov eax, edx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00405dfc
test eax, eax
je 0x4032ef
test ebx, ebx
je 0x4032ef
cmp word [ebx], 0
je 0x4032ef
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret

Function at 0x403324
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.00405dfc
test eax, eax
je 0x403346
test ebx, ebx
je 0x403346
cmp word [ebx], 0
je 0x403346
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x403350
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
call fcn.00405dfc
test eax, eax
je 0x40337d
test ebx, ebx
je 0x40337d
cmp word [ebx], 0
je 0x40337d
push esi
push ebx
call sub.KERNEL32.DLL_SetFileAttributesW
test eax, eax
setne al
and eax, 1
jmp 0x40338c
push esi
push edi
call sub.KERNEL32.DLL_SetFileAttributesA
test eax, eax
setne al
and eax, 1
pop edi
pop esi
pop ebx
ret
Function at 0x4036d4
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 2
add esp, 0xfffff004
push eax
dec eax
jne 0x4036dd
mov eax, dword [ebp - 4]
add esp, 0xfffffb2c
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
lea edi, [ebp - 0x14b8]
lea eax, [ebp - 0x4a4]
call fcn.00407acc
lea eax, [ebp - 0x478]
call fcn.00407acc
lea eax, [ebp - 0x44c]
call fcn.00407acc
push 0
lea ecx, [ebp - 0x10b8]
mov edx, ebx
mov eax, esi
call fcn.004076a0
test al, al
jne 0x40373a
xor eax, eax
jmp 0x403888
cmp byte [ebp - 0x10b8], 0
je 0x40374c
cmp byte [ebp - 0x420], 0
jne 0x403753
xor eax, eax
jmp 0x403888
lea eax, [ebp - 0x10b8]
call fcn.00401ae0
lea edx, [ebp - 0x420]
call fcn.004019dc
test eax, eax
je 0x403783
mov eax, esi
call fcn.00401ae0
lea edx, [ebp - 0x420]
call fcn.004019dc
test eax, eax
je 0x40378a
xor eax, eax
jmp 0x403888
xor ebx, ebx
mov eax, edi
mov ecx, 0x400
mov edx, esi
call fcn.00401ac0
push ebx
push str.rtmp_d
mov eax, edi
call fcn.00401ae0
push eax
call fcn.004014f0
add esp, 0xc
mov eax, edi
xor edx, edx
call fcn.004032c4
test al, al
je 0x4037c8
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x40378c
mov eax, edi
xor edx, edx
call fcn.004032c4
test al, al
je 0x4037dc
xor eax, eax
jmp 0x403888
lea eax, [ebp - 0x18b8]
mov ecx, 0x400
mov edx, esi
call fcn.00401ac0
lea eax, [ebp - 0x10b8]
call fcn.00401ae0
push eax
lea eax, [ebp - 0x18b8]
call fcn.00401ae0
pop edx
call fcn.0040144c
push edi
lea ecx, [ebp - 0x18b8]
push ecx
call sub.KERNEL32.DLL_MoveFileA
test eax, eax
jne 0x403820
xor eax, eax
jmp 0x403888
lea eax, [ebp - 0x24d8]
call fcn.00402518
xor ebx, ebx
xor edx, edx
mov eax, esi
call fcn.004032c4
test al, al
jne 0x40384d
push 1
lea eax, [ebp - 0x24d8]
xor ecx, ecx
mov edx, esi
call fcn.004026f8
mov ebx, eax
lea eax, [ebp - 0x18b8]
push eax
push edi
call sub.KERNEL32.DLL_MoveFileA
test bl, bl
je 0x403874
lea eax, [ebp - 0x24d8]
call fcn.00402824
lea eax, [ebp - 0x24d8]
call fcn.004028a8
mov al, 1
push eax
lea eax, [ebp - 0x24d8]
mov edx, 2
call fcn.00402568
pop eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e64
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
xor edx, edx
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], edx
mov dword [eax + 0x14], edx
ret

Function at 0x405e8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x413424
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x405eac
call fcn.00405e54
mov eax, dword [ebp - 4]
jmp 0x405ec5
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x405ecd
test al, 7
jne 0x405eb1
cmp esi, 8
jb 0x405f56
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x405ed6
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 8]
jbe 0x405f80
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x405f60
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x406334
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40634b
test esi, esi
jg 0x406352
xor eax, eax
jmp 0x4063f6
mov edx, dword [ebp - 4]
add edx, 4
lea eax, [ebp - 0x28]
mov ecx, 0x10
call fcn.00401340
test esi, esi
jns 0x40636c
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
test esi, esi
jle 0x4063dd
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004066a8
mov eax, dword [ebp - 0x28]
xor dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x24]
xor dword [ebp - 0x14], edx
mov ecx, dword [ebp - 0x20]
xor dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0xc], eax
mov eax, ebx
mov edx, dword [eax]
mov dword [ebp - 0x28], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x24], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax], edx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x10]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec esi
test esi, esi
jg 0x406379
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
add eax, 4
mov ecx, 0x10
call fcn.00401340
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406400
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffd4
mov ecx, 0x20
mov dword [esp], eax
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 0xc]
mov dword [esp + 8], 4
call fcn.00401340
xor esi, esi
xor ecx, ecx
xor edx, edx
jmp 0x406467
xor eax, eax
mov edi, esi
mov ebp, dword [esp]
shl edi, 4
lea ebx, [esp + edx*4 + 0xc]
lea edi, [ebp + edi]
mov bl, byte [ebx + eax]
lea edi, [edi + ecx*4]
mov byte [edi + eax + 0x14], bl
inc eax
cmp eax, 4
jl 0x406432
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x40645f
cmp ecx, 4
jl 0x406430
cmp ecx, 4
jne 0x406467
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x406472
cmp esi, 0xa
jle 0x406454
cmp esi, 0xa
jg 0x406605
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov al, byte [edx + 0x413acc]
xor byte [esp + 0xc], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 0xa]
mov dl, byte [eax + 0x413acc]
xor byte [esp + 0xd], dl
mov eax, dword [esp + 8]
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov al, byte [edx + 0x413acc]
xor byte [esp + 0xe], al
mov edx, dword [esp + 8]
xor eax, eax
mov al, byte [esp + edx*4 + 8]
mov dl, byte [eax + 0x413acc]
xor byte [esp + 0xf], dl
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x413ccc]
xor byte [esp + 0xc], dl
inc dword [esp + 4]
cmp dword [esp + 8], 8
je 0x406515
mov edx, 1
cmp edx, dword [esp + 8]
jge 0x4065b3
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x4064f5
inc edx
cmp edx, dword [esp + 8]
jl 0x4064f3
jmp 0x4065b3
mov edx, 1
jmp 0x406533
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x40651e
inc edx
mov eax, dword [esp + 8]
sar eax, 1
jns 0x40653e
adc eax, 0
cmp edx, eax
jl 0x40651c
mov eax, dword [esp + 8]
sar eax, 1
jns 0x40654d
adc eax, 0
xor edx, edx
mov dl, byte [esp + eax*4 + 8]
mov dl, byte [edx + 0x413acc]
xor byte [esp + eax*4 + 0xc], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 9]
mov dl, byte [edx + 0x413acc]
xor byte [esp + eax*4 + 0xd], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xa]
mov dl, byte [edx + 0x413acc]
xor byte [esp + eax*4 + 0xe], dl
xor edx, edx
mov dl, byte [esp + eax*4 + 0xb]
mov dl, byte [edx + 0x413acc]
xor byte [esp + eax*4 + 0xf], dl
mov edx, eax
inc edx
cmp edx, dword [esp + 8]
jge 0x4065b3
xor eax, eax
lea ebx, [esp + edx*4 + 8]
lea edi, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
xor byte [edi + eax], bl
inc eax
cmp eax, 4
jl 0x406598
inc edx
cmp edx, dword [esp + 8]
jl 0x406596
xor edx, edx
jmp 0x4065f1
xor eax, eax
mov ebx, esi
shl ebx, 4
mov edi, dword [esp]
lea ebx, [edi + ebx]
lea ebx, [ebx + ecx*4]
lea edi, [ebx + eax + 0x14]
lea ebx, [esp + edx*4 + 0xc]
mov bl, byte [ebx + eax]
mov byte [edi], bl
inc eax
cmp eax, 4
jl 0x4065bb
inc edx
inc ecx
cmp edx, dword [esp + 8]
jge 0x4065e9
cmp ecx, 4
jl 0x4065b9
cmp ecx, 4
jne 0x4065f1
inc esi
xor ecx, ecx
cmp edx, dword [esp + 8]
jge 0x4065fc
cmp esi, 0xa
jle 0x4065de
cmp esi, 0xa
jle 0x40647b
add esp, 0x2c
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406610
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov dword [esp], eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
add edx, dword [esp]
shl ebx, 2
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx edi, byte [edx + 1]
mov bl, byte [edx]
lea edi, [edi*4 + 0x4160ea]
lea ebx, [ebx*4 + 0x415cea]
mov bl, byte [ebx + eax]
xor bl, byte [edi + eax]
movzx edi, byte [edx + 2]
movzx edx, byte [edx + 3]
lea edi, [edi*4 + 0x4164ea]
lea edx, [edx*4 + 0x4168ea]
xor bl, byte [edi + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4 + 4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x406622
inc eax
cmp eax, 4
jl 0x406620
mov eax, esi
lea edx, [esp + 4]
shl eax, 4
mov ecx, 0x10
add eax, dword [esp]
add eax, 0x14
call fcn.00401340
inc esi
cmp esi, 0xa
jl 0x40661e
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x411bc8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x411bd1
add esp, 0xfffff114
mov eax, dword [ebp - 4]
mov eax, 0x412874
mov dl, 1
push ebx
push esi
call fcn.0040e0ac
call fcn.00411bb8
push 0x400
lea ecx, [ebp - 0x400]
push ecx
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x8005
call sub.KERNEL32.DLL_SetErrorMode
lea edx, [ebp - 0x400]
mov eax, 0x412880
call fcn.0040abbc
lea eax, [ebp - 0x4ef0]
call fcn.0040a4b4
mov edx, 0x41246c
lea eax, [ebp - 0x1c44]
call fcn.0040144c
xor esi, esi
call sub.KERNEL32.DLL_GetCommandLineA
mov ebx, eax
test ebx, ebx
je 0x411c64
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x22
jne 0x411c64
lea eax, [ebx + 1]
mov edx, 0x22
call fcn.004013e0
mov ebx, eax
test ebx, ebx
je 0x411c9a
mov edx, 0x41246e
mov eax, ebx
call fcn.00401420
mov ebx, eax
test eax, eax
je 0x411c9a
jmp 0x411c7d
inc ebx
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x20
je 0x411c8f
cmp eax, 9
je 0x411c8f
xor edx, edx
jmp 0x411c94
mov edx, 1
test dl, dl
jne 0x411c7c
mov esi, ebx
test esi, esi
je 0x411ce1
xor edx, edx
lea eax, [ebp - 0x4ef0]
mov dl, byte [esi]
call fcn.0040aa44
test al, al
je 0x411ce1
xor eax, eax
mov al, byte [esi + 1]
call fcn.00401a64
mov edx, eax
sub edx, 0x3f
je 0x411cd6
sub edx, 0x15
je 0x411cce
sub edx, 2
je 0x411cce
jmp 0x411ce1
mov byte [ebp - 0x1c44], al
jmp 0x411ce1
lea eax, [ebp - 0x4ef0]
call fcn.0040a7c0
lea edx, [ebp - 0x400]
lea eax, [ebp - 0x4ef0]
xor ecx, ecx
call fcn.0040aa04
lea eax, [ebp - 0x4ef0]
call fcn.0040a69c
mov dl, byte [ebp - 0x2650]
mov eax, dword [ebp - 0x2654]
call fcn.0040a000
lea eax, [ebp - 0x2a57]
call fcn.00409fcc
cmp byte [ebp - 0x2608], 0
jne 0x411d31
cmp dword [ebp - 0x2654], 3
je 0x411d31
xor eax, eax
jmp 0x411d36
mov eax, 1
mov byte [0x41287d], al
mov al, byte [ebp - 0x205a]
mov byte [0x41287e], al
lea eax, [ebp - 0x4ef0]
call fcn.0040a734
lea eax, [ebp - 0x4ef0]
call fcn.0040a960
lea eax, [ebp - 0x4ef0]
mov edx, 2
call fcn.0040a4ec
call fcn.00402e7c
mov eax, dword [0x412874]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413b20
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4961eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00488bbd
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x413ba2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048663b
mov eax, dword [eax]
push 0x4e2208
push eax
call fcn.00466ae4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00488e48
test bl, bl
je 0x413ba2
push 0x4e2208
lea ecx, [esp + 0xc]
call fcn.00489224
push 0x4e5d7c
lea ecx, [esp + 0xc]
call fcn.00489224
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x413bde
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00488e48
jmp 0x413ca9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x413c62
lea edx, [esp + 0x7c]
push 0x4e5d78
push edx
call fcn.00466ae4
add esp, 8
test eax, eax
je 0x413c62
lea eax, [esp + 0x7c]
push 0x4e5d74
push eax
call fcn.00466ae4
add esp, 8
test eax, eax
je 0x413c62
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413bf2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00488e48
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4144a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x414502
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x414510
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49626b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4ee9e4]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x414648
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x414576
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00488e48
xor eax, eax
jmp 0x4146bf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00488fd1
push esi
lea ecx, [esp + 0xc]
call fcn.00489260
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41469d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.004144a0
test eax, eax
jne 0x41469d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.004144a0
test eax, eax
jne 0x41469d
lea eax, [esp + 0x14]
push 0x4e5d90
push eax
call fcn.00467bd0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41467c
lea ecx, [esp + 0x14]
push 0x4e5d8c
push ecx
call fcn.00467b50
mov esi, eax
add esp, 8
test esi, esi
jne 0x41467c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41467f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00488f81
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41458e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00488e48
xor eax, eax
jmp 0x4146bf
mov byte [esi], 0
push 0x4e5d88
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00488e48
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4