joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3000fc2d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x30004d84]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.3000fb6c
mov eax, 0x30000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x3000fc7c
cmp dword [ebp - 0x1c], 5
jb 0x3000fc94
jmp 0x3000fc90
cmp dword [ebp - 0x10], 1
jne 0x3000fc94
cmp dword [ebp - 0x1c], 4
ja 0x3000fc90
jne 0x3000fc94
cmp dword [ebp - 0x18], 0
jbe 0x3000fc94
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x30004d48
call fcn.3000c031
test eax, eax
jge 0x3000fcb5
mov byte [0x30012450], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.3000ffc4
add ebp, 0x78
leave
ret

Function at 0x3000ffc4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x30004d84]
jne 0x30010aa7
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x300126b8], eax
mov dword [0x300126b4], ecx
mov dword [0x300126b0], edx
mov dword [0x300126ac], ebx
mov dword [0x300126a8], esi
mov dword [0x300126a4], edi
mov word [0x300126d0], ss
mov word [0x300126c4], cs
mov word [0x300126a0], ds
mov word [0x3001269c], es
mov word [0x30012698], fs
mov word [0x30012694], gs
pushfd
pop dword [0x300126c8]
mov eax, dword [ebp]
mov dword [0x300126bc], eax
mov eax, dword [ebp + 4]
mov dword [0x300126c0], eax
lea eax, [ebp + 8]
mov dword [0x300126cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x30012608], 0x10001
mov eax, dword [0x300126c0]
mov dword [0x300125bc], eax
mov dword [0x300125b0], 0xc0000409
mov dword [0x300125b4], 1
mov eax, dword [0x30004d84]
mov dword [ebp - 0x328], eax
mov eax, dword [0x3001242c]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x30012600], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x30005110
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x30012600], 0
jne 0x30010b97
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x419010
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x214
lea eax, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x220]
push esi
push edi
push 0x104
push eax
push ecx
mov word [ebp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x4190d2
cmp eax, 0x104
jne 0x419055
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x4190d2
lea edx, [esp + 0x10]
lea eax, [esp + 0x18]
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x4190d2
push edi
call fcn.004c3bc5
mov esi, eax
add esp, 4
test esi, esi
je 0x4190d2
mov ecx, dword [esp + 0x10]
push ebx
push esi
push edi
lea edx, [esp + 0x24]
push ecx
push edx
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4190ba
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4190ba
mov edx, dword [esp + 0x10]
mov ebx, 1
mov ax, word [edx]
mov word [ebp], ax
push esi
call fcn.004c3bba
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x214
ret 8
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x214
ret 8

Function at 0x468e55
Capabilities:
Encode data using xor

Disassembly:
stc
or byte [eax], ch
xchg edi, eax
test bh, al
fimul word [edi + 0x71b09616]
inc ebp
jge 0x468eab
popfd
invalid
mov ch, 0xfe
push dword [edx]
mov dword [0x4e76b82e], eax
xor ebx, ebp
xchg esp, eax
pop eax
test byte [ebx + 0x6f5907f3], ch
jle 0x468eab
invalid

Function at 0x4706a0
Capabilities:
Encode data using xor

Disassembly:
and ecx, dword [ebx + esi*4 - 0x6a]
insd dword es:[edi], dx
popfd
push ds
inc edx
push 0xe8c052ef
cmpsb byte [esi], byte es:[edi]
mov esp, 0xe2bc35d8
sbb dh, byte [edi]
sbb bh, byte [ebp + edx*8 - 0xb2e86b0]
mov ebx, 0x92c56258
add cl, ah
fidiv word [ebp + 0x68d91ca8]
fild qword [ebp + ebx*8 + 0x4c]
dec edi
movsb byte es:[edi], byte [esi]
sub eax, ebp
and dword [eax + 0xc], ebx
fsubr dword [eax + 2]
inc eax
xor al, 0xb0
pop eax
fsub st(4), st(0)
mov edi, 0x142888fb
jns 0x4706d2
fldenv [edi + 0x32]
pop ss
in al, dx
inc ebp
xor al, 0xd5
xchg edx, eax
mov esp, 0xf96861f6
dec eax
inc edi
dec edx
jp 0x4706a4
mov edx, 0x461810d8
mov dl, 0xc8
dec eax
invalid

Function at 0x4a7e40
Capabilities:
Encode data using xor

Disassembly:
sbb cl, dl
inc ebx
mov edi, 0x71218161
xor ch, byte [ecx - 5]
mov bl, 0xf0
adc ch, 0xc6
invalid
Function at 0x4c4cd5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4cd338
cmp edx, dword [eax]
je 0x4c4cf7
add eax, 8
inc ecx
cmp eax, 0x4cd3c8
jl 0x4c4ce8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4cd338]
jne 0x4c4e25
mov eax, dword [0x4d1a0c]
cmp eax, 1
je 0x4c4dff
test eax, eax
jne 0x4c4d28
cmp dword [0x4cd278], 1
je 0x4c4dff
cmp edx, 0xfc
je 0x4c4e25
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4c4d5f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004c6190
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004c6280
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4c4da2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004c6280
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4c8e2c
push edi
call fcn.004c6be0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004c6190
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004c61a0
lea eax, [ebp - 0xa0]
push 0x4c8e0c
push eax
call fcn.004c61a0
push dword [esi + 0x4cd33c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004c61a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004c6b4f
add esp, 0x2c
pop edi
jmp 0x4c4e25
lea eax, [ebp + 8]
lea esi, [esi + 0x4cd33c]
push 0
push eax
push dword [esi]
call fcn.004c6280
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x450012
Capabilities:
Encode data using xor

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
xor ebx, ebx
push ebx
push ebx
push 0x80000000
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [0x44ff28]
sub edi, edi
sub ecx, ecx
mov cl, 0xe5
inc edi
loop 0x45003a
call 0x450042
pop esi
sub esi, 0xffffffc2
push esi
sub ebx, ebx
or ebx, 0x2394
mov al, byte [esi]
xor ax, di
xchg byte [esi], al
inc esi
sub ebx, 1
cmp ebx, 0
ja 0x450052
pop esi
mov esp, dword fs:[0]
pop dword fs:[0]
pop edi
pop ebp
jmp esi

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..00cfg
nop
mov ebx, 0x408ecc
mov ecx, 0x50aa506a
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x6ed31bd1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x1002a400
Capabilities:
Delete file

Disassembly:
jmp 0x1003c340
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
je 0x1003c382
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.100526fd
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bef0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c3d0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c3d0
cmp dword [esp + 4], 0xffffffff
je 0x1003c3d0
push eax
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526fd
add esp, 0x218
ret 4

Function at 0x1002a450
Capabilities:
Move file

Disassembly:
jmp 0x1003c8d0
sub esp, 0x42c
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x428], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x430]
push esi
mov esi, dword [esp + 0x438]
je 0x1003c91c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.100526fd
add esp, 0x42c
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x220]
mov dword [esp + 0x220], 0
mov dword [esp + 0x224], 0
call fcn.1003bef0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bef0
push dword [esp + 8]
push dword [esp + 0x220]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c995
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c995
cmp dword [esp + 4], 0xffffffff
je 0x1003c995
push eax
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0x220]
mov dword [esp + 8], 0
cmp ecx, eax
je 0x1003c9cb
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1003c9cb
cmp dword [esp + 0x218], 0xffffffff
je 0x1003c9cb
push ecx
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x42c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526fd
add esp, 0x42c
ret 8
Function at 0x1003c180
Capabilities:
Create directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
push esi
mov esi, dword [esp + 0x224]
je 0x1003c1cc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.100526fd
add esp, 0x218
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bef0
cmp dword [esp + 0x214], 0x104
jl 0x1003c204
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1003c211
push esi
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003c236
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003c236
cmp dword [esp + 4], 0xffffffff
je 0x1003c236
push edx
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526fd
add esp, 0x218
ret 8

Function at 0x1003c340
Capabilities:
Delete file

Disassembly:
jmp 0x1003c340
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
je 0x1003c382
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.100526fd
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bef0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c3d0
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c3d0
cmp dword [esp + 4], 0xffffffff
je 0x1003c3d0
push eax
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526fd
add esp, 0x218
ret 4

Function at 0x1003c670
Capabilities:
Get file attributes

Disassembly:
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
je 0x1003c6b2
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.100526fd
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bef0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c700
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c700
cmp dword [esp + 4], 0xffffffff
je 0x1003c700
push eax
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526fd
add esp, 0x218
ret 4
Function at 0x1003c720
Capabilities:
Get common file path

Disassembly:
sub esp, 0x21c
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x218], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
je 0x1003c76a
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.100526fd
add esp, 0x21c
ret 8
push esi
push eax
push ecx
lea ecx, [esp + 0xc]
call fcn.1003bce0
mov eax, dword [esp + 0x218]
push dword [esp + 8]
add eax, eax
shr eax, 1
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 4]
call fcn.1003be80
mov esi, eax
test esi, esi
jle 0x1003c79c
dec esi
lea ecx, [esp + 4]
call fcn.1003be80
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
cmp eax, ecx
je 0x1003c7ca
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c7ca
cmp dword [esp + 4], 0xffffffff
je 0x1003c7ca
push eax
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526fd
add esp, 0x21c
ret 8

