joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4248ac
Capabilities:
Set registry value

Disassembly:
push 4
mov eax, 0x5a85dd
call fcn.00580e6b
mov dword [ebp - 4], 1
xor ebx, ebx
mov dword [ebp - 0x10], ebx
cmp byte [0x6c8ed0], bl
je 0x4248d8
cmp byte [ebp + 0x14], bl
je 0x4248d8
mov eax, 0x102
jmp 0x4248db
push 2
pop eax
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x424915
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push dword [ebp + 0xc]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp + 8]
call fcn.004085a2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.004085a2
call fcn.00580f43
ret

Function at 0x4249fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x800
lea ebp, [esp - 4]
mov eax, dword [0x6b06f8]
xor eax, ebp
mov dword [ebp + 0x800], eax
push 0x10
mov eax, 0x5b146f
call fcn.00580e6b
xor ebx, ebx
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call fcn.0040850b
mov dword [ebp - 4], ebx
xor esi, esi
push str.SoftwareVibraniumHomeGlobal
lea eax, [ebp - 0x10]
inc esi
push eax
mov dword [ebp - 0x18], esi
call fcn.00408561
mov dword [ebp - 4], esi
xor eax, eax
push 0x7fe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
call fcn.005783f0
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
push ebx
push str.Renewed
push dword [ebp - 0x10]
mov dword [ebp - 0x14], 0x400
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x424aa0
mov eax, dword [ebp - 0x14]
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2], cx
lea eax, [ebp]
push eax
push edi
call fcn.00408606
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.004085a2
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x800]
xor ecx, ebp
call fcn.0057372c
add ebp, 0x804
leave
ret
Function at 0x42c59d
Capabilities:
Read .ini file

Disassembly:
push 0x80c
mov eax, 0x5b11d8
call fcn.00580ed4
mov eax, dword [ebp + 8]
and dword [ebp - 0x814], 0
mov dword [ebp - 0x818], esi
mov dword [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x810]
push 0x400
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str.SETTINGS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x810]
push eax
push esi
call fcn.00408561
mov dword [ebp - 0x814], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004085a2
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004085a2
mov eax, esi
call fcn.00580f57
ret 0xc
Function at 0x42d2de
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x54
mov eax, 0x5b729f
call fcn.00580f0a
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x67891c
push 0x4e28
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x42d4b5
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 1
cmp eax, ebx
je 0x42d4a3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x42d4a3
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0046c3b9
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
call fcn.0042f322
test al, al
jne 0x42d495
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.00428ce4
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push eax
call fcn.004137bf
mov byte [ebp - 4], 4
push 0x678928
lea eax, [ebp - 0x34]
push eax
call fcn.00408420
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x42d39d
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00408420
mov byte [ebp - 4], 6
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0042d24b
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.00408461
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.00408461
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x50]
sub eax, dword [ebp - 0x54]
sar eax, 2
mov edi, dword [ebp - 0x38]
cmp edi, eax
jae 0x42d479
push 0x678930
lea esi, [ebp - 0x60]
call fcn.00413946
xor ecx, ecx
mov esi, eax
call fcn.00419e83
mov ebx, eax
test ebx, ebx
jle 0x42d46f
lea eax, [ebx + 1]
lea ecx, [ebp - 0x48]
push ecx
lea esi, [ebp - 0x60]
mov dword [ebp - 0x34], eax
call fcn.00413946
mov ecx, dword [ebp - 0x34]
mov edx, eax
call fcn.0042f1e8
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x3c]
push eax
call fcn.00413946
push eax
mov ecx, ebx
call fcn.0042f21e
mov byte [ebp - 4], 8
push eax
push 0x6c8e80
call fcn.0042f4a5
mov edi, eax
mov eax, dword [ebp - 0x34]
call fcn.00408484
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.00408461
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.00408461
inc dword [ebp - 0x38]
xor ebx, ebx
jmp 0x42d3da
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push eax
call fcn.00413dd2
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00409746
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x40]
call fcn.00426993
xor ebx, ebx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], ebx
je 0x42d4b5
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FreeResource]
or dword [ebp - 4], 0xffffffff
call fcn.00580f66
ret
Function at 0x42effc
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push 0x6c9480
push 0x42f01a
push eax
push eax
call fcn.005755cb
add esp, 0x18
mov dword [0x6c9bc4], eax
ret

Function at 0x431861
Capabilities:
Link many functions at runtime

Disassembly:
push 0xc
mov eax, 0x5b4705
call fcn.00580e9e
mov edi, 0x6c9f5c
mov dword [ebp - 0x18], edi
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
call fcn.00431c16
pop ecx
mov byte [ebp - 4], 2
push dword [eax]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x6c9f40], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.004085a2
mov eax, dword [0x6c9f40]
test eax, eax
je 0x43190f
push 0x678b48
push eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov dword [0x6c9f48], eax
push str.uninstall
push dword [0x6c9f40]
call esi
mov dword [0x6c9f4c], eax
push str.createMyClass
push dword [0x6c9f40]
call esi
mov dword [0x6c9f44], eax
push str.close
push dword [0x6c9f40]
call esi
mov dword [0x6c9f50], eax
push str.setParams
push dword [0x6c9f40]
call esi
mov dword [0x6c9f54], eax
and dword [ebp - 4], 0
jmp 0x431924
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00580f43
ret

Function at 0x431dc5
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x5ae20d
call fcn.00580e9e
xor ebx, ebx
mov byte [ebp - 0x15], bl
mov dword [ebp - 4], ebx
push str.SELECT_filepath_FROM_pcdb_WHERE_filepath____COLLATE_NOCASE_
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [0x6c8e58]
call fcn.00484810
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push dword [eax]
push 1
lea eax, [ebp - 0x20]
call fcn.004846b0
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004844a0
mov byte [ebp - 4], 2
cmp byte [ebp - 0x2c], bl
jne 0x431e1a
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], 1
lea esi, [ebp - 0x34]
call fcn.00483f30
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00484270
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x15]
call fcn.00580f43
ret 4

Function at 0x431fdd
Capabilities:
Enumerate processes

Disassembly:
push esi
mov esi, eax
mov eax, dword [esi + 0x234]
push edi
mov byte [esi + 0x230], 0
cmp eax, 0xffffffff
je 0x432017
cmp byte [esi], 0
lea ecx, [esi + 4]
push ecx
push eax
jne 0x432007
mov byte [esi], 1
call sub.KERNEL32.dll_Process32FirstW
jmp 0x43200c
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x432017
mov byte [esi + 0x230], 1
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
add esi, 4
mov ecx, 0x8c
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
ret 4

Function at 0x432171
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
jbe 0x432186
sub ecx, eax
mov dl, byte [ecx + eax]
xor dl, 0x67
mov byte [eax], dl
inc eax
dec esi
jne 0x43217a
pop esi
ret
Function at 0x432277
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, eax
lea edi, [ebx + 4]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x14]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.0043208d
test eax, eax
jge 0x4322a9
push 0x57
pop eax
jmp 0x4322e2
add ebx, 0x21c
push ebx
lea esi, [ebp - 4]
mov eax, edi
call fcn.0043208d
test eax, eax
jl 0x4322a4
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x4322e0
call fcn.004337a9
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4322e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4322e2
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x43284e
Capabilities:
Delete file

Disassembly:
add ecx, 0x21c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov ebx, eax
lea edi, [ebx + 4]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0x10]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.0043208d
test eax, eax
jge 0x432c94
push 0x57
pop eax
jmp 0x432ccd
add ebx, 0x218
push ebx
lea esi, [ebp - 4]
mov eax, edi
call fcn.0043208d
test eax, eax
jl 0x432c8f
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x432ccb
call fcn.004337a9
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x432ccb
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x432ccd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x432cd4
Capabilities:
Delete file
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
mov edi, eax
and eax, 0x100
xor ebx, ebx
and edi, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
test byte [esi + 8], 1
mov dword [ebp - 8], eax
jne 0x432d59
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
lea eax, [esi + 0x10]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x432d3d
push 2
push eax
lea eax, [esi + 0x218]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSaveKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x432d3d
or dword [esi + 8], 1
jmp 0x432d4a
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x432d59
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 8], 2
jne 0x432da3
test ebx, ebx
jne 0x432da3
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
lea eax, [esi + 0x10]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x432d9e
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x432d8e
or dword [esi + 8], 2
jmp 0x432d93
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x432da3
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x432e66
Capabilities:
Delete file

Disassembly:
add ecx, 0x218
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret
Function at 0x432f0f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
lea edi, [ebx + 0x18]
mov ecx, 0x108
rep movsd dword es:[edi], dword [esi]
and dword [ebx + 0x434], 0
lea eax, [ebx + 0x24]
push eax
mov edi, 0x208
lea esi, [ebp - 4]
mov eax, edi
call fcn.0043208d
test eax, eax
jge 0x432f51
mov dword [ebp + 0xc], 0x57
jmp 0x432fff
lea eax, [ebx + 0x22c]
mov dword [ebp - 8], eax
push eax
lea esi, [ebp - 4]
mov eax, edi
call fcn.0043208d
test eax, eax
jl 0x432f45
mov edi, dword [ebp + 0xc]
test byte [edi + 4], 1
je 0x432fa2
mov ebx, dword [ebp - 8]
call fcn.004337a9
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x432f91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x432fff
mov edi, dword [ebp + 8]
call fcn.00433327
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x432fff
jmp 0x432ffb
push dword [edi + 0x41c]
lea esi, [ebp - 4]
mov eax, 0x200
call fcn.0043208d
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x432f45
mov esi, dword [ebp - 4]
inc esi
inc esi
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [ebx + 4], edx
test edx, edx
je 0x432fff
push dword [edi + 0x41c]
mov eax, esi
call fcn.0043202e
test eax, eax
jl 0x432f45
mov eax, dword [ebx + 4]
mov dword [ebx + 8], esi
mov dword [ebx + 0x434], eax
and dword [ebp + 0xc], 0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x433049
Capabilities:
Delete file
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
push edi
mov edi, eax
and eax, 0x100
xor ebx, ebx
and edi, 0xfffffcff
neg eax
sbb eax, eax
and eax, 0xffffff00
add eax, 0xf023f
test byte [esi + 0x1c], 1
mov dword [ebp - 0xc], eax
jne 0x433113
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
lea eax, [esi + 0x24]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x4330f7
push dword [ebp - 4]
call fcn.00433241
mov ebx, eax
test ebx, ebx
jne 0x4330f7
push eax
push 0x80
push 2
push eax
push 1
push 0x40000000
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4330f3
push dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
lea ebx, [ecx + edx + 4]
push eax
call fcn.004321ca
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x4330ea
or dword [esi + 0x1c], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x433104
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x433113
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 0x1c], 2
jne 0x43315f
test ebx, ebx
jne 0x43315f
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
lea eax, [esi + 0x24]
push ebx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x43315a
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x43314a
or dword [esi + 0x1c], 2
jmp 0x43314f
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43315f
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x433168
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x1c]
test al, 1
je 0x433218
test al, 2
je 0x433218
mov eax, dword [esi + 0x20]
mov ecx, eax
push ebx
and eax, 0x100
xor ebx, ebx
and ecx, 0xfffffcff
neg eax
push edi
sbb eax, eax
and eax, 0xffffff00
lea edx, [ebp - 4]
push edx
add eax, 0xf023f
push eax
push ebx
lea eax, [esi + 0x24]
push eax
push ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x433204
cmp byte [ebp + 8], bl
je 0x4331e6
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [esi + 4]
mov dword [ebp + 8], ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4331e6
push 0x50
pop edi
jmp 0x433204
push dword [esi + 0x10]
push dword [esi + 0xc]
push dword [esi + 0x14]
push ebx
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp edi, ebx
jne 0x433204
xor edi, edi
cmp dword [ebp - 4], ebx
je 0x433212
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
jmp 0x43321a
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x43321f
Capabilities:
Delete file

Disassembly:
add ecx, 0x22c
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret

Function at 0x433241
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [esi + 4]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp eax, edi
jne 0x43331f
mov eax, dword [esi + 8]
mov ecx, dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
lea eax, [ecx + eax + 4]
push eax
push 8
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
jne 0x43329a
mov dword [ebp - 8], 0xe
jmp 0x43330e
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 8]
lea eax, [edi + eax + 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [esi + 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x43330e
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 8]
mov dword [esi + 0x14], eax
mov dword [edi + ecx], eax
push dword [esi + 8]
push dword [esi + 4]
push edi
call fcn.005784a0
mov eax, dword [ebp - 4]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 8]
lea eax, [edi + eax + 4]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
add esp, 0xc
test eax, eax
je 0x4332fd
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi + 4], edi
mov eax, dword [esi + 4]
xor edi, edi
mov dword [esi + 0x434], eax
mov dword [ebp - 8], edi
test edi, edi
je 0x43331e
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop ebx
mov eax, dword [ebp - 8]
pop edi
leave
ret 4
Function at 0x433327
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
lea eax, [edi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x433363
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4333f7
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43337e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4333ed
cmp ebx, esi
jne 0x43338b
mov dword [ebp - 4], 0x54f
jmp 0x4333ed
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [ebp - 8]
mov esi, ebx
mov dword [edi + 4], eax
mov dword [edi + 0x434], eax
call fcn.00432188
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x4333ed
push dword [edi + 4]
lea esi, [ebp - 0xc]
mov eax, ebx
call fcn.0043208d
test eax, eax
jl 0x4333ed
mov ecx, dword [ebp - 0xc]
inc ecx
inc ecx
lea eax, [ecx + 4]
cmp eax, ebx
ja 0x4333ed
mov eax, dword [edi + 4]
add eax, ecx
mov edx, dword [eax]
add eax, 4
sub ebx, ecx
sub ebx, 4
mov dword [edi + 0x14], edx
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [ebp - 4]
pop esi
leave
ret

Function at 0x4335aa
Capabilities:
Check if file exists
Create directory
Get file attributes
Link many functions at runtime

Disassembly:
push esi
push 0x677b04
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push eax
mov dword [0x6c8794], eax
call esi
push str.ZwQueryInformationFile
push dword [0x6c8794]
mov dword [0x6c89a0], eax
call esi
push 0x678d68
push dword [0x6c8794]
mov dword [0x6c89b0], eax
call esi
push 0x677aec
push dword [0x6c8794]
mov dword [0x6c89a8], eax
call esi
push str.ZwSetInformationFile
push dword [0x6c8794]
mov dword [0x6c89a4], eax
call esi
push dword [esp + 8]
mov dword [0x6c89ac], eax
mov esi, 0x6c8798
mov eax, 0x208
mov edx, esi
call fcn.0043202e
test eax, eax
jge 0x43363c
xor eax, eax
push 0x57
mov word [0x6c8798], ax
pop eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43365c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43365c
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret
Function at 0x4337a9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x6b06f8]
xor eax, ebp
mov dword [ebp + 0x190], eax
and dword [ebp - 0x7c], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x433846
push esi
push edi
mov edi, 0x208
push ebx
lea esi, [ebp - 0x80]
mov eax, edi
mov dword [ebp - 0x7c], 3
call fcn.0043208d
test eax, eax
jne 0x433844
mov eax, dword [ebp - 0x80]
shr eax, 1
je 0x433844
cmp word [ebx + eax*2], 0x5c
je 0x433804
dec eax
jne 0x4337f8
jmp 0x433844
lea esi, [ebx + eax*2]
test esi, esi
je 0x433844
push 0x6c8798
mov eax, edi
lea edx, [ebp - 0x78]
call fcn.0043202e
push esi
lea edi, [ebp - 0x78]
call fcn.00432059
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x433844
mov eax, edi
push eax
mov eax, 0x208
mov edx, ebx
call fcn.0043202e
and dword [ebp - 0x7c], 0
pop edi
pop esi
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp - 0x7c]
xor ecx, ebp
call fcn.0057372c
add ebp, 0x194
leave
ret
Function at 0x4341d5
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x684
mov eax, dword [0x6b06f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x684], eax
push 0x6c8798
mov eax, 0x208
lea edx, [ebp - 0x41c]
call fcn.0043202e
push str..Q
lea edi, [ebp - 0x41c]
call fcn.00432059
lea eax, [ebp - 0x67c]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4342d0
lea eax, [ebp - 0x650]
push eax
lea esi, [ebp - 0x680]
mov eax, 0x208
call fcn.0043208d
test eax, eax
jl 0x4342b3
mov eax, dword [ebp - 0x680]
shr eax, 1
sub eax, 4
lea esi, [eax + eax]
mov dword [ebp - 0x680], eax
push esi
lea eax, [ebp - 0x64e]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.005784a0
xor eax, eax
mov word [ebp + esi - 0x214], ax
add esp, 0xc
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.RPCRT4.dll_UuidFromStringW]
test eax, eax
jne 0x4342b3
push dword [ebp - 0x684]
lea eax, [ebp - 0x42c]
push eax
call fcn.0045399e
pop ecx
pop ecx
test al, al
je 0x4342d0
lea eax, [ebp - 0x67c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x434233
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0057372c
leave
ret

Function at 0x4384b3
Capabilities:
Initialize winsock library

Disassembly:
push 0x198
mov eax, 0x5ae0dc
call fcn.00580ed4
mov edi, 0x6c9e20
push 0x6c9e24
mov dword [ebp - 0x1a4], edi
mov dword [0x6c9e20], 0x676f1c
call fcn.0044884e
xor esi, esi
mov dword [ebp - 4], esi
push esi
push esi
push 1
push esi
mov dword [0x6c9e3c], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x6c9e40], eax
mov dword [ebp - 4], 1
push 0x6c9e44
mov dword [0x6c9e20], 0x679bc0
call fcn.0040850b
mov byte [ebp - 4], 2
push 0x6c9e50
mov dword [0x6c9e4c], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x190
lea eax, [ebp - 0x1a0]
push esi
push eax
mov dword [0x6c9e48], esi
call fcn.005783f0
add esp, 0xc
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
or dword [ebp - 4], 0xffffffff
mov eax, edi
call fcn.00580f57
ret