joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478210
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call fcn.00477e00
test eax, eax
je 0x47826e
push esi
push 0x400
lea eax, [ebp - 0x804]
push eax
push dword [0x57452c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov esi, eax
lea eax, [ebp - 0x804]
push 0xffffffffffffffff
push eax
push edi
call fcn.004ad750
add esp, 0xc
mov eax, esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop edi
call fcn.004d9e67
mov esp, ebp
pop ebp
ret

Function at 0x478e60
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6dc
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea edx, [ebp - 0x630]
xor edi, edi
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x478e80
lea eax, [ebp - 0x630]
push eax
call fcn.004ec46e
add esp, 4
lea eax, [ebp - 0x62e]
cmp word [ebp - 0x630], 0x22
lea esi, [ebp - 0x630]
cmove esi, eax
movzx ecx, word [esi]
lea eax, [ecx - 0x61]
cmp ax, 0x19
ja 0x478fe1
cmp word [esi + 2], 0x3a
jne 0x478fe1
cmp dword [ecx*4 + 0x5759ac], edi
je 0x478fcb
lea ecx, [ebp - 0x6d8]
call fcn.00485a90
cmp dword [ebp - 0x6c8], 2
jne 0x478fcb
movzx eax, word [esi + 2]
push eax
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x14]
push str.._c_c
push eax
call fcn.00451270
add esp, 0x10
lea eax, [ebp - 0x14]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x478f70
push 0
lea eax, [ebp - 0x634]
push eax
push 0
push 0
push 0
push 0
push 0x2d4800
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x478f70
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x14]
push 0x540cd4
push eax
call fcn.00451270
mov ebx, dword [sym.imp.KERNEL32.dll_SetErrorMode]
add esp, 0xc
push 1
call ebx
push 0
push 0
mov edi, eax
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x63c]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
push edi
mov esi, eax
call ebx
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
cmp ecx, 0x5c
jne 0x478ff2
cmp word [esi + 2], cx
mov eax, 1
cmove edi, eax
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
Function at 0x479120
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c8
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, edx
push ebx
mov dword [ebp - 0x9c4], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x9c8], ecx
lea ecx, [ebp - 0x310]
push edi
mov dword [ebp - 0x9c0], eax
call fcn.004790e0
lea eax, [ebp - 0x310]
push eax
push 0
call fcn.004ad6d0
add esp, 8
mov dword [ebp - 0x9bc], 1
mov esi, eax
xor ebx, ebx
mov dword [ebp - 0x9b0], esi
mov dword [ebp - 0x9ac], ebx
nop word [eax + eax]
mov dword [ebp - 0x9b8], 0
nop word [eax + eax]
test ebx, ebx
jne 0x4792f8
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
xor ecx, ecx
mov edi, eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d9ebb
add esp, 4
mov dword [ebp - 0x9b4], eax
mov esi, eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov eax, esi
cmp word [eax], bx
je 0x479210
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 5
je 0x4791f3
cmp eax, 2
jne 0x479200
mov dword [ebp + ebx*4 - 0x9a8], esi
inc ebx
nop dword [eax + eax]
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x479200
cmp word [esi], ax
jne 0x4791e2
xor esi, esi
test ebx, ebx
jle 0x479263
nop word [eax + eax]
mov edi, dword [ebp + esi*4 - 0x9a8]
mov ecx, edi
call fcn.00478e60
test eax, eax
je 0x47925e
push dword [ebp - 0x9c0]
mov edx, edi
lea ecx, [ebp - 0x928]
call fcn.004ae1e0
add esp, 4
lea eax, [ebp - 0x928]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x479321
inc esi
cmp esi, ebx
jl 0x479220
mov esi, dword [ebp - 0x9b0]
mov ebx, dword [ebp - 0x9ac]
push dword [ebp - 0x9b4]
call fcn.004d9e78
add esp, 4
test ebx, ebx
jne 0x479292
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004b4e10
test eax, eax
js 0x479305
mov eax, dword [ebp - 0x9b8]
inc eax
mov dword [ebp - 0x9b8], eax
cmp eax, 0xa
jl 0x4791a0
test ebx, ebx
jne 0x4792f8
cmp dword [ebp + 0x10], ebx
je 0x479305
mov edi, dword [ebp - 0x9c4]
mov edx, dword [ebp - 0x9c8]
mov ecx, dword [0x576080]
push 0x41
push edi
call fcn.0046bbd0
add esp, 8
cmp eax, 1
je 0x4792f8
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004b21f0
mov ecx, dword [0x576080]
mov edx, eax
push 0x124
push edi
call fcn.0046bbd0
add esp, 8
cmp eax, 6
je 0x479305
cmp dword [ebp - 0x9bc], 0
jne 0x479190
push esi
call fcn.004d9e78
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x9b0]
push esi
push edi
push 0x540cc8
push 0x574870
call fcn.00451270
mov ebx, 1
mov dword [ebp - 0x9bc], 0
add esp, 0x10
mov dword [ebp - 0x9ac], ebx
jmp 0x47926f
Function at 0x4793b0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x124c
call fcn.004daad0
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 4], eax
test ecx, ecx
je 0x479418
mov edx, ecx
push esi
lea esi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x4793d1
sub edx, esi
pop esi
push ecx
cmp byte [edx + ecx - 1], 0x5c
je 0x4793f7
push 0x540d34
push 0x574558
call fcn.00402170
add esp, 0xc
jmp 0x479404
push 0x574558
call fcn.004ae020
add esp, 8
push 0x574558
push 0x575518
call fcn.004ad6d0
add esp, 8
jmp 0x47947b
push 0x30c
lea eax, [ebp - 0x61c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push eax
lea eax, [ebp - 0x61c]
push eax
call fcn.004eb4fc
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push eax
push 0x540cc8
push 0x575518
call fcn.00451270
push 1
push 0x575518
push 0x574558
call fcn.004ad750
add esp, 0x30
xor eax, eax
mov byte [0x5751a0], 0
push 0x575518
mov word [0x574870], ax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0x574558
push 0x576088
call fcn.004ae020
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1864
call fcn.004daad0
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
xor ecx, ecx
call fcn.004793b0
mov edx, ebx
mov ecx, 0x540d28
call fcn.004794c0
push 0x53e92c
push esi
call fcn.004adfe0
add esp, 8
test eax, eax
je 0x4795ba
lea eax, [ebp - 0x1864]
push esi
push eax
call fcn.004ad6d0
add esp, 8
lea eax, [ebp - 0x1864]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4795d0
test al, 0x10
je 0x47957f
mov ecx, esi
call fcn.004793b0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x310]
push esi
push eax
call fcn.004ae020
add esp, 8
lea ecx, [ebp - 0x310]
call fcn.004ae0d0
mov edi, eax
test edi, edi
je 0x4795ca
lea ecx, [ebp - 0x310]
mov byte [edi], 0
call fcn.004793b0
lea ecx, [edi + 1]
mov edx, ebx
call fcn.004794c0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
mov edx, ebx
mov ecx, esi
jmp 0x4795b4
push esi
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0xc34]
push eax
lea edx, [ebp - 0x310]
lea ecx, [ebp - 0x61c]
call fcn.00432b80
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0xf40]
push 0x540cac
push eax
call fcn.00402170
lea eax, [ebp - 0x928]
push eax
lea eax, [ebp - 0xc34]
push eax
lea eax, [ebp - 0x124c]
push 0x540cac
push eax
call fcn.00402170
add esp, 0x2c
lea ecx, [ebp - 0xf40]
call fcn.004793b0
mov edx, ebx
lea ecx, [ebp - 0x124c]
call fcn.004794c0
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
Function at 0x47a450
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.00481940
movzx ecx, word [esi + 0xe]
call fcn.004aac40
mov ebx, dword [0x576394]
xor edi, edi
mov word [esi + 0x38], 0
test ebx, ebx
jle 0x47a496
call fcn.004aac50
movzx eax, ax
add byte [edi + esi + 0x40], al
movzx eax, byte [edi + esi + 0x40]
add byte [esi + 0x38], al
movzx eax, byte [edi + esi + 0x40]
inc edi
xor byte [esi + 0x39], al
cmp edi, ebx
jl 0x47a475
call fcn.004aac50
mov byte [esi + 0x3a], al
call fcn.004aac50
pop edi
mov byte [esi + 0x3b], al
mov byte [esi + 0x3c], 1
pop esi
pop ebx
jmp fcn.00481950

Function at 0x47a5c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
call fcn.00481940
movzx ecx, word [edi + 0xe]
call fcn.004aac40
xor esi, esi
xor bh, bh
xor bl, bl
cmp dword [0x576394], esi
jle 0x47a5fe
add bh, byte [esi + edi + 0x40]
xor bl, byte [esi + edi + 0x40]
call fcn.004aac50
movzx eax, ax
sub byte [esi + edi + 0x40], al
inc esi
cmp esi, dword [0x576394]
jl 0x47a5e1
call fcn.00481950
cmp byte [edi + 0x38], bh
jne 0x47a616
cmp byte [edi + 0x39], bl
jne 0x47a616
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x47aa00
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ecx
lea eax, [ebp - 0x61c]
push eax
call fcn.004ad6d0
add esp, 8
lea ecx, [ebp - 0x61c]
call fcn.00478e60
test eax, eax
je 0x47aa55
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
not eax
and eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
Function at 0x47aa80
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1258
call fcn.004daad0
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x1258], ecx
mov ecx, ebx
push edi
call fcn.00478e60
test eax, eax
je 0x47ab90
lea eax, [ebp - 0xc3c]
push esi
push eax
call fcn.004ad6d0
lea eax, [ebp - 0xc3c]
push eax
push ebx
lea eax, [ebp - 0x624]
push 0x540cc8
push eax
call fcn.00451270
add esp, 0x18
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
xor edi, edi
shr esi, 4
not esi
and esi, 1
cmp dword [0x55d00c], edi
cmovne edi, dword [0x575198]
test edi, edi
je 0x47ab5d
test esi, esi
jne 0x47ab61
push dword [edi]
mov edx, ebx
lea ecx, [ebp - 0x1254]
call fcn.004ae1e0
add esp, 4
lea eax, [ebp - 0xc3c]
push eax
lea eax, [ebp - 0x1254]
push eax
lea eax, [ebp - 0x624]
push str._s_s
push eax
call fcn.00451270
add esp, 0x10
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, dword [edi + 4]
mov esi, eax
shr esi, 4
not esi
and esi, 1
test edi, edi
jne 0x47ab07
test esi, esi
je 0x47ab7d
mov eax, dword [ebp - 0x1258]
test eax, eax
je 0x47ab7d
push 1
lea ecx, [ebp - 0x624]
push ecx
push eax
call fcn.004ad750
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9e67
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
push edi
mov edx, 0x575518
lea ecx, [ebp - 0x61c]
call fcn.004ae1e0
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47ad86
push 1
lea eax, [ebp - 0x61c]
push eax
push esi
call fcn.004ad750
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
mov ecx, 0x574870
call fcn.00478e60
test eax, eax
je 0x47adba
push edi
mov edx, 0x574870
lea ecx, [ebp - 0x61c]
call fcn.004ae1e0
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x47ad5f
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
Function at 0x47add0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x620], ecx
xor esi, esi
test esi, esi
jne 0x47ae81
mov ecx, 0x575518
call fcn.00478e60
test eax, eax
je 0x47ae40
push dword [ebp - 0x620]
mov edx, 0x575518
lea ecx, [ebp - 0x61c]
call fcn.004ae1e0
add esp, 4
lea eax, [ebp - 0x61c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47ae40
mov esi, eax
shr esi, 4
not esi
and esi, 1
jne 0x47adf3
mov ecx, dword [0x576080]
mov edx, ebx
push 0x41
push edi
call fcn.0046bbd0
add esp, 8
cmp eax, 2
jne 0x47adf3
mov ecx, str.AREYOUSUREYOUWANTTOQUIT
call fcn.004b21f0
mov ecx, dword [0x576080]
mov edx, eax
push 0x124
push edi
call fcn.0046bbd0
add esp, 8
cmp eax, 6
jne 0x47adf3
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
Function at 0x47af40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x474
mov eax, dword [0x55c2f8]
xor eax, esp
mov dword [esp + 0x470], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, edx
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
cmp edi, 1
jb 0x47b115
mov ecx, 1
call fcn.004738d0
mov ecx, 1
call fcn.004b3410
push 0x30c
push 0
push ebx
call fcn.004e61c0
add esp, 0xc
mov byte [esp + 0x78], 0
lea ebx, [esp + 0x78]
test edi, edi
je 0x47b01e
mov edi, dword [esp + 0xc]
sub edi, esi
mov dword [esp + 0xc], edi
push dword [edi + esi]
push dword [esi]
push str._s__s
push ebx
call fcn.00402170
mov ecx, dword [esi]
add esp, 0x10
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47afe0
sub ecx, edx
mov byte [ecx + ebx], al
mov edx, dword [esi]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x47aff1
mov eax, dword [edi + esi]
sub edx, ecx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x47b000
sub eax, edi
add ebx, 2
mov edi, dword [esp + 0xc]
add eax, edx
add ebx, eax
add esi, 4
sub dword [esp + 0x10], 1
jne 0x47afc5
push 0x58
lea eax, [esp + 0x24]
mov byte [ebx], 0
push 0
push eax
call fcn.004e61c0
mov eax, dword [0x576080]
xor ecx, ecx
mov edx, dword [ebp + 0x18]
add esp, 0xc
mov dword [esp + 0x24], eax
cmp edx, 1
lea eax, [esp + 0x78]
mov dword [esp + 0x20], 0x58
mov dword [esp + 0x2c], eax
sete cl
mov eax, dword [esp + 0x14]
mov esi, 0x1000
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x4c], eax
lea ecx, [ecx*2 + 0x804]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x50], eax
xor eax, eax
test edx, edx
mov dword [esp + 0x38], 1
mov dword [esp + 0x40], 0x30c
cmove eax, esi
mov dword [esp + 0x5c], 0x53e7f0
or ecx, eax
mov dword [esp + 0x54], ecx
sub edx, 0
je 0x47b0de
sub edx, 1
je 0x47b0d1
mov esi, 4
call fcn.004b3460
xor ecx, ecx
call fcn.004738d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetSaveFileNameA]
jmp 0x47b0e9
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
call fcn.004b3460
xor ecx, ecx
call fcn.004738d0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x47c]
mov eax, 7
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
Function at 0x47b520
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb94
mov eax, dword [0x55c2f8]
xor eax, esp
mov dword [esp + 0xb90], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
lea eax, [esp + 0x584]
mov dword [esp + 0x14], edx
mov ebx, ecx
mov dword [esp + 0x1c], 0
xor esi, esi
mov dword [esp + 0x20], ebx
push eax
xor edi, edi
mov dword [esp + 0x1c], esi
call fcn.004ad6d0
add esp, 8
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x584]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x47b6c4
mov esi, dword [ebp + 0xc]
nop
test byte [esp + 0x20], 0x10
je 0x47b66a
mov ecx, 0x540df0
lea eax, [esp + 0x4c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47b5ca
test dx, dx
je 0x47b5c6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47b5ca
add eax, 4
add ecx, 4
test dx, dx
jne 0x47b5a4
xor eax, eax
jmp 0x47b5cf
sbb eax, eax
or eax, 1
test eax, eax
je 0x47b666
mov eax, 0x540de8
lea ecx, [esp + 0x4c]
mov dx, word [ecx]
cmp dx, word [eax]
jne 0x47b606
test dx, dx
je 0x47b602
mov dx, word [ecx + 2]
cmp dx, word [eax + 2]
jne 0x47b606
add ecx, 4
add eax, 4
test dx, dx
jne 0x47b5e0
xor eax, eax
jmp 0x47b60b
sbb eax, eax
or eax, 1
test eax, eax
je 0x47b666
push 1
lea eax, [esp + 0x50]
push eax
lea eax, [esp + 0x278]
push eax
call fcn.004ad750
lea ecx, [esp + 0x27c]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b630
sub ecx, edx
lea esi, [ecx + 1]
test ebx, ebx
je 0x47b65e
cmp esi, dword [esp + 0x10]
ja 0x47b68b
push esi
lea eax, [esp + 0x274]
push eax
push ebx
call fcn.004e6320
add esp, 0xc
add ebx, esi
sub dword [esp + 0x10], esi
inc edi
add dword [esp + 0x14], esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esp + 0xc]
test esi, esi
je 0x47b672
cmp edi, esi
jae 0x47b693
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x47b693
mov eax, dword [esp + 0xc]
jmp 0x47b590
mov dword [esp + 0x18], 1
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x18], 0
je 0x47b6bc
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb90]
xor ecx, esp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0xb9c]
test ebx, ebx
cmovne esi, edi
pop edi
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
Function at 0x47b6e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x628
mov eax, dword [0x55c2f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x620]
xor esi, esi
push eax
push 0x20119
push esi
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
mov edi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x47b77b
lea eax, [ebp - 0x624]
mov dword [ebp - 0x624], 0x618
push eax
lea eax, [ebp - 0x61c]
push eax
lea eax, [ebp - 0x628]
push eax
push esi
push str.ProgramFilesDir
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47b76f
cmp dword [ebp - 0x628], 1
jne 0x47b76f
push 1
lea eax, [ebp - 0x61c]
push eax
push edi
call fcn.004ad750
add esp, 0xc
mov esi, 1
push dword [ebp - 0x620]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004d9e67
mov esp, ebp
pop ebp
ret
Function at 0x47baa0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a2cb
mov eax, dword fs:[0]
push eax
sub esp, 0xc44
mov eax, dword [0x55c2f8]
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
mov dword [ebp - 0xc44], ecx
xor esi, esi
xor edi, edi
call fcn.004aa5b0
test eax, eax
je 0x47bae8
call fcn.004aa690
mov edi, eax
push 0xc
call fcn.004d9e7d
mov edx, dword [ebp - 0xc44]
mov ebx, eax
add esp, 4
xorps xmm0, xmm0
mov ecx, ebx
movq qword [ebx], xmm0
mov dword [ebx + 8], esi
call fcn.00485ef0
test eax, eax
je 0x47bbc1
push dword [ebp - 0xc44]
lea eax, [ebp - 0xc40]
push eax
call fcn.004ad6d0
add esp, 8
lea eax, [ebp - 0x628]
push eax
push 0
push 0x540ea0
lea eax, [ebp - 0xc40]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x47bbc1
lea ecx, [ebp - 0xc50]
call fcn.00432af0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x628]
push 0
push eax
lea ecx, [ebp - 0xc50]
call fcn.00432de0
test eax, eax
je 0x47bba2
lea ecx, [ebp - 0xc50]
call fcn.00432e30
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc50]
call fcn.00432d30
test eax, eax
je 0x47bba2
lea ecx, [ebp - 0xc50]
call fcn.00432e30
mov esi, 1
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc50]
call fcn.00432b40
mov ecx, ebx
call fcn.004860e0
mov ecx, ebx
call fcn.004861a0
test edi, edi
je 0x47bbe0
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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.004d9e67
mov esp, ebp
pop ebp
ret