joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10022710
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, 0xc
jne 0x100227ce
push 0x100ab624
push str.DOpus.ParentWindow
call dword [sym.imp.USER32.dll_FindWindowW]
mov ebx, eax
test ebx, ebx
je 0x100227ce
mov eax, dword [ebp + 0x10]
movzx ecx, ax
mov esi, ecx
shr esi, 2
and esi, 2
test cl, 4
je 0x10022754
or esi, 4
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x12
call edi
test ax, ax
jns 0x10022767
or esi, 1
push 0x5b
call edi
test ax, ax
js 0x10022779
push 0x5c
call edi
test ax, ax
jns 0x1002277c
or esi, 8
lea eax, [ebp - 8]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
pop edi
test eax, eax
je 0x10022795
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x64
push 2
push dword [ebp + 0x10]
push esi
push 0x801d
push ebx
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
je 0x100227cb
cmp dword [ebp - 4], 0
je 0x100227cb
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push 0
call dword [sym.imp.USER32.dll_CallNextHookEx]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10023ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push str.CERT
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10023fd4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10023fd4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x10023fd4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push 0x100ae5dc
push 0xba
push dword [0x100c5ca8]
mov esi, eax
call sym.dopuslib32.dll_Ordinal_10
push ebx
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
call sym.dopuslib32.dll_Ordinal_16
add esp, 0x28
test eax, eax
je 0x10023fd4
cmp dword [ebp - 0xc], 0x90
jne 0x10023fbd
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x10023fa8
lea eax, [ebp - 0x1c]
push eax
push edi
call sym.dopuslib32.dll_Ordinal_15
mov edi, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
add esp, 8
lea esi, [ebx + 0xc]
lea edx, [edi + 0x58]
jmp 0x10023f90
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10023fbd
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10023f90
mov ebx, 1
jmp 0x10023fab
mov edi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x10023fbd
mov esi, edi
mov ecx, 0x24
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x10023fcb
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100279a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x22c
lea eax, [esp + 0x14]
push esi
push eax
push dword [ebp + 8]
call sym.dopuslib32.dll_PIDLGetGUID
add esp, 8
test eax, eax
jne 0x100279c6
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x18]
mov edx, 0x100b27fc
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x100279f1
add ecx, 4
add edx, 4
sub esi, 4
jae 0x100279d4
mov esi, 1
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x18]
mov edx, 0x100a35f0
mov esi, 0xc
nop
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10027a1d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10027a00
mov esi, 1
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x18]
mov edx, 0x100b27ec
mov esi, 0xc
jmp 0x10027a30
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10027a4d
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10027a30
mov esi, 1
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
xor esi, esi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0xc], esi
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x10027afa
push dword [esp + 8]
lea eax, [esp + 0x2c]
push str.CLSID_s
push 0x104
push eax
call fcn.1000b000
add esp, 0x10
lea eax, [esp + 0x14]
push eax
push 0x20019
push esi
lea eax, [esp + 0x34]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10027aef
lea eax, [esp + 0x10]
mov dword [esp + 0xc], esi
push eax
push esi
lea eax, [esp + 0x14]
mov dword [esp + 0x18], esi
push eax
push esi
push str.System.ControlPanel.Category
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10027ae5
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x10027ada
cmp eax, 4
jne 0x10027ae5
cmp dword [esp + 0x10], esi
je 0x10027ae5
mov esi, 1
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 8]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10027b70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x10027bfc
mov ecx, edi
mov edx, 0x100b27fc
mov esi, 0xc
mov edi, edi
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10027bac
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10027b90
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov edx, 0x100a35f0
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10027bd4
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10027bb8
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, edi
mov edx, 0x100b27ec
mov esi, 0xc
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10027bfc
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10027be0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp + 8]
xor esi, esi
push eax
push edi
mov dword [ebp + 8], esi
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
test eax, eax
jne 0x10027c9c
push dword [ebp + 8]
lea eax, [ebp - 0x214]
push str.CLSID_s
push 0x104
push eax
call fcn.1000b000
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x214]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10027c92
lea eax, [ebp - 8]
mov dword [ebp - 4], esi
push eax
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], esi
push eax
push esi
push str.System.ControlPanel.Category
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10027c89
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x10027c7f
cmp eax, 4
jne 0x10027c89
cmp dword [ebp - 8], esi
je 0x10027c89
mov esi, 1
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 8]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10029550
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0efc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x50
mov esi, ecx
call fcn.10079cc9
mov ebx, eax
add esp, 4
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
lea ecx, [ebx + 0x28]
mov dword [ebx], 0
mov dword [ecx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x30], 0
mov dword [ebx + 0xc], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x40], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x4c], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], 1
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ecx
test edi, edi
je 0x1002976e
cmp word [edi], 0
je 0x1002976e
mov eax, dword [esi + 0x20]
test eax, eax
je 0x10029767
mov ecx, 0x9c
cmp word [eax], cx
jne 0x10029767
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100296cb
movzx eax, word [eax]
mov ecx, esi
push eax
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.1002a210
mov dword [ebp + 0x10], eax
test eax, eax
je 0x10029778
mov edi, edi
push dword [esi + 0x1c]
mov ecx, esi
push dword [esi + 0x18]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10029eb0
test eax, eax
je 0x100296cb
mov eax, dword [esi + 0x18]
mov ecx, esi
movzx eax, word [eax]
push eax
mov eax, dword [ebp + 0x10]
add eax, 2
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1002a210
mov dword [ebp + 0x10], eax
test eax, eax
jne 0x10029690
jmp 0x10029778
cmp word [esi + 0x16], 0
mov dword [ebp - 0x24], edi
je 0x100296f3
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.100297b0
mov esi, eax
test esi, esi
jne 0x1002977a
jmp 0x10029778
movzx eax, word [esi + 0x14]
mov ecx, eax
test ax, ax
je 0x10029747
push ecx
push edi
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.1002a210
mov edi, eax
test edi, edi
je 0x10029778
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.100297b0
test eax, eax
jne 0x10029740
movzx eax, word [esi + 0x14]
mov ecx, esi
push eax
lea eax, [edi + 2]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1002a210
mov edi, eax
test edi, edi
jne 0x10029711
jmp 0x10029778
mov esi, 1
jmp 0x1002977a
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.100297b0
test eax, eax
jne 0x10029740
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x10029747
jmp 0x10029778
mov ecx, 0x16
jmp 0x10029773
mov ecx, 0x15
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push 0x50
push ebx
call fcn.10079cf9
mov ecx, dword [ebp - 0xc]
add esp, 8
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x1002ab90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x414
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xff
div ecx
lea ecx, [esp + 0x28]
xor edi, edi
mov byte [esp + 0x13], dl
xor esi, esi
call fcn.10039c70
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
call fcn.10039d50
cmp dword [esp + 0x14], esi
je 0x1002ac4e
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ebx, dword [esp + 0x20]
cmp dword [esp + 0x1c], edi
jne 0x1002abeb
cmp ebx, esi
je 0x1002ac3a
mov eax, 0x80808081
imul ebx
mov eax, 0x80808081
add edx, ebx
sar edx, 7
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul dword [esp + 0x1c]
add edx, dword [esp + 0x1c]
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [esp + 0x13]
add cl, al
add cl, byte [esp + 0x1c]
add cl, bl
add byte [esp + 0x13], cl
push ecx
lea ecx, [esp + 0x2c]
call fcn.10039ca0
mov edi, dword [esp + 0x20]
add esp, 4
mov esi, dword [esp + 0x20]
lea edx, [esp + 0x28]
lea ecx, [esp + 0x14]
call fcn.10039d50
cmp dword [esp + 0x14], 0
jne 0x1002abd2
lea eax, [esp + 0x28]
mov dword [esp + 0x14], 0x400
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], 1
push eax
lea edx, [esp + 0x160]
lea ecx, [esp + 0x58]
call fcn.10039e40
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
je 0x1002acc0
push 0
lea eax, [esp + 0x28]
push eax
push 0x104
lea eax, [esp + 0x5c]
push eax
push esi
call edi
push esi
call ebx
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002acfc
push 0
lea eax, [esp + 0x28]
push eax
push 0x2c4
lea eax, [esp + 0x164]
push eax
push esi
call edi
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002c9a0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
lea eax, [esp + 4]
push ebx
push esi
push edi
push eax
push 0xf003f
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002ca67
push 0x200
mov dword [esp + 0x18], 0x100
call fcn.1008680d
mov esi, eax
add esp, 4
test esi, esi
jne 0x1002c9f1
lea eax, [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x24]
push eax
push esi
push 0
push dword [esp + 0x2c]
call ebx
test eax, eax
jne 0x1002ca48
push esi
push dword [esp + 0x14]
call sym.dopuslib32.dll_recursiveDeleteKey
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002ca6e
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x100
push eax
push edi
push edi
push edi
lea eax, [esp + 0x24]
push eax
push esi
push edi
push dword [esp + 0x2c]
call ebx
test eax, eax
je 0x1002ca14
push esi
call fcn.10086818
add esp, 4
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.10086818
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10031610
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
mov ecx, eax
mov dword [ebp - 4], ecx
push ebx
push esi
test eax, eax
je 0x100316df
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x100316df
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x100316df
jle 0x100316d4
push edi
xor edi, edi
xor edx, edx
mov dword [ebp + 0x10], edx
lea ecx, [edi + 0x10]
lea ecx, [ecx]
test esi, esi
jle 0x1003166c
movzx edx, byte [ebx]
dec esi
shl edx, cl
inc ebx
or edi, edx
sub ecx, 8
mov edx, dword [ebp + 0x10]
inc edx
mov dword [ebp + 0x10], edx
cmp ecx, 0xfffffff8
jg 0x10031650
mov ecx, edi
shr ecx, 0x12
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edi
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
cmp edx, 2
jge 0x1003169f
mov byte [eax + 2], 0x3d
mov cl, 0x3d
add eax, 3
jmp 0x100316c5
mov ecx, edi
shr ecx, 6
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
add eax, 3
cmp edx, 3
jge 0x100316bc
mov cl, 0x3d
jmp 0x100316c5
and edi, 0x3f
mov cl, byte [edi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
inc eax
test esi, esi
jg 0x10031643
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov byte [eax], 0
sub eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100324e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
mov ebx, 1
push esi
mov esi, dword [ebp + 0xc]
test ecx, ecx
je 0x1003251d
test esi, esi
je 0x1003251d
mov al, byte [ecx]
xor al, 3
mov byte [esi], al
cmp word [ecx], 0
je 0x10032517
inc ebx
lea ecx, [ecx + 2]
lea edx, [ebx + 2]
xor dl, byte [ecx]
mov byte [esi + ebx - 1], dl
cmp word [ecx], 0
jne 0x10032504
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x10032b80
Capabilities:
Parse pe header
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a1400
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x788
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10032d44
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov esi, eax
mov dword [ebp - 0x34], esi
test esi, esi
je 0x10032d3b
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x28], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10032d23
call esi
push edi
call esi
push 0
lea ecx, [ebp - 0x794]
call sym.dopuslib32.dll_public:_void___thiscall_Hash::Init_enum_HashMethod_
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x28]
cmp word [ecx], ax
jne 0x10032ca2
mov ebx, dword [ecx + 0x3c]
add ebx, ecx
cmp dword [ebx], 0x4550
jne 0x10032ca2
mov eax, 0x10b
cmp word [ebx + 0x18], ax
jne 0x10032ca2
lea esi, [ebx + 0xf8]
xor edi, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
movzx eax, word [ebx + 6]
cmp edi, eax
jge 0x10032ca2
mov eax, dword [esi + 0xc]
cmp eax, dword [ebx + 0x88]
je 0x10032c9c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x10032c9c
push dword [esi + 0x10]
add eax, ecx
push eax
lea ecx, [ebp - 0x794]
call sym.dopuslib32.dll_public:_void___thiscall_Hash::HashData_void_const___unsigned_int_
mov ecx, dword [ebp - 0x28]
add esi, 0x28
inc edi
jmp 0x10032c68
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
lea ecx, [ebp - 0x794]
call sym.dopuslib32.dll_public:_void___thiscall_Hash::End_char___unsigned_int__unsigned_char___unsigned_int_
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x10032cfc
mov eax, dword [ebp - 0x24]
mov dword [ecx], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0xc], eax
mov eax, 1
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
add eax, dword [ebp - 0x20]
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call esi
push edi
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10032d90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
push edi
push str.CERT
push 1
push esi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x10032e8c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10032e8c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x10032e8c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push 0x100ae5dc
push 0xba
push dword [0x100c5ca8]
mov esi, eax
call sym.dopuslib32.dll_Ordinal_10
push ebx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 4]
call sym.dopuslib32.dll_Ordinal_16
add esp, 0x28
test eax, eax
jne 0x10032e38
pop edi
pop esi
lea eax, [ebx + 1]
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 0x90
mov edi, dword [ebp - 0xc]
jne 0x10032e78
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call sym.dopuslib32.dll_Ordinal_50
add esp, 8
test eax, eax
je 0x10032e73
lea edx, [edi + 0x58]
mov esi, 0xc
lea ecx, [ebp - 0x1c]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x10032e78
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10032e62
mov ebx, 1
test edi, edi
je 0x10032e83
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10032fd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, 0xc
test edi, edi
je 0x10032fec
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 0xd
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
jne 0x10033027
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
push esi
call fcn.10087214
mov edx, dword [ebp + 0x18]
add esp, 0x18
test edx, edx
je 0x10033093
mov ecx, dword [ebp + 8]
pop edi
mov dword [edx], ecx
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1003304c
lea eax, [esi + 0xc]
push edi
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push 0
inc eax
push eax
push dword [esi]
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp + 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 4], 0
push esi
push 0x10032f10
push 0
push 0
call fcn.10087214
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x10033085
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x10033091
mov eax, dword [ebp - 4]
mov dword [ecx], eax
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100345d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x100a14fd
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
je 0x10034737
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp + 8], eax
cmp byte [eax + 0xd], 0
jne 0x10034737
mov ebx, dword [ebp + 0xc]
lea edi, [eax + 0x10]
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10034630
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x28]
call fcn.10005340
mov dword [ebp - 4], 0
mov eax, edi
cmp dword [edi + 0x14], 7
jbe 0x1003465a
mov eax, dword [edi]
push dword [edi + 0x10]
lea ecx, [ebp - 0x28]
push eax
call fcn.10011a30
cmp dword [ebp - 0x14], 7
lea eax, [ebp - 0x28]
jbe 0x10034672
mov eax, dword [ebp - 0x28]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x100346d6
mov esi, dword [edi + 0x1c]
mov edi, dword [edi + 0x18]
test esi, esi
je 0x100346cf
lea esp, [esp]
mov eax, esi
cmp esi, 0x10000
jb 0x100346af
mov eax, 0x10000
push 0
lea ecx, [ebp - 0x10]
push ecx
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100346cf
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x100346cf
add edi, eax
sub esi, eax
jne 0x100346a0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
cmp ecx, 7
jbe 0x10034713
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x10034709
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10034748
push ecx
push edx
call fcn.10079cf9
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.10034890
mov eax, dword [ebp + 8]
jmp 0x10034600
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.100807af
int3