joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c0830
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
mov eax, dword [0x9dce80]
push ebp
push esi
xor ebp, ebp
mov esi, ecx
cmp eax, ebp
mov dword [esp + 0xc], esi
je 0x5c0866
mov eax, dword [esi + 4]
push eax
push str.CVolumeMountPointMgr::GetVolumeSubstAssociateW__________d_
push str.VolumeMountPoint
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x14
push ebx
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x10], ebp
push ecx
push 0x104
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x5c0972
push 0x418
call fcn.008325b4
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x5c097c
cmp word [esp + 0x18], 0
lea ebp, [esp + 0x18]
je 0x5c0954
mov ecx, 0x106
xor eax, eax
mov edi, ebx
push ebx
rep stosd dword es:[edi], eax
push ebp
mov ecx, esi
call fcn.005c09c0
mov edi, eax
mov eax, dword [0x9dce80]
test eax, eax
je 0x5c0904
lea edx, [ebx + 0x210]
lea eax, [ebx + 8]
push edx
push eax
push ebp
push edi
push str.CVolumeMountPointMgr::GetVolumeSubstAssociateW_1___d____s____s____s_
push str.VolumeMountPoint
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x20
test edi, edi
je 0x5c093c
mov edi, dword [esp + 0x224]
push 0xffffffffffffffff
mov esi, dword [edi + 8]
lea ecx, [esi + 1]
push ecx
mov ecx, edi
call fcn.005c1770
mov ecx, dword [edi + 4]
mov edx, esi
shl edx, 6
add edx, esi
lea eax, [esi + edx*2]
mov esi, ebx
lea edi, [ecx + eax*8]
mov ecx, 0x106
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x14]
push ebp
call fcn.005fc40b
lea ebp, [ebp + eax*2 + 2]
add esp, 4
cmp word [ebp], 0
jne 0x5c08bf
push ebx
call fcn.008325dd
mov eax, dword [esp + 0x228]
add esp, 4
xor edx, edx
mov ecx, dword [eax + 8]
test ecx, ecx
setg dl
mov ebp, edx
jmp 0x5c0984
mov dword [esp + 0x10], 1
jmp 0x5c0984
mov dword [esp + 0x10], 2
mov eax, dword [0x9dce80]
pop edi
test eax, eax
pop ebx
je 0x5c09b2
mov ecx, dword [esp + 8]
mov edx, dword [esi + 4]
push ecx
push ebp
push edx
push str.CVolumeMountPointMgr::GetVolumeSubstAssociateW______d___ret___d___myerror___d_
push str.VolumeMountPoint
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x1c
mov eax, ebp
pop esi
pop ebp
add esp, 0x210
ret 4
Function at 0x5c1966
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, 0x9d9368
jmp 0x5c1950
push 0xffffffffffffffff
push 0x87da1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push 0
push 0
lea ecx, [esi + 4]
mov dword [esp + 0xc], esi
call fcn.005c2b40
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esi + 0x30]
mov dword [esp + 0x28], 0
mov dword [esi + 0x14], 0x8a05ec
call fcn.00579760
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
lea ecx, [esi + 0x48]
call fcn.005794a0
lea ecx, [esi + 0x20]
xor eax, eax
mov dword [esi], 0x8a05e8
mov dword [esi + 0x1c], 0
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x5c1a60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x87da78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, ecx
push str.SDHELPER_WARRANTIMPORTHELPER
lea ecx, [esp + 8]
mov dword [esi + 0x18], esi
mov dword [esi + 0x10], esi
call fcn.00617540
mov eax, dword [eax]
push 0
push 0
push 0
push 1
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], 0
call fcn.004b5e90
lea ecx, [esp + 4]
mov byte [esp + 0x60], 2
call fcn.00617ec0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.004b61f0
mov eax, dword [eax]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x64], 3
call fcn.00611f20
mov eax, dword [eax]
lea ecx, [esi + 8]
push eax
mov byte [esp + 0x64], 4
call fcn.0063e7e0
lea ecx, [esp + 8]
mov byte [esp + 0x60], 3
call fcn.00612730
lea ecx, [esp + 0xc]
mov byte [esp + 0x60], 2
call fcn.00617ec0
call fcn.0064f790
push eax
lea ecx, [esi + 4]
call fcn.0064f650
push 0xffffffffffffffff
lea eax, [esi + 0x30]
push 0x2710
lea ecx, [esi + 0x14]
push 0
push eax
mov dword [eax], ecx
push 0
push 2
lea ecx, [esp + 0x30]
mov dword [esi + 0x34], 0x413a10
call fcn.005794a0
lea edx, [esp + 0x18]
mov ecx, 0x9cf1a8
push edx
mov byte [esp + 0x64], 5
call fcn.0057a890
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x58], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x5c], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x60], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x78], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x70], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x74], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x84], ecx
lea ecx, [esp + 0x18]
mov dword [esi + 0x7c], edx
mov dword [esi + 0x80], eax
mov byte [esp + 0x60], 2
call fcn.00579500
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.004b6020
mov ecx, dword [esp + 0x58]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x5c2da0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x87ddf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push esi
mov esi, ecx
push str.SDHELPER_WARRANTIMPORTHELPER2
lea ecx, [esp + 8]
mov dword [esi + 0x18], esi
mov dword [esi + 0x10], esi
call fcn.00617540
mov eax, dword [eax]
push 0
push 0
push 0
push 1
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x74], 0
call fcn.004b5e90
lea ecx, [esp + 4]
mov byte [esp + 0x60], 2
call fcn.00617ec0
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
call fcn.004b61f0
mov eax, dword [eax]
lea ecx, [esp + 8]
push eax
mov byte [esp + 0x64], 3
call fcn.00611f20
mov eax, dword [eax]
lea ecx, [esi + 8]
push eax
mov byte [esp + 0x64], 4
call fcn.0063e7e0
lea ecx, [esp + 8]
mov byte [esp + 0x60], 3
call fcn.00612730
lea ecx, [esp + 0xc]
mov byte [esp + 0x60], 2
call fcn.00617ec0
call fcn.0064f790
push eax
lea ecx, [esi + 4]
call fcn.0064f650
push 0xffffffffffffffff
lea eax, [esi + 0x20]
push 0x2710
lea ecx, [esi + 0x14]
push 0
push eax
mov dword [eax], ecx
push 0
push 2
lea ecx, [esp + 0x30]
mov dword [esi + 0x24], 0x413a10
call fcn.005794a0
lea edx, [esp + 0x18]
mov ecx, 0x9cf1a8
push edx
mov byte [esp + 0x64], 5
call fcn.0057a890
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x3c], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x40], ecx
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x48], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0x4c], eax
mov eax, dword [esp + 0x38]
mov dword [esi + 0x50], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esi + 0x54], edx
mov dword [esi + 0x58], eax
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x44]
mov dword [esi + 0x5c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esi + 0x68], ecx
mov ecx, dword [esp + 0x54]
mov dword [esi + 0x60], edx
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x64], eax
mov eax, dword [esp + 0x50]
mov dword [esi + 0x74], ecx
lea ecx, [esp + 0x18]
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], eax
mov byte [esp + 0x60], 2
call fcn.00579500
lea ecx, [esp + 0x10]
mov dword [esp + 0x60], 0xffffffff
call fcn.004b6020
mov ecx, dword [esp + 0x58]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x5c5900
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x87e368
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
mov edx, dword [0x9d95d4]
mov ebp, eax
mov eax, 0x9d95d0
lea ecx, [esp + 0x3c]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [0x9d9564]
mov ecx, esi
push eax
push eax
lea eax, [esp + 0x44]
push eax
call fcn.0083d2de
mov eax, dword [esp + 0x50]
xor edi, edi
cmp eax, edi
je 0x5c5987
push 1
lea ecx, [esp + 0x40]
push 1
push ecx
call dword [sym.imp.USER32.dll_OffsetRect]
mov edx, dword [0x9d9564]
mov eax, dword [0x9d9560]
push edx
jmp 0x5c5999
cmp dword [esp + 0x54], edi
je 0x5c59a6
mov edx, dword [0x9d9560]
mov eax, dword [0x9d9564]
push edx
lea ecx, [esp + 0x40]
push eax
push ecx
mov ecx, esi
call fcn.0083d2de
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], vtable.CFont.0
push edi
push str.Marlett
push 0x50
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], edi
call fcn.0083d373
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call dword [edx + 0x28]
mov edi, eax
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x18], eax
mov edx, dword [esp + 0x44]
add eax, 2
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
neg eax
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x48]
sbb eax, eax
mov dword [esp + 0x20], edx
mov edx, dword [esi]
and eax, 0x787878
mov dword [esp + 0x24], ecx
push eax
mov ecx, esi
call dword [edx + 0x30]
push 1
push 0x36
lea ecx, [esp + 0x40]
call fcn.008255c6
mov eax, dword [esp + 0x38]
mov edx, dword [esi]
lea ebx, [esp + 0x18]
push 0x25
mov ecx, dword [eax - 8]
push ebx
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x40], 1
call dword [edx + 0x68]
lea ecx, [esp + 0x38]
mov byte [esp + 0x30], 0
call fcn.00831eeb
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x30]
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 2
call fcn.00837cf9
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x5d2780
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x5d2796
xor eax, eax
pop esi
ret 8
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
push ebx
push ebp
mov dword [esi + 0x370], ecx
mov dword [esi + 0x374], edx
push edi
mov dword [esi + 0x378], ecx
mov dword [esi + 0x37c], edx
mov ebx, dword [esi + 0x370]
mov edi, dword [esi + 0x374]
mov dword [esi + 0x310], ecx
mov dword [esi + 0x314], edx
mov ebp, ecx
test byte [esi + 0x3bc], 2
mov eax, edx
jne 0x5d27e7
test ecx, ecx
jl 0x5d27f1
cmp edx, 0xffffffff
jne 0x5d27f1
mov ecx, esi
xor edi, edi
call fcn.005d9340
dec eax
cmp edi, eax
mov ecx, edi
jl 0x5d27f9
mov ecx, eax
mov dword [esi + 0x380], ecx
cmp ebx, ebp
mov ecx, ebx
jl 0x5d2807
mov ecx, ebp
cmp edi, eax
mov dword [esi + 0x384], ecx
jle 0x5d2813
mov eax, edi
cmp ebx, ebp
mov dword [esi + 0x388], eax
jg 0x5d281f
mov ebx, ebp
mov dword [esi + 0x38c], ebx
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0082dfdb
mov eax, 1
pop edi
pop ebp
mov dword [esi + 0x368], eax
pop ebx
pop esi
ret 8

Function at 0x5d2cc0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x5d2cd6
xor eax, eax
pop esi
ret 0x1c
test byte [esi + 0x40], 5
jne 0x5d2ce2
xor eax, eax
pop esi
ret 0x1c
mov edx, dword [esi + 0x1c]
mov eax, dword [esp + 8]
push 0x105
lea ecx, [esp + 0x10]
push 0
push ecx
push edx
mov dword [esi + 0x2a8], eax
call dword [sym.imp.USER32.dll_RedrawWindow]
lea eax, [esp + 0xc]
mov ecx, esi
push eax
call fcn.00837444
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x238]
mov dword [esi + 0x238], edx
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x18]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
mov ecx, dword [esi + 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.0082dfdb
mov eax, 1
pop esi
ret 0x1c
Function at 0x5e32d0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x87fe59
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0
mov dword [esp + 0x18], esi
call fcn.005cd670
mov eax, dword [esp + 0x24]
lea ecx, [esi + 0x64]
push eax
mov dword [esp + 0x20], 0
call fcn.00831c58
mov ebp, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edi, [esi + 0x68]
push edi
mov byte [esp + 0x20], 1
call ebp
mov ebx, dword [esp + 0x28]
push ebx
push edi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x5e3335
push eax
call fcn.006a9910
lea edi, [esi + 0x78]
mov byte [esp + 0x1c], 2
push edi
call ebp
push ebx
push edi
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x5e3352
push eax
call fcn.006a9910
mov ecx, dword [esp + 0x2c]
mov byte [esp + 0x1c], 3
push ecx
lea ecx, [esi + 0x88]
call fcn.00831f5f
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x14]
mov dword [esi], 0x8a1dc4
mov dword [esi + 0x1c], edx
mov dword [esi + 0x8c], 1
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x1c

Function at 0x5e3e10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x87ffe0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov dword [esp + 8], esi
mov word [esp + 0xc], 7
fld qword [edi]
fstp qword [esp + 0x14]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x1c]
push ecx
push edx
push eax
mov ecx, esi
mov dword [esp + 0x40], 0
call fcn.005e32d0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
push ecx
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x5e3e84
push eax
call fcn.006a9910
mov eax, dword [esp + 0x3c]
mov dword [esi], 0x8a1f44
test eax, eax
jne 0x5e3e9e
mov dword [esi + 0x90], 5
jmp 0x5e3ea4
mov dword [esi + 0x90], eax
mov eax, dword [edi + 8]
mov ecx, dword [esp + 0x1c]
xor edx, edx
pop edi
test eax, eax
sete dl
mov dword [esi + 0x94], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret 0x14
Function at 0x5e8930
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
xor eax, eax
test edi, edi
setl al
mov ebp, dword [esp + 0x14]
dec eax
and al, 0xfe
add eax, 2
push eax
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
je 0x5e8976
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push esi
push ecx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
mov eax, dword [0x9dce80]
test eax, eax
je 0x5e899b
push esi
push ebx
push edi
push str.CSDGsDesTransformRequest::ReadData_lDistanceToMove__ld___dwFilePointer__ld___ret__lu_
push str.SDTransform
push 0xffffffffffffffff
push 0x9dc5ec
call fcn.006600d0
add esp, 0x1c
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5e9320
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x880847
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x8ab268]
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ebx, [esi + 0xc]
mov dword [ebx], eax
xor edi, edi
lea ecx, [esi + 0x18]
push edi
push edi
push edi
mov dword [esp + 0x24], edi
call fcn.005f26ba
mov dword [esi + 0x20], 0x8a24d0
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], 0x11
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], 0xa
push edi
push edi
lea ecx, [esi + 0x3c]
mov byte [esp + 0x20], 2
call fcn.005eead0
push edi
push edi
push edi
push edi
push edi
push edi
lea ecx, [esi + 0x54]
mov byte [esp + 0x30], 3
mov dword [esi + 0x4c], 0x8a24c0
call fcn.00579760
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
push edi
push edi
lea ecx, [esi + 0x6c]
push edi
call fcn.005794a0
push 0x9bec2c
mov ecx, ebx
mov byte [esp + 0x1c], 4
mov dword [esi], 0x8a24ac
mov dword [esi + 4], edi
mov dword [esi + 8], edi
call fcn.006129f0
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x6163b0
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x616409
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x616409
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x616410
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x6163ed
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x61640b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret

Function at 0x61bee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x61bf30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x61bf30
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x61bf35
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x61bf1b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x61bf42
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret
Function at 0x626b10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x626b51
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x626b53
mov esi, edi
test esi, esi
je 0x626bc8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x626bbd
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x626bbd
cmp dword [esp + 0x1c], eax
jbe 0x626b8e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x626bbd
cmp esi, edi
je 0x626baf
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x626bc8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x626be0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x626c45
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x626c45
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x626c45
cmp dword [esp + 0x18], eax
jbe 0x626c2b
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x626c49
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x626e60
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x626ed4
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x626ed4
cmp dword [esp + 0x10], 3
jne 0x626ed4
mov edx, dword [esp + 0x18]
push edx
call fcn.008325b4
mov edi, eax
add esp, 4
test edi, edi
je 0x626ed4
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x626ecb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.008325dd
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x626ee0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x883a3f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x98b454]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x626f4b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x626f4d
mov esi, edi
test esi, esi
je 0x627017
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x62700c
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x626f8f
cmp eax, 2
je 0x626f8f
cmp eax, 6
je 0x626f8f
cmp eax, 7
jne 0x62700c
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.008325b4
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebp
jne 0x626ff2
lea ecx, [esp + 0x14]
call fcn.00832082
cmp esi, dword [esp + 0x14]
je 0x626fe7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.008325dd
add esp, 4
jmp 0x627029
call fcn.008325dd
add esp, 4
lea ecx, [esp + 0x10]
push 0x9b5220
call fcn.00832082
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x627017
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x627029
push eax
lea ecx, [esp + 0x14]
call fcn.00832082
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.00831c58
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.00831eeb
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10