joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4028ea
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x402918
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40291f
cmp ebx, dword [eax + 4]
jae 0x40291f
xor eax, eax
jmp 0x402b0f
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x402930
xor eax, eax
inc eax
jmp 0x402b0e
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x402946
cmp ecx, edx
jae 0x402a8b
cmp dword [eax + 4], 0
je 0x40294f
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x402937
cmp dword [ebp + 8], 0
je 0x402971
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x402a8b
cmp eax, esi
jae 0x402a8b
mov eax, dword [0x4074f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x402996
cmp dword [esi*4 + 0x407500], edi
je 0x402a8f
inc esi
cmp esi, eax
jl 0x402984
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402b0b
cmp dword [ebp - 8], 0x1000000
jne 0x402b0b
test byte [ebp - 0xc], 0xcc
je 0x402a14
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x402b0b
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x402b0b
cmp word [eax + 0x18], 0x10b
jne 0x402b0b
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x402b0b
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x402a14
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x402a14
test byte [ecx + 0x27], 0x80
jne 0x402a8b
push 1
push 0x407540
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x402928
mov ecx, dword [0x4074f8]
test ecx, ecx
mov edx, ecx
jle 0x402a48
lea eax, [ecx*4 + 0x4074fc]
cmp dword [eax], edi
je 0x402a48
dec edx
sub eax, 4
test edx, edx
jg 0x402a3c
test edx, edx
jne 0x402a79
push 0xf
pop ebx
cmp ecx, ebx
jg 0x402a55
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x402a6d
lea eax, [edx*4 + 0x407500]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x402a5b
cmp ecx, 0x10
jge 0x402a79
inc ecx
mov dword [0x4074f8], ecx
push 0
push 0x407540
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x402928
xor eax, eax
jmp 0x402b0e
test esi, esi
jle 0x402928
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x407540
call ebx
test eax, eax
jne 0x402928
cmp dword [esi*4 + 0x407500], edi
je 0x402ae5
mov eax, dword [0x4074f8]
lea esi, [eax - 1]
test esi, esi
jl 0x402ad3
cmp dword [esi*4 + 0x407500], edi
je 0x402acf
dec esi
jns 0x402ac3
test esi, esi
jge 0x402ae3
cmp eax, 0x10
jge 0x402ade
inc eax
mov dword [0x4074f8], eax
lea esi, [eax - 1]
jmp 0x402ae5
je 0x402afd
xor ecx, ecx
test esi, esi
jl 0x402afd
lea eax, [ecx*4 + 0x407500]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x402aeb
push 0
push 0x407540
call ebx
jmp 0x402928
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404bfc
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00402400
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404c97
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40738c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x404c97
cmp eax, 1
je 0x404cb8
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x404c97
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x404c64
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x404c93
xor eax, eax
inc eax
jmp 0x404cd7
cmp edi, eax
jae 0x404c9b
xor eax, eax
jmp 0x404cd7
cmp eax, esi
jae 0x404ca2
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40738c]
jmp 0x404cbb
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b4c0
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x808
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x804], eax
mov eax, dword [0x4222a4]
imul eax, eax, 0x343fd
cmp dword [0x22c4e8c], 0x139e
mov dword [0x4222a4], eax
jne 0x41b513
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTapePosition]
mov eax, dword [esp]
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_GetAce]
mov eax, dword [0x4222a4]
add eax, 0x269ec3
push esi
mov dword [0x4222a4], eax
movzx esi, word [0x4222a6]
and esi, 0x7fff
cmp dword [0x22c4e8c], 0x8e7
jne 0x41b548
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x808]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x808
ret

Function at 0x41b5d0
Capabilities:
Create pipe

Disassembly:
sub esp, 0x24
mov eax, dword [0x41f004]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [0x4201f0]
push ebx
mov ebx, dword [0x22c4830]
push edi
mov edi, dword [0x22c4e8c]
call fcn.0041b560
cmp dword [0x22c4e8c], 0x2f
jne 0x41b635
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
call fcn.0041b590
mov ecx, dword [esp + 0x24]
pop edi
pop ebx
xor ecx, esp
call fcn.00401000
add esp, 0x24
ret
Function at 0x41b990
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.00409150
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x41b9b9
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe2aa2
jge 0x41ba61
cmp dword [0x22c4e8c], 0xa5f
jne 0x41ba05
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x1018]
push edx
push str.keminivefayosexerukugufebaponif
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [ebp - 4], 0x84526b
jne 0x41ba2a
mov eax, dword [0x421010]
mov dword [0x22c4e8c], eax
mov ecx, dword [0x22c4e8c]
add ecx, 0xa231
mov dword [0x22c4e8c], ecx
cmp dword [0x22c4e8c], 0x141
jne 0x41ba5c
push str.renej_luwoyisawopab_dadabayegutenecisufoba_wozonotuwugewiropoxu_vogiwipeladoxakanahotucucuwi
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x4222a8], 0xec58acac
mov dword [0x4222ac], 0xffffffff
jmp 0x41b9b0
call fcn.0041b650
jmp dword [0x22c4830]
Function at 0x403140
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xfd8200
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0xfe800c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea eax, [ebp + 0x20]
cmp dword [ebp + 0x34], 0x10
mov ecx, 0xfe9024
push dword [ebp + 0x30]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00416590
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push dword [ebp + 0x18]
cmovae eax, dword [ebp + 8]
mov ecx, 0xfe8a0c
push eax
call fcn.00416590
mov esi, dword [0xfe9034]
xor ebx, ebx
mov edi, dword [0xfe9038]
nop word [eax + eax]
cmp edi, 0x10
mov byte [ebx + 0xfea218], bl
mov eax, ebx
mov ecx, 0xfe9024
cmovae ecx, dword [0xfe9024]
cdq
idiv esi
mov al, byte [edx + ecx]
mov byte [ebx + 0xfea320], al
inc ebx
cmp ebx, 0x100
jl 0x4031c0
xor edi, edi
xor esi, esi
mov dl, byte [esi + 0xfea218]
movzx eax, byte [esi + 0xfea320]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x403214
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [edi + 0xfea218]
mov byte [esi + 0xfea218], al
inc esi
mov byte [edi + 0xfea218], dl
cmp esi, 0x100
jl 0x4031f0
mov esi, dword [ebp - 0x10]
mov ecx, esi
call fcn.00402ea0
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x403269
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x40325f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032bf
push edx
push ecx
call fcn.00417e74
add esp, 8
mov edx, dword [ebp + 0x34]
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov byte [ebp + 8], 0
cmp edx, 0x10
jb 0x4032ab
mov ecx, dword [ebp + 0x20]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4032a1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4032bf
push edx
push ecx
call fcn.00417e74
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0041c4cc
int3
Function at 0x404c40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x16c
mov eax, dword [0xfe800c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
mov esi, ecx
push eax
push 0
call dword [0xfde0cc]
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x404e65
mov edi, dword [esi + 0x3c]
add edi, esi
cmp dword [edi], 0x4550
jne 0x404e65
push 0x44
lea eax, [ebp - 0x14c]
push 0
push eax
call fcn.00418ec0
add esp, 0xc
lea eax, [ebp - 0x160]
xorps xmm0, xmm0
movups xmmword [ebp - 0x160], xmm0
push eax
lea eax, [ebp - 0x14c]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [0xfde078]
test eax, eax
je 0x404e65
push 4
push 0x1000
push 4
push 0
call dword [0xfde0b8]
mov ebx, eax
push ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebx], 0x10007
push dword [ebp - 0x15c]
call dword [0xfde05c]
test eax, eax
je 0x404e65
push 0
push 4
lea eax, [ebp - 0x150]
push eax
push 0xfe3f84
push dword [ebp - 0x160]
call dword [0xfde070]
mov eax, dword [edi + 0x34]
cmp dword [ebp - 0x150], eax
jne 0x404d5c
push 0xfe3f88
push 0xfe3fa0
call dword [0xfde0a4]
push eax
call dword [0xfde060]
push dword [ebp - 0x150]
push dword [ebp - 0x160]
call eax
mov eax, dword [edi + 0x34]
push 0x40
push 0x3000
push dword [edi + 0x50]
push eax
push dword [ebp - 0x160]
call dword [0xfde064]
mov dword [ebp - 0x168], eax
test eax, eax
je 0x404e65
push 0
push dword [edi + 0x54]
push esi
push eax
push dword [ebp - 0x160]
call dword [0xfde0c8]
mov eax, 1
mov dword [ebp - 0x164], 1
cmp ax, word [edi + 6]
ja 0x404dfe
mov ebx, 0x28
nop
lea ecx, [ebx + esi]
add ecx, dword [esi + 0x3c]
push 0
push dword [ecx + 0xe0]
mov eax, dword [ecx + 0xe4]
add eax, esi
push eax
mov eax, dword [ecx + 0xdc]
add eax, dword [ebp - 0x168]
push eax
push dword [ebp - 0x160]
call dword [0xfde0c8]
mov ecx, dword [ebp - 0x164]
lea ebx, [ebx + 0x28]
movzx eax, word [edi + 6]
inc ecx
mov dword [ebp - 0x164], ecx
cmp ecx, eax
jle 0x404db0
mov ebx, dword [ebp - 0x16c]
push 0
push 4
lea eax, [edi + 0x34]
push eax
mov eax, dword [ebx + 0xa4]
add eax, 8
push eax
push dword [ebp - 0x160]
call dword [0xfde0c8]
mov eax, dword [edi + 0x28]
add eax, dword [ebp - 0x168]
push ebx
mov dword [ebx + 0xb0], eax
push dword [ebp - 0x15c]
call dword [0xfde080]
push dword [ebp - 0x15c]
call dword [0xfde0ac]
push 0x8000
push 0
push esi
call dword [0xfde0c0]
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417802
mov esp, ebp
pop ebp
ret
push 0x8000
push 0
push esi
call dword [0xfde0c0]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00417802
mov esp, ebp
pop ebp
ret
Function at 0x409290
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xfd8b00
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0xfe800c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xfe918c
lea ecx, [ebp - 0x40]
call fcn.004160d0
mov dword [ebp - 4], 0
xor edx, edx
mov ecx, 7
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov byte [ebp - 4], 1
xor esi, esi
mov ebx, dword [ebp - 0x40]
cmp dword [ebp - 0x30], esi
jbe 0x409342
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, ebx
movsx ax, byte [eax + esi]
movzx edi, ax
cmp edx, ecx
jae 0x409323
lea eax, [edx + 1]
cmp ecx, 8
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
xor ecx, ecx
mov word [eax + edx*2], di
mov word [eax + edx*2 + 2], cx
jmp 0x409334
push edi
mov byte [ebp - 0x44], 0
push dword [ebp - 0x44]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00417090
mov ecx, dword [ebp - 0x14]
inc esi
cmp esi, dword [ebp - 0x30]
jae 0x409342
mov edx, dword [ebp - 0x18]
jmp 0x4092f0
cmp ecx, 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0
push 0
call dword [0xfde0b4]
call dword [0xfde040]
cmp eax, 0xb7
je 0x4093fd
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x40939e
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409394
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409404
push edx
push ecx
call fcn.00417e74
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 7
cmp eax, 0x10
jb 0x4093e1
lea ecx, [eax + 1]
mov eax, ebx
cmp ecx, 0x1000
jb 0x4093d7
mov ebx, dword [ebx - 4]
add ecx, 0x23
sub eax, ebx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409404
push ecx
push ebx
call fcn.00417e74
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417802
mov esp, ebp
pop ebp
ret
push 0
call fcn.0041b28f
call fcn.0041c4cc
int3
Function at 0x101c79b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.0101ce60
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1021358]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
shl eax, 2
xor edi, edi
test eax, eax
jle 0x101c7ef
push 0
lea eax, [ebp - 0x1008]
push eax
push 2
push 0x10019cc
push dword [section..data]
call esi
mov eax, dword [0x1021358]
inc edi
shl eax, 2
cmp edi, eax
jl 0x101c7ca
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x1004]
push 0x800
push eax
call fcn.0101c692
push 0
lea eax, [ebp - 0x1008]
push eax
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [section..data]
call esi
push 0
lea eax, [ebp - 0x1008]
push eax
push 4
push 0x10019d0
push dword [section..data]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0101ce42
leave
ret

Function at 0x101d290
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x101d2a3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x101d29f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x101d2d0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x101d30f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x101d305
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x101d311
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x101d2f5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x101eb8a
Capabilities:
Check if file exists
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0x5601
push edi
push ebx
mov dword [ebp - 0x218], edi
call fcn.0101e97e
test eax, eax
mov dword [ebp - 0x21c], eax
jl 0x101ec6f
push esi
mov esi, 0x5610
push esi
push edi
push ebx
call fcn.0101ea24
inc esi
cmp esi, 0x5613
jbe 0x101ebd9
and dword [ebp - 0x214], 0
mov dword [ebp - 0x210], 0x5630
mov esi, 0x5631
push dword [ebp - 0x210]
push edi
push ebx
call fcn.0101eb2e
test eax, eax
je 0x101ec17
inc dword [ebp - 0x214]
inc dword [ebp - 0x210]
cmp dword [ebp - 0x210], esi
jbe 0x101ec00
cmp dword [ebp - 0x214], 2
jl 0x101ec6e
lea eax, [ebp - 0x20c]
push eax
call sub.SHLWAPI.dll_PathFileExistsW
test eax, eax
jne 0x101ec50
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x101ec6e
mov edi, 0x5630
push edi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x218]
push ebx
call fcn.0101ea7b
inc edi
cmp edi, esi
jbe 0x101ec55
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x21c]
pop edi
xor ecx, ebp
pop ebx
call fcn.0101ce42
leave
ret 8

Function at 0x101edea
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x10021d0
xor ebx, ebx
push ebx
mov dword [ebp - 0x214], esi
call fcn.0101f8bf
cmp esi, ebx
pop ecx
pop ecx
jne 0x101ee28
mov dword [ebp - 0x214], 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor esi, esi
lea eax, [ebp - 0x210]
push eax
push 0x20006
push ebx
push dword [esi + 0x1021320]
mov dword [ebp - 0x210], ebx
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101ef0f
test byte [esi + 0x1021328], 1
je 0x101eea3
push dword [esi + 0x1021324]
push dword [ebp - 0x210]
call edi
cmp eax, ebx
jne 0x101ee8e
push dword [esi + 0x1021324]
push 0x1002150
push ebx
call fcn.0101f8bf
add esp, 0xc
jmp 0x101eea3
push eax
push dword [esi + 0x1021324]
push 0x10020c0
push ebx
call fcn.0101f8bf
add esp, 0x10
test byte [esi + 0x1021328], 2
je 0x101ef03
push 0x104
lea eax, [ebp - 0x20c]
push eax
push dword [esi + 0x1021324]
call fcn.0101f9d8
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call edi
cmp eax, ebx
jne 0x101eeed
lea eax, [ebp - 0x20c]
push eax
push 0x1002150
push ebx
call fcn.0101f8bf
add esp, 0xc
jmp 0x101ef03
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10020c0
push ebx
call fcn.0101f8bf
add esp, 0x10
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xc
cmp esi, 0x24
jb 0x101ee30
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101ce42
leave
ret 4
Function at 0x101ef31
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x101ef92
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101ef89
cmp dword [ebp - 0xc], 4
je 0x101ef89
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x101efd5
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101efcc
cmp dword [ebp - 0xc], esi
je 0x101efcc
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x101efe4
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1021004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
xor esi, esi
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101f05c
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0101ce42
leave
ret 0xc

Function at 0x101f1ca
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10022a0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101f21c
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x1002284
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x101f263
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [0x1021350]
sub esp, 0x10
cmp eax, 0xffffffff
jne 0x101f2e7
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x1002360
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101f2d6
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1002354
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101f2cd
cmp dword [ebp - 0xc], 4
jne 0x101f2cd
cmp dword [ebp - 0x10], eax
je 0x101f2cd
mov dword [0x1021350], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x1021350]
cmp eax, 0xffffffff
jne 0x101f2e7
xor eax, eax
mov dword [0x1021350], eax
leave
ret