Function at 0x1003c8d0
Capabilities:
Move file

Disassembly:
jmp 0x1003c8d0
sub esp, 0x42c
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x428], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x430]
push esi
mov esi, dword [esp + 0x438]
je 0x1003c91c
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop esi
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.100526fd
add esp, 0x42c
ret 8
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x220]
mov dword [esp + 0x220], 0
mov dword [esp + 0x224], 0
call fcn.1003bef0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bef0
push dword [esp + 8]
push dword [esp + 0x220]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov esi, eax
lea ecx, [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ecx
je 0x1003c995
mov ecx, eax
shr ecx, 0x10
test ecx, ecx
je 0x1003c995
cmp dword [esp + 4], 0xffffffff
je 0x1003c995
push eax
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x21c]
lea eax, [esp + 0x220]
mov dword [esp + 8], 0
cmp ecx, eax
je 0x1003c9cb
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1003c9cb
cmp dword [esp + 0x218], 0xffffffff
je 0x1003c9cb
push ecx
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x42c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526fd
add esp, 0x42c
ret 8
Function at 0x1003cc40
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x440
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x43c], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x450]
mov ecx, dword [esp + 0x454]
mov edx, dword [esp + 0x448]
push ebx
mov ebx, dword [esp + 0x448]
push ebp
mov ebp, dword [esp + 0x454]
push esi
mov esi, dword [esp + 0x464]
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
je 0x1003cca6
push esi
push ecx
push eax
push ebp
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
jmp 0x1003ce3f
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x240]
mov dword [esp + 0x240], 0
mov dword [esp + 0x244], 0
call fcn.1003bef0
lea eax, [esp + 0x10]
push eax
push 0
lea eax, [esp + 0x24]
push eax
push ebp
push dword [esp + 0x24c]
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
test edi, edi
jne 0x1003ce11
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1003cdf6
cmp eax, 2
jbe 0x1003cd78
cmp eax, 7
jne 0x1003cdf6
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.1003bce0
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x1003cd65
lea ecx, [esp + 0x20]
call fcn.1003bd60
jmp 0x1003ce11
cmp dword [esp + 0x24], 0
je 0x1003cde6
push ecx
lea ecx, [esp + 0x24]
call fcn.1003be20
jmp 0x1003cde0
mov eax, dword [esi]
lea ecx, [esp + 0x20]
shr eax, 1
push eax
push dword [esp + 0x1c]
call fcn.1003bce0
mov eax, dword [esp + 0x234]
add eax, eax
shr eax, 1
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x28]
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov ecx, dword [esp + 0x10]
mov edi, eax
lea eax, [ecx + ecx]
mov dword [esi], eax
test edi, edi
je 0x1003cdd0
lea ecx, [esp + 0x20]
call fcn.1003bd60
jmp 0x1003ce11
cmp dword [esp + 0x24], 0
je 0x1003cde6
lea ecx, [esp + 0x20]
call fcn.1003be80
mov ecx, eax
mov dword [esp + 0x10], ecx
lea eax, [ecx + ecx]
lea ecx, [esp + 0x20]
mov dword [esi], eax
call fcn.1003bd60
jmp 0x1003ce11
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push ebp
push dword [esp + 0x24c]
push ebx
call eax
mov edi, eax
mov ecx, dword [esp + 0x23c]
lea eax, [esp + 0x240]
cmp ecx, eax
je 0x1003ce3f
mov eax, ecx
shr eax, 0x10
test eax, eax
je 0x1003ce3f
cmp dword [esp + 0x238], 0xffffffff
je 0x1003ce3f
push ecx
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x44c]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100526fd
add esp, 0x440
ret 0x18
Function at 0x1003cfd0
Capabilities:
Delete directory

