joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a54c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c5357
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x1b0], eax
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x1c0]
mov dword fs:[0], eax
xor eax, eax
push 0x18e
push eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x2e]
push eax
call fcn.00586790
add esp, 0xc
lea eax, [esp + 0x24]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor eax, eax
mov edi, 0x6dd36c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
stosd dword es:[edi], eax
pop eax
push 0x57
mov word [0x6dd36c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [0x6dd36e], ax
lea eax, [esp + 0xc]
push eax
call fcn.00428b05
pop ecx
and dword [esp + 0x1c8], 0
cmp dword [0x6c438c], 1
jl 0x42a612
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
sar eax, 2
push eax
push str.VT_IPS:__i
push str.Helper::iniUDPInfo
push 1
call fcn.00540a02
add esp, 0x10
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x18]
sar eax, 2
test eax, eax
je 0x42a633
ja 0x42a628
call fcn.0058204a
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [0x6dd370], eax
or dword [esp + 0x1c8], 0xffffffff
lea eax, [esp + 0xc]
push eax
call fcn.00416d1e
mov ecx, dword [esp + 0x1c0]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x1b0]
xor ecx, esp
call fcn.00581268
mov esp, ebp
pop ebp
ret
Function at 0x43263f
Capabilities:
Read .ini file

Disassembly:
push 0x80c
mov eax, 0x5bcf84
call fcn.0058ec94
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.004085b5
mov dword [ebp - 0x814], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004085f6
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x10]
call fcn.004085f6
mov eax, esi
call fcn.0058ed17
ret 0xc

Function at 0x4327ab
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0xc
mov eax, 0x5c0910
call fcn.0058ec2b
mov esi, ecx
push esi
mov dword [ebp - 0x14], esi
call fcn.0040855f
xor ebx, ebx
mov dword [ebp - 4], ebx
xor eax, eax
push 0x206
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
call fcn.00586790
add esp, 0xc
push 0x104
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp]
push eax
push esi
call fcn.0040865a
push 0x5c
call fcn.0042b71b
push eax
lea eax, [ebp - 0x10]
push eax
xor ecx, ecx
mov edx, esi
call fcn.0042b830
mov byte [ebp - 4], 1
mov edi, esi
call fcn.00408619
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.004085f6
push str.urldb
push esi
call fcn.00408678
push str.LDll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x4328b3
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.LaOpenDatabase
push eax
call edi
push str.LaGetValue
push dword [esi + 8]
mov dword [esi + 0xc], eax
call edi
push str.LaSetValue
push dword [esi + 8]
mov dword [esi + 0x10], eax
call edi
push str.LaDeleteValue
push dword [esi + 8]
mov dword [esi + 0x14], eax
call edi
push str.LaCloseDatabase
push dword [esi + 8]
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x1c], eax
cmp dword [esi + 8], ebx
je 0x4328f3
cmp dword [esi + 0xc], ebx
je 0x4328f3
push ecx
mov eax, esp
mov dword [ebp - 0x18], esp
push esi
push eax
call fcn.00408586
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], bl
call fcn.00404062
pop ecx
pop ecx
mov byte [ebp - 4], 3
push dword [eax]
call dword [esi + 0xc]
mov dword [esi + 4], eax
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x10]
call fcn.004084b5
or dword [ebp - 4], 0xffffffff
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 + 0x208]
xor ecx, ebp
call fcn.00581268
add ebp, 0x20c
leave
ret
Function at 0x4335b1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x54
mov eax, 0x5c8d32
call fcn.0058ecca
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x689004
push 0x4e28
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
je 0x433788
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 0x433776
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x433776
push edi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00482855
add esp, 0xc
mov byte [ebp - 4], 2
lea eax, [ebp - 0x40]
call fcn.004170c4
test al, al
jne 0x433768
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0042ac5f
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push eax
call fcn.0040fdb0
mov byte [ebp - 4], 4
push 0x689010
lea eax, [ebp - 0x34]
push eax
call fcn.00408474
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x433670
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.00408474
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.0043351e
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x3c]
call fcn.004084b5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.004084b5
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 0x43374c
push 0x689014
lea esi, [ebp - 0x60]
call fcn.0041e10a
xor ecx, ecx
mov esi, eax
call fcn.0040fb9a
mov ebx, eax
test ebx, ebx
jle 0x433742
lea eax, [ebx + 1]
lea ecx, [ebp - 0x48]
push ecx
lea esi, [ebp - 0x60]
mov dword [ebp - 0x34], eax
call fcn.0041e10a
mov ecx, dword [ebp - 0x34]
mov edx, eax
call fcn.00434bec
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x3c]
push eax
call fcn.0041e10a
push eax
mov ecx, ebx
call fcn.00434c22
mov byte [ebp - 4], 8
push eax
push 0x6ddef0
call fcn.00434dee
mov edi, eax
mov eax, dword [ebp - 0x34]
call fcn.004084d8
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x3c]
call fcn.004084b5
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x48]
call fcn.004084b5
inc dword [ebp - 0x38]
xor ebx, ebx
jmp 0x4336ad
mov byte [ebp - 4], 3
lea eax, [ebp - 0x60]
push eax
call fcn.0040fde8
mov byte [ebp - 4], 2
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004098e5
mov byte [ebp - 4], 1
lea ebx, [ebp - 0x40]
call fcn.004170a7
xor ebx, ebx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x44], ebx
je 0x433788
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_FreeResource]
or dword [ebp - 4], 0xffffffff
call fcn.0058ed26
ret
Function at 0x434af1
Capabilities:
Create thread

Disassembly:
xor eax, eax
push eax
push eax
push 0x6de710
push 0x434b0f
push eax
push eax
call fcn.00583186
add esp, 0x18
mov dword [0x6def24], eax
ret
Function at 0x43c010
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5c4c30
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push esi
push edi
mov eax, dword [0x6c56f8]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea esi, [edi + 0x110]
push esi
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
and dword [esp + 0x40], 0
add edi, 0xb8
mov eax, edi
mov dword [esp + 0x10], edi
call fcn.0043cc73
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x28]
call fcn.0048069e
mov edi, dword [ebp + 0xc]
mov ebx, dword [edi + 0x10]
lea esi, [esp + 0x20]
call fcn.0048069e
mov ebx, dword [edi + 0xc]
lea esi, [esp + 0x18]
call fcn.0048069e
push dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push dword [esp + 0x2c]
call fcn.0044099f
mov edi, dword [ebp + 8]
add edi, 0xd0
mov dword [esp + 0x10], edi
call fcn.0043cd0c
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x30]
mov edx, dword [eax + 0x18]
mov esi, ecx
mov esi, dword [esi]
mov eax, edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], esi
jmp 0x43c10c
lea esi, [esp + 0x18]
call fcn.00418652
push eax
push dword [esp + 0x14]
lea ebx, [esp + 0x30]
call fcn.004189ac
call fcn.00436879
lea edi, [esp + 0x20]
lea esi, [esp + 0x18]
call fcn.004355da
test al, al
je 0x43c0f0
or dword [esp + 0x40], 0xffffffff
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x440d0e
Capabilities:
Reference sql statements

Disassembly:
push 0x28
mov eax, 0x5c04da
call fcn.0058ec5e
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 [0x6ddec4]
call fcn.0049d0d0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push dword [eax]
push 1
lea eax, [ebp - 0x20]
call fcn.0049cf70
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0049cd60
mov byte [ebp - 4], 2
cmp byte [ebp - 0x2c], bl
jne 0x440d63
mov byte [ebp - 0x15], 1
mov byte [ebp - 4], 1
lea esi, [ebp - 0x34]
call fcn.0049c7f0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.0049cb30
or dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x15]
call fcn.0058ed03
ret 4
Function at 0x440f26
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 0x440f60
cmp byte [esi], 0
lea ecx, [esi + 4]
push ecx
push eax
jne 0x440f50
mov byte [esi], 1
call sub.KERNEL32.dll_Process32FirstW
jmp 0x440f55
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x440f60
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 0x4423c2
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, edx
test esi, esi
jbe 0x4423d7
sub ecx, eax
mov dl, byte [ecx + eax]
xor dl, 0x67
mov byte [eax], dl
inc eax
dec esi
jne 0x4423cb
pop esi
ret

Function at 0x4424c8
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.004422de
test eax, eax
jge 0x4424fa
push 0x57
pop eax
jmp 0x442533
add ebx, 0x21c
push ebx
lea esi, [ebp - 4]
mov eax, edi
call fcn.004422de
test eax, eax
jl 0x4424f5
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x442531
call fcn.004439fa
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x442531
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x442533
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x442a5f
Capabilities:
Delete file

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

Function at 0x442e73
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.004422de
test eax, eax
jge 0x442ea5
push 0x57
pop eax
jmp 0x442ede
add ebx, 0x218
push ebx
lea esi, [ebp - 4]
mov eax, edi
call fcn.004422de
test eax, eax
jl 0x442ea0
mov eax, dword [ebp + 8]
test byte [eax + 4], 1
je 0x442edc
call fcn.004439fa
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x442edc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x442ede
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x442f25
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 0x442faa
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 0x442f8e
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 0x442f8e
or dword [esi + 8], 1
jmp 0x442f9b
lea eax, [esi + 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x442faa
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 8], 2
jne 0x442ff4
test ebx, ebx
jne 0x442ff4
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 0x442fef
push ebx
push dword [ebp - 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jne 0x442fdf
or dword [esi + 8], 2
jmp 0x442fe4
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x442ff4
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4430b7
Capabilities:
Delete file

Disassembly:
add ecx, 0x218
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
ret
Function at 0x443160
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.004422de
test eax, eax
jge 0x4431a2
mov dword [ebp + 0xc], 0x57
jmp 0x443250
lea eax, [ebx + 0x22c]
mov dword [ebp - 8], eax
push eax
lea esi, [ebp - 4]
mov eax, edi
call fcn.004422de
test eax, eax
jl 0x443196
mov edi, dword [ebp + 0xc]
test byte [edi + 4], 1
je 0x4431f3
mov ebx, dword [ebp - 8]
call fcn.004439fa
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4431e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0xc], eax
jmp 0x443250
mov edi, dword [ebp + 8]
call fcn.00443578
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x443250
jmp 0x44324c
push dword [edi + 0x41c]
lea esi, [ebp - 4]
mov eax, 0x200
call fcn.004422de
mov dword [ebp + 0xc], eax
test eax, eax
jl 0x443196
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 0x443250
push dword [edi + 0x41c]
mov eax, esi
call fcn.0044227f
test eax, eax
jl 0x443196
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 0x44329a
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 0x443364
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 0x443348
push dword [ebp - 4]
call fcn.00443492
mov ebx, eax
test ebx, ebx
jne 0x443348
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 0x443344
push dword [esi + 4]
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 8]
lea ebx, [ecx + edx + 4]
push eax
call fcn.0044241b
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
jne 0x44333b
or dword [esi + 0x1c], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x443355
lea eax, [esi + 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 4], 0
je 0x443364
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test byte [esi + 0x1c], 2
jne 0x4433b0
test ebx, ebx
jne 0x4433b0
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 0x4433ab
push dword [esi + 4]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x44339b
or dword [esi + 0x1c], 2
jmp 0x4433a0
mov ebx, 0x15e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4433b0
mov ebx, 0x15e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4433b9
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 0x443469
test al, 2
je 0x443469
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 0x443455
cmp byte [ebp + 8], bl
je 0x443437
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 0x443437
push 0x50
pop edi
jmp 0x443455
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 0x443455
xor edi, edi
cmp dword [ebp - 4], ebx
je 0x443463
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop ebx
jmp 0x44346b
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x443470
Capabilities:
Delete file

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

Function at 0x443492
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 0x443570
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 0x4434eb
mov dword [ebp - 8], 0xe
jmp 0x44355f
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 0x44355f
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.00586840
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 0x44354e
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 0x44356f
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 0x443578
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 0x4435b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x443648
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4435cf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x44363e
cmp ebx, esi
jne 0x4435dc
mov dword [ebp - 4], 0x54f
jmp 0x44363e
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.004423d9
pop ecx
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x44363e
push dword [edi + 4]
lea esi, [ebp - 0xc]
mov eax, ebx
call fcn.004422de
test eax, eax
jl 0x44363e
mov ecx, dword [ebp - 0xc]
inc ecx
inc ecx
lea eax, [ecx + 4]
cmp eax, ebx
ja 0x44363e
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 0x4437fb
Capabilities:
Check if file exists
Create directory
Get file attributes
Link many functions at runtime

Disassembly:
push esi
push 0x6884d4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push eax
mov dword [0x6dd7e4], eax
call esi
push str.ZwQueryInformationFile
push dword [0x6dd7e4]
mov dword [0x6dd9f0], eax
call esi
push 0x689fa0
push dword [0x6dd7e4]
mov dword [0x6dda00], eax
call esi
push 0x6884bc
push dword [0x6dd7e4]
mov dword [0x6dd9f8], eax
call esi
push str.ZwSetInformationFile
push dword [0x6dd7e4]
mov dword [0x6dd9f4], eax
call esi
push dword [esp + 8]
mov dword [0x6dd9fc], eax
mov esi, 0x6dd7e8
mov eax, 0x208
mov edx, esi
call fcn.0044227f
test eax, eax
jge 0x44388d
xor eax, eax
push 0x57
mov word [0x6dd7e8], ax
pop eax
pop esi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4438ad
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4438ad
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret