joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a1ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5458]
jne 0x40a1d8
repz ret
jmp fcn.0040cefb

Function at 0x40a96b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5458]
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.00408487
and dword [ebp - 0x14], 0
cmp dword [0x4a79e0], 0
mov dword [ebp - 0x18], eax
jne 0x40aa1e
push 0x4021f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40aac6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021e4
push ebx
call edi
test eax, eax
je 0x40aac6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x4021d4
push ebx
mov dword [0x4a79e0], eax
call edi
push eax
call esi
push 0x4021c0
push ebx
mov dword [0x4a79e4], eax
call edi
push eax
call esi
push 0x4021a4
push ebx
mov dword [0x4a79e8], eax
call edi
push eax
call esi
mov dword [0x4a79f0], eax
test eax, eax
je 0x40aa1e
push 0x40218c
push ebx
call edi
push eax
call esi
mov dword [0x4a79ec], eax
mov eax, dword [0x4a79ec]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40aa77
cmp dword [0x4a79f0], ecx
je 0x40aa77
push eax
call esi
push dword [0x4a79f0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40aa77
test ebx, ebx
je 0x40aa77
call edi
test eax, eax
je 0x40aa6e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40aa6e
test byte [ebp - 8], 1
jne 0x40aa77
or dword [ebp + 0x10], 0x200000
jmp 0x40aaaa
mov eax, dword [0x4a79e4]
cmp eax, dword [ebp - 0x18]
je 0x40aaaa
push eax
call esi
test eax, eax
je 0x40aaaa
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40aaaa
mov eax, dword [0x4a79e8]
cmp eax, dword [ebp - 0x18]
je 0x40aaaa
push eax
call esi
test eax, eax
je 0x40aaaa
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a79e0]
call esi
test eax, eax
je 0x40aac6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40aac8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a1ce
leave
ret
Function at 0x4a1850
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x6b
mov edx, 0x72
mov word [0x82ba90], ax
mov word [0x82ba94], dx
mov ecx, 0x6e
mov edx, 0x65
xor eax, eax
push 0x82ba90
mov dword [0x82ba9c], 0x320033
mov dword [0x82baa4], 0x6c006c
mov word [0x82ba96], cx
mov dword [0x82ba98], 0x6c0065
mov dword [0x82baa0], 0x64002e
mov word [0x82ba92], dx
mov word [0x82baa8], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x82ba8c]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x82ba88], eax
mov eax, dword [0x4acadc]
push edx
push eax
mov byte [0x4a7d53], 0x65
mov dword [0x4a7d49], 0x75747269
mov word [0x4a7d4d], 0x6c61
mov byte [0x4a7d48], 0x56
mov word [0x4a7d54], 0x7463
mov byte [0x4a7d56], 0
mov dword [0x4a7d4f], 0x746f7250
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret

Function at 0x4a1940
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
mov eax, 0x148c
call fcn.0040ced0
cmp dword [0x82ba8c], 0x37
jne 0x4a1a15
push 0
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x4046bc
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov ecx, dword [esp + 4]
push 0
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_MapUserPhysicalPages]
push 0
lea edx, [esp + 0x48c]
push edx
push 0x4046e8
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push 0
lea eax, [esp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 0xc]
push edx
push 0x404728
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessIoCounters]
push 0
lea ecx, [esp + 0xc8c]
push ecx
push 0
push 0x40473c
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringW]
push 0
push 0
push 0
push 0x404774
push 0x40478c
push 0x4047a4
call dword [sym.imp.KERNEL32.dll_ReplaceFileA]
mov edx, dword [0x82ca80]
mov dword [esp + 4], edx
mov eax, 0x5d1
add dword [esp + 4], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + esi]
mov edx, dword [0x4acadc]
mov byte [edx + esi], cl
add esp, 0x148c
ret
Function at 0x4a1bb0
Capabilities:
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x82ba8c]
sub esp, 0x2dc
push ebx
push ebp
push esi
mov esi, dword [0x4acadc]
shr eax, 3
push edi
test eax, eax
je 0x4a1d5c
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], eax
jmp 0x4a1be4
mov esi, dword [esp + 0x18]
cmp dword [0x82ba8c], 0x1c
jne 0x4a1c01
lea eax, [esp + 0x38]
push eax
push 0
lea ecx, [esp + 0x44]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov edx, dword [str.Ex_byA]
mov ecx, dword [0x4a6214]
mov eax, dword [esi]
mov edi, dword [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [0x4a6218]
mov dword [esp + 0x2c], ecx
mov ecx, dword [0x4a621c]
mov dword [esp + 0x14], eax
mov ebx, 0xc6ef3720
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x1c], 0x20
jmp 0x4a1c45
mov eax, dword [esp + 0x14]
mov edx, eax
mov ecx, eax
shr edx, 5
add edx, dword [esp + 0x34]
shl ecx, 4
add ecx, dword [esp + 0x24]
add eax, ebx
xor edx, ecx
xor edx, eax
sub edi, edx
mov ecx, edi
shl ecx, 4
mov dword [0x82b9fc], 0
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x28]
add dword [esp + 0x10], eax
cmp dword [0x82ba8c], 0x1be
lea ebp, [ebx + edi]
jne 0x4a1c9a
lea edx, [esp + 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov esi, edi
shr esi, 5
add esi, dword [esp + 0x2c]
cmp dword [0x82ba8c], 0x979
mov dword [0x82ba00], 0xff6b3619
mov dword [0x82ba04], 0xffffffff
jne 0x4a1cda
mov eax, dword [esp + 0x30]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor esi, ebp
xor dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
sub dword [esp + 0x14], eax
add ebx, 0x61c88647
dec dword [esp + 0x1c]
jne 0x4a1c41
cmp dword [0x82ba8c], 0x8d4
jne 0x4a1d0f
lea ecx, [esp + 0x50]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], edi
cmp dword [0x82ba8c], 0x17
jne 0x4a1d4b
push 0
push 0
push 0
push 0x404690
push 0x4046a4
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea eax, [esp + 0x98]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
add esi, 8
dec dword [esp + 0x20]
mov dword [esp + 0x18], esi
jne 0x4a1be0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2dc
ret
Function at 0xf04210
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0xb05015
lea edi, [esi - 0x704015]
mov dword [edi + 0x9d9628], 0x528347cf
push edi
or ebp, 0xffffffff
jmp 0xf0423a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0xf04241
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf04230
mov eax, 1
add ebx, ebx
jne 0xf04253
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0xf04264
jne 0xf04283
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf04283
dec eax
add ebx, ebx
jne 0xf04270
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0xf04248
add ebx, ebx
jne 0xf0427f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0xf042d5
xor ecx, ecx
sub eax, 3
jb 0xf0429b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0xf0430a
sar eax, 1
mov ebp, eax
jmp 0xf042a6
add ebx, ebx
jne 0xf042a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf04274
inc ecx
add ebx, ebx
jne 0xf042b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0xf04274
add ebx, ebx
jne 0xf042c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0xf042b6
jne 0xf042d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0xf042b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0xf042f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0xf042e6
jmp 0xf04236
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0xf042f4
add edi, ecx
jmp 0xf04236
pop esi
mov edi, esi
mov ecx, 0x3d6a7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0xf04312
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0xf04317
lea edi, [esi + 0xae6000]
mov eax, dword [edi]
or eax, eax
je 0xf0437f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb07a98]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb07c20]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0xf0433d
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb07c28]
or eax, eax
je 0xf04379
mov dword [ebx], eax
add ebx, 4
jmp 0xf0435a
call dword [esi + 0xb07c24]
mov ebp, dword [esi + 0xb07c2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0xb043da]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0xf043cb
sub esp, 0xffffff80
jmp 0x4012a0
Function at 0x403fb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x60
push 0
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x40c], 0
call ebx
mov edi, eax
test edi, edi
jne 0x403ffe
push 2
push eax
push esi
call ebx
mov edi, eax
test edi, edi
jne 0x403ffe
call fcn.00402970
mov esi, eax
jmp 0x4040ae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40401b
call fcn.00402970
jmp 0x4040a1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x404030
call fcn.00402970
jmp 0x4040a1
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x404048
mov esi, 0x8007000e
jmp 0x4040a3
push eax
lea ecx, [ebp - 0x40c]
call fcn.00402750
cmp dword [ebp - 0x40c], 0
jne 0x404064
mov esi, 0x8007000e
jmp 0x4040a3
push esi
push dword [ebp - 0x40c]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x404084
call fcn.00402970
jmp 0x4040a1
mov eax, dword [ebp - 0x40c]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 8]
push dword [ebp - 0x40c]
call fcn.00403e60
mov esi, eax
test edi, edi
je 0x4040ae
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x408]
cmp dword [ebp - 0x40c], eax
je 0x4040c7
lea ecx, [ebp - 0x40c]
call fcn.00403070
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x405029
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405035
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x405030
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x405070
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x405085
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405090
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x413dd0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 4], esi
push eax
push ebx
movups xmmword [ebp - 0x30], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
call edi
mov ecx, dword [ebp - 0x24]
mov esi, eax
sub ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
sub eax, dword [ebp - 0x30]
mov ebx, dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push ecx
push eax
push dword [ebp - 4]
call ebx
push eax
push esi
mov dword [ebp - 0xc], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xe
push esi
push 0x318
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x20]
xorps xmm0, xmm0
push eax
push dword [ebp + 8]
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push 0
call edi
mov ecx, dword [ebp - 0x14]
mov edi, eax
sub ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push ecx
push eax
push esi
call ebx
push eax
push edi
mov dword [ebp + 8], eax
call dword [sym.imp.GDI32.dll_SelectObject]
movups xmm0, xmmword [ebp - 0x20]
push 2
mov ebx, eax
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 0xc]
movups xmmword [ebp - 0x40], xmm0
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push 0xcc0020
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push esi
push eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x20]
push eax
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_BitBlt]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push dword [ebp - 8]
mov dword [ebp - 0x10], eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [ebp + 8]
test eax, eax
je 0x413edf
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ebx, dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
je 0x413eec
push edi
call ebx
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x413efa
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
test esi, esi
je 0x413f01
push esi
call ebx
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414640
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push esi
mov esi, ecx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 0xb
cmp eax, ecx
je 0x41466c
push ecx
push 0xfffffffffffffff0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [0x4de034]
mov edx, dword [0x4de02c]
sub eax, edx
mov ecx, dword [0x4de028]
push 0
push dword [0x4e5410]
push 0
push dword [esi + 4]
push eax
mov eax, dword [0x4de030]
sub eax, ecx
push eax
push edx
push ecx
push 0
push 0
push str.tooltips_class32
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 0x24], eax
mov ecx, esi
push dword [esi + 0x28]
call fcn.00415950
push 5
call dword [sym.imp.USER32.dll_GetSysColor]
test byte [esi + 0x50], 1
mov ecx, 0
push 0x258
cmovne eax, ecx
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x258]
push ecx
push eax
call fcn.00496a10
add esp, 0xc
lea eax, [ebp - 0x258]
push 0x12b
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x414715
lea eax, [ebp - 0x258]
mov ecx, esi
push eax
call fcn.00415950
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
jne 0x414730
mov dword [esi + 0x5c], 3
mov dword [esi + 0x58], 3
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x414a30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push ebx
push esi
push edi
push 0x800
lea eax, [ebp - 0x834]
mov esi, ecx
push 0
push eax
call fcn.00496a10
add esp, 0xc
lea eax, [ebp - 0x834]
push 0x400
push eax
push dword [esi + 0x50]
call dword [sym.imp.USER32.dll_GetWindowTextW]
xor eax, eax
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], eax
mov word [ebp - 0x34], ax
cmp word [ebp - 0x834], ax
jne 0x414a9b
xor ecx, ecx
jmp 0x414ab3
lea ecx, [ebp - 0x834]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414aa4
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x834]
push eax
lea ecx, [ebp - 0x34]
call fcn.004064e0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0041fec0
mov eax, dword [ebp - 0x20]
add esp, 0xc
cmp eax, 8
jb 0x414aec
inc eax
lea ecx, [ebp - 0x34]
push eax
push dword [ebp - 0x34]
call fcn.00406780
cmp dword [ebp - 4], 0
sete al
cmp dword [ebp - 8], 8
mov byte [esi + 0x2c4], al
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
push dword [esi + 0x58]
push dword [esi + 8]
call fcn.00420880
add esp, 0xc
cmp word [ebp - 0x834], 0
jne 0x414b21
xor ecx, ecx
jmp 0x414b3f
lea ecx, [ebp - 0x834]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414b30
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x834]
lea edi, [esi + 0x2ac]
push eax
mov ecx, edi
call fcn.004064e0
cmp byte [esi + 0x2c4], 0
je 0x414b69
mov ecx, dword [esi + 0x2cc]
push edi
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [ebp - 8]
mov bl, byte [esi + 0x2c4]
cmp ecx, 8
jb 0x414b84
inc ecx
push ecx
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x1c]
call fcn.00406780
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x415c50
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 0x415c65
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415ca6
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 0x415ca2
nop word [eax + eax]
cmp esi, edx
jae 0x415ca6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x415c90
cmp esi, edx
jb 0x415cab
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 0x4163d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp byte [0x4e12ec], 0
jne 0x41641a
lea eax, [ebp - 0x14]
mov byte [0x4e12ec], 1
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 1
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x20], 0
push eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
call sub.gdiplus.dll_GdiplusStartup
mov ecx, dword [ebp + 8]
mov eax, ecx
push ebx
shr eax, 0x10
push esi
push edi
test eax, eax
je 0x41645e
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4164fb
lea eax, [ebp - 4]
mov dword [esi], 0x4c05ac
push eax
push dword [ebp + 8]
mov dword [ebp - 4], 0
call sub.gdiplus.dll_GdipCreateBitmapFromFile
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
jmp 0x41657d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41654b
cmp eax, 2
je 0x41654b
push ecx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.004167b0
mov edi, dword [ebp - 0x14]
test al, al
je 0x4164f0
push dword [ebp - 0x10]
push dword [0x4e5414]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4164f0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
call fcn.00496490
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x416504
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
test edi, edi
je 0x4164fb
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x416536
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [esi], 0x4c05ac
mov dword [ebp - 8], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
jmp 0x416538
xor esi, esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x14]
call fcn.00416340
jmp 0x416580
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x4164fb
mov eax, dword [0x4e5414]
lea ecx, [ebp - 8]
push ecx
mov dword [esi], 0x4c05ac
push dword [ebp + 8]
mov dword [ebp - 8], 0
push eax
call sub.gdiplus.dll_GdipCreateBitmapFromResource
mov dword [esi + 8], eax
mov eax, dword [ebp - 8]
mov dword [esi + 4], eax
test esi, esi
je 0x4164fb
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [esi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x4165a4
mov dword [esi + 8], eax
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416a80
Capabilities:
Hide graphical window

Disassembly:
push 0
push dword [ecx + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x4176e0
Capabilities:
Hide graphical window

Disassembly:
push 0
push 0x7d9
push dword [ecx + 8]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret