joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45cb20
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
push 4
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [ebp - 0x24], eax
push 1
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 0
xor edx, edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45cbfe
push 0
push 0
push 0
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x45cbfe
cmp dword [ebp - 0x1c], 0x10
jne 0x45cbca
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 4]
jne 0x45cbca
mov edx, dword [ebp - 0x18]
mov dword [ebp - 4], edx
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
lea edx, [ebp - 0x20]
push edx
call sym.Setup.exe_public:_static_bool___cdecl_DuiLib::CPaintManagerUI::TranslateMessage_struct_tagMSG__const_
add esp, 4
movzx eax, al
test eax, eax
jne 0x45cbf1
lea ecx, [ebp - 0x20]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x20]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [ebp - 0x1c], 0x12
jne 0x45cbf9
jmp 0x45cbfe
jmp 0x45cb78
push 1
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_SetFocus]
cmp dword [ebp - 0x1c], 0x12
jne 0x45cc24
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x47e400
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x47e410
xor eax, eax
jmp 0x47e5ad
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x47e56e
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c39c8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c39c8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c39c8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c39c8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c39c8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4c39c8]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c39c8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4c39c8]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x47e419
cmp dword [ebp + 0x10], 0
je 0x47e5a7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4c39c8]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x47e574
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x47f490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x47f4df
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x47f4d5
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x47f539
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x14]
jbe 0x47f4ff
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x18]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00429d70
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4814f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x481513
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x481518
jmp 0x481600
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x218], eax
mov ecx, dword [ebp - 0x218]
movzx edx, word [ecx]
test edx, edx
je 0x48156a
mov eax, dword [ebp - 0x218]
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x481550
mov edx, dword [ebp - 0x218]
movzx eax, word [edx]
cmp eax, 0x5c
jne 0x481559
mov ecx, dword [ebp - 0x218]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x218]
add edx, 2
mov dword [ebp - 0x218], edx
jmp 0x481527
mov eax, dword [ebp - 4]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x4815cb
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
sar edx, 1
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x420]
push ecx
call fcn.00428630
add esp, 0xc
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
sar edx, 1
xor eax, eax
mov word [ebp + edx*2 - 0x420], ax
lea ecx, [ebp - 0x420]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004814f0
add esp, 8
mov eax, dword [ebp - 0x214]
add eax, 2
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x210]
push edx
call fcn.004b372a
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
call fcn.004b36f9
add esp, 8
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret
Function at 0x488ab0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x664], 0
je 0x488b61
cmp dword [ebp + 8], 0x100
jne 0x488b2d
movzx ecx, word [ebp + 0xc]
cmp ecx, 0xd
jne 0x488b2d
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x66a]
test eax, eax
je 0x488b06
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
test ecx, ecx
jge 0x488b2d
mov edx, dword [ebp - 8]
movzx eax, byte [edx + 0x66b]
test eax, eax
jne 0x488b2d
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x44], 0
je 0x488b29
push 0
push 0
push 0
push str.return
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x44]
call sym.Setup.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
jmp 0x488b66
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x664]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
mov ecx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
call eax
jmp 0x488b66
mov eax, 1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4a6490
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x18]
test ecx, ecx
jne 0x4a64b5
xor eax, eax
jmp 0x4a654d
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
jne 0x4a64c5
xor eax, eax
jmp 0x4a654d
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
shl eax, 1
call fcn.00433560
mov dword [ebp - 0x14], esp
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x4a64f5
xor eax, eax
jmp 0x4a654d
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0x10]
add ecx, 0x1c4
call fcn.00453eb0
push 0
push 0
push 0
push str.textchanged
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 0x10]
mov edx, dword [eax]
mov eax, dword [edx + 0x1c]
call eax
mov ecx, eax
call sym.Setup.exe_public:_void___thiscall_DuiLib::CPaintManagerUI::SendNotify_class_DuiLib::CControlUI___wchar_t_const___unsigned_int__long_int__bool_
xor eax, eax
lea esp, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4b1b40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4b1b50
sub eax, edx
mov esi, eax
lea eax, [ebp + 8]
push eax
push 0x4c5ab0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x4b1b9c
mov ecx, dword [ebp + 8]
push esi
push edi
push 1
push eax
push 0x4c5aac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x4b28c0
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ff8
call fcn.00439910
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.ReadFirstPhysicalDriveInNTWithZeroRights_Enter._n
mov esi, ecx
call fcn.004379e0
add esp, 4
xor ebx, ebx
mov dword [ebp - 0x2ff4], ebx
mov eax, dword [ebp - 0x2ff4]
push eax
push str..PhysicalDrive_d
lea ecx, [ebp - 0x104]
push 0x100
push ecx
call fcn.0042857c
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push ebx
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4b2a71
push 0x270f
lea eax, [ebp - 0x2fe3]
push ebx
push eax
mov byte [ebp - 0x2fe4], bl
call fcn.0042efe0
add esp, 0xc
push ebx
lea ecx, [ebp - 0x2ff8]
push ecx
push 0x2710
xor eax, eax
lea edx, [ebp - 0x2fe4]
push edx
mov dword [ebp - 0x2ff0], eax
mov dword [ebp - 0x2fec], eax
push 0xc
mov dword [ebp - 0x2fe8], eax
lea eax, [ebp - 0x2ff0]
push eax
push 0x2d1400
push edi
mov dword [ebp - 0x2ff8], ebx
mov dword [ebp - 0x2ff0], ebx
mov dword [ebp - 0x2fec], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x4b2a68
push 0x3e7
lea ecx, [ebp - 0x4eb]
push ebx
push ecx
mov byte [ebp - 0x4ec], bl
call fcn.0042efe0
push 0x3e7
lea edx, [ebp - 0x8d3]
push ebx
push edx
mov byte [ebp - 0x8d4], bl
call fcn.0042efe0
mov eax, dword [ebp - 0x2fcc]
lea ecx, [ebp + eax - 0x2fe4]
add esp, 0x18
push ecx
mov ecx, esi
call fcn.004b1bd0
push eax
lea edx, [ebp - 0x4ec]
push 0x3e8
push edx
call fcn.0042bc9d
mov eax, dword [ebp - 0x2fd4]
lea ecx, [ebp + eax - 0x2fe4]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.004b1bd0
push eax
lea edx, [ebp - 0x8d4]
push 0x3e8
push edx
call fcn.0042bc9d
lea eax, [ebp - 0x4ec]
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4b2a33
sub eax, ecx
push eax
lea eax, [ebp - 0x4ec]
push eax
mov ecx, esi
call fcn.00403180
push 1
push ebx
push 0x4bd0a4
mov ecx, esi
call fcn.004b1d50
push eax
push ebx
mov ecx, esi
call fcn.00403200
cmp dword [esi + 0x10], ebx
jne 0x4b2ab0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b2a87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xffffffffffffffff
push str._hDevice___d__Error___d___n
call fcn.004379e0
add esp, 0xc
mov eax, dword [ebp - 0x2ff4]
inc eax
mov dword [ebp - 0x2ff4], eax
cmp eax, 0x10
jl 0x4b28f1
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00425912
mov esp, ebp
pop ebp
ret
Function at 0x4b2ee0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 0x220], ecx
xor edi, edi
mov dword [ebp - 0x210], ebx
mov byte [ebp - 0x108], bl
call fcn.0042efe0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 8
push ebx
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b3084
mov eax, dword [ebp - 0x210]
cmp eax, ebx
je 0x4b3084
push esi
push ebx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x21c]
push edx
lea ecx, [ebp - 0x108]
push ecx
push ebx
push eax
xor esi, esi
mov dword [ebp - 0x21c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x4b3076
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jmp 0x4b2f90
mov ecx, dword [ebp - 0x210]
lea edx, [ebp - 0x214]
push edx
push 1
push ebx
lea eax, [ebp - 0x108]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4b302c
push 0x103
lea edx, [ebp - 0x20b]
push ebx
push edx
mov byte [ebp - 0x20c], bl
call fcn.0042efe0
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x224]
push edx
push ebx
push str.ServiceName
push eax
mov dword [ebp - 0x228], 0x104
mov dword [ebp - 0x224], 1
call edi
test eax, eax
jne 0x4b301f
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.004b2ad0
test eax, eax
jne 0x4b3057
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x210]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x108]
push ecx
inc esi
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x4b2f90
jmp 0x4b3074
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x220]
mov edi, 1
cmp dword [ecx + 0x2c], ebx
jne 0x4b3076
mov edi, ebx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.00425912
mov esp, ebp
pop ebp
ret
Function at 0x4b30a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9619
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4f62a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x4ba726
mov ecx, esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x44], esi
mov byte [esi], bl
call fcn.00403180
xor eax, eax
mov dword [ebp - 0x2f], eax
mov dword [ebp - 0x2b], eax
mov dword [ebp - 0x27], eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
mov ecx, 1
lea eax, [ebp - 0x34]
push eax
push ecx
push ebx
push 0x4c5ab0
push SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0x3c], ecx
mov byte [ebp - 0x30], bl
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x38], 0x20
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4b3167
lea ecx, [ebp - 0x38]
push ecx
mov ecx, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 0x40]
push eax
push ebx
push 0x4c5aac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x30]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4b3170
sub eax, edx
push eax
lea eax, [ebp - 0x30]
push eax
mov ecx, esi
call fcn.00403180
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00425912
mov esp, ebp
pop ebp
ret 4
Function at 0x6c5c15f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
sub esp, 8
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
cmp edx, ecx
jle 0x6c5c1650
cmp edx, eax
mov ebx, edx
cmovl ebx, eax
cmp ecx, eax
cmovle eax, ecx
fnstcw word [esp + 6]
add eax, ebx
mov dword [esp], eax
fild dword [esp]
fld dword [0x6c5c50ec]
movzx eax, word [esp + 6]
or ah, 0xc
fmul st(1), st(0)
mov word [esp + 4], ax
faddp st(1)
fldcw word [esp + 4]
fistp dword [esp]
fldcw word [esp + 6]
mov eax, dword [esp]
add esp, 8
pop ebx
ret
cmp ecx, eax
mov ebx, ecx
cmovl ebx, eax
cmp edx, eax
cmovle eax, edx
jmp 0x6c5c1610
Function at 0x6c5c21c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6c5c3060
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6c5c3060
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x6c5c2220
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x6c5c6034]
test esi, esi
jle 0x6c5c2340
mov eax, dword [0x6c5c6038]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x6c5c2254
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x6c5c22d7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x6c5c2240
mov dword [esp], ebx
call fcn.6c5c2980
mov edi, eax
test eax, eax
je 0x6c5c2367
mov eax, dword [0x6c5c6038]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6c5c2ac0
mov edx, dword [0x6c5c6038]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6c5c2347
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6c5c22d0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x6c5c22e0
add dword [0x6c5c6034], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x6c5c6038]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x6c5c22d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6c5c21c0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x6c5c225e
mov eax, dword [0x6c5c6038]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.6c5c21c0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6c5c21c0
lea esi, [esi]
nop
Function at 0x6c5c2600
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6c5c6044
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6c5c603c]
sub esp, 4
test ebx, ebx
je 0x6c5c2655
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6c5c264e
test esi, esi
je 0x6c5c264e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6c5c2630
mov dword [esp], 0x6c5c6044
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6c5c2980
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x6c5c0000], 0x5a4d
jne 0x6c5c29a5
mov ecx, dword [0x6c5c003c]
cmp dword [ecx + 0x6c5c0000], 0x4550
lea edx, [ecx + 0x6c5c0000]
je 0x6c5c29b0
ret
cmp word [ecx + 0x6c5c0018], 0x10b
jne 0x6c5c29a5
push esi
movzx eax, word [ecx + 0x6c5c0014]
push ebx
movzx esi, word [ecx + 0x6c5c0006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x6c5c0000
test esi, esi
je 0x6c5c29f8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6c5c29ee
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x6c5c29fa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x6c5c29e0
xor eax, eax
pop ebx
pop esi
ret