joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bef0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100232d7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1002b540]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
mov dword [ebp - 4], edi
mov edx, dword [0x1002b0f4]
mov eax, dword [edx + 0xc]
lea ebx, [esi + 0x24]
mov ecx, 0x1002b0f4
mov dword [ebp - 0x14], ebx
call eax
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 1
call fcn.100115dd
cdq
mov ecx, 6
idiv ecx
mov ecx, dword [edx*4 + 0x1002d66c]
cmp ecx, edi
jne 0x1000bf6f
xor eax, eax
jmp 0x1000bf87
mov eax, ecx
lea edx, [eax + 2]
mov dword [ebp - 0x10], edx
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x1000bf77
sub eax, dword [ebp - 0x10]
sar eax, 1
push ecx
push ebx
mov ebx, eax
call fcn.10001920
mov byte [ebp - 4], 2
mov dword [esi], vtable.CRFrm.0
mov eax, dword [0x1002b0f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x1002b0f4
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [ebp - 4], 3
mov eax, dword [0x1002b0f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x1002b0f4
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [ebp - 4], 4
mov eax, dword [0x1002b0f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x1002b0f4
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [ebp - 4], 5
mov eax, dword [0x1002b0f4]
mov edx, dword [eax + 0xc]
mov ecx, 0x1002b0f4
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
mov byte [ebp - 4], 6
mov dword [esi + 0x38], edi
lea eax, [esi + 0x50]
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
push eax
mov dword [esi + 0x48], edi
call fcn.10009270
mov byte [esi + 0xa8], 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1000c2b0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x1002b540]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x70
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.100157f0
add esp, 0xc
mov eax, 1
push 0x80
mov ecx, 0x12
push str.00000409
mov dword [ebp - 0x74], eax
mov word [ebp - 0x70], cx
mov dword [ebp - 0x58], eax
xor esi, esi
call dword [sym.imp.USER32.dll_LoadKeyboardLayoutW]
mov ebx, eax
test ebx, ebx
je 0x1000c349
push edi
push ebx
push 0x64
call dword [sym.imp.USER32.dll_VkKeyScanExW]
mov word [ebp - 0x54], ax
push 0x1c
mov ecx, 7
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov eax, 2
lea edx, [ebp - 0x74]
push edx
mov dword [ebp - 0x34], eax
mov ecx, 7
lea esi, [ebp - 0x74]
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
push 4
mov dword [ebp - 0x18], eax
call dword [sym.imp.USER32.dll_SendInput]
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
pop edi
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.10010a76
mov esp, ebp
pop ebp
ret
Function at 0x1001097b
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1002c90c], 0
push esi
push edi
jne 0x100108f1
call fcn.1001085d
test eax, eax
je 0x10010936
mov eax, dword [0x1002c90c]
cmp eax, 1
jne 0x10010912
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10010936
jmp 0x10010978
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x10010978
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1001093a
xor eax, eax
jmp 0x10010978
mov eax, dword [esi]
push dword [0x1002c90c]
call edi
mov edi, eax
test edi, edi
je 0x1001095c
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x10010978
lea edi, [esi + 0xff0]
push esi
push dword [0x1002c90c]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10010962
mov eax, esi
pop edi
pop esi
ret
jmp 0x100108dd

Function at 0x10010a76
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b540]
jne 0x10010a80
repz ret
jmp fcn.1001586a
Function at 0x1001dd92
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002b540]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1001634f
and dword [ebp - 0x14], 0
cmp dword [0x1002d600], 0
mov dword [ebp - 0x18], eax
jne 0x1001de45
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001deed
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001deed
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1002d600], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1002d604], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1002d608], eax
call edi
push eax
call esi
mov dword [0x1002d610], eax
test eax, eax
je 0x1001de45
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1002d60c], eax
mov eax, dword [0x1002d60c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001de9e
cmp dword [0x1002d610], ecx
je 0x1001de9e
push eax
call esi
push dword [0x1002d610]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001de9e
test ebx, ebx
je 0x1001de9e
call edi
test eax, eax
je 0x1001de95
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001de95
test byte [ebp - 8], 1
jne 0x1001de9e
or dword [ebp + 0x10], 0x200000
jmp 0x1001ded1
mov eax, dword [0x1002d604]
cmp eax, dword [ebp - 0x18]
je 0x1001ded1
push eax
call esi
test eax, eax
je 0x1001ded1
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001ded1
mov eax, dword [0x1002d608]
cmp eax, dword [ebp - 0x18]
je 0x1001ded1
push eax
call esi
test eax, eax
je 0x1001ded1
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1002d600]
call esi
test eax, eax
je 0x1001deed
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001deef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10010a76
leave
ret
Function at 0x4c6e00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6e000]
push edi
jmp 0x4c6e1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c6e21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6e10
mov eax, 1
add ebx, ebx
jne 0x4c6e33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c6e44
jne 0x4c6e63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6e63
dec eax
add ebx, ebx
jne 0x4c6e50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c6e28
add ebx, ebx
jne 0x4c6e5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c6eb5
xor ecx, ecx
sub eax, 3
jb 0x4c6e7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c6eea
sar eax, 1
mov ebp, eax
jmp 0x4c6e86
add ebx, ebx
jne 0x4c6e86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6e54
inc ecx
add ebx, ebx
jne 0x4c6e94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c6e54
add ebx, ebx
jne 0x4c6ea1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c6e96
jne 0x4c6eb2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c6e96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c6ed4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c6ec6
jmp 0x4c6e16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c6ed4
add edi, ecx
jmp 0x4c6e16
pop esi
mov edi, esi
mov ecx, 0x3a8d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c6ef2
cmp byte [edi], 0x11
jne 0x4c6ef2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4c6ef7
lea edi, [esi + 0xc1000]
mov eax, dword [edi]
or eax, eax
je 0x4c6f6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc72dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc7430]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c6f24
mov ecx, edi
jns 0x4c6f53
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc7434]
or eax, eax
je 0x4c6f69
mov dword [ebx], eax
add ebx, 4
jmp 0x4c6f41
call dword [esi + 0xc7444]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4c6fa0
cmp al, 0xef
ja 0x4c6f93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4c6f75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4c6f82
mov ebp, dword [esi + 0xc7438]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4c6fd4
sub esp, 0xffffff80
jmp 0x46a08c
Function at 0x403230
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041694a

Function at 0x403270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403285
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4032c4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4032c0
lea ebx, [ebx]
cmp esi, edx
jae 0x4032c4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x4032b0
cmp esi, edx
jb 0x4032c9
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x4038a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553dfb
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x5bd1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
test esi, esi
je 0x4039ae
cmp word [esi], 0
je 0x4039ae
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4038fa
mov eax, 4
jmp 0x4039b3
push 0x74
lea eax, [ebp - 0x88]
push 0
push eax
call fcn.00538670
movzx eax, byte [edi + 8]
lea ecx, [ebp - 0x88]
add esp, 0xc
push eax
push esi
call fcn.0040f2a0
lea ecx, [ebp - 0x88]
call fcn.0040f4a0
mov esi, dword [sym.imp.WINTRUST.dll_WinVerifyTrust]
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
push eax
push 0xffffffffffffffff
call esi
mov edi, eax
mov dword [ebp - 0x44], 2
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x28]
push eax
push 0
call esi
cmp edi, 0x800b0100
je 0x4039a5
cmp edi, 0x800b010a
je 0x403974
test edi, edi
je 0x403974
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 2
mov eax, esi
jmp 0x4039b3
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x88]
call fcn.0040f2f0
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.004039d0
lea ecx, [ebp - 0x94]
mov esi, eax
call fcn.00403af0
mov eax, esi
jmp 0x4039b3
mov esi, 3
mov eax, esi
jmp 0x4039b3
mov eax, 5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536d2d
mov esp, ebp
pop ebp
ret 4
Function at 0x4041e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553efa
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5bd1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0055309f
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x404286
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.0054de9d
push 0x5b79f4
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.005388f4
push edi
push esi
call fcn.00552ece
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536d2d
mov esp, ebp
pop ebp
ret 4

Function at 0x408cf0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5543ae
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5bd1b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x10]
mov dword [edi], 0
push eax
push 0
lea ecx, [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
call fcn.004090d0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
mov dword [edi + 0x20], 0
lea ecx, [edi + 0x24]
push eax
push 0
mov dword [ebp - 0x10], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
call fcn.004090d0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0xc]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
je 0x408e18
test dl, 0x10
jne 0x408e18
mov eax, 1
jmp 0x408e1a
xor eax, eax
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
push dword [esi + 0x18]
call fcn.00408f00
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x40c1c0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x40c1f1
lea ecx, [ecx]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x40c1e0
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x410f10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5bd1b0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [edx + 0xc]
push 0
push 0
push 3
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
push 1
mov dword [ebp - 0x20], 0
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
mov ebx, eax
test ebx, ebx
jne 0x410f8a
push eax
mov dword [edi + 0x14], 7
mov ecx, edi
mov dword [edi + 0x10], eax
push 0x59bc94
mov word [edi], ax
call fcn.00407850
jmp 0x411011
lea edx, [ebx + 1]
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
call fcn.004111f0
lea eax, [ebx*2 + 2]
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
push eax
push 0
push esi
call fcn.00538670
add esp, 0xc
test esi, esi
je 0x410fcd
push ebx
push esi
push 3
lea eax, [ebp - 0x1c]
push eax
push 1
call dword [sym.imp.CRYPT32.dll_CertNameToStrW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [esi], ax
jne 0x410fe9
xor ecx, ecx
jmp 0x410fff
mov ecx, esi
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410ff0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00407850
push esi
call fcn.004113d4
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00536d2d
mov esp, ebp
pop ebp
ret

Function at 0x4169a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor esi, esi
call fcn.00419543
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4169dd
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.004169fe
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41be1a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41be5f
call fcn.00419543
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41be5f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41be7b
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004323d4
mov ebx, eax
test edi, edi
je 0x41be79
test esi, esi
je 0x41be79
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44cc07
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00420651
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x44cc43
call fcn.0044ce26
mov dword [esi + 0xc], 1
jmp 0x44cc48
call fcn.0044ce26
cmp dword [esi], 0
je 0x44cc91
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x44cc6b
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00419d29
jmp 0x44cc7c
push 0xff
mov ecx, esi
call fcn.00402ff0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004147be
jmp 0x44ccb5
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x44ccb5
push dword [esi]
push dword [ebp - 4]
call fcn.00422e53
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x44cd7b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0044ce26
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x44cdc3
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00419d29
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004147be
jmp 0x44cdce
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00422e53
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x47fc8e
Capabilities:
Get file system object information

Disassembly:
push 0x4c8
mov eax, 0x55b32e
call fcn.005381da
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402e20
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x4d0], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x4d0]
push 0
push 0x59a208
call fcn.00411cb8
cmp eax, 0xffffffff
jne 0x47fd42
push 0
push 0x5721ec
lea ecx, [ebp - 0x4d0]
call fcn.00411cb8
cmp eax, 0xffffffff
jne 0x47fd42
push 0
push 0x566224
lea ecx, [ebp - 0x4d0]
call fcn.00411cb8
cmp eax, 0xffffffff
jne 0x47fd42
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00402e20
pop ecx
lea edi, [eax + 0x10]
mov dword [ebp - 0x4d4], edi
xor ecx, ecx
mov byte [ebp - 4], 1
push ecx
lea eax, [ebp - 0x218]
push eax
push 0x104
push ecx
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
jne 0x47fd1e
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
lea ecx, [edi - 0x10]
mov ebx, eax
call fcn.00403170
jmp 0x47fd71
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x4d0]
call fcn.00402d70
lea ecx, [edi - 0x10]
mov byte [ebp - 4], 0
call fcn.00403170
mov esi, dword [ebp - 0x4d0]
push 0x105
push 0x2b4
lea eax, [ebp - 0x4cc]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x47fd68
mov ebx, dword [ebp - 0x4cc]
jmp 0x47fd71
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov ebx, eax
lea ecx, [esi - 0x10]
call fcn.00403170
mov eax, ebx
call fcn.00538189
ret