joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10063205
Capabilities:
Get file version info

Disassembly:
push 0x2c
mov eax, 0x1008c10e
call fcn.100853c9
mov ebx, ecx
test ebx, ebx
jne 0x10063222
push 0x80004003
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
cmp word [0x1009f6f8], 0
jne 0x10063326
push 0x100109c0
lea ecx, [ebp - 0x14]
call fcn.10015f77
and dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0x10010a80
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x1006325c
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
and dword [ebp - 0x1c], 0
push 1
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.PhotoBase.dll_void____cdecl_BasePrivate::New_unsigned_int__bool_]
pop ecx
pop ecx
mov edi, eax
push edi
push esi
push 0
push 0x10010a80
mov dword [ebp - 0x1c], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x10063256
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x1000c52c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x100632a9
push 0x80004005
jmp 0x1006321c
mov esi, dword [ebp - 0x20]
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [ebp - 0x18]
call fcn.10015daa
mov byte [ebp - 4], 2
movzx eax, word [esi + 0x14]
push eax
movzx eax, word [esi + 0x16]
push eax
movzx eax, word [esi + 0x10]
push eax
movzx eax, word [esi + 0x12]
push eax
lea eax, [ebp - 0x18]
push 0x10010a00
push eax
call fcn.1001e1df
mov esi, dword [ebp - 0x18]
lea ecx, [ebp - 0x14]
add esp, 0x18
push dword [esi - 0xc]
push esi
call fcn.1001b2c9
push dword [ebp - 0x14]
mov ecx, 0x1009f6f8
push 0x50
pop edx
call fcn.1001b46e
lea ecx, [esi - 0x10]
call fcn.10015dfc
test edi, edi
je 0x10063317
push edi
call dword [sym.imp.PhotoBase.dll_void___cdecl_BasePrivate::Delete_void__]
pop ecx
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.10015dfc
mov esi, dword [ebx]
lea edi, [ebp - 0x38]
xor eax, eax
stosd dword es:[edi], eax
push 0x1f
mov ecx, dword [esi + 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
pop eax
mov word [ebp - 0x38], ax
lea eax, [ebp - 0x38]
push eax
push 0x10010a18
push ebx
mov dword [ebp - 0x30], 0x1009f6f8
call dword [0x100a0bc0]
call dword [esi + 0x1c]
test eax, eax
jns 0x1006335f
push eax
jmp 0x1006321c
call fcn.10085378
ret
Function at 0x1006436b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc
mov eax, 0x1008c399
call fcn.10085435
mov esi, ecx
and dword [ebp - 4], 0
push 0x1000cc4c
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x1006439a
mov eax, 0x80004005
jmp 0x1006443a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10064390
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10064390
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x10064390
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
mov ecx, ebx
call fcn.10066eca
test eax, eax
jns 0x100643f8
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x10064390
add eax, 8
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x100a0bc0]
call esi
jmp 0x10064390
mov edi, dword [ebp - 0x18]
push dword [ebp + 0xc]
add edi, 8
push 0x10006648
push edi
mov eax, dword [edi]
mov esi, dword [eax]
mov ecx, esi
call dword [0x100a0bc0]
call esi
mov esi, dword [edi]
mov ebx, eax
mov byte [ebp - 4], 0
push edi
mov ecx, dword [esi + 8]
call dword [0x100a0bc0]
call dword [esi + 8]
test ebx, ebx
jns 0x10064438
mov eax, ebx
jmp 0x1006443a
xor eax, eax
call fcn.10085387
ret 8
Function at 0x1006ab53
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, edx
mov dword [ebp - 0x60], eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push 0x40
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x68], esi
mov dword [edi], ebx
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x5c]
push 0x20
push eax
push 0x1014
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006ac6b
push ebx
lea eax, [ebp - 0x64]
mov dword [ebp - 0x64], ebx
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.msvcrt.dll_wcstol]
add esp, 0xc
sub eax, 1
je 0x1006ac65
sub eax, 1
jne 0x1006ac6b
push 0x10010cc4
push esi
mov dword [edi], 1
call dword [sym.imp.msvcrt.dll_wcspbrk]
pop ecx
pop ecx
test eax, eax
je 0x1006ac6b
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
push 0xb
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
push eax
push 0x13
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1006ac6b
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, bx
jne 0x1006ac0f
sub esi, ecx
mov ecx, dword [ebp - 0x60]
sar esi, 1
push esi
call fcn.10015cd6
mov edx, eax
test esi, esi
jle 0x1006ac58
mov edi, dword [ebp - 0x68]
mov ebx, esi
sub edi, edx
movzx ecx, word [edi + edx]
lea eax, [ecx - 0x30]
cmp ax, 9
ja 0x1006ac4d
movzx eax, word [ebp + ecx*2 - 0x7c]
test ax, ax
je 0x1006ac4d
mov ecx, eax
mov word [edx], cx
add edx, 2
sub ebx, 1
jne 0x1006ac34
mov ecx, dword [ebp - 0x60]
push esi
call fcn.10015d03
mov bl, 1
jmp 0x1006ac6b
mov dword [edi], 1
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084510
mov esp, ebp
pop ebp
ret 4
Function at 0x1006bca8
Capabilities:
Get file size

Disassembly:
push 0x2c
mov eax, 0x1008c8c8
call fcn.10085435
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
push ecx
inc ebx
mov dword [ebp - 0x2c], esi
push 0
mov byte [esi + 0x40], bl
call fcn.1006c321
and dword [ebp - 4], 0
mov ecx, edi
call fcn.1006c690
lea eax, [ebp - 0x24]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
jne 0x1006bcfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1006bcfa
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x24], 0
ja 0x1006bd15
cmp eax, 0xffffffff
ja 0x1006bd15
test eax, eax
je 0x1006bdd4
cmp eax, 8
ja 0x1006bd20
push 0x8000ffff
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
add eax, 0xfffffff8
xor edx, edx
push 0xc
pop ecx
mov dword [ebp - 0x20], eax
div ecx
mov dword [ebp - 0x24], eax
test edx, edx
jne 0x1006bd15
push 8
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.1006c659
cmp eax, 8
jne 0x1006bd15
mov edx, str.tscny725
lea ecx, [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1006bd15
mov eax, dword [ecx + 4]
cmp eax, dword [edx + 4]
jne 0x1006bd15
cmp dword [ebp - 0x20], 0
je 0x1006bdd4
push ecx
push dword [ebp - 0x24]
mov ecx, esi
call fcn.1006c321
test al, al
jne 0x1006bd78
push 0x8007000e
jmp 0x1006bd1a
push dword [ebp - 0x20]
mov ecx, edi
push dword [esi]
call fcn.1006c659
cmp eax, dword [ebp - 0x20]
jne 0x1006bd15
mov ecx, dword [esi + 4]
cmp ecx, ebx
jbe 0x1006bdd4
test ecx, ecx
jne 0x1006bd9f
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_ATL::BaseAtlThrow_long_int_]
mov esi, dword [esi]
mov edx, dword [esi]
cmp ebx, ecx
jae 0x1006bdd4
imul eax, ebx, 0xc
mov eax, dword [eax + esi]
cmp eax, edx
jle 0x1006bd15
mov edx, eax
inc ebx
jmp 0x1006bda3
call fcn.10085387
ret 4
Function at 0x1006c201
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 4
mov eax, 0x1008c990
call fcn.10085396
lea edi, [ecx + 0x44]
mov ecx, dword [edi]
cmp dword [ecx - 0xc], 0
jne 0x1006c2be
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [ebp - 0x10]
call fcn.10015daa
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0x104
call fcn.10015cd6
push 1
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
call fcn.10012c6e
push eax
lea ecx, [ebp - 0x10]
call fcn.10015d03
mov byte [ebp - 4], 0
test esi, esi
jne 0x1006c273
push 0x80004005
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
push 0x10010d18
lea ecx, [ebp - 0x10]
call fcn.1001eb2a
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1006c295
mov ecx, dword [ebp - 0x10]
call fcn.1006c451
push 0x10010d50
lea ecx, [ebp - 0x10]
call fcn.1001eb2a
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
call fcn.1001e9fb
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.10015dfc
mov ecx, dword [edi]
add ecx, 0xfffffff0
call fcn.1001b324
lea ecx, [eax + 0x10]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
call fcn.10085364
ret 4

Function at 0x1006c451
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov edx, ecx
xor ebx, ebx
push esi
push edi
mov esi, ebx
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
cmp ax, bx
jne 0x1006c472
sub edx, edi
mov eax, 0x104
sar edx, 1
cmp edx, eax
jb 0x1006c495
push 0x80070057
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::Throw_long_int_]
push ecx
mov edx, eax
lea ecx, [ebp - 0x20c]
call fcn.1001b46e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x1006c51b
push 0x5c
pop edi
lea eax, [ebp - 0x20c]
inc esi
push edi
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x1006c517
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x1006c4b7
jmp 0x1006c517
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x1006c4ed
sub ecx, edx
lea eax, [ebp - 0x20c]
sar ecx, 1
dec esi
push ebx
push eax
mov word [ebp + ecx*2 - 0x20c], di
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x1006c52c
test esi, esi
jne 0x1006c4e4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084510
mov esp, ebp
pop ebp
ret
call dword [sym.imp.PhotoBase.dll_void___stdcall_Base::ThrowLastError_void_]
int3
Function at 0x10070848
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 9
push esi
mov esi, ecx
je 0x10070872
cmp dword [ebp + 0xc], 0xd
je 0x1007086e
cmp dword [ebp + 0xc], 0x1b
jne 0x10070866
push 0
jmp 0x10070888
mov eax, dword [ebp + 0x14]
and dword [eax], 0
jmp 0x1007088d
push 1
jmp 0x10070888
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
test ax, ax
sets cl
add ecx, 3
push ecx
mov ecx, esi
call fcn.1007068a
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x100714ae
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x1008ce2b
call fcn.100853c9
mov ebx, ecx
mov dword [ebp - 0x38], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], edi
mov ecx, dword [edi]
and dword [ebx + 8], 0
mov dword [ebx + 4], 0x10002610
mov dword [ebx], 0x1000388c
mov dword [ebx + 4], 0x10003888
mov dword [ebx + 0xc], ecx
test ecx, ecx
je 0x100714f8
mov eax, dword [ecx]
push ecx
mov esi, dword [eax]
mov ecx, esi
call dword [0x100a0bc0]
call esi
and dword [ebp - 4], 0
push 2
pop esi
mov dword [ebx], 0x10003850
mov dword [ebx + 4], 0x1000384c
mov dword [ebx + 0x10], esi
mov byte [ebx + 0x14], 0
mov dword [ebx + 0x18], 0x10002610
call fcn.1007c8f0
mov byte [ebx + 0x1c], al
mov eax, dword [edi + 0x18]
mov dword [ebx + 0x20], eax
mov eax, dword [edi + 0x1c]
mov dword [ebx + 0x24], eax
mov eax, dword [edi + 0x20]
push 0x32
pop ecx
cmp eax, 0xffffffff
jne 0x10071542
mov eax, dword [edi + 0x18]
xor edx, edx
div ecx
add eax, esi
mov dword [ebx + 0x28], eax
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
jne 0x10071556
mov eax, dword [edi + 0x1c]
xor edx, edx
div ecx
add eax, esi
mov dword [ebx + 0x2c], eax
mov eax, dword [edi + 0x14]
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x40], eax
mov eax, dword [ebx + 0x20]
cmp eax, dword [ebx + 0x24]
ja 0x10071578
mov eax, dword [ebx + 0x24]
push eax
lea ecx, [ebx + 0x48]
call fcn.1006b528
mov byte [ebp - 4], 3
lea edi, [ebx + 0x78]
mov dword [ebp - 0x38], edi
call dword [sym.imp.PhotoBase.dll_public:_static_class_ATL::CAtlStringMgr____stdcall_Base::String::GetBaseStringManager_void_]
push eax
lea ecx, [edi + 8]
call fcn.10015daa
mov byte [ebp - 4], 4
mov ecx, edi
mov eax, dword [ebp - 0x34]
add eax, 4
push eax
call fcn.10071319
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 4
push eax
lea eax, [ebp - 0x34]
xor esi, esi
push eax
push esi
push 0x10
push 0x10010dfc
push 0x10010e18
push SysReAllocString
mov dword [ebp - 0x34], esi
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueW]
test eax, eax
jne 0x100715e5
cmp dword [ebp - 0x34], esi
jne 0x1007160a
mov eax, esi
jmp 0x1007160d
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x30]
push esi
rep stosd dword es:[edi], eax
push 0x800000
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHELL32.dll_SHGetSetSettings]
test byte [ebp - 0x14], 8
je 0x1007160a
xor eax, eax
inc eax
jmp 0x1007160d
push 2
pop eax
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.10085378
ret 4
Function at 0x1007962c
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0x60]
call fcn.100809a1
test al, al
jne 0x10079653
mov eax, 0x80070057
jmp 0x1007974f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
cmp cx, ax
push 0x10
setg byte [ebp - 2]
call dword [sym.imp.USER32.dll_GetKeyState]
xor ecx, ecx
cmp cx, ax
mov ecx, dword [esi + 0xa4]
setg byte [ebp - 1]
cmp ecx, 1
je 0x10079689
cmp ecx, 2
je 0x10079689
xor bl, bl
jmp 0x1007968b
mov bl, 1
lea eax, [ebp - 1]
push eax
lea edx, [ebp - 2]
call fcn.1007bf11
inc dword [esi + 0xc8]
and dword [ebp - 0xc], 0
mov al, byte [esi + 0xc0]
inc dword [esi + 0xbc]
cmp byte [ebp - 2], 0
mov dword [ebp - 0x10], esi
mov byte [esi + 0xc0], 0
mov byte [ebp - 8], al
je 0x100796d4
cmp byte [ebp - 1], 0
jne 0x100796da
test bl, bl
je 0x10079720
mov eax, dword [edi]
mov dword [esi + 0xa0], eax
jmp 0x10079720
cmp byte [ebp - 1], 0
je 0x10079707
mov ecx, dword [esi + 0x60]
lea eax, [esi + 0xa0]
push eax
call fcn.100809a1
test al, al
je 0x10079707
xor bl, 1
mov ecx, esi
movzx eax, bl
push eax
push 1
lea eax, [esi + 0xa0]
push eax
push edi
call fcn.1007b650
jmp 0x10079720
mov eax, dword [edi]
xor bl, 1
mov dword [esi + 0xa0], eax
mov ecx, esi
movzx eax, bl
push eax
push 1
push edi
call fcn.1007b5b8
push 0
push 1
push edi
mov ecx, esi
call fcn.10077c33
lea ecx, [ebp - 0x10]
call fcn.10072343
sub dword [esi + 0xc8], 1
jne 0x1007974d
cmp byte [esi + 0xcc], 0
je 0x1007974d
mov ecx, esi
call fcn.10077c62
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10081b99
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push ecx
push 0x100110a8
mov esi, 0x208
lea eax, [ebp - 0x61c]
push esi
push eax
xor ebx, ebx
call fcn.10036842
add esp, 0x10
test eax, eax
js 0x10081c68
lea eax, [ebp - 0x630]
mov dword [ebp - 0x630], ebx
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x61c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10081c68
lea eax, [ebp - 0x638]
mov dword [ebp - 0x634], 1
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x638], esi
push eax
lea eax, [ebp - 0x634]
push eax
push ebx
push 0x1000af28
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10081c5c
cmp dword [ebp - 0x634], 1
jne 0x10081c5c
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
test eax, eax
js 0x10081c5c
mov bl, 1
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10084510
mov esp, ebp
pop ebp
ret
Function at 0x10081eb8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push esi
push edi
push eax
push 0x20019
xor edi, edi
push edi
push 0x10010ff0
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, edi
mov dword [ebp - 0x210], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10081fce
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10081fb1
cmp dword [ebp - 0x214], esi
jbe 0x10081fc0
test esi, esi
js 0x10081fc0
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x218], 0x104
lea eax, [ebp - 0x218]
push esi
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
test esi, esi
jne 0x10081f9b
push 4
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.10081a46
mov esi, eax
jmp 0x10081fa6
jle 0x10081fa6
movzx esi, si
or esi, 0x80070000
inc edi
cmp edi, dword [ebp - 0x214]
jb 0x10081f3d
jmp 0x10081fc0
jg 0x10081fb7
mov esi, eax
jmp 0x10081fc0
movzx esi, ax
or esi, 0x80070000
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10081fda
cmp eax, 2
je 0x10081fda
call fcn.10081b4d
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10084510
mov esp, ebp
pop ebp
ret 4

Function at 0x100820c6
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x100820e9
xor al, al
jmp 0x1008217a
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
xor ebx, ebx
inc ebx
jmp 0x10082159
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, edi
jl 0x1008215d
push ebx
push eax
push esi
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
je 0x10082176
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x10082118
push ebx
push 0xffffffffffffffff
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareStringOrdinal]
cmp eax, 2
sete bl
pop edi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10084510
mov esp, ebp
pop ebp
ret
Function at 0x10082189
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1009e9c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x100821a9
xor al, al
jmp 0x100821fa
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 2
jl 0x100821c3
push 0x5c
pop eax
cmp word [esi], ax
jne 0x100821c3
cmp word [esi + 2], ax
je 0x100821f8
push esi
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.1001b46e
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripToRootW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 4
je 0x100821f8
cmp eax, 3
jne 0x100821a5
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10084510
mov esp, ebp
pop ebp
ret

Function at 0x10083c20
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x14
push ebx
mov ebx, 0x100
push edi
cmp eax, ebx
jb 0x10083c3b
mov eax, ebx
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0x18]
sub ebx, eax
mov edi, dword [ebp + 0x1c]
mov edx, ecx
shr edx, 2
and ecx, 3
mov dword [ebp - 0x14], edx
mov dword [ebp + 0x18], ecx
test edi, edi
je 0x10083d61
push esi
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esi
test edx, edx
je 0x10083d02
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 4]
mov esi, dword [esi]
mov ecx, 0xffff00ff
mov edx, dword [edx]
mov edi, esi
shr edi, 8
and edi, ecx
imul edi, eax
mov eax, edx
shr eax, 8
and eax, ecx
mov ecx, esi
imul eax, ebx
and ecx, 0xff00ff
imul ecx, dword [ebp + 8]
shr esi, 8
add edi, eax
mov eax, edx
and eax, 0xff00ff
shr edx, 8
imul eax, ebx
add ecx, eax
mov eax, dword [ebp + 8]
shr ecx, 8
xor edi, ecx
mov ecx, 0xff00ff
and esi, ecx
and edx, ecx
imul esi, eax
and edi, ecx
mov ecx, dword [ebp - 8]
imul edx, ebx
add esi, edx
mov edx, dword [ebp - 4]
xor edi, esi
add edx, 4
mov esi, dword [ebp - 0xc]
mov dword [ecx], edi
add esi, 4
add ecx, 4
mov dword [ebp - 0xc], esi
sub dword [ebp - 0x10], 1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
jne 0x10083c7d
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
jmp 0x10083d05
mov edx, dword [ebp - 4]
test ecx, ecx
je 0x10083d3f
sub edx, esi
mov dword [ebp - 0x10], ecx
sub dword [ebp - 8], esi
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
mov edi, dword [ebp - 4]
movzx ecx, byte [edi + esi]
movzx eax, byte [esi]
imul ecx, ebx
imul eax, edx
add ecx, eax
mov eax, dword [ebp - 8]
shr ecx, 8
mov byte [eax + esi], cl
inc esi
sub dword [ebp - 0x10], 1
jne 0x10083d1a
mov ecx, dword [ebp + 0x18]
mov edi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x20]
add dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x24]
add dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x28]
add dword [ebp + 0x14], eax
sub edi, 1
mov edx, dword [ebp - 0x14]
mov dword [ebp + 0x1c], edi
jne 0x10083c5a
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
Function at 0x10084ac0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10084afe
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10084af6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10084b00
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10084ae6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10084bd0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x10084be6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x10084c01
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret