joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5b4f30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5b5084
sub esp, 0x28
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov dword [esp + 4], eax
mov byte [esp + 8], 0x30
call fcn.0059e980
movzx eax, byte [esp + 0xc]
test al, al
jne 0x5b4f9a
lea eax, [0x6828e0]
mov dword [esp], eax
call fcn.0040b7f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x27
lea ecx, [0x6c3ccd]
mov dword [eax], ecx
lea ecx, [0x72a21c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
add esp, 0x28
ret
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5b5070
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov byte [esp + 0x1b], 0
lea eax, [esp + 0x2c]
mov dword [esp], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 4], ecx
lea ecx, [esp + 0x1b]
mov dword [esp + 8], ecx
mov byte [esp + 0xc], 1
call fcn.0059f1b0
movzx eax, byte [esp + 0x10]
test al, al
je 0x5b503d
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x24]
movzx esi, byte [esp + 0x1b]
xor esi, 0xffffff80
xchg esi, eax
movzx eax, al
xchg esi, eax
mov dword [esp], esi
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
test eax, eax
je 0x5b4f9a
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ebx
add esp, 0x28
ret
lea eax, [0x6828e0]
mov dword [esp], eax
call fcn.0040b7f0
mov eax, dword [esp + 4]
mov dword [eax + 4], 0x26
lea ecx, [0x6c38d8]
mov dword [eax], ecx
lea ecx, [0x72a21c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], eax
add esp, 0x28
ret
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
add esp, 0x28
ret
call fcn.00461a60
jmp fcn.005b4f30
Function at 0x5c0520
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5c074f
sub esp, 0x6c
mov dword [esp + 0x88], 0
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], 0
lea edi, [esp + 0x40]
xor eax, eax
call fcn.004630e5
lea ecx, [0x5c0760]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x4c], ecx
lea ecx, [esp + 0x80]
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x94]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x58], ecx
lea edx, [esp + 0x28]
mov dword [esp + 0x5c], edx
lea edx, [esp + 0x1c]
mov dword [esp + 0x60], edx
mov edx, dword [esp + 0x84]
mov dword [esp + 0x64], edx
lea ebx, [esp + 0x88]
mov dword [esp + 0x68], ebx
mov ebx, dword [edx + 0xc]
mov dword [esp], ebx
mov dword [esp + 4], ecx
call fcn.005b2640
mov ecx, dword [esp + 8]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0xc]
mov dword [esp + 0x18], edx
xor eax, eax
jmp 0x5c0645
mov dword [esp + 0x14], eax
mov ebx, dword [ecx + eax*4]
mov ebp, dword [esp + 0x40]
mov dword [esp], 2
mov dword [esp + 4], ebx
lea edx, [esp + 0x40]
call ebp
mov eax, dword [esp + 0x14]
inc eax
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
cmp eax, edx
jl 0x5c061c
mov eax, dword [esp + 0x84]
mov eax, dword [eax + 8]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
call fcn.005b2640
mov eax, dword [esp + 8]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x18], ecx
xor edx, edx
jmp 0x5c06a2
mov dword [esp + 0x14], edx
mov ecx, dword [eax + edx*4]
mov ebx, dword [esp + 0x40]
mov dword [esp], 1
mov dword [esp + 4], ecx
lea edx, [esp + 0x40]
call ebx
mov eax, dword [esp + 0x14]
lea edx, [eax + 1]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
cmp edx, ecx
jl 0x5c0677
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x5c06c7
mov dword [esp + 0x94], 0
mov dword [esp + 0x98], 0
mov eax, dword [esp + 0x8c]
test eax, eax
jne 0x5c074b
mov eax, dword [esp + 0x94]
test eax, eax
jne 0x5c074b
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov eax, dword [esp + 0x70]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
lea eax, [0x696260]
mov dword [esp], eax
lea eax, [esp + 0x30]
mov dword [esp + 4], eax
call fcn.00408f80
mov eax, dword [esp + 8]
lea ecx, [0x72a604]
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], eax
add esp, 0x6c
ret
call fcn.00461a60
jmp fcn.005c0520
Function at 0x6385e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x638777
sub esp, 0x38
lea eax, [esp + 0x3c]
mov dword [esp], eax
call fcn.00437680
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebx, dword [esp + 8]
test edx, edx
je 0x6386a1
mov dword [esp + 0x18], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], ebx
lea eax, [0x6840e0]
mov dword [esp], eax
call fcn.00409500
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x638762
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x638662
mov edx, dword [ecx + 0x2c]
mov edx, dword [edx + 0x30]
mov dword [esp + 0x1c], edx
lea edi, [esp + 0x24]
xor eax, eax
call fcn.004630eb
jmp 0x6386b4
lea eax, [0x6810c0]
mov dword [esp], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
call fcn.00409460
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x40]
mov dword [ecx], eax
mov eax, dword [0x112f780]
test eax, eax
jne 0x638695
mov eax, dword [esp + 0x14]
mov dword [ecx + 4], eax
jmp 0x6386a1
lea edi, [ecx + 4]
mov eax, dword [esp + 0x14]
call fcn.00462e70
add esp, 0x38
ret
lea edi, [esp + 0x24]
xor eax, eax
call fcn.004630eb
mov edx, dword [esp + 0x1c]
mov dword [esp], edx
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
call fcn.004054e0
movzx eax, byte [esp + 8]
test al, al
jne 0x6386a5
nop
mov ecx, dword [0x112f780]
test ecx, ecx
jne 0x6386e5
mov ecx, dword [esp + 0x3c]
mov dword [ecx + 0x2c], 0
jmp 0x6386f3
mov ecx, dword [esp + 0x3c]
lea edi, [ecx + 0x2c]
xor eax, eax
call fcn.00462e70
mov dword [ecx + 0x74], 0
mov dword [ecx + 0x78], 0
mov edx, dword [0x112f780]
test edx, edx
jne 0x638714
mov dword [ecx + 0x70], 0
jmp 0x63871e
lea edi, [ecx + 0x70]
xor eax, eax
call fcn.00462e70
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov edx, dword [0x112f780]
test edx, edx
jne 0x638749
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x7c], 0
jmp 0x638662
lea edi, [ecx + 0x20]
xor eax, eax
call fcn.00462e70
lea edi, [ecx + 0x7c]
xor eax, eax
call fcn.00462e70
jmp 0x638662
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
call fcn.00436fb0
nop
call fcn.00461a60
jmp fcn.006385e0
Function at 0x649050
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x649234
add esp, 0xffffff80
lea edi, [esp + 0x30]
mov esi, dword [esp + 0x84]
call fcn.0046359c
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.00648a90
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea edi, [esp + 0x58]
xor eax, eax
call fcn.004630e6
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ecx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], ecx
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], ecx
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], ecx
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov eax, dword [esp + 0x88]
xor ecx, ecx
jmp 0x649102
mov edx, dword [esp + 0x10]
lea ecx, [edx + 1]
cmp ecx, 5
jge 0x6491d5
mov dword [esp + 0x10], ecx
imul edx, ecx, 0x33
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1d
add edx, ebx
sar edx, 3
mov dword [esp + 0x1c], edx
shl edx, 3
sub ebx, edx
cmp ebx, 0x20
sbb edx, edx
lea esi, [esp + ecx*8 + 0x58]
mov edi, dword [esi]
mov dword [esp + 0xc], edi
mov esi, dword [esi + 4]
mov ecx, ebx
shl edi, cl
and edi, edx
mov dword [esp + 8], edi
xchg edi, eax
mov byte [esp + 0x20], al
xchg edi, eax
lea ebp, [ecx - 0x20]
mov dword [esp + 0x18], ebp
cmp ebp, 0x20
sbb edi, edi
mov dword [esp + 0x14], edi
xchg ebp, ebx
neg ebx
xchg ebp, ebx
cmp ebp, 0x20
sbb edi, edi
shl esi, cl
and esi, edx
mov ecx, ebp
mov edx, dword [esp + 0xc]
mov ebx, edx
shr edx, cl
and edx, edi
or edx, esi
mov ecx, dword [esp + 0x18]
shl ebx, cl
mov ebp, dword [esp + 0x14]
and ebx, ebp
or ebx, edx
mov edx, dword [esp + 8]
mov ebp, edx
shr edx, 8
mov esi, ebx
shl ebx, 0x18
or edx, ebx
mov byte [esp + 0x21], dl
mov edx, ebp
shr ebp, 0x10
mov ebx, esi
shl esi, 0x10
or esi, ebp
xchg esi, eax
mov byte [esp + 0x22], al
xchg esi, eax
mov ebp, ebx
shl ebx, 8
shr edx, 0x18
or edx, ebx
mov byte [esp + 0x23], dl
mov dword [esp + 0x24], ebp
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ebx
mov edx, dword [esp + 0x1c]
xor ecx, ecx
jmp 0x649206
test byte [eax], al
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], 0x20
mov dword [esp + 0x94], 0x20
sub esp, 0xffffff80
ret
movzx esi, byte [eax + ebp]
or esi, ebx
xchg esi, ebx
mov byte [eax + ebp], bl
xchg esi, ebx
inc ecx
cmp ecx, 8
jge 0x6490fb
movzx ebx, byte [esp + ecx + 0x28]
lea ebp, [edx + ecx]
cmp ebp, 0x20
jge 0x6490fb
test byte [eax], al
cmp ebp, 0x20
jb 0x6491f8
mov eax, ebp
mov ecx, 0x20
call fcn.00462ef0
nop
call fcn.00461a60
jmp fcn.00649050
Function at 0x402cd1
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x42bc00
push 0x400
add eax, 0x3e8
push esi
push ebx
mov dword [0x424ecc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 3
push 0x80000000
push esi
call fcn.00407435
mov edi, eax
cmp edi, 0xffffffff
mov dword [ebp - 0xc], edi
mov dword [0x40a014], edi
jne 0x402d2b
mov eax, 0x40a104
jmp 0x402f03
push esi
mov esi, 0x42ac00
push esi
call fcn.004076bc
push esi
call fcn.0040728a
push eax
push 0x42c000
call fcn.004076bc
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [0x420450], eax
mov esi, eax
jle 0x402e46
mov ebx, 0x418450
mov eax, dword [0x424ed4]
mov edi, esi
neg eax
sbb eax, eax
and eax, 0x7e00
add eax, 0x200
cmp esi, eax
jl 0x402d7f
mov edi, eax
push edi
push ebx
call fcn.004030fd
test eax, eax
je 0x402eb0
cmp dword [0x424ed4], 0
jne 0x402e11
push 0x1d
lea eax, [ebp - 0x2c]
push ebx
push eax
call fcn.004073e8
mov eax, dword [ebp - 0x2c]
test eax, 0xfffffff0
jne 0x402e1f
cmp dword [ebp - 0x28], 0xdeadbeef
jne 0x402e1f
cmp dword [ebp - 0x1c], 0x74736e49
jne 0x402e1f
cmp dword [ebp - 0x20], 0x74666f73
jne 0x402e1f
cmp dword [ebp - 0x24], 0x6c6c754e
jne 0x402e1f
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [0x40c440]
and eax, 2
or dword [0x424f40], eax
mov eax, dword [ebp - 0x18]
cmp eax, esi
mov dword [0x424ed4], ecx
jg 0x402ea9
test byte [ebp + 8], 4
jne 0x402e03
test byte [ebp + 8], 8
jne 0x402e44
inc dword [ebp - 4]
lea esi, [eax - 4]
cmp edi, esi
jbe 0x402e1f
mov edi, esi
jmp 0x402e1f
test byte [ebp + 8], 2
jne 0x402e1f
push 0
call fcn.00402c6d
pop ecx
cmp esi, dword [0x420450]
jge 0x402e34
push edi
push ebx
push dword [ebp - 8]
call fcn.004011f0
mov dword [ebp - 8], eax
add dword [0x40c440], edi
sub esi, edi
test esi, esi
jg 0x402d64
xor ebx, ebx
push 1
call fcn.00402c6d
cmp dword [0x424ed4], ebx
pop ecx
je 0x402ea9
cmp dword [ebp - 4], ebx
je 0x402e7d
push dword [0x40c440]
call fcn.0040312f
lea eax, [ebp + 8]
push 4
push eax
call fcn.004030fd
test eax, eax
je 0x402ea9
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x402ea9
push dword [ebp - 0x13]
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
mov eax, dword [0x424ed4]
add eax, 0x1d
push eax
call fcn.0040312f
push dword [ebp - 0x13]
push esi
push ebx
push 0xffffffffffffffff
call fcn.00402f0a
cmp eax, dword [ebp - 0x13]
je 0x402eba
mov eax, 0x40a038
jmp 0x402f03
push 1
call fcn.00402c6d
pop ecx
jmp 0x402ea9
test byte [ebp - 0x2c], 1
mov dword [0x424ed0], esi
mov eax, dword [esi]
mov dword [0x424ed8], eax
je 0x402ed3
inc dword [0x424edc]
push 7
lea eax, [esi + 0x3c]
pop ecx
sub eax, 8
add dword [eax], esi
dec ecx
jne 0x402ed9
push 1
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x34], eax
add esi, 4
push 0x38
push esi
push 0x424ee0
call fcn.004073e8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x402f0a
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402f27
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402f36
mov ebx, 0x410448
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402f4b
mov ecx, dword [0x424f10]
add ecx, eax
push ecx
call fcn.0040312f
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004030fd
test eax, eax
je 0x4030a8
test byte [ebp + 0x17], 0x80
je 0x403091
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40c3b8
mov dword [ebp - 0xc], eax
call fcn.00403146
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4030f3
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402f9b
mov esi, dword [ebp + 0x14]
mov edi, 0x40c448
push esi
push edi
call fcn.004030fd
test eax, eax
je 0x4030a8
sub dword [ebp + 0x14], esi
mov dword [0x40c3d0], edi
mov dword [0x40c3d4], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40c3b8
mov dword [0x40c3d8], ebx
mov dword [0x40c3dc], eax
call fcn.00403166
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x403089
mov esi, dword [0x40c3d8]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x424f54], 1
mov edi, eax
je 0x40303d
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x40300a
cmp dword [ebp + 0x14], 0
jne 0x40303d
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push 0x40a120
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00406aee
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x40307e
cmp dword [ebp + 0x10], eax
jne 0x403066
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40308d
cmp dword [ebp - 0x10], esi
jne 0x40308d
add dword [ebp - 4], esi
jmp 0x403072
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40c3d8]
cmp dword [ebp - 0x14], 1
jne 0x402fbe
jmp 0x4030f3
cmp dword [ebp + 0x14], eax
jg 0x402f8e
jmp 0x4030f3
push 0xfffffffffffffffc
jmp 0x4030aa
push 0xfffffffffffffffe
jmp 0x4030aa
test edi, edi
je 0x4030e8
cmp dword [ebp + 0x14], esi
jge 0x40309d
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004030fd
test eax, eax
jne 0x4030f0
push 0xfffffffffffffffd
pop eax
jmp 0x4030f6
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x4030b8
mov esi, dword [ebp + 0x14]
mov edi, 0x40c448
push esi
push edi
call fcn.004030fd
test eax, eax
je 0x4030a8
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40308d
cmp esi, dword [ebp + 0x10]
jne 0x40308d
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x4030ad
jmp 0x4030f3
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405370
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [0x424ed0]
push edi
push 6
call fcn.004079e0
xor ebx, ebx
cmp eax, ebx
je 0x40539b
push 0x42b000
call eax
movzx eax, ax
cdq
push edx
push eax
call fcn.004042c8
jmp 0x4053e5
mov edi, 0x4218a0
push ebx
push edi
push ebx
push str.Control_PanelDesktopResourceLocale
push 0x80000001
mov dword [0x42b000], 0x7830
call fcn.00407645
cmp byte [0x4218a0], bl
jne 0x4053da
push ebx
push edi
push 0x40831a
push str..DEFAULTControl_PanelInternational
push 0x80000003
call fcn.00407645
push edi
push 0x42b000
call sub.KERNEL32.dll_lstrcatA
call fcn.00405595
mov eax, dword [0x424ed8]
mov ebp, 0x42a400
and eax, 0x20
push ebp
mov dword [0x424f20], eax
mov dword [0x424f3c], 0x10000
call fcn.00407324
test eax, eax
jne 0x405495
mov ecx, dword [esi + 0x40]
cmp ecx, ebx
je 0x405495
mov edx, dword [esi + 0x44]
mov eax, dword [0x424ef8]
mov edi, 0x423e40
push ebx
add edx, eax
push edi
add ecx, eax
push edx
push ecx
push dword [esi + 0x3c]
call fcn.00407645
mov al, byte [0x423e40]
cmp al, bl
je 0x405495
cmp al, 0x22
jne 0x405454
mov edi, 0x423e41
push 0x22
push edi
call fcn.0040726e
mov byte [eax], bl
push edi
call sub.KERNEL32.dll_lstrlenA
lea eax, [eax + edi - 4]
cmp eax, edi
jbe 0x405488
push 0x40a1dc
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x405488
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405482
test al, 0x10
jne 0x405488
push edi
call fcn.0040728a
push edi
call fcn.00407243
push eax
push ebp
call fcn.004076bc
push ebp
call fcn.00407324
test eax, eax
jne 0x4054ab
push dword [esi + 0x104]
push ebp
call fcn.004076de
push 0x8040
push ebx
push ebx
push 1
push 0x67
push dword [0x424ec0]
call dword [sym.imp.USER32.dll_LoadImageA]
mov dword [0x424688], eax
call fcn.004052b0
push ebx
call fcn.004012fc
test eax, eax
je 0x4054de
push 2
pop eax
jmp 0x405590
call fcn.00405595
cmp dword [0x424f40], ebx
jne 0x405565
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.RichEd20
call esi
test eax, eax
jne 0x405503
push str.RichEd32
call esi
mov edi, dword [sym.imp.USER32.dll_GetClassInfoA]
mov esi, 0x424640
mov ebp, str.RichEdit20A
push esi
push ebp
push ebx
call edi
test eax, eax
jne 0x405532
push esi
push str.RichEdit
push ebx
call edi
push esi
mov dword [0x424664], ebp
call dword [sym.imp.USER32.dll_RegisterClassA]
mov eax, dword [0x424680]
push ebx
add eax, 0x69
push 0x405657
movzx eax, ax
push ebx
push eax
push dword [0x424ec0]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
push 5
mov esi, eax
call fcn.004012fc
push 1
call fcn.0040400b
mov eax, esi
jmp 0x405590
push ebx
call fcn.00406bc0
test eax, eax
je 0x405587
cmp dword [0x42466c], ebx
jne 0x4054d6
push 2
call fcn.004012fc
jmp 0x4054d6
push 1
call fcn.004012fc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x406fb0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4238a8], 0x44
push eax
xor eax, eax
push 0x4238a8
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 0x406feb
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x407075
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.00407324
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x4070a9
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x424f28], eax
jmp 0x40723d
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x4070c7
test eax, eax
je 0x4071e8
test byte [ebp + 0xc], 2
je 0x4071e8
mov esi, 0x4228a8
push edi
push esi
call fcn.004076bc
test ebx, ebx
je 0x4070e4
push 0x40a348
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4070ea
push edi
call fcn.0040728a
cmp byte [edi], 0
jne 0x4070f8
cmp byte [0x4228a8], 0x5c
jne 0x407103
push 0x40a010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
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 0x4071de
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.0040726e
cmp byte [eax], 0
je 0x407149
cmp byte [ebp - 0x18], 0
je 0x407149
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40715f
mov al, byte [esi + 1]
test al, al
je 0x4071bd
cmp al, 0x2e
jne 0x40715f
cmp byte [esi + 2], 0
je 0x4071bd
push esi
push ebx
call fcn.004076bc
test byte [ebp - 0x148], 0x10
je 0x407184
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4071bd
push dword [ebp + 0xc]
push edi
call fcn.00407075
jmp 0x4071bd
push edi
call fcn.00407416
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4071b5
test byte [ebp + 0xc], 4
je 0x4071ad
push edi
push 0xfffffffffffffff1
call fcn.00406aee
push 0
push edi
call fcn.004074ac
jmp 0x4071bd
inc dword [0x424f28]
jmp 0x4071bd
push edi
push 0xfffffffffffffff2
call fcn.00406aee
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407127
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4071e8
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x40723d
cmp dword [ebp - 8], esi
jne 0x4071fd
inc dword [0x424f28]
jmp 0x40723d
push edi
call fcn.004079b9
test eax, eax
je 0x40723d
push edi
call fcn.00407243
push edi
call fcn.00407416
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x407235
test byte [ebp + 0xc], 4
je 0x4071f5
push edi
push 0xfffffffffffffff1
call fcn.00406aee
push esi
push edi
call fcn.004074ac
jmp 0x40723d
push edi
push 0xffffffffffffffe5
call fcn.00406aee
pop edi
pop esi
leave
ret 8