joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452ad0
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
sub esp, 0x43c
lea eax, [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push eax
lea eax, [esp + 0x30]
mov edi, edx
push eax
push 0x104
push ecx
call esi
lea ecx, [esp + 0x2c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452b00
sub ecx, edx
sar ecx, 1
je 0x452b20
cmp word [esp + ecx*2 + 0x2a], 0x5c
jne 0x452b20
xor eax, eax
mov word [esp + ecx*2 + 0x2a], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x23c]
push eax
push 0x104
push edi
call esi
lea ecx, [esp + 0x238]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452b40
sub ecx, edx
sar ecx, 1
je 0x452b66
cmp word [esp + ecx*2 + 0x236], 0x5c
jne 0x452b66
xor eax, eax
mov word [esp + ecx*2 + 0x236], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x2c]
push eax
call esi
cmp eax, 0xffffffff
je 0x452b99
test al, 0x10
je 0x452b99
lea eax, [esp + 0x238]
push eax
call esi
cmp eax, 0xffffffff
je 0x452ba4
test al, 0x10
je 0x452ba4
cmp byte [esp + 0x448], 0
jne 0x452bb4
pop edi
xor al, al
pop esi
add esp, 0x43c
ret
lea ecx, [esp + 0x238]
call fcn.004536e0
test al, al
je 0x452b99
lea ecx, [esp + 0x2c]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x452bc0
mov eax, dword [str..]
mov dword [ecx], eax
mov eax, dword [0x4c77ac]
mov dword [ecx + 4], eax
mov ax, word [0x4c77b0]
mov word [ecx + 8], ax
lea ecx, [esp + 0x2c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452bf0
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [esp + ecx*2 + 0x2e], ax
lea ecx, [esp + 0x238]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452c10
xor eax, eax
mov dword [esp + 0x10], 2
sub ecx, edx
mov dword [esp + 0xc], eax
sar ecx, 1
xorps xmm0, xmm0
mov dword [esp + 0x26], eax
movlpd qword [esp + 0x1e], xmm0
mov word [esp + ecx*2 + 0x23a], ax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x238]
mov dword [esp + 0x18], eax
mov eax, 0x614
mov word [esp + 0x1c], ax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
sete al
pop esi
add esp, 0x43c
ret
Function at 0x452f60
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
lea eax, [esp + 0x20]
push ebx
push eax
lea eax, [esp + 0x2c]
mov bl, dl
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452f86
sub ecx, edx
sar ecx, 1
je 0x452fa6
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x452fa6
xor eax, eax
mov word [esp + ecx*2 + 0x26], ax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x453060
test al, 0x10
je 0x453060
test bl, bl
jne 0x452fe3
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x453060
mov al, 1
pop ebx
add esp, 0x230
ret
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x452ff0
sub ecx, edx
mov dword [esp + 0x10], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x16], 0
mov word [esp + ecx*2 + 0x2a], ax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x614
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop ebx
sete al
add esp, 0x230
ret
xor al, al
pop ebx
add esp, 0x230
ret
Function at 0x4536e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x453784
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 2
je 0x45376f
sub eax, 1
jne 0x453791
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x453710
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
ja 0x453791
lea eax, [ecx*2 + 2]
call fcn.004a4700
mov edi, esp
mov ecx, esi
mov edx, edi
sub edx, esi
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x453740
push 0x5c
push edi
call fcn.0048ca9c
add esp, 8
test eax, eax
je 0x453791
xor ecx, ecx
mov word [eax], cx
mov ecx, edi
call fcn.004536e0
test al, al
je 0x453791
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
test al, 0x10
je 0x453791
mov al, 1
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret
xor al, al
lea esp, [ebp - 8]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
push esi
mov esi, ecx
push 0x2a
push esi
call fcn.0048c759
add esp, 8
test eax, eax
jne 0x4537e0
push 0x3f
push esi
call fcn.0048c759
add esp, 8
test eax, eax
jne 0x4537e0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4537f1
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4537f8
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x453810
Capabilities:
Shutdown system

Disassembly:
sub esp, 0x14
lea eax, [esp]
push esi
push eax
push 0x28
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x453883
lea eax, [esp + 0xc]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 1
push eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x2c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x453883
push eax
push esi
call dword [sym.imp.USER32.dll_ExitWindowsEx]
test eax, eax
je 0x453883
mov al, 1
pop esi
add esp, 0x14
ret
xor al, al
pop esi
add esp, 0x14
ret
Function at 0x463da0
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 4]
test eax, eax
je 0x463db0
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret

Function at 0x463dc0
Capabilities:
Hide graphical window

Disassembly:
cmp dword [ecx + 0x24], 0
jne 0x463ddc
mov eax, dword [ecx + 4]
test eax, eax
je 0x463df1
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
ret
push 0
push 0x2af80006
push 0x414
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
ret

Function at 0x463e30
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x58
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x463fd7
mov eax, dword [esi + 0x10]
push ebx
push ebp
push edi
xor edi, edi
test eax, eax
je 0x463e7b
xor ebx, ebx
nop
mov eax, dword [esi + 0x18]
add eax, ebx
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x463e70
cmp byte [eax + 4], 6
je 0x463e70
push str.Submit
push eax
push ecx
mov ecx, esi
call fcn.004640c0
mov eax, dword [esi + 0x10]
inc edi
add ebx, 0x14
cmp edi, eax
jb 0x463e50
xor ecx, ecx
xor ebx, ebx
xor edx, edx
mov dword [esp + 0x18], ebx
xor ebp, ebp
mov dword [esp + 0x14], ecx
xor edi, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], edx
mov ebx, ecx
cmp ebp, eax
je 0x463eb4
mov eax, dword [esi + 0x18]
push 0xfffffffffffffff0
push dword [eax + edx]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, dword [esp + 0x14]
test eax, 0x20000
je 0x463f01
cmp edi, 1
jne 0x463ee8
cmp ecx, edi
jle 0x463ee8
push 0xa
lea eax, [esp + 0x2c]
push eax
xor eax, eax
cmp ebx, 0xffffffff
cmovne eax, ebx
push eax
call fcn.0048f17a
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x34]
add esp, 0xc
push edi
push 0
push 0xffffffffffffffff
push eax
call fcn.00475930
cmp ebp, dword [esi + 0x10]
je 0x463fc2
xor edi, edi
mov dword [esp + 0x18], 0
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x1c]
add edx, dword [esi + 0x18]
cmp byte [edx + 4], 6
jne 0x463fa3
mov ebx, dword [edx + 8]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
mov eax, ebx
cmove eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
lea eax, [edi + 1]
push 0
cmove eax, edi
push 0xf0
push dword [edx]
mov edi, eax
mov dword [esp + 0x30], edi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
jne 0x463f79
cmp dword [esp + 0x18], 0
mov ecx, 0xffffffff
mov eax, dword [esp + 0x14]
cmovne eax, ecx
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x463fa3
push 1
push 0
push ecx
push 0x4bf994
mov ecx, ebx
call fcn.00475930
jmp 0x463fa3
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x10], ecx
test ebx, ebx
je 0x463fa3
push 1
push 0
push 0xffffffffffffffff
push 0x4ac300
mov ecx, ebx
call fcn.00475930
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x1c]
inc ebp
mov eax, dword [esi + 0x10]
add edx, 0x14
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x1c], edx
cmp ebp, eax
jbe 0x463e99
cmp byte [esp + 0x6c], 0
pop edi
pop ebp
pop ebx
je 0x463fd7
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
pop esi
add esp, 0x58
ret 4
Function at 0x463ff0
Capabilities:
Get graphical window text

Disassembly:
mov eax, ecx
cmp edx, 0x2af8
jae 0x4640a3
test eax, eax
je 0x4640a3
cmp dword [eax + 4], 0
je 0x4640a3
cmp edx, dword [eax + 0x10]
jae 0x4640a3
mov eax, dword [eax + 0x18]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 4]
lea ecx, [eax + ecx*4]
mov eax, dword [ecx + 8]
test edx, edx
je 0x46406e
test eax, eax
je 0x464062
mov ecx, dword [eax + 0x18]
push esi
mov esi, edx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [esi], ax
lea esi, [esi + 2]
test ax, ax
jne 0x464037
lea eax, [edx + 2]
pop esi
nop dword [eax]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x464050
sub edx, eax
sar edx, 1
mov eax, edx
ret
push 0x40
push edx
push dword [ecx]
call dword [sym.imp.USER32.dll_GetWindowTextW]
ret
test eax, eax
je 0x464090
mov eax, dword [eax + 0x18]
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464080
sub eax, edx
sar eax, 1
ret
push dword [ecx]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, 0x3f
cmp eax, ecx
cmova eax, ecx
ret
mov eax, dword [esp + 4]
test eax, eax
je 0x4640b0
xor ecx, ecx
mov word [eax], cx
xor eax, eax
ret
Function at 0x466be0
Capabilities:
Get keyboard layout

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor bl, bl
movzx eax, word [edi]
test ax, ax
je 0x466c1d
mov ecx, eax
movzx eax, cx
cmp eax, 0x21
je 0x466c0c
cmp eax, 0x2b
je 0x466c08
cmp cx, 0x5e
jne 0x466c1d
mov al, 2
jmp 0x466c0e
mov al, 1
jmp 0x466c0e
mov al, 4
add edi, 2
or bl, al
movzx eax, word [edi]
mov ecx, eax
test ax, ax
jne 0x466bf1
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
movzx ecx, word [edi]
test cx, cx
je 0x466cfc
cmp word [edi + 2], 0
jne 0x466c47
push eax
xor edx, edx
call fcn.00412730
add esp, 4
mov bh, al
jmp 0x466cb9
call fcn.0040ab40
cmp ax, 0x56
jne 0x466c75
mov cx, word [edi + 2]
call fcn.0040ab40
cmp ax, 0x4b
jne 0x466c75
push 0x10
lea eax, [edi + 4]
push 0
push eax
call fcn.00492e76
add esp, 0xc
mov bh, al
jmp 0x466cb9
xor esi, esi
nop word [eax + eax]
push edi
push dword [esi*8 + 0x4ce940]
call fcn.0048f253
add esp, 8
test eax, eax
je 0x466cb2
inc esi
cmp esi, 0x6d
jl 0x466c80
mov ecx, edi
call fcn.004125c0
movzx ecx, ax
test cx, cx
je 0x466cfc
call fcn.00412e40
mov bh, al
jmp 0x466cb9
mov bh, byte [esi*8 + 0x4ce944]
test bh, bh
je 0x466cfc
mov ecx, edi
call fcn.004125c0
movzx edx, ax
test dx, dx
jne 0x466cd8
xor dl, dl
mov cl, bh
call fcn.00412ab0
movzx edx, ax
mov al, bl
or al, 8
and edx, 0x100
movzx ecx, al
movzx eax, bl
cmove ecx, eax
movzx eax, cl
pop edi
movzx ecx, bh
shl ax, 8
pop esi
or ax, cx
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4687b0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [esp + 0x14], edi
nop
movzx eax, word [esi]
cmp eax, 0x20
je 0x4687cd
cmp eax, 9
jne 0x4687d2
add esi, 2
jmp 0x4687c0
test ax, ax
je 0x468939
cmp word [esi + 2], 0
lea ecx, [esi + 2]
jne 0x4687f6
mov word [edi + 2], ax
mov al, 1
mov byte [edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
push 0x2b
xor bl, bl
mov byte [edi], 1
push ecx
mov byte [esp + 0x1b], bl
call fcn.0048c759
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4688c7
lea edi, [ebp - 2]
cmp edi, esi
jbe 0x468834
nop dword [eax + eax]
movzx eax, word [edi]
cmp eax, 0x20
je 0x46882d
cmp eax, 9
jne 0x468834
sub edi, 2
cmp edi, esi
ja 0x468820
sub edi, esi
sar edi, 1
inc edi
push edi
push str.Ctrl
push esi
call fcn.00491336
add esp, 0xc
test eax, eax
jne 0x468851
or bl, 1
jmp 0x468883
push edi
push 0x4beb34
push esi
call fcn.00491336
add esp, 0xc
test eax, eax
jne 0x468869
or bl, 4
jmp 0x468883
push edi
push str.Shift
push esi
call fcn.00491336
add esp, 0xc
test eax, eax
jne 0x468939
or bl, 0x10
mov byte [esp + 0x13], bl
lea esi, [ebp + 2]
nop word [eax + eax]
movzx eax, word [esi]
cmp eax, 0x20
je 0x46889d
cmp eax, 9
jne 0x4688a2
add esi, 2
jmp 0x468890
test ax, ax
je 0x468939
lea eax, [esi + 2]
push 0x2b
push eax
call fcn.0048c759
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x468814
mov edi, dword [esp + 0x14]
cmp word [esi + 2], 0
push 0
jne 0x4688f5
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
movzx eax, word [esi]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
lea edx, [esp + 0x17]
mov ecx, eax
call fcn.00412730
mov bl, byte [esp + 0x17]
add esp, 4
jmp 0x46890c
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 0
xor edx, edx
mov ecx, esi
call fcn.00412680
add esp, 0xc
movzx eax, al
mov word [edi + 2], ax
test bl, 1
je 0x46891b
or byte [edi], 8
test bl, 4
je 0x468923
or byte [edi], 0x10
test bl, 0x10
je 0x46892b
or byte [edi], 4
pop edi
pop esi
test ax, ax
pop ebp
setne al
pop ebx
add esp, 8
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x46e590
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5e78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0x14], 0
push esi
xor edx, edx
mov dword [ebp - 0x24], ebx
lea esi, [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebx + 4]
mov eax, dword [ebx + 8]
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], eax
mov dword [ebx + 4], esi
mov dword [ebp - 4], edx
test eax, eax
jle 0x46e6a4
nop dword [eax]
cmp edx, dword [ebp + 0x10]
jl 0x46e621
cmp dword [0x4d1680], 0
mov ecx, 0x44
mov eax, dword [0x4ce8c8]
mov esi, 0x4d1340
mov edi, eax
xorps xmm0, xmm0
rep movsd dword es:[edi], dword [esi]
mov dword [eax + 0x2c], 0
movlpd qword [0x4d49b0], xmm0
je 0x46e61e
push 0x4d1460
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebx]
lea ecx, [edx + edx*2]
push 0
mov ecx, dword [eax + ecx*4]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov edx, ecx
push dword [ebp + 8]
push 0x4ac290
call fcn.0046b3d0
add esp, 0x14
test eax, eax
je 0x46e686
cmp dword [ebp - 0x14], 0
jne 0x46e665
mov edx, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x1c], edx
cmp edx, dword [ebp - 0x18]
jl 0x46e5e0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
jmp 0x46e6a7
mov ecx, dword [ebp - 0x24]
mov eax, 3
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x24]
xor eax, eax
mov edx, dword [ebp - 0x20]
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov dword [ebx + 4], ecx
mov ecx, dword [ebp - 0xc]
mov eax, 1
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46f680
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x20214
call fcn.004a4980
push esi
mov esi, dword [esp + 0x20228]
test esi, esi
je 0x46f69c
cmp word [esi], 0
jne 0x46f6a1
mov esi, str.ERROR
push 0x1fffe
lea eax, [esp + 0x21c]
push 0
push eax
call fcn.0048ce40
add esp, 0xc
xor eax, eax
mov word [esp + 4], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x10]
push eax
push 0x104
push dword [esp + 0x20228]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0x20224]
mov ecx, dword [esp + 0x20220]
cmp word [eax], 0
movzx edx, word [ecx]
je 0x46f73c
push edi
lea edi, [esp + 0x10]
test dx, dx
push edi
push 0xffff
lea edi, [esp + 0x224]
push edi
push esi
push eax
lea eax, [esp + 0x1c]
cmovne eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
pop edi
mov ecx, dword [0x4d3d98]
lea eax, [esp + 0x218]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.00475930
pop esi
add esp, 0x20214
ret 0x10
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x21c]
push 0xffff
push eax
test dx, dx
je 0x46f75c
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
jmp 0x46f762
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x46f719
lea eax, [esp + 0x218]
mov ecx, 0xa
cmp word [eax], 0
jne 0x46f782
cmp word [eax + 2], 0
je 0x46f719
mov word [eax], cx
add eax, 2
jmp 0x46f772
Function at 0x46f790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push ebx
push esi
push edi
lea eax, [ebp - 0xc]
mov esi, ecx
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 4], esi
push eax
push 0x104
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
xor edx, edx
mov dword [ebp - 8], 1
lea ecx, [ebp - 0x218]
call fcn.00473ac0
mov ebx, dword [ebp + 0x10]
test al, al
jne 0x46f888
push 0
push 0
push 1
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x46f885
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46f805
sub ecx, edx
sar ecx, 1
lea eax, [ebx + ecx*2]
push 0
mov dword [ebp + 0x10], eax
lea edi, [ecx*2 + 2]
mov ecx, 0x5d
mov word [eax], cx
lea eax, [ebp + 0xc]
push eax
push 4
push 0x4c8de4
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46f85f
cmp dword [ebp + 0xc], 4
jne 0x46f85f
push 0
lea eax, [ebp + 0xc]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x46f85f
cmp dword [ebp + 0xc], edi
je 0x46f866
mov dword [ebp - 8], 0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
neg eax
mov ecx, 0
sbb eax, eax
and eax, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov word [eax], cx
je 0x46f93f
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0x14]
cmp word [eax], 0
je 0x46f8a5
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp + 8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
jmp 0x46f901
push 0
mov ecx, esi
call fcn.00420860
lea eax, [eax*2 + 4]
call fcn.004a4700
mov edi, dword [ebp + 8]
mov eax, esp
mov dword [ebp + 0x10], eax
mov edx, eax
movzx ecx, word [edi]
test cx, cx
je 0x46f8ee
mov esi, ecx
sub edi, eax
xor ecx, ecx
movzx eax, si
cmp si, 0xa
cmovne ecx, eax
mov word [edx], cx
add edx, 2
movzx esi, word [edi + edx]
test si, si
jne 0x46f8d0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov dword [edx], ecx
lea ecx, [ebp - 0x218]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileSectionW]
mov esi, eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
test esi, esi
je 0x46f93f
mov ecx, dword [0x4d166c]
push 1
push 0
push 0xffffffffffffffff
push 0x4ac300
call fcn.00475930
lea esp, [ebp - 0x224]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [0x4ce8c8]
cmp byte [eax + 0x108], 0
jne 0x46f972
mov ecx, dword [0x4d166c]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf994
call fcn.00475930
lea esp, [ebp - 0x224]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
push 0x4ac22c
push 0
push 0x4bf994
call fcn.0042cf00
lea esp, [ebp - 0x224]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4700c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
push ebx
push ebp
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x10]
push esi
push edi
push eax
push 0
push 0
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0xff
push eax
lea eax, [esp + 0x34]
mov edi, ecx
push eax
push 0
push edi
call ebx
cmp eax, 0x103
je 0x470186
mov ebp, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
nop dword [eax + eax]
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x4ce8c8]
mov eax, dword [eax + 0xd0]
or eax, 0x20019
push eax
push 0
lea eax, [esp + 0x2c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x470190
mov ecx, dword [esp + 0x14]
call fcn.004700c0
push dword [esp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x470190
lea eax, [esp + 0x20]
push eax
push edi
call ebp
mov esi, eax
test esi, esi
jne 0x470190
lea eax, [esp + 0x18]
mov dword [esp + 0x10], 0xff
push eax
push esi
push esi
push esi
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x34]
push eax
push esi
push edi
call ebx
cmp eax, 0x103
jne 0x470110
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4701a0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov dword [esp + 8], ecx
push esi
push edi
test ebp, ebp
je 0x4702c7
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
test edi, edi
je 0x4701c7
cmp word [edi], 0
jne 0x4701cf
test ebx, ebx
je 0x4702c7
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x4ce8c8]
mov eax, dword [eax + 0xd0]
or eax, 0x2001f
push eax
push 0
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4702b8
test ebx, ebx
jne 0x4702a1
mov ecx, dword [esp + 0x18]
call fcn.004700c0
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4702b8
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4d61a8]
cmp eax, dword [ecx + 4]
jle 0x470272
push 0x4d61a8
call fcn.0048b5e3
add esp, 4
cmp dword [0x4d61a8], 0xffffffff
jne 0x470272
push str.RegDeleteKeyExW
push str.advapi32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4d61a8
mov dword [0x4d61ac], eax
call fcn.0048b599
add esp, 4
mov eax, dword [0x4ce8c8]
mov ecx, dword [eax + 0xd0]
test ecx, ecx
je 0x470295
mov eax, dword [0x4d61ac]
test eax, eax
je 0x470295
push 0
push ecx
push edi
push ebp
call eax
mov esi, eax
jmp 0x4702b8
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
jmp 0x4702b8
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0xffffffff
jne 0x4702cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
jmp 0x4702ce
mov esi, 0x57
mov ecx, esi
mov eax, dword [0x4ce8c8]
test esi, esi
mov dword [eax + 0x30], ecx
setne al
mov ecx, dword [esp + 0x10]
movzx eax, al
push eax
call fcn.0042cfe0
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc