joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b152
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x5a04e0
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x40
cmp dword [0x5f5390], 1
jge 0x5a054f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x5a0525
mov edx, dword [ebx + 8]
movzx eax, word [edx]
movzx ecx, word [ebx + 0xc]
cmp eax, ecx
je 0x5a0525
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x5a0502
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x5a053b
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
jmp 0x5a0542
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
jmp 0x5a063f
movzx ecx, word [ebx + 0xc]
movd xmm0, ecx
movaps xmmword [ebp - 0x30], xmm0
pshuflw xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
pshufd xmm0, xmmword [ebp - 0x30], 0
movaps xmmword [ebp - 0x30], xmm0
mov edx, dword [ebx + 8]
and edx, 0xfff
cmp edx, 0xff0
ja 0x5a0610
mov eax, dword [ebx + 8]
movups xmm0, xmmword [eax]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pxor xmm0, xmmword [ebp - 0x20]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pcmpeqw xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x40]
pcmpeqw xmm0, xmmword [ebp - 0x30]
movaps xmmword [ebp - 0x40], xmm0
movaps xmm0, xmmword [ebp - 0x20]
por xmm0, xmmword [ebp - 0x40]
movaps xmmword [ebp - 0x20], xmm0
movaps xmm0, xmmword [ebp - 0x20]
pmovmskb ecx, xmm0
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x5a0605
bsf edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebx + 8]
mov dword [ebx + 8], eax
mov ecx, dword [ebx + 8]
movzx edx, word [ecx]
movzx eax, word [ebx + 0xc]
cmp edx, eax
jne 0x5a05f9
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xc], ecx
jmp 0x5a0600
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
jmp 0x5a063f
mov edx, dword [ebx + 8]
add edx, 0x10
mov dword [ebx + 8], edx
jmp 0x5a063a
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
movzx edx, word [ebx + 0xc]
cmp ecx, edx
jne 0x5a0623
mov eax, dword [ebx + 8]
jmp 0x5a063f
mov eax, dword [ebx + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x5a0631
xor eax, eax
jmp 0x5a063f
mov edx, dword [ebx + 8]
add edx, 2
mov dword [ebx + 8], edx
jmp 0x5a056f
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret

Function at 0x48f3bf
Capabilities:
Query environment variable

Disassembly:
jmp 0x5788d7
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x5788eb
xor edi, edi
jmp 0x57892f
push ebx
push esi
call fcn.005787ce
sub eax, esi
sar eax, 1
push 0x40
push str.minkernelcrtsucrt_srcdesktopcrtenvget_environment_from_os.cpp
push 2
lea ebx, [eax + eax]
push ebx
call fcn.0048c7dc
mov edi, eax
add esp, 0x14
test edi, edi
je 0x57891c
push ebx
push esi
push edi
call fcn.0048ae41
add esp, 0xc
push 2
push 0
call fcn.0048a1a3
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret
Function at 0x574030
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.00489938
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x57406e
cmp dword [ebp + 8], 0
je 0x57405c
lea eax, [ebp + 8]
push eax
call fcn.0048f13a
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x57406e
mov eax, 4
jmp 0x57419e
call fcn.0048b9ae
movzx edx, al
test edx, edx
jne 0x57409c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x57408d
mov dword [ebp - 0xc], 4
jmp 0x574094
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x57419e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x574145
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x5744f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.0048da74
lea ecx, [ebp - 8]
call fcn.00489ed3
movzx edx, al
test edx, edx
jne 0x574107
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.0048bb3e
mov eax, dword [ebp - 0x10]
jmp 0x57419e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0048e98d
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x574132
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.0048bb3e
mov eax, dword [ebp - 0x14]
jmp 0x57419e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.0048bb3e
mov eax, dword [ebp - 0x18]
jmp 0x57419e
call fcn.004898ac
movzx ecx, al
test ecx, ecx
jne 0x57417e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.0048ba35
add esp, 0x10
jmp 0x57419e
call fcn.0048f41e
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0048f6bc
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x574200
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
call fcn.00489938
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x57423e
cmp dword [ebp + 8], 0
je 0x57422c
lea eax, [ebp + 8]
push eax
call fcn.0048d24a
add esp, 4
movzx ecx, byte [ebp - 1]
test ecx, ecx
je 0x57423e
mov eax, 4
jmp 0x57436e
call fcn.0048b9ae
movzx edx, al
test edx, edx
jne 0x57426c
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x57425d
mov dword [ebp - 0xc], 4
jmp 0x574264
mov dword [ebp - 0xc], 3
mov eax, dword [ebp - 0xc]
jmp 0x57436e
movzx eax, byte [ebp - 1]
test eax, eax
je 0x574315
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x34], ecx
mov edx, dword [ebp + 8]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
push 0
push 0
lea ecx, [ebp - 0x34]
push ecx
push 0x574550
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
lea ecx, [ebp - 8]
call fcn.0048da74
lea ecx, [ebp - 8]
call fcn.00489ed3
movzx edx, al
test edx, edx
jne 0x5742d7
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 8]
call fcn.0048bb3e
mov eax, dword [ebp - 0x10]
jmp 0x57436e
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 8]
call fcn.0048e98d
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
je 0x574302
mov dword [ebp - 0x14], 0
lea ecx, [ebp - 8]
call fcn.0048bb3e
mov eax, dword [ebp - 0x14]
jmp 0x57436e
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 8]
call fcn.0048bb3e
mov eax, dword [ebp - 0x18]
jmp 0x57436e
call fcn.004898ac
movzx ecx, al
test ecx, ecx
jne 0x57434e
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], 0
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.0048be5e
add esp, 0x10
jmp 0x57436e
call fcn.0048f41e
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x10]
push ecx
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.0048c444
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4042e0
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
test eax, eax
jge 0x404304
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4042fd
pop esi
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
pop esi
ret
Function at 0x404a30
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov eax, dword [esp + 0x14]
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404b00
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push edi
call fcn.0041b80c
mov ebp, eax
add esp, 4
cmp ebp, esi
jne 0x404a87
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
mov dword [esp + 0x1c], esi
mov edx, edi
lea ecx, [esp + 0x1c]
push 0
sub edx, esi
push ecx
lea eax, [esi + ebp]
push edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
add esi, dword [esp + 0x1c]
cmp esi, edi
jb 0x404a8b
push 0
push edi
push str.www.baidu.com
push ebp
call fcn.00404610
add esp, 0x10
test eax, eax
je 0x404af9
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x18]
push 0x344
push esi
mov dword [esp + 0x18], 0
call fcn.00404670
add esp, 8
lea ecx, [esp + 0x10]
push 0
push ecx
push 0x344
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret 8

Function at 0x406dc0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4237d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
mov dword [esp + 4], 0
mov ecx, dword [ecx + 4]
mov edx, dword [esp + 0x120]
push ecx
mov ecx, dword [esp + 0x128]
lea eax, [esp + 0xc]
push 0x100
push eax
mov eax, dword [esp + 0x128]
push ecx
push edx
push eax
mov dword [esp + 0x128], 3
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov esi, dword [esp + 0x118]
lea ecx, [esp + 8]
push ecx
mov ecx, esi
call fcn.0041ab0d
mov dword [esp + 4], 1
lea ecx, [esp + 0x11c]
mov byte [esp + 0x110], 2
call fcn.0041aa9f
lea ecx, [esp + 0x120]
mov byte [esp + 0x110], 1
call fcn.0041aa9f
lea ecx, [esp + 0x124]
mov byte [esp + 0x110], 0
call fcn.0041aa9f
mov ecx, dword [esp + 0x108]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret 0x10

Function at 0x406e90
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4237e8
push eax
mov dword fs:[0], esp
push esi
mov ecx, dword [ecx + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
push edx
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0041aa9f
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call fcn.0041aa9f
mov ecx, dword [esp + 4]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0xc
ret 0xc
Function at 0x4074f0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esp + 4]
push ebx
cmp eax, 0xffffffff
push esi
je 0x407592
mov esi, dword [esp + 0x10]
test esi, esi
je 0x407592
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x407592
mov al, byte [ecx + 0x54]
test al, al
je 0x407592
push ebp
push edi
push 0x1020
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, eax
xor ecx, ecx
push 0
push eax
mov dword [edx], ecx
push 0
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov ecx, ebx
lea edx, [eax + 0x1c]
mov ebp, ecx
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [eax + 0x18], edx
lea ecx, [eax + 0x14]
mov byte [eax + 0x101c], 1
lea eax, [esp + 0x24]
push eax
push 1
mov dword [ecx], ebx
push ecx
mov ecx, dword [esp + 0x2c]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
pop edi
cmp eax, 0xffffffff
pop ebp
jne 0x40758b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x407592
pop esi
mov al, 1
pop ebx
ret 0xc
pop esi
xor al, al
pop ebx
ret 0xc