Disassembly:
sub esp, 0x218
mov eax, dword [0x1006f3c0]
xor eax, esp
mov dword [esp + 0x214], eax
cmp dword [0x10074b2c], 0
mov eax, dword [esp + 0x21c]
je 0x1003d012
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.100526fd
add esp, 0x218
ret 4
push esi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.1003bef0
cmp dword [esp + 0x214], 0x104
jl 0x1003d04b
push 0xa1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x1003d057
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
cmp edx, eax
je 0x1003d07c
mov ecx, edx
shr ecx, 0x10
test ecx, ecx
je 0x1003d07c
cmp dword [esp + 4], 0xffffffff
je 0x1003d07c
push edx
call fcn.10055458
add esp, 4
mov ecx, dword [esp + 0x218]
mov eax, esi
pop esi
xor ecx, esp
call fcn.100526fd
add esp, 0x218
ret 4
Function at 0x10046570
Capabilities:
Move file

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov ecx, 0x10076340
push esi
mov esi, ebp
mov edx, 0x104
sub esi, ecx
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x1004659e
mov al, byte [esi + ecx]
test al, al
je 0x1004659e
mov byte [ecx], al
inc ecx
dec edx
jne 0x10046585
jmp 0x100465a2
test edx, edx
jne 0x100465a3
dec ecx
mov ebx, dword [esp + 0x18]
mov edx, 0x104
mov byte [ecx], 0
mov esi, ebx
mov ecx, 0x10076220
sub esi, ecx
jmp 0x100465c0
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100465d9
mov al, byte [esi + ecx]
test al, al
je 0x100465d9
mov byte [ecx], al
inc ecx
dec edx
jne 0x100465c0
jmp 0x100465dd
test edx, edx
jne 0x100465de
dec ecx
push 0x10076220
push 0x10076340
mov byte [ecx], 0
call fcn.10057c4c
add esp, 8
test eax, eax
jne 0x100465fd
pop esi
pop ebp
pop ebx
ret 0xc
call fcn.100577b0
cmp dword [eax], 0x12
je 0x10046612
pop esi
pop ebp
mov eax, 0xffffffef
pop ebx
ret 0xc
push edi
mov esi, 0x1000
push esi
call fcn.100463b0
mov edi, eax
test edi, edi
jne 0x1004663a
cmp esi, 0x100
jbe 0x1004666b
shr esi, 1
push esi
call fcn.100463b0
mov edi, eax
test edi, edi
je 0x10046624
push 0
push ebp
push dword [esp + 0x1c]
call fcn.100462b0
mov ebp, eax
test ebp, ebp
jns 0x10046677
call fcn.100577b0
mov ecx, 0xfffffffb
push edi
cmp dword [eax], 2
cmove ebp, ecx
call fcn.10046400
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 0xc
pop edi
pop esi
pop ebp
mov eax, 0xfffffff2
pop ebx
ret 0xc
push 0xffffff7f
push ebx
call fcn.10048080
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
jns 0x100466a2
push ebp
call dword [sym.imp.KERNEL32.dll__lclose]
push edi
call fcn.10046400
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0xc
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ebx, eax
test ebx, ebx
jle 0x100466d0
push ebx
push edi
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll__lwrite]
cmp eax, ebx
jne 0x100466fd
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll__lread]
mov ebx, eax
test ebx, ebx
jg 0x100466b1
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll__lclose]
push ebp
call esi
push dword [esp + 0x1c]
call esi
push edi
call fcn.10046400
test ebx, ebx
jne 0x100466f4
push dword [esp + 0x18]
call fcn.10046520
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
ret 0xc
mov ebx, 0xffffffef
jmp 0x100466d2