joyce8/EMBER2024-capa huggingface dataset:
Function at 0x438500
Capabilities:
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4d3a78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x50
push esi
mov esi, dword [esp + 0x68]
push edi
push 0x532d58
mov ecx, esi
call fcn.00419c40
mov edi, eax
lea eax, [esp + 0x6c]
push 0x532ea0
push eax
mov ecx, esi
call fcn.00419bf0
cmp edi, 2
mov dword [esp + 0x60], 0
jne 0x438578
mov edx, dword [esp + 0x70]
mov ecx, 8
mov esi, 0x532e78
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x18]
push ecx
push edx
push 0x20
push eax
call fcn.00437660
add esp, 0x10
jmp 0x43865e
call fcn.00437690
mov esi, eax
push 0x20
push 0x532e78
push esi
call fcn.00438140
mov ecx, dword [esp + 0x74]
add esp, 0xc
mov ecx, dword [ecx + 0x8c]
push 0x532e98
call fcn.00419bc0
test eax, eax
je 0x4385d0
lea edx, [esp + 0x68]
push 0
push edx
mov ecx, eax
call fcn.004199f0
mov eax, dword [esp + 0x68]
mov ecx, dword [eax - 8]
push ecx
push eax
push esi
call fcn.00438140
add esp, 0xc
lea ecx, [esp + 0x68]
call fcn.004aafff
push ebx
lea eax, [esp + 0xc]
push ebp
push eax
push esi
call fcn.00438220
mov edi, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
push edi
push ecx
lea edx, [esp + 0x20]
push 0x10
push edx
call fcn.00437660
add esp, 0x18
mov ebx, 1
xor eax, eax
test edi, edi
jle 0x438621
mov ebp, dword [esp + 0x78]
lea ecx, [esp + 0x40]
sub ebp, ecx
lea esi, [esp + eax + 0x40]
mov dl, byte [esi + ebp]
xor dl, bl
inc eax
cmp eax, edi
mov byte [esi], dl
jl 0x438611
lea eax, [esp + 0x40]
push edi
push eax
lea ecx, [esp + 0x18]
push 0x10
push ecx
call fcn.00437660
add esp, 0x10
inc ebx
cmp ebx, 0x13
jle 0x438601
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x1c]
pop ebp
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
pop ebx
mov esi, dword [esp + 0x6c]
mov ecx, 4
lea edi, [esp + 0x18]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
pop edi
pop esi
mov dword [esp + 0x58], 0xffffffff
lea ecx, [esp + 0x64]
jne 0x438698
call fcn.004aafff
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
add esp, 0x5c
ret
call fcn.004aafff
mov ecx, dword [esp + 0x50]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x5c
ret
Function at 0x43df70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x88
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
mov eax, dword [ebx]
lea ecx, [esp + 0x54]
push edi
push ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x18], eax
lea edx, [esp + 0x7c]
lea eax, [esp + 0x3c]
push edx
mov edx, dword [ecx + 0xc]
push eax
mov eax, dword [esp + 0xac]
push edx
push eax
push ebx
mov edi, 2
call fcn.0043f610
mov ebp, dword [esp + 0xc0]
add esp, 0x18
xor esi, esi
mov eax, dword [esp + esi + 0x58]
test eax, eax
jne 0x43e031
mov eax, dword [esp + esi + 0x38]
mov dword [esp + 0x18], 4
test eax, eax
je 0x43dfde
mov dword [esp + 0x24], eax
jmp 0x43dfec
mov ecx, dword [esp + 0xac]
mov edx, dword [ecx + 0xc]
mov dword [esp + 0x24], edx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebx
call fcn.0043cc60
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x43e031
mov edx, dword [esp + 0xa4]
mov eax, dword [esp + esi + 0x78]
mov ecx, dword [esp + 0x10]
push ebp
push edx
push eax
push ecx
push ebx
call fcn.0043d850
mov edx, dword [esp + 0x24]
mov edi, eax
push edx
call fcn.0043b150
add esp, 0x18
test edi, edi
je 0x43e039
add esi, 4
cmp esi, 0x20
jl 0x43dfc0
lea esi, [esp + 0x38]
mov ebx, 8
cmp dword [esi], 0
je 0x43e055
mov eax, dword [esp + 0x14]
push esi
push eax
call fcn.0043afc0
add esp, 8
add esi, 4
dec ebx
jne 0x43e042
test edi, edi
mov eax, 2
jne 0x43e066
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x88
ret
Function at 0x472720
Capabilities:
Enumerate pe sections
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d3d60
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x38]
xor ebp, ebp
and edi, 0xffff
push ebp
mov esi, ecx
push edi
call fcn.00474870
add esp, 8
cmp eax, ebp
je 0x472907
mov dword [esp + 0x24], ebp
mov dword [esp + 0x20], 0x4d8000
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x34], ebp
call fcn.004ae617
call fcn.004c0deb
mov ebx, dword [eax + 0xc]
cmp ebx, ebp
je 0x4728ee
push 0xf1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
je 0x4728ee
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
je 0x4728ee
mov edx, dword [esi + 0x9c]
xor ecx, ecx
mov cx, word [ebx + 4]
xor eax, eax
mov ax, word [ebx + 2]
cmp edx, ebp
jne 0x4728c8
push 0xa
push ebp
mov dword [esi + 0x9c], eax
lea edi, [eax + 4]
push 1
mov dword [esi + 0xa0], ecx
lea edx, [ecx + 4]
push ecx
mov dword [esi + 0xa4], edi
push eax
lea ecx, [esi + 0x38]
mov dword [esi + 0xa8], edx
call fcn.004a407b
mov eax, dword [esi + 0x3c]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_GetImageCount]
push 0xf
mov dword [esp + 0x14], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x20]
neg ecx
sbb ecx, ecx
push eax
and ecx, edi
push ecx
mov ecx, dword [esi + 0x3c]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp word [ebx + 6], bp
mov dword [esp + 0x18], ebp
jbe 0x47288e
lea edx, [ebx + 8]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
xor edi, edi
mov di, word [eax]
test edi, edi
jbe 0x472870
lea ecx, [esp + 0x1c]
lea ebp, [esi + 0x40]
push ecx
push edi
mov ecx, ebp
call fcn.004a6128
test eax, eax
je 0x47285e
mov eax, dword [esp + 0x1c]
test eax, eax
jge 0x47286c
push edi
mov ecx, ebp
call fcn.004a614a
mov edx, dword [esp + 0x10]
mov dword [eax], edx
inc dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
xor ecx, ecx
inc eax
mov cx, word [ebx + 6]
add edi, 2
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
jl 0x472835
mov edx, dword [esp + 0x38]
mov eax, dword [esi + 0x2c]
lea ecx, [esi + 0x24]
push edx
push eax
call fcn.004a500d
lea ecx, [esp + 0x20]
call fcn.004ae644
mov dword [esp + 0x20], vtable.CGdiObject.0
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], 3
call fcn.004ae66e
mov eax, 1
jmp 0x472909
cmp dword [esi + 0x9c], eax
jne 0x4728dc
cmp dword [esi + 0xa0], ecx
je 0x4727f4
mov dword [esp + 0x20], vtable.CGdiObject.0
mov dword [esp + 0x30], 2
jmp 0x4728fe
mov dword [esp + 0x20], vtable.CGdiObject.0
mov dword [esp + 0x30], 1
lea ecx, [esp + 0x20]
call fcn.004ae66e
xor eax, eax
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x4744b0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push 0xffffffffffffffff
push 0x4d3f00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x68]
mov esi, ecx
push 9
mov ecx, edi
mov dword [esp + 0x14], esi
call fcn.004ab4d8
xor ebp, ebp
cmp eax, ebp
jle 0x47450f
push eax
lea eax, [esp + 0x6c]
push eax
mov ecx, edi
call fcn.004a33bc
push eax
mov ecx, edi
mov dword [esp + 0x64], ebp
call fcn.004ab138
lea ecx, [esp + 0x68]
mov dword [esp + 0x60], 0xffffffff
call fcn.004aafff
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x68]
push ecx
push edx
lea ecx, [esi + 0x5c]
call fcn.004a6128
mov esi, eax
mov eax, dword [esp + 0x68]
neg esi
sbb esi, esi
and esi, eax
je 0x474619
mov ebx, dword [sym.imp.USER32.dll_MapVirtualKeyA]
test ebp, ebp
mov eax, 0x533d74
jne 0x474547
mov eax, 0x503200
push eax
mov ecx, edi
call fcn.004ab3db
test byte [esi], 0x10
je 0x474560
push str.Alt
mov ecx, edi
call fcn.004ab3db
test byte [esi], 8
je 0x474571
push str.Ctrl
mov ecx, edi
call fcn.004ab3db
test byte [esi], 4
je 0x474582
push str.Shift
mov ecx, edi
call fcn.004ab3db
test byte [esi], 1
je 0x4745e5
xor eax, eax
push 0
mov ax, word [esi + 2]
push eax
call ebx
lea ecx, [esp + 0x18]
push 0x40
shl eax, 0x10
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.004ab06d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
call fcn.00474330
push eax
mov ecx, edi
mov dword [esp + 0x64], 1
call fcn.004ab417
lea ecx, [esp + 0x6c]
mov dword [esp + 0x60], 0xffffffff
call fcn.004aafff
jmp 0x4745f0
mov cl, byte [esi + 2]
push ecx
mov ecx, edi
call fcn.004ab402
mov ax, word [esi + 4]
mov ebp, 1
test ax, ax
je 0x474619
and eax, 0xffff
lea edx, [eax*4]
sub edx, eax
neg edx
lea esi, [esi + edx*2]
test esi, esi
jne 0x474539
mov ecx, dword [esp + 0x58]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x54
ret 8
Function at 0x474950
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4d3f80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x38]
push edi
mov eax, esi
mov edi, ecx
mov dword [esp + 0x10], vtable.CBrush.0
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x1c], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0xc]
xor eax, eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], eax
call fcn.00472420
mov ebx, dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.004ae617
mov eax, dword [esp + 0x18]
mov ecx, dword [edi + 0xa4]
mov edx, dword [esp + 0x14]
add eax, ecx
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [ebp + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_FillRect]
lea ecx, [esp + 0x10]
call fcn.004ae66e
mov ecx, dword [esi + 4]
mov eax, dword [esi]
mov edx, dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xc]
push 0xffffff
mov dword [esp + 0x28], ecx
mov ecx, dword [edi + 0xa4]
add eax, ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
call ebx
push eax
lea ecx, [esp + 0x14]
call fcn.004ae617
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x10]
neg eax
sbb eax, eax
lea edx, [esp + 0x18]
and eax, ebx
push eax
mov eax, dword [ebp + 4]
push edx
push eax
call dword [sym.imp.USER32.dll_FillRect]
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.004ae66e
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x475fa0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x260
push ebx
push ebp
mov ebp, dword [esp + 0x270]
push esi
push edi
mov edi, dword [esp + 0x280]
test edi, edi
mov esi, ecx
jne 0x475fe2
mov eax, dword [esp + 0x27c]
mov ecx, dword [esp + 0x274]
push eax
push 0
push 0
push ebp
push str.open
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, eax
jmp 0x475fe6
mov ebx, dword [esp + 0x10]
cmp ebx, 0x20
jbe 0x475ff4
cmp edi, 1
jne 0x4760cf
mov edx, dword [esi]
lea eax, [esp + 0x68]
push eax
push str..htm
push SysReAllocString
mov ecx, esi
call dword [edx + 0xf8]
test eax, eax
jne 0x4760cf
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x68]
push str._shellopencommand
push ecx
call edi
mov edx, dword [esi]
lea eax, [esp + 0x68]
lea ecx, [esp + 0x68]
push eax
push ecx
push SysReAllocString
mov ecx, esi
call dword [edx + 0xf8]
test eax, eax
jne 0x4760cf
lea edx, [esp + 0x68]
push str.__1_
push edx
call fcn.00483eee
mov esi, eax
add esp, 8
test esi, esi
jne 0x47607e
lea eax, [esp + 0x68]
push 0x50288c
push eax
call fcn.00483eee
mov esi, eax
add esp, 8
test esi, esi
jne 0x47607e
lea esi, [esp + 0x68]
jmp 0x476081
mov byte [esi], 0
push 0x502888
push esi
call edi
push ebp
push esi
call edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x24]
lea edx, [esp + 0x24]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0x44
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4760cb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x260
ret 0x10
mov ebx, dword [esp + 0x14]
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x260
ret 0x10
Function at 0x48a0c9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x5365a0
cmp edx, dword [eax]
je 0x48a0eb
add eax, 8
inc ecx
cmp eax, str.__t__r_
jl 0x48a0dc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x5365a0]
jne 0x48a219
mov eax, dword [0x53b6f0]
cmp eax, 1
je 0x48a1f3
test eax, eax
jne 0x48a11c
cmp dword [0x535c08], 1
je 0x48a1f3
cmp edx, 0xfc
je 0x48a219
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48a153
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0048e660
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00486ac0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x48a196
lea eax, [ebp - 0x1a4]
push eax
call fcn.00486ac0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ed18c
push edi
call fcn.00485710
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0048e660
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0048e670
lea eax, [ebp - 0xa0]
push 0x4ed16c
push eax
call fcn.0048e670
push dword [esi + 0x5365a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0048e670
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0049089f
add esp, 0x2c
pop edi
jmp 0x48a219
lea eax, [ebp + 8]
lea esi, [esi + 0x5365a4]
push 0
push eax
push dword [esi]
call fcn.00486ac0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x495c50
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.00486340
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x495d1b
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 0x495d1b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x495cce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x495cd9
or bh, 8
and edi, 0x8000000
je 0x495cf4
mov eax, dword [0x53ce9c]
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 0x495d1b
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 0x4960f0
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 0x49611b
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 0x49613f
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 0x49615a
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 0x49b8c2
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x49b8ef
push esi
call fcn.0049b13d
cmp byte [esi + 0x40], 0
pop ecx
je 0x49b8e8
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x49b95e
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x49b953
mov eax, dword [esi + 8]
test eax, eax
je 0x49b910
push esi
call dword [eax]
pop ecx
mov eax, dword [esi + 0x190]
push esi
call dword [eax]
test eax, eax
pop ecx
je 0x49b94f
cmp eax, 2
je 0x49b953
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x49b905
cmp eax, 3
je 0x49b934
cmp eax, 1
jne 0x49b905
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
cmp dword [eax + 4], ecx
jl 0x49b905
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x49b905
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x49b97c
cmp eax, 0xcc
je 0x49b97c
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov dword [eax + 0x18], ecx
mov eax, dword [esi]
call dword [eax]
pop ecx
push esi
call fcn.0049b985
pop ecx
pop esi
ret

Function at 0x49b985
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xcc
je 0x49b9a8
mov eax, dword [esi + 0x180]
push esi
call dword [eax]
and dword [esi + 0x78], 0
pop ecx
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
cmp byte [eax + 8], 0
je 0x49b9c5
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x30
mov eax, dword [esi]
call dword [eax]
pop ecx
jmp 0x49b9a8
xor eax, eax
cmp byte [esi + 0x41], al
setne al
add eax, 0xcd
mov dword [esi + 0x14], eax
mov al, 1
pop esi
ret

Function at 0x4a713c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a7174
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.004ab4a6
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ab47e
jmp 0x4a7180
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a8ce3
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a8d25
call fcn.004c0deb
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a8d25
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a8d1c
xor eax, eax
jmp 0x4a8d2d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a8d33
pop edi
pop esi
pop ebx
ret 4
Function at 0x4aa65d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004c0deb
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4aa68e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004aa6a1
pop edi
pop esi
pop ebx
ret 8

Function at 0x4c125b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004c0deb
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c1298
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c1298
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4c129c
xor eax, eax
jmp 0x4c131a
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004a622a
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4c12d4
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4c12be
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004c140b
push ebx
mov edi, eax
call fcn.004a6253
test edi, edi
pop ecx
je 0x4c1316
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004c11d4
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004c131f
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4c376d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c379b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c37b9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c36d3
jmp 0x4c37b9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c37b9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c36d3
test edi, edi
mov eax, edi
jne 0x4c37a3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8