Function at 0x407600
Capabilities:
Get system information on windows

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov al, byte [esi + 0x54]
test al, al
je 0x4076a2
lea edi, [esi + 0x3c]
push edi
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x30]
mov ecx, dword [eax + 4]
mov edx, ecx
mov dword [esi + 0x34], ecx
cmp edx, eax
je 0x40769b
mov ebx, dword [sym.imp.WS2_32.dll_shutdown]
mov ebp, dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
je 0x4076aa
mov edi, dword [eax + 0xc]
mov ecx, dword [eax + 8]
push 1
push edi
mov dword [esp + 0x1c], ecx
call ebx
push edi
call ebp
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
je 0x407687
mov edi, dword [eax + 4]
mov edx, dword [eax]
mov ecx, edi
push eax
mov dword [edx + 4], ecx
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov dword [edx], ecx
call fcn.0041b835
mov eax, dword [esi + 0x38]
add esp, 4
dec eax
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov edx, dword [esi + 0x34]
mov eax, dword [edx + 4]
mov dword [esi + 0x34], eax
mov ecx, eax
cmp ecx, dword [esi + 0x30]
jne 0x40763d
mov edi, dword [esp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
lea edx, [esp + 0x10]
push 0x429570
push edx
mov dword [esp + 0x18], str.DCLinkedList::Data:_invalid_reference
call fcn.0040c5cc
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x4076d0
Capabilities:
Get system information on windows
Terminate thread

Disassembly:
sub esp, 0x24
push esi
mov esi, ecx
mov al, byte [esi + 0x54]
test al, al
je 0x407771
lea eax, [esp + 4]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [esp + 0x1c]
xor edi, edi
lea edx, [ecx + ecx + 2]
test edx, edx
jbe 0x40771c
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov eax, dword [esi + 0xc]
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
call ebp
mov ecx, dword [esp + 0x20]
inc edi
lea edx, [ecx + ecx + 2]
cmp edi, edx
jb 0x407702
pop ebp
mov eax, dword [esi + 0x5c]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [esi + 0x5c]
push 0xa
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi + 0x5c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x58]
push 0
push eax
call dword [sym.imp.WS2_32.dll_shutdown]
mov ecx, dword [esi + 0x58]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, esi
call fcn.00407600
lea edx, [esi + 0x3c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [esi + 8], 0
mov byte [esi + 0x54], 0
pop edi
pop esi
add esp, 0x24
ret
Function at 0x408fc0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x74]
test eax, eax
je 0x409000
call fcn.00409bc0
test eax, eax
je 0x409007
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x409500
push 0
push 0
call fcn.0040c606
add esp, 0x18
mov dword [esi + 0x90], eax
test eax, eax
je 0x409000
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x98]
test eax, eax
je 0x409000
mov ecx, dword [eax]
lea edx, [esp + 8]
push edi
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0x98]
lea edx, [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
push 0
mov edi, ecx
mov eax, dword [esi + 0x98]
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x50]
mov edx, dword [eax]
push 0
push ecx
mov ecx, dword [esi + 0x4c]
push ecx
mov ecx, dword [esi + 0x78]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x409000
mov edx, dword [esi + 0x1c]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret

Function at 0x409080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], ecx
call fcn.00421c35
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40913f
call fcn.00421c35
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x1c], eax
je 0x40913f
call fcn.00421c35
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40913f
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x409138
test edi, edi
je 0x409138
mov ecx, ebp
mov esi, eax
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.00408920
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c4e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040e035
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40c503
test byte [esp + 8], 2
je 0x40c503
call fcn.0040e0a8
mov dword [eax], 0xd
call fcn.0040e0b1
mov dword [eax], 5
jmp 0x40c4dc
xor eax, eax
ret
Function at 0x418890
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.0040d9c0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41895b
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 0x41895b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41890e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418919
or bh, 8
and edi, 0x8000000
je 0x418934
mov eax, dword [0x434e7c]
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 0x41895b
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 0x418d30
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 0x418d5b
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 0x418d7f
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 0x418d9a
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 0x41c6c1
Capabilities:
Get graphical window text

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