joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1026c71d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 8]
mov dword [0x102d6c18], 0x27a
mov dword [0x102d6c14], 0x121c
mov dword [ebp - 0x10], eax
call fcn.1026b45f
xor ecx, ecx
mov edx, eax
mov dword [0x102d6c18], 0x3660
mov esi, dword [eax + 0x3c]
mov dword [0x102d6c14], 0x17e2
mov esi, dword [eax + esi + 0x78]
mov dword [0x102d6c18], 0x18a9
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov ebx, dword [eax + esi + 0x24]
mov dword [0x102d6c14], 0x1d5d
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x28], ecx
je 0x1026c7ee
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
jmp 0x1026c7f9
mov eax, dword [ebp - 0x34]
add eax, 2
mov ecx, dword [ebp - 0x38]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
setb bl
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
mov byte [ebp - 0x41], bl
xor eax, eax
mov cl, byte [ebp - 0x41]
test cl, 1
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], esi
jne 0x1026c7f9
jmp 0x1026c7ee
mov eax, dword [ebp - 0x28]
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
xor edx, edx
mov esi, dword [ebp - 0x24]
mov edi, dword [esi + eax*4]
mov dword [0x102d6c14], 0x1c5e
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x48]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x52], cl
je 0x1026c87a
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x52]
and ch, dl
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x59], ch
mov eax, dword [ebp - 0x58]
cmp eax, 0x20
setb cl
mov dl, byte [ebp - 0x59]
and dl, cl
test dl, 1
mov dword [ebp - 0x4c], eax
jne 0x1026c81d
mov al, byte [ebp - 0x52]
test al, 1
jne 0x1026c886
jmp 0x1026c7b1
mov eax, dword [ebp - 0x34]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [0x102d6c14], 0x2555
mov dword [ebp - 0x28], edi
jmp 0x1026c7ee
Function at 0x1026c8ae
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x102d6c14]
mov ecx, eax
add ecx, 0xffffeae2
mov dword [0x102d6c18], ecx
mov dword [ebp - 4], 0
add eax, 0xffffe7ca
mov dword [0x102d6c14], eax
mov eax, dword fs:[0x30]
mov dword [ebp - 4], eax
xor ecx, ecx
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [0x102d6c14], 0x256b
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ecx
jmp 0x1026c923
mov dword [0x102d6c14], 0x2a3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x10], 0x6c
je 0x1026c9ea
jmp 0x1026ca0b
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
je 0x1026c959
jmp 0x1026c97a
mov dword [0x102d6c14], 0x6f6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1026c9cb
jmp 0x1026ca0b
mov eax, dword [ebp - 0x1c]
mov dword [0x102d6c14], 0x7e6
mov ecx, dword [ebp - 0xc]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x14], eax
je 0x1026c993
jmp 0x1026ca0b
mov eax, dword [ebp - 0x18]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x1c], eax
jl 0x1026c923
jmp 0x1026c959
mov dword [0x102d6c14], 0xe40
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1026ca0b
mov dword [0x102d6c18], 0x242f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1026c93b
jmp 0x1026ca0b
mov dword [0x102d6c14], 0xf06
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
cmp word [eax + ecx*2 - 0x12], 0x64
je 0x1026c901
jmp 0x1026ca0b
mov eax, 1
mov dword [0x102d6c14], 0x1286
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x1026ca22
xor eax, eax
mov ecx, dword [0x102d6c18]
add ecx, 0xa08
mov dword [0x102d6c14], ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add esp, 0x20
pop ebp
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406787
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4698ec], 0
push esi
jne 0x4067be
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406798
mov dword [ecx*4 + 0x4698e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4698e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40915c
nop
nop
mov ecx, 0x23555559
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x285b5cd9
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x655290
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x195000]
push edi
or ebp, 0xffffffff
jmp 0x6552b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x6552b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6552a8
mov eax, 1
add ebx, ebx
jne 0x6552cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6552dc
jne 0x6552fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6552fb
dec eax
add ebx, ebx
jne 0x6552e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x6552c0
add ebx, ebx
jne 0x6552f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x65534d
xor ecx, ecx
sub eax, 3
jb 0x655313
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x655382
sar eax, 1
mov ebp, eax
jmp 0x65531e
add ebx, ebx
jne 0x65531e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6552ec
inc ecx
add ebx, ebx
jne 0x65532c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6552ec
add ebx, ebx
jne 0x655339
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x65532e
jne 0x65534a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x65532e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x65536c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x65535e
jmp 0x6552ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x65536c
add edi, ecx
jmp 0x6552ae
pop esi
mov edi, esi
mov ecx, 0x477d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x65538a
cmp byte [edi], 0x25
jne 0x65538a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x65538f
lea edi, [esi + 0x252000]
mov eax, dword [edi]
or eax, eax
je 0x655407
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x25b144]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x25b25c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x6553bc
mov ecx, edi
jns 0x6553eb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x25b260]
or eax, eax
je 0x655401
mov dword [ebx], eax
add ebx, 4
jmp 0x6553d9
call dword [esi + 0x25b270]
mov ebp, dword [esi + 0x25b264]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x65543b
sub esp, 0xffffff80
jmp 0x496352
Function at 0x401497
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x47b390]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152c
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014e9
cmp dword [ebp + 0x10], ebx
jne 0x401520
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401497
test eax, eax
jne 0x4014fb
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d22
cmp eax, ebx
je 0x401533
push ebx
push dword [0x47b390]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x47b390], ebx
jne 0x401529
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x401529
jmp 0x40152c
Function at 0x402f3a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x437d3c]
sub esi, dword [0x43bd48]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
add eax, 0x1f4
xor ebx, ebx
cmp esi, ebx
mov dword [0x47b300], eax
jle 0x403098
push dword [0x43bd44]
call fcn.00402f23
push ebx
push ebx
push dword [0x43bd48]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x437d38], esi
mov dword [0x41e174], ebx
mov ebp, 0x42fd38
mov eax, dword [0x43bd40]
sub eax, dword [0x43bd44]
mov edi, 0x4000
cmp eax, edi
jg 0x402faf
mov edi, eax
push edi
mov esi, 0x437d40
push esi
call fcn.00402ef1
test eax, eax
je 0x4030aa
add dword [0x43bd44], edi
mov dword [0x426178], esi
mov dword [0x42617c], edi
cmp dword [0x47b2bc], ebx
je 0x403006
cmp dword [0x47b380], ebx
jne 0x403006
mov eax, dword [0x437d38]
sub eax, dword [0x437d3c]
push ebx
sub eax, dword [esp + 0x1c]
add eax, dword [0x43bd48]
mov dword [0x41e174], eax
call fcn.00402e4f
pop ecx
push 0x426178
mov dword [0x426180], ebp
mov dword [0x426184], 0x8000
call fcn.00406c95
test eax, eax
jl 0x4030af
mov esi, dword [0x426180]
sub esi, ebp
je 0x403064
push ebx
lea eax, [esp + 0x14]
push eax
push esi
push ebp
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4030b4
cmp esi, dword [esp + 0x10]
jne 0x4030b4
add dword [0x43bd48], esi
cmp dword [0x42617c], ebx
jne 0x402fd5
jmp 0x403070
cmp dword [0x42617c], ebx
jne 0x4030af
cmp edi, ebx
je 0x4030af
mov eax, dword [0x437d3c]
mov ecx, eax
sub ecx, dword [0x43bd48]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x402f99
push ebx
push ebx
push eax
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
call fcn.00402e4f
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
or eax, 0xffffffff
jmp 0x4030a2
push 0xfffffffffffffffd
pop eax
jmp 0x4030a2
push 0xfffffffffffffffe
jmp 0x4030b1
Function at 0x4030b8
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4030e4
mov ecx, dword [0x47b2f8]
push edi
add eax, ecx
push edi
push eax
push dword [0x40a014]
mov dword [0x437d3c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00402f3a
cmp eax, edi
jl 0x4031dd
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
cmp dword [ebp - 4], esi
jne 0x4031d9
push dword [ebp + 8]
add dword [0x437d3c], esi
call fcn.00402f3a
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4031dc
cmp dword [ebp + 0x10], edi
jne 0x4031a8
cmp dword [ebp + 8], edi
jle 0x4031d4
mov esi, 0x437d40
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403158
mov edi, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push edi
push esi
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
cmp edi, dword [ebp - 4]
jne 0x4031d9
push 0
lea eax, [ebp + 0x14]
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031a4
cmp dword [ebp + 0x14], edi
jne 0x4031a4
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x437d3c], eax
cmp dword [ebp + 8], 0
jg 0x40314b
jmp 0x4031d4
push 0xfffffffffffffffe
jmp 0x4031db
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031b3
mov eax, dword [ebp + 0x14]
push edi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call ebx
test eax, eax
je 0x4031d9
mov eax, dword [ebp - 4]
add dword [0x437d3c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4031dc
push 0xfffffffffffffffd
pop eax
pop ebx
pop edi
pop esi
leave
ret 0x10
Function at 0x40584f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x45fde0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x45fde0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40588a
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405a41
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405a5e
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x405a61
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
inc ecx
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
ret 0xc

Function at 0x405a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4088ec]
mov dword [ebp - 8], eax
mov eax, dword [0x4088f0]
dec edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
add word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405ae0
test edi, edi
jne 0x405a9d
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405ada

Function at 0x405ae4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405b5d
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x4008
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405b46
cmp dword [ebp + 0x14], 1
je 0x405b4b
cmp dword [ebp + 0x14], 2
je 0x405b4b
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x4006], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14
Function at 0x4061a5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x45fe28
push esi
call fcn.00405c1b
push esi
call fcn.0040596a
mov edi, eax
test edi, edi
jne 0x4061c6
xor eax, eax
jmp 0x406224
push edi
call fcn.00405c4a
test byte [0x47b308], 0x80
je 0x4061e3
movzx eax, word [edi]
test ax, ax
je 0x4061c2
cmp ax, 0x5c
je 0x4061c2
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x406205
push esi
call fcn.00405cfb
test eax, eax
je 0x4061ff
test byte [eax], 0x10
je 0x406229
push esi
call fcn.00406178
push esi
call ebx
cmp eax, edi
jg 0x4061f0
push esi
call fcn.00406149
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x406223
Function at 0x4064be
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x4089d4
mov ebx, 0x463e30
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edi, dword [esp + 0x1c]
xor ebp, ebp
mov esi, 0x400
cmp edi, ebp
je 0x40650c
push 1
push ebp
push edi
call fcn.00405a61
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406683
cmp eax, esi
jg 0x406683
push esi
mov edi, 0x469488
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
cmp eax, ebp
je 0x406683
cmp eax, esi
jg 0x406683
push ebp
push ebp
push esi
push 0x464630
push 0xffffffffffffffff
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebp
push ebp
call ebx
test eax, eax
je 0x406683
push ebp
push ebp
push esi
mov esi, 0x464c80
push esi
push 0xffffffffffffffff
push edi
push ebp
push ebp
call ebx
test eax, eax
je 0x406683
push esi
push 0x464630
push str._s_s_r_n
push 0x465080
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x47b2bc]
push dword [eax + 0x128]
push edi
call fcn.0040622d
push 4
push 0xc0000000
push edi
call fcn.00405a61
mov dword [esp + 0x1c], eax
cmp eax, 0xffffffff
je 0x406683
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x406679
push ebp
lea eax, [esp + 0x14]
push eax
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406679
cmp edi, dword [esp + 0x10]
jne 0x406679
push str._Rename__r_n
push esi
call fcn.004059c7
cmp eax, ebp
jne 0x406610
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x406641
push 0x4089c8
add eax, 0xa
push eax
call fcn.004059c7
mov ebp, eax
test ebp, ebp
je 0x40663f
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406632
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x40662c
sub ebp, esi
inc ebp
mov eax, ebp
xor ebp, ebp
jmp 0x406643
xor ebp, ebp
mov eax, edi
push ebx
push 0x465080
add eax, esi
push eax
call fcn.00405a1d
push ebp
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebp
lea eax, [esp + 0x14]
push eax
add edi, ebx
push edi
push esi
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4066bc
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
mov ebx, dword [ebp + 8]
push ebx
call fcn.004061a5
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
test cl, 8
je 0x4066f1
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x47b368], eax
jmp 0x406897
mov dword [ebp + 8], ecx
and dword [ebp + 8], 1
push esi
je 0x40670c
test eax, eax
je 0x406842
test cl, 2
je 0x406842
push edi
push ebx
mov esi, 0x465480
push esi
call fcn.00405c1b
cmp dword [ebp + 8], 0
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x40672f
push str..
push esi
call edi
jmp 0x406735
push ebx
call fcn.00406178
cmp word [ebx], 0
jne 0x406745
cmp word [0x465480], 0x5c
jne 0x40674d
push 0x4082c8
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebx + eax*2]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406831
lea esi, [ebp - 0x230]
push 0x3f
mov eax, esi
push eax
call fcn.00405916
xor edi, edi
cmp word [eax], di
je 0x406794
cmp word [ebp - 0x28], di
je 0x406794
lea esi, [ebp - 0x28]
cmp word [esi], 0x2e
jne 0x4067af
movzx eax, word [esi + 2]
cmp ax, di
je 0x40680e
cmp ax, 0x2e
jne 0x4067af
cmp word [esi + 4], di
je 0x40680e
push esi
push dword [ebp - 4]
call fcn.00405c1b
test byte [ebp - 0x25c], 0x10
je 0x4067d6
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40680e
push dword [ebp + 0xc]
push ebx
call fcn.004066bc
jmp 0x40680e
push ebx
call fcn.00405a41
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x406806
test byte [ebp + 0xc], 4
je 0x4067fe
push ebx
push 0xfffffffffffffff1
call fcn.00404bd6
push edi
push ebx
call fcn.00406689
jmp 0x40680e
inc dword [0x47b368]
jmp 0x40680e
push ebx
push 0xfffffffffffffff2
call fcn.00404bd6
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x406774
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x406833
xor edi, edi
cmp dword [ebp + 8], edi
pop edi
je 0x406842
mov ecx, dword [ebp - 4]
xor eax, eax
mov word [ecx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x406896
cmp dword [ebp - 0xc], esi
je 0x406886
push ebx
call fcn.00405cfb
test eax, eax
je 0x406896
push ebx
call fcn.00406149
push ebx
call fcn.00405a41
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x40688e
test byte [ebp + 0xc], 4
je 0x406886
push ebx
push 0xfffffffffffffff1
call fcn.00404bd6
push esi
push ebx
call fcn.00406689
jmp 0x406896
inc dword [0x47b368]
jmp 0x406896
push ebx
push 0xffffffffffffffe5
call fcn.00404bd6
pop esi
pop ebx
leave
ret 8