joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100064db
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x44
push esi
push edi
mov dword [esp + 0x1c], edx
mov edi, ecx
call fcn.100061db
mov esi, eax
test esi, esi
jne 0x100064f9
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x64616f4c
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x41797261
mov byte [esp + 0x44], 0
call fcn.1000629b
mov dword [esp + 0x18], eax
test eax, eax
je 0x100064f1
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x65657246
mov dword [esp + 0x3c], 0x7262694c
mov dword [esp + 0x40], 0x797261
call fcn.1000629b
mov dword [esp + 0x34], eax
test eax, eax
je 0x100064f1
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x50746547
mov dword [esp + 0x3c], 0x41636f72
mov dword [esp + 0x40], 0x65726464
mov word [esp + 0x44], 0x7373
mov byte [esp + 0x46], 0
call fcn.1000629b
mov dword [esp + 0x28], eax
test eax, eax
je 0x100064f1
lea edx, [esp + 0x38]
mov ecx, esi
mov dword [esp + 0x38], 0x4d746547
mov dword [esp + 0x3c], 0x6c75646f
mov dword [esp + 0x40], 0x6e614865
mov dword [esp + 0x44], 0x41656c64
mov byte [esp + 0x48], 0
call fcn.1000629b
mov dword [esp + 0x30], eax
test eax, eax
je 0x100064f1
mov eax, dword [edi + 0x3c]
push ebx
cmp dword [eax + edi + 0x84], 0
push ebp
je 0x100066c0
mov ecx, dword [eax + edi + 0x80]
add ecx, edi
xor esi, esi
lea ebx, [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], esi
cmp dword [ebx], esi
je 0x100066c0
mov eax, ebx
mov ebp, ecx
mov eax, dword [eax]
add eax, edi
push eax
mov dword [esp + 0x2c], eax
call dword [esp + 0x24]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x10006623
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x1c], eax
add eax, edi
mov dword [esp + 0x14], 0
cmp dword [eax], 0
je 0x100066a4
mov dword [esp + 0x18], 0
nop
mov eax, dword [eax]
test eax, eax
jns 0x10006646
movzx esi, ax
jmp 0x1000664b
lea esi, [edi + 2]
add esi, eax
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x1000666a
push dword [esp + 0x58]
and eax, 0x80000000
push eax
push esi
push dword [esp + 0x34]
call ecx
mov ecx, eax
test ecx, ecx
jne 0x10006679
push esi
push dword [esp + 0x30]
call dword [esp + 0x38]
mov ecx, eax
test ecx, ecx
je 0x100066cd
mov eax, dword [ebp + 0x10]
add eax, dword [esp + 0x18]
mov dword [eax + edi], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x14], ecx
shl ecx, 2
add eax, ecx
add eax, edi
mov dword [esp + 0x18], ecx
cmp dword [eax], 0
jne 0x1000663b
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
inc esi
mov dword [esp + 0x10], esi
lea eax, [esi + esi*4]
lea ebp, [ecx + eax*4]
cmp dword [ebp + 0xc], 0
lea eax, [ebp + 0xc]
jne 0x10006600
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
add esp, 0x44
ret
cmp dword [ebx], 0
je 0x100066f6
mov esi, dword [esp + 0x10]
xor ebp, ebp
lea ecx, [ecx]
cmp ebp, esi
ja 0x100066f6
mov eax, dword [ebx]
add eax, edi
push eax
call dword [esp + 0x3c]
push eax
call dword [esp + 0x40]
add ebx, 0x14
inc ebp
cmp dword [ebx], 0
jne 0x100066db
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret
Function at 0x1000670b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, ecx
call fcn.100061db
mov esi, eax
test esi, esi
je 0x100067c7
push ebp
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], 0x65657246
mov dword [esp + 0x14], 0x7262694c
mov dword [esp + 0x18], 0x797261
call fcn.1000629b
mov ebp, eax
test ebp, ebp
je 0x100067c6
lea edx, [esp + 0x10]
mov ecx, esi
mov dword [esp + 0x10], 0x4d746547
mov dword [esp + 0x14], 0x6c75646f
mov dword [esp + 0x18], 0x6e614865
mov dword [esp + 0x1c], 0x41656c64
mov byte [esp + 0x20], 0
call fcn.1000629b
mov edx, eax
mov dword [esp + 0xc], edx
test edx, edx
je 0x100067c6
mov ecx, dword [edi + 0x3c]
cmp dword [ecx + edi + 0x84], 0
je 0x100067c6
push ebx
mov ebx, dword [ecx + edi + 0x80]
add ebx, edi
xor esi, esi
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x100067c5
lea ebx, [ebx]
add eax, edi
push eax
call edx
push eax
call ebp
mov edx, dword [esp + 0x10]
lea esi, [esi + 1]
lea eax, [esi + esi*4]
mov eax, dword [ebx + eax*4 + 0xc]
test eax, eax
jne 0x100067ab
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x18
ret

Function at 0x10006a44
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
jmp 0x10006a54
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
jle 0x10006b62
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cwde
call fcn.10006b72
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x5a4d
jne 0x10006b62
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call fcn.10006b72
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x4550
jne 0x10006b62
pop eax
push eax
mov eax, dword [eax + 0x7c]
call fcn.10006b72
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x10006b62
pop eax
mov eax, dword [eax + 0x78]
add eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
push eax
mov eax, dword [eax + 0x20]
add eax, dword [ebp + 8]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
pop eax
mov eax, dword [eax + 0x18]
dec eax
mov dword [ebp - 4], eax
push dword [ebp - 4]
lea eax, [ebp - 4]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x10006b5f
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call fcn.10006b85
test eax, eax
je 0x10006b4e
push ecx
mov eax, dword [ebp - 0x10]
lea eax, [eax + 0x1c]
mov eax, dword [eax]
add eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*4]
mov eax, dword [eax]
add eax, dword [ebp + 8]
pop ecx
leave
ret 8
push dword [ebp - 8]
call fcn.10006bb9
add dword [ebp - 0xc], eax
pop ebx
pop ecx
pop edx
inc ecx
jmp 0x10006b09
add esp, 0xc
mov eax, 0
jmp 0x10006b6c
mov esp, ebp
pop ebp
ret 8
Function at 0x10006c39
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push reloc.OLEAUT32.dll_SysStringLen
push 0
push dword [ebp + 8]
push 1
mov ebx, 0x9dc
call fcn.10023130
add esp, 0x10
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
call fcn.10006cb8
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
push 0
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10006cad
push 0x60
push 0x40249c4
push 6
call fcn.10020828
add esp, 0xc
jmp 0x10006cb2
mov esp, ebp
pop ebp
ret 0x14
Function at 0x1000a8e7
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], esp
lea eax, [ebp - 4]
push eax
push 0
xor eax, eax
call dword [sym.imp.iphlpapi.dll_GetNetworkParams]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000a93e
push 0
push 0x4024f61
push 6
call fcn.10020828
add esp, 0xc
mov dword [ebp - 0x14], esp
push dword [ebp - 4]
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000a96f
push 0x3c
push 0x4024f61
push 6
call fcn.10020828
add esp, 0xc
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], esp
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.iphlpapi.dll_GetNetworkParams]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000a9a2
push 0x79
push 0x4024f61
push 6
call fcn.10020828
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000aa2b
push 0x80000301
push 0
push 0x84
push 0x80000301
push 0
push dword [ebp - 8]
push 2
mov ebx, 0x910
call fcn.100227d0
add esp, 0x1c
mov dword [ebp - 0x14], eax
push VariantCopy
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x1000a9ed
mov eax, 0x101935ff
push eax
push 1
mov ebx, 0x168
call fcn.10023380
add esp, 0x10
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x1000aa13
push ebx
call fcn.10020822
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000aa27
push ebx
call fcn.10020822
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esp
push dword [ebp - 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x14], esp
je 0x1000aa57
push 0x123
push 0x4024f61
push 6
call fcn.10020828
add esp, 0xc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1000aa73
push eax
mov ebx, eax
call fcn.100013f6
inc eax
push eax
call fcn.1002081c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x1000aa78
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x1000aa89
push ebx
call fcn.10020822
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret
Function at 0x1000aa8e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax]
test esi, esi
jne 0x1000aab3
xor eax, eax
jmp 0x1000aab8
mov eax, dword [esi + 4]
add eax, eax
mov dword [ebp - 8], eax
push 0x80000301
push 0
push dword [ebp - 8]
push 1
mov ebx, 0x184
call fcn.100230f0
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x1000aaee
push ebx
call fcn.10020822
add esp, 4
pop eax
mov dword [ebp - 4], eax
test esi, esi
je 0x1000aafb
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x1000ab50
lea edx, [esi + 8]
mov dword [ebp - 0x14], 0x33323130
mov dword [ebp - 0x10], 0x37363534
mov dword [ebp - 0xc], 0x42413938
mov dword [ebp - 8], 0x46454443
test edx, edx
je 0x1000ab50
test eax, eax
je 0x1000ab50
lea esi, [edx + ecx]
cmp edx, esi
jae 0x1000ab50
nop
movzx ecx, byte [edx]
shr ecx, 4
inc edx
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax], cl
movzx ecx, byte [edx - 1]
and ecx, 0xf
lea eax, [eax + 2]
movzx ecx, byte [ebp + ecx - 0x14]
mov byte [eax - 1], cl
cmp edx, esi
jb 0x1000ab2c
pop esi
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x10011be6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push VariantCopy
push 0
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
jne 0x10011c2e
mov eax, 0x101935ff
push eax
push 1
mov ebx, 0x194
call fcn.100227b0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jge 0x10011c53
jmp 0x10011ddb
push dword [ebp + 8]
call fcn.1000289d
mov dword [ebp - 8], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x10193610]
fstp qword [ebp - 0x28]
mov dword [ebp - 0x2c], esp
fld qword [ebp - 0x28]
call fcn.10001108
push eax
push 0x40
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x10011ca7
push 0x129
push 0x40254c3
push 6
call fcn.10020828
add esp, 0xc
mov dword [ebp - 0xc], eax
fild dword [ebp - 4]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fsub qword [0x10193610]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.10001108
push eax
lea eax, [ebp - 0x10]
mov ebx, eax
mov ecx, 0
pop edx
push edx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, edx
jg 0x10011dac
fild dword [ebp - 8]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fild dword [ebp - 0x10]
fstp qword [ebp - 0x28]
fadd qword [ebp - 0x28]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.10001108
push eax
call fcn.10001365
mov word [ebp - 0x14], ax
cmp word [ebp - 0x14], 0
jne 0x10011d4a
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10011d40
push 0x222
push 0x40254c3
push 6
call fcn.10020828
add esp, 0xc
jmp 0x10011dac
cmp word [ebp - 0x14], 0x5c
jne 0x10011d93
cmp dword [ebp - 0x18], 0
jle 0x10011d90
mov dword [ebp - 0x1c], esp
push 0
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10011d90
push 0x2c3
push 0x40254c3
push 6
call fcn.10020828
add esp, 0xc
inc dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call fcn.10011de1
pop ebx
pop ecx
pop edx
add ecx, 2
jmp 0x10011cd0
add esp, 0xc
mov dword [ebp - 0x1c], esp
push dword [ebp - 0xc]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
nop
nop
cmp dword [ebp - 0x1c], esp
je 0x10011ddb
push 0x374
push 0x40254c3
push 6
call fcn.10020828
add esp, 0xc
mov esp, ebp
pop ebp
ret 4
Function at 0x10012a16
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x10012a59
push 0x19
push 0x40254e1
push 6
call fcn.10020828
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10012a70
mov eax, 0x101935ff
jmp 0x10012b1f
inc dword [ebp - 4]
fild dword [ebp - 4]
fstp qword [ebp - 0x10]
fld qword [ebp - 0x10]
fmul qword [0x10193610]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
call fcn.10001108
push 0x80000301
push 0
push eax
push 1
mov ebx, 0x1bc
call fcn.10022780
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10012abe
push ebx
call fcn.10020822
add esp, 4
pop eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
call fcn.1000289d
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x10012b00
push 0x136
push 0x40254e1
push 6
call fcn.10020828
add esp, 0xc
mov eax, dword [ebp - 8]
test eax, eax
je 0x10012b1a
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.1002081c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x10012b1f
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10012b30
push ebx
call fcn.10020822
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x1001b920
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
push 0x40
push 0x1000
push dword [ebp + 8]
push 0
xor eax, eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
cmp dword [ebp - 4], esp
je 0x1001b964
push 0x12
push 0x4024254
push 6
call fcn.10020828
add esp, 0xc
jmp 0x1001b969
mov esp, ebp
pop ebp
ret 4
Function at 0x10020cf0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101964b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor edx, edx
mov dword [ebp - 0x108], ecx
lea eax, [ecx - 1]
cmp eax, 0xa
ja 0x10020d1d
mov edx, dword [ecx*4 + 0x10196280]
lea eax, [ebp - 0x108]
mov eax, dword [eax - 4]
test eax, eax
je 0x10020d5b
push esi
mov esi, 0xc483
cmp si, word [eax]
pop esi
jne 0x10020d5b
cmp byte [eax + 2], 0xc
jl 0x10020d5b
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push dword [ebp + 0xc]
push edx
push ecx
push 0x1003c4f4
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x10020d72
push edx
push ecx
lea eax, [ebp - 0x104]
push str.program_internal_error_number_is__d.__r_n_s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [0x10196dd0]
test eax, eax
je 0x10020dab
cmp dword [0x10196de4], 0
jne 0x10020dab
lea ecx, [ebp - 0x104]
mov dword [0x10196de4], 1
push ecx
push dword [ebp - 0x108]
call eax
mov dword [0x10196de4], 0
test eax, eax
jne 0x10020dc1
push 0x10
push str.error
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
call fcn.10020950
cmp dword [0x10196dc8], 0
jne 0x10020dd7
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, 0
mov ebp, dword [0x10196dcc]
mov esp, dword [0x10196dc8]
sub esp, 4
ret
Function at 0x10020e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 0xc]
call fcn.10026b80
mov esi, dword [ebp + 0x18]
mov edi, eax
push esi
mov dword [ebp - 8], edi
xor ebx, ebx
call dword [0x101964b0]
add esp, 8
test edi, edi
je 0x10020f29
test eax, eax
je 0x10020f29
inc eax
push eax
call fcn.10028355
mov edx, eax
mov dword [ebp - 0x10], eax
add esp, 4
sub edx, esi
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [edx + esi - 1], cl
test cl, cl
jne 0x10020e46
push 0x5c
push eax
call fcn.10029670
mov edi, eax
add esp, 8
test edi, edi
je 0x10020e67
mov byte [edi], bl
inc edi
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x10020f1a
push 0x400
mov dword [ebp - 4], 0x400
mov dword [ebp - 8], 1
call fcn.10028355
add esp, 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x10020ee8
cmp eax, 0xea
jne 0x10020f08
push esi
call fcn.1002835e
push dword [ebp - 4]
call fcn.10028355
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push 0
push edi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10020eb5
mov eax, dword [ebp - 8]
cmp eax, 1
je 0x10020ef5
cmp eax, 2
jne 0x10020f08
push esi
call dword [0x101964b0]
push eax
push esi
call fcn.10026b40
add esp, 0xc
mov ebx, eax
push esi
call fcn.1002835e
add esp, 4
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x10]
call fcn.1002835e
add esp, 4
test ebx, ebx
jne 0x10020f4e
cmp dword [ebp + 0x2c], 0
je 0x10020f4e
mov esi, dword [ebp + 0x24]
test esi, esi
je 0x10020f4e
push esi
call dword [0x101964b0]
push eax
push esi
call fcn.10026b40
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10022490
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop ebp
ret

Function at 0x10022aa0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x101964b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ecx]
push edi
xor edi, edi
mov dword [ebp - 0x14c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x148], eax
test eax, eax
je 0x10022b40
push eax
call dword [0x101964b0]
add esp, 4
test eax, eax
je 0x10022b3d
test esi, esi
je 0x10022af4
cmp esi, 0xffffffff
je 0x10022af4
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 0x148]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov eax, dword [ebp - 0x14c]
mov dword [eax], esi
cmp esi, 0xffffffff
je 0x10022b7c
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10022b2d
mov edi, dword [ebp - 0x144]
shr edi, 4
not edi
and edi, 1
jmp 0x10022b40
test dword [ebp - 0x144], ebx
mov eax, 1
cmovne edi, eax
jmp 0x10022b40
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x10022b7c
cmp esi, 0xffffffff
je 0x10022b7c
test edi, edi
jne 0x10022bbc
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea eax, [ebp - 0x144]
push eax
push esi
test ecx, ecx
je 0x10022b8f
call edi
test eax, eax
je 0x10022b7c
test byte [ebp - 0x144], 0x10
je 0x10022bbc
lea eax, [ebp - 0x144]
push eax
push esi
call edi
test eax, eax
jne 0x10022b65
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028344
mov esp, ebp
pop ebp
ret
call edi
test eax, eax
je 0x10022b7c
test dword [ebp - 0x144], ebx
jne 0x10022bbc
lea eax, [ebp - 0x144]
push eax
push esi
call edi
test eax, eax
jne 0x10022b95
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10028344
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x118]
push eax
call dword [0x101964b0]
inc eax
push eax
call fcn.10020b60
lea edx, [ebp - 0x118]
mov esi, eax
mov ecx, edx
add esp, 8
sub esi, ecx
nop
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x10022be0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10028344
mov esp, ebp
pop ebp
ret
Function at 0x10023710
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1002377c
push esi
push edi
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea ecx, [esi + 8]
push ecx
call fcn.10020b60
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
lea ecx, [edi + 8]
mov dword [edi], 1
push ecx
push ebx
mov dword [edi + 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10024700
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, 1
lea eax, [ecx - 1]
cmp ecx, edi
jle 0x100247cb
cmp eax, 8
jb 0x100247b8
and eax, 0x80000007
jns 0x10024730
dec eax
or eax, 0xfffffff8
inc eax
mov edx, ecx
xorps xmm5, xmm5
sub edx, eax
xorps xmm4, xmm4
lea eax, [ebp + 0x30]
nop dword [eax]
movd xmm2, dword [eax + 0xc]
lea eax, [eax + 0x60]
movd xmm0, dword [eax - 0x60]
add edi, 8
movd xmm1, dword [eax - 0x6c]
movd xmm3, dword [eax - 0x78]
punpckldq xmm3, xmm0
movd xmm0, dword [eax - 0x30]
punpckldq xmm1, xmm2
movd xmm2, dword [eax - 0x24]
punpckldq xmm3, xmm1
movd xmm1, dword [eax - 0x3c]
pxor xmm5, xmm3
movd xmm3, dword [eax - 0x48]
punpckldq xmm3, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
pxor xmm4, xmm3
cmp edi, edx
jl 0x10024740
pxor xmm4, xmm5
movaps xmm0, xmm4
psrldq xmm0, 8
pxor xmm4, xmm0
movups xmm0, xmm4
psrldq xmm0, 4
pxor xmm4, xmm0
movd edx, xmm4
xor esi, edx
cmp edi, ecx
jge 0x100247cb
lea eax, [edi + edi*2]
sub ecx, edi
lea eax, [ebp + eax*4 + 0xc]
xor esi, dword [eax]
lea eax, [eax + 0xc]
sub ecx, 1
jne 0x100247c1
pop edi
mov eax, esi
pop esi
pop ebp
ret

Function at 0x10026060
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [ebp - 4], ecx
cmp ecx, 0xffffffff
je 0x100260ef
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 1
mov dword [ebp - 8], 1
cmp ebx, esi
jle 0x100260df
push edi
lea edi, [ebp + 0x18]
mov eax, dword [edi]
lea edx, [ebp - 0xc]
push 0
push edx
push dword [eax + 4]
add eax, 8
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
test eax, eax
je 0x100260d7
inc esi
add edi, 0xc
cmp esi, ebx
jl 0x100260a1
pop edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 8], 0
pop edi
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret