joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423f20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2abb
mov eax, dword fs:[0]
push eax
sub esp, 0x81c
mov eax, dword [0x4d7064]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x828], ebx
cmp word [0x4da6a0], 0
jne 0x42405a
push 0x20219
push str.SOFTWAREAnything
push SysStringLen
lea ecx, [ebp - 0x824]
mov dword [ebp - 0x824], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x81c], 0
call fcn.00418780
mov edi, dword [ebp - 0x824]
test eax, eax
jne 0x42404f
lea eax, [ebp - 0x814]
mov dword [ebp - 0x814], 0x800
push eax
lea eax, [ebp - 0x810]
push eax
lea eax, [ebp - 0x818]
push eax
push 0
push 0x4b7858
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42404f
mov eax, dword [ebp - 0x818]
cmp eax, 1
je 0x423fec
cmp eax, 2
jne 0x42404f
mov eax, dword [ebp - 0x814]
test eax, eax
je 0x424009
test al, 1
jne 0x42404f
shr eax, 1
cmp word [ebp + eax*2 - 0x812], 0
je 0x424012
jmp 0x42404f
xor eax, eax
mov word [ebp - 0x810], ax
mov ecx, 0x4da6a0
lea esi, [ebp - 0x810]
mov edx, 0x3ff
sub esi, ecx
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x424042
movzx eax, word [esi + ecx]
test ax, ax
je 0x424042
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x424024
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x42405a
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x4da6a0
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jg 0x4240ab
mov ecx, 0x4da6a0
mov esi, str.noset
mov edx, 0x3ff
sub esi, ecx
nop word [eax + eax]
lea eax, [edx + 0x7ffffbff]
test eax, eax
je 0x42409e
movzx eax, word [esi + ecx]
test ax, ax
je 0x42409e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x424080
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
call fcn.0041c870
mov ecx, eax
test ecx, ecx
je 0x42411a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x4da6a0
mov ecx, ebx
mov dword [ebp - 4], 0
call fcn.00405440
test al, al
jne 0x4240fc
mov ecx, 0x4da6a0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4240e0
sub ecx, edx
sar ecx, 1
push ecx
push 0x4da6a0
mov ecx, ebx
call fcn.00406e60
mov eax, ebx
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.0043427a
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00401de0
int3
Function at 0x425540
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2024
call fcn.00434290
mov eax, dword [0x4d7064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x425570
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043427a
mov esp, ebp
pop ebp
ret
push 0x2000
xorps xmm0, xmm0
mov dword [ebp - 0x200c], 0
lea eax, [ebp - 0x2004]
movq qword [ebp - 0x2014], xmm0
push 0
movups xmmword [ebp - 0x2024], xmm0
push eax
mov word [ebp - 0x2008], 0
mov dword [ebp - 0x2020], 3
call fcn.00460000
push 0x1000
lea eax, [ebp - 0x2004]
push esi
push eax
call fcn.00489c8d
lea eax, [ebp - 0x2004]
add esp, 0x18
mov dword [ebp - 0x201c], eax
mov eax, 0x614
mov word [ebp - 0x2014], ax
lea eax, [ebp - 0x2024]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.0043427a
mov esp, ebp
pop ebp
ret
Function at 0x425600
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x668
mov eax, dword [0x4d7064]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x425813
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425813
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425633
sub ecx, edx
sar ecx, 1
cmp ecx, 3
jbe 0x425813
push ebx
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov edi, 1
push 0
push eax
call fcn.00460000
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00460000
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x414]
add esp, 0x18
push esi
push eax
call ebx
push 0x4bc15c
lea eax, [ebp - 0x414]
push eax
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4256b4
test al, 1
je 0x4256b4
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x664]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x668], eax
cmp eax, 0xffffffff
je 0x4257f9
lea ecx, [ebp - 0x664]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4257ed
nop dword [eax]
test byte [ebp - 0x664], 0x10
je 0x425768
cmp word [ebp - 0x638], 0x2e
jne 0x425727
mov ax, word [ebp - 0x636]
test ax, ax
je 0x4257d2
cmp ax, 0x2e
jne 0x425727
cmp word [ebp - 0x634], 0
je 0x4257d2
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00460000
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call fcn.00425600
add esp, 4
jmp 0x4257d0
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.00460000
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call ebx
lea eax, [ebp - 0x638]
push eax
lea eax, [ebp - 0x20c]
push eax
call ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4257bf
test al, 1
je 0x4257bf
and eax, 0xfffffffe
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
and edi, eax
lea eax, [ebp - 0x664]
push eax
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4256f0
push dword [ebp - 0x668]
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
and eax, edi
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043427a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0043427a
mov esp, ebp
pop ebp
ret
Function at 0x425830
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x425888
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425888
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x425868
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x425888
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425883
test al, 0x10
je 0x425883
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x425888
xor eax, eax
pop esi
pop ebp
ret
mov eax, 1
pop esi
pop ebp
ret
Function at 0x425e60
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x425e8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str.delete__s_failed__error_d
call fcn.004217c0
add esp, 0xc
mov eax, 1
pop esi
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x425e87
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x425eb5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x425e72
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor eax, eax
pop esi
pop ebp
ret
Function at 0x425ed0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b2e06
mov eax, dword fs:[0]
push eax
sub esp, 0x880
mov eax, dword [0x4d7064]
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 ebx, dword [ebp + 8]
test ebx, ebx
jne 0x425f0c
xor eax, eax
jmp 0x426112
cmp word [ebx], 0
je 0x425f05
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425f17
sub ecx, edx
sar ecx, 1
cmp ecx, 0x104
jge 0x425f05
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00460000
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x4bbc2c
push ebx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x425f72
test al, 1
je 0x425f72
and eax, 0xfffffffe
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, 0x5c
mov dword [ebp - 0x428], 0
mov word [ebp - 0x42c], ax
mov dword [ebp - 0x424], 0
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x884]
call fcn.00425890
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x4260c2
cmp dword [ebp - 0x424], 0
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
je 0x426021
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x426021
cmp word [ebp - 0x858], 0x2e
jne 0x426021
mov ax, word [ebp - 0x856]
test ax, ax
je 0x425ffc
cmp ax, 0x2e
jne 0x426021
cmp word [ebp - 0x854], 0
jne 0x426021
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x42612e
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
jmp 0x4260b4
lea eax, [ebp - 0x888]
push eax
lea ecx, [ebp - 0x884]
call fcn.0041e160
cmp dword [ebp - 0x424], 0
mov byte [ebp - 4], 1
je 0x42605c
mov eax, dword [ebp - 0x884]
shr eax, 4
and eax, 1
je 0x42605c
mov esi, dword [ebp - 0x888]
push esi
call fcn.00425ed0
jmp 0x426068
mov esi, dword [ebp - 0x888]
push esi
call fcn.00425e60
mov eax, dword [ebp - 0x428]
add esp, 4
test eax, eax
jne 0x426079
xor edi, edi
jmp 0x426098
cmp dword [ebp - 0x424], 0
jne 0x426086
xor edi, edi
jmp 0x426098
lea ecx, [ebp - 0x884]
push ecx
push eax
call edi
mov edi, eax
mov dword [ebp - 0x424], edi
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4260b4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x425fb9
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x428]
mov dword [ebp - 0x424], 0
test eax, eax
je 0x4260e8
cmp eax, 0xffffffff
je 0x4260e8
push eax
call esi
mov dword [ebp - 0x428], 0
push ebx
call fcn.00425540
mov eax, dword [ebp - 0x428]
add esp, 4
mov dword [ebp - 0x424], 0
test eax, eax
je 0x42610d
cmp eax, 0xffffffff
je 0x42610d
push eax
call esi
mov eax, 1
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.0043427a
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x424], 0
jmp 0x4260e8
Function at 0x426300
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x4d7064]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x4263c1
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.00460000
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4263ab
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.00460000
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push str.anything
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x4263c1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043427a
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.00460000
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.00402400
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0047b32e
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x426421
cmp eax, 0x207
ja 0x426421
jne 0x426428
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426431
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043427a
mov esp, ebp
pop ebp
ret
Function at 0x4333b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
push esi
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4333d9
mov dword [ebx + 0xc], 0
mov dword [ebx + 8], 0
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [ebx + 4], 0
movzx eax, word [ebp + 8]
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
jne 0x4333fa
xor esi, esi
jmp 0x4334ed
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x4334ed
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp + 8], eax
test eax, eax
jne 0x43342b
xor esi, esi
jmp 0x4334ed
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x433448
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x4334ed
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x433468
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor esi, esi
jmp 0x4334ed
push esi
push dword [ebp + 8]
push eax
call fcn.0045fa80
add esp, 0xc
mov dword [ebp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 0x10]
xor esi, esi
test eax, eax
je 0x433492
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp + 0x10]
push eax
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4334d9
mov edi, dword [ebp + 0x10]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4334d5
lea eax, [ebp + 8]
mov dword [esi], vtable.Gdiplus::Bitmap.0
push eax
push edi
mov dword [ebp + 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
jmp 0x4334e0
xor esi, esi
jmp 0x4334e0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x4334ed
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebx + 4], esi
pop edi
test esi, esi
jne 0x4334fd
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], 0
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageWidth
test eax, eax
je 0x433517
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebx + 4]
mov dword [ebx + 8], eax
lea eax, [ebp + 0x10]
push eax
mov dword [ebp + 0x10], 0
push dword [esi + 4]
call sub.gdiplus.dll_GdipGetImageHeight
test eax, eax
je 0x43353a
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov ecx, ebx
mov dword [ebx + 0xc], eax
call fcn.00433230
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x439030
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00438ba0
Function at 0x43a310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b3b53
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x4d7064]
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 edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00437590
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x43a523
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x43a523
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x43a523
push eax
call esi
test eax, eax
je 0x43a523
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push SysStringLen
call fcn.0043a260
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x43a514
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.00460000
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43a514
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x43a43b
cmp eax, 2
jne 0x43a514
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x43a45c
test cl, 1
jne 0x43a514
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x43a462
jmp 0x43a514
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x43a514
lea ecx, [ebp - 0x78]
call fcn.00438600
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.004386e0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x4b76c8
push eax
call fcn.00402450
push 0x2a
push dword [ebp - 0x78]
call fcn.00438ba0
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x43a50c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x43a4c2
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.00438380
push dword [0x4d70a0]
lea eax, [ebp - 0x74]
push dword [0x4d709c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x43a4fd
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.00421c70
mov edi, 1
jmp 0x43a516
lea ecx, [ebp - 0x78]
call fcn.00421c70
xor edi, edi
test esi, esi
je 0x43a525
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43a525
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
call esi
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 - 0x10]
xor ecx, ebp
call fcn.0043427a
mov esp, ebp
pop ebp
ret
Function at 0x43a560
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x43a575
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x43a580
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43d850
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x43d8c1
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x43d88f
cmp eax, 2
jne 0x43d8ab
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x43d8bb
test ecx, ecx
je 0x43d8b6
test cl, 1
jne 0x43d8ab
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x43d8bb
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x43ec30
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4d7064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
xor esi, esi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], ebx
test edi, edi
je 0x43edf8
test eax, eax
je 0x43edf8
mov ecx, dword [ebp + 0x10]
cmp ecx, 0x20
jl 0x43edf8
push ecx
push ebx
push eax
call fcn.00460000
add esp, 0xc
push ebx
push 1
push 3
push ebx
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x84], edi
test edi, edi
je 0x43edf8
cmp edi, 0xffffffff
je 0x43edf1
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.00404480
add esp, 8
lea eax, [ebp - 0x78]
xorps xmm0, xmm0
movq qword [ebp - 0x78], xmm0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x43edf1
mov eax, dword [ebp - 0x78]
or eax, dword [ebp - 0x74]
je 0x43ed87
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edx, eax
mov dword [ebp - 0x70], edx
test edx, edx
je 0x43edf1
mov ecx, dword [ebp - 0x74]
xorps xmm0, xmm0
movq qword [ebp - 0x8c], xmm0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jg 0x43ed87
mov esi, dword [ebp - 0x78]
mov edi, dword [ebp - 0x8c]
jl 0x43ed20
cmp edi, esi
jae 0x43ed87
nop
sub esi, edi
sbb ecx, eax
js 0x43ed35
jg 0x43ed30
cmp esi, 0x400000
jb 0x43ed35
mov esi, 0x400000
push esi
push edi
push eax
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x43ed87
push esi
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004044d0
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x7c]
xor ebx, ebx
mov ecx, dword [ebp - 0x74]
add edi, 0x400000
adc eax, ebx
mov dword [ebp - 0x7c], eax
cmp eax, ecx
jge 0x43ed7b
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
jmp 0x43ed20
jg 0x43ed87
mov esi, dword [ebp - 0x78]
mov edx, dword [ebp - 0x70]
cmp edi, esi
jb 0x43ed20
lea eax, [ebp - 0x6c]
push eax
call fcn.004041b0
mov edi, dword [ebp - 0x80]
add esp, 4
xor esi, esi
nop dword [eax + eax]
movzx eax, byte [ebp + esi - 0x14]
push eax
push str._02x
push 3
push edi
call fcn.0043f220
inc esi
add esp, 0x10
add edi, 2
cmp esi, 0x10
jl 0x43eda0
push dword [ebp + 0x10]
push dword [ebp - 0x80]
call fcn.00493889
add esp, 8
mov esi, 1
test ebx, ebx
je 0x43eddd
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x70]
test eax, eax
je 0x43edeb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x84]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043427a
mov esp, ebp
pop ebp
ret

Function at 0x440487
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret