joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405541
Capabilities:
Get number of processors

Disassembly:
push edx
pop ecx
pop ecx
imul ebx, dword [edx + 0x61], 0x56
push esi
insb byte es:[edi], dx
pop eax
inc ebp
je 0x4055a9
push esi
insb byte es:[edi], dx
jo 0x4055cb
push ebp
push edi
xor dword [edi + 0x62], eax
inc edi
dec edx
inc edi
push esi
push 0x56
popal
push esi
push edi
push ecx
ja 0x4055bb
push 0x46
dec edx
xor cl, byte fs:[esi + 0x46]
bound eax, qword [esi + 0x64]
push edi
imul ebx, dword gs:[edx + 0x49], 0x56
push 0x49
js 0x4055c5
imul ebx, dword [edx + 0x6c], 0x52
xor byte [0x5a555949], dh
push edi
push esi
xor dword [edx + 0x57], ecx
arpl word [edi + 0x68], ax
pop eax
bound eax, qword [esi + 0x5a]
push 0x4e4a5459
inc esi
push esi
jne 0x4055ed
insd dword es:[edi], dx
push 0x567a6153
push eax
push esi
insd dword es:[edi], dx
js 0x405613
push ecx
xor dword [ebp + 0x78], ecx
push edi
outsb dx, byte [esi]
dec esi
pop edx
dec ebp
xor ch, byte [eax + 0x50]
push ebp
push 0x46
inc edi
dec esi
inc esi
pop ecx
js 0x40561a
dec eax
dec esi
push edi
push edx
xor byte [esi + 0x35], dl
pop ecx
push ebp
push 0x5956594b
push esi
pop ecx
jp 0x40561e
insd dword es:[edi], dx
push 0x70564d57
jp 0x40562a
push edi
dec ebp
push esi
jo 0x40564a
pop ecx
xor bh, byte [eax + 0x6b]
inc esi
dec edx
jae 0x40563a
inc esi
dec esi
imul edx, dword [edi + 0x47], 0x6c56354e
arpl word [eax + 0x4e], di
inc esi
push ecx
js 0x405643
inc ebp
push esp
bound ebp, qword [ebx + 0x70]
push eax
push esi
imul esi, dword [eax + 0x50], 0x56
xor byte [eax + 0x43], ch
push edi
inc esi
push edx
pop eax
dec esi
push ebp
xor eax, 0x6c6c564e
xor edx, dword [esi + 0x32]
je 0x405634
popal
xor dword [edx + 0x72], ebx
push edi
push 0x42
pop edx
push esi
push esi
jo 0x405682
push esi
push esp
dec edx
dec ebx
push esi
imul esi, dword [0x646c5145], 0x53
push ebx
dec ebp
xor dword [edx + 0x79], ecx
push esi
dec edx
jns 0x405677
insb byte es:[edi], dx
push edx
inc edi
push edi
insd dword es:[edi], dx
push esi
inc edi
push edi
outsb dx, byte [esi]
push esi
push ebp
bound eax, qword [edi + 0x68]
jo 0x405686
push 0x46
push ebx
popal
insb byte es:[edi], dx
dec edx
push ebp
xor dword [ebp + 0x31], edx
dec edx
push edi
Function at 0x406200
Capabilities:
Get number of processors

Disassembly:
insb byte es:[edi], dx
pop ecx
js 0x406257
imul ebp, dword [eax + 0x57], 0x4d
push 0x56
dec esp
pop ecx
push esi
pop edx
dec ebx
arpl word [edx], si
dec esi
dec ecx
push ecx
insb byte es:[edi], dx
pop edx
imul edx, dword [edi + 0x47], 0x6b577a67
push edx
inc edi
pop ecx
push esi
inc esi
pop edx
Function at 0x402020
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x422ff0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor ebp, ebp
and edi, 0xffff
push ebp
mov esi, ecx
push edi
call fcn.00403e80
add esp, 8
cmp eax, ebp
je 0x4021f9
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 0x424d14
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x30], ebp
call fcn.00416d9c
call fcn.0042163d
mov ebx, dword [eax + 0xc]
cmp ebx, ebp
je 0x4021e0
push 0xf1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
je 0x4021e0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, ebp
je 0x4021e0
mov edx, dword [esi + 0x98]
xor ecx, ecx
mov cx, word [ebx + 4]
xor eax, eax
mov ax, word [ebx + 2]
cmp edx, ebp
jne 0x4021ba
push 0xa
push ebp
mov dword [esi + 0x98], eax
lea edi, [eax + 4]
push 1
mov dword [esi + 0x9c], ecx
lea edx, [ecx + 4]
push ecx
mov dword [esi + 0xa0], edi
push eax
lea ecx, [esi + 0x34]
mov dword [esi + 0xa4], edx
call fcn.0040f4a9
mov eax, dword [esi + 0x38]
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 + 0x20]
lea ecx, [esp + 0x1c]
neg ecx
sbb ecx, ecx
push eax
and ecx, edi
push ecx
mov ecx, dword [esi + 0x38]
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
cmp word [ebx + 6], 0
jbe 0x402180
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 0x40216a
lea ecx, [esp + 0x18]
push ecx
push edi
lea ecx, [esi + 0x3c]
call fcn.004102b7
test eax, eax
je 0x402159
mov eax, dword [esp + 0x18]
test eax, eax
jge 0x402166
mov edx, dword [esp + 0x10]
mov ecx, esi
push edx
push edi
call fcn.00402210
inc dword [esp + 0x10]
mov edx, dword [esp + 0x14]
xor eax, eax
mov ax, word [ebx + 6]
inc ebp
add edx, 2
cmp ebp, eax
mov dword [esp + 0x14], edx
jl 0x402132
mov edx, dword [esp + 0x34]
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x20]
push edx
push eax
call fcn.0040ff29
lea ecx, [esp + 0x1c]
call fcn.00416dc9
mov dword [esp + 0x1c], vtable.CGdiObject.0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2c], 3
call fcn.00416df3
mov eax, 1
jmp 0x4021fb
cmp dword [esi + 0x98], eax
jne 0x4021ce
cmp dword [esi + 0x9c], ecx
je 0x4020f4
mov dword [esp + 0x1c], vtable.CGdiObject.0
mov dword [esp + 0x2c], 2
jmp 0x4021f0
mov dword [esp + 0x1c], vtable.CGdiObject.0
mov dword [esp + 0x2c], 1
lea ecx, [esp + 0x1c]
call fcn.00416df3
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x403500
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423108
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov edi, dword [esp + 0x64]
test edi, edi
mov esi, ecx
jne 0x40353b
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc
mov ebx, dword [esp + 0x5c]
push 9
mov ecx, ebx
call fcn.00414681
test eax, eax
jle 0x403595
cmp edi, 2
jne 0x403567
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc
push eax
lea eax, [esp + 0x68]
push eax
mov ecx, ebx
call fcn.0040f27e
push eax
mov ecx, ebx
mov dword [esp + 0x58], 0
call fcn.0041449a
lea ecx, [esp + 0x64]
mov dword [esp + 0x54], 0xffffffff
call fcn.004143ad
mov edx, dword [esp + 0x60]
lea ecx, [esp + 0x64]
push ebp
push ecx
push edx
lea ecx, [esi + 0x58]
xor edi, edi
call fcn.004102b7
mov esi, eax
mov eax, dword [esp + 0x68]
neg esi
sbb esi, esi
and esi, eax
je 0x403683
mov ebp, dword [sym.imp.USER32.dll_MapVirtualKeyA]
test edi, edi
mov eax, 0x42e3f4
jne 0x4035d0
mov eax, 0x42e3f0
push eax
mov ecx, ebx
call fcn.004145ae
test byte [esi], 0x10
je 0x4035e9
push str.Alt
mov ecx, ebx
call fcn.004145ae
test byte [esi], 8
je 0x4035fa
push str.Ctrl
mov ecx, ebx
call fcn.004145ae
test byte [esi], 4
je 0x40360b
push str.Shift
mov ecx, ebx
call fcn.004145ae
test byte [esi], 1
je 0x40364f
xor eax, eax
push 0
mov ax, word [esi + 2]
push eax
call ebp
mov cx, word [esi + 2]
shl eax, 0x10
cmp cx, 0x21
jb 0x403633
cmp cx, 0x2e
ja 0x403633
or eax, 0x1000000
lea ecx, [esp + 0x10]
push 0x40
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
lea edx, [esp + 0x10]
mov ecx, ebx
push edx
call fcn.004145ae
jmp 0x40365a
mov al, byte [esi + 2]
mov ecx, ebx
push eax
call fcn.004145d5
mov ax, word [esi + 4]
mov edi, 1
test ax, ax
je 0x403683
and eax, 0xffff
lea ecx, [eax*4]
sub ecx, eax
neg ecx
lea esi, [esi + ecx*2]
test esi, esi
jne 0x4035c2
mov ecx, dword [esp + 0x50]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4c
ret 0xc
Function at 0x403f50
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x423230
push eax
mov al, byte [0x42ff18]
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
xor esi, esi
test al, 1
push edi
jne 0x403f9f
mov dl, al
push 0x4040c0
or dl, 1
mov dword [0x42ff14], esi
mov byte [0x42ff18], dl
mov dword [0x42ff10], 0x424d14
call fcn.00404f51
add esp, 4
mov eax, 0x42ff10
test eax, eax
je 0x403fb0
cmp dword [0x42ff14], esi
jne 0x404000
mov ecx, 0xaa
mov eax, 0x55
mov word [esp + 0x18], cx
mov word [esp + 0x1c], cx
mov word [esp + 0x20], cx
mov word [esp + 0x24], cx
lea ecx, [esp + 0x18]
mov word [esp + 0x1a], ax
push ecx
push 1
push 1
push 8
push 8
mov word [esp + 0x32], ax
mov word [esp + 0x36], ax
mov word [esp + 0x3a], ax
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
mov ecx, 0x42ff10
call fcn.00416d9c
push 0x42ff10
lea ecx, [esp + 0x14]
call fcn.00416e53
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x38]
lea edx, [esp + 0x10]
mov ecx, esi
push edx
call fcn.00416617
mov edi, dword [sym.imp.USER32.dll_GetSysColor]
mov ebp, dword [esi]
push 0xf
mov ebx, eax
call edi
push eax
mov ecx, esi
call dword [ebp + 0x2c]
mov edx, dword [esi]
push 0x14
mov ebp, eax
mov dword [esp + 0x3c], edx
call edi
push eax
mov eax, dword [esp + 0x3c]
mov ecx, esi
call dword [eax + 0x30]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x3c]
push 0xf00021
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov eax, dword [eax + 8]
sub ecx, edx
sub eax, edi
push ecx
mov ecx, dword [esi + 4]
push eax
push edx
push edi
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
push ebx
mov ecx, esi
call fcn.00416617
mov edx, dword [esi]
push ebp
mov ecx, esi
call dword [edx + 0x2c]
mov ecx, dword [esp + 0x38]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0x30]
mov dword [esp + 0x10], vtable.CGdiObject.0
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 1
call fcn.00416df3
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4080b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42f0e0
cmp edx, dword [eax]
je 0x4080db
add eax, 8
inc ecx
cmp eax, 0x42f170
jl 0x4080cc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42f0e0]
jne 0x408209
mov eax, dword [0x431f88]
cmp eax, 1
je 0x4081e3
test eax, eax
jne 0x40810c
cmp dword [0x42eca8], 1
je 0x4081e3
cmp edx, 0xfc
je 0x408209
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x408143
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409410
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00406060
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408186
lea eax, [ebp - 0x1a4]
push eax
call fcn.00406060
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x428044
push edi
call fcn.004082b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409410
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409420
lea eax, [ebp - 0xa0]
push 0x428024
push eax
call fcn.00409420
push dword [esi + 0x42f0e4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409420
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a26c
add esp, 0x2c
pop edi
jmp 0x408209
lea eax, [ebp + 8]
lea esi, [esi + 0x42f0e4]
push 0
push eax
push dword [esi]
call fcn.00406060
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 0x40eb60
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.00405920
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x40ec2b
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 0x40ec2b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x40ebde
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x40ebe9
or bh, 8
and edi, 0x8000000
je 0x40ec04
mov eax, dword [0x43371c]
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 0x40ec2b
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 0x40f000
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 0x40f02b
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 0x40f04f
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 0x40f06a
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 0x4116f1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x411729
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.00414661
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00414639
jmp 0x411735
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41307b
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 0x4130bd
call fcn.0042163d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4130bd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4130b4
xor eax, eax
jmp 0x4130c5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004130cb
pop edi
pop esi
pop ebx
ret 4

Function at 0x414b9b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4236ec
call fcn.00405358
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.0042163d
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x414bda
call fcn.0042163d
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 0x414be8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x414bf6
or eax, 0xffffffff
jmp 0x414cde
mov ecx, esi
call fcn.00414b11
mov dword [ebp - 0x14], eax
call fcn.00411240
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x414c2d
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x414c2d
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.004111f4
push dword [ebp - 0x14]
call fcn.00410d42
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004148a9
cmp eax, edi
je 0x414ca0
test byte [esi + 0x24], 0x10
je 0x414c6e
push 4
mov ecx, esi
pop ebx
call fcn.0041386d
test ah, 1
je 0x414c66
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.004132d2
cmp dword [esi + 0x1c], edi
je 0x414ca0
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041399a
jmp 0x414ca0
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x414cb4
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x414ccd
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x414ccd
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.00414b4b
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x420409
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.0042163d
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x420446
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x420446
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x42044a
xor eax, eax
jmp 0x4204c8
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.00413fdc
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x420482
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 0x42046c
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004205b9
push ebx
mov edi, eax
call fcn.00414005
test edi, edi
pop ecx
je 0x4204c4
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.00420382
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004204cd
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x402340
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x4023af
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x402377
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4023cc
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [eax]
mov esi, dword [ebx]
mov eax, dword [ecx + 4]
mov dword [ebp - 4], esi
mov ecx, 0xc6ef3720
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x40243e
mov esi, edx
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
sub eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
sub edx, esi
sub ecx, 0x9e3779b9
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x402406
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40268c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp + 8]
cmp ecx, edx
jbe 0x4026a4
xor byte [eax], 0xf5
inc edx
inc eax
cmp ecx, edx
ja 0x40269b
pop ebp
ret

Function at 0x40501e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
pushfd
pop dword [esp + 0x24]
pushfd
lea esp, [esp + 0x28]
jmp fcn.004015a9
call fcn.004021d9
push esi
pushfd
mov byte [esp], ch
mov dword [esp], ebp
pushfd
pushal
push 0x10e197db
jmp 0x40204e
mov dword [esp + 4], edx
pushfd
mov dword [esp + 4], esi
mov byte [esp], bl
pushfd
mov dword [esp], edx
mov word [esp + 4], 0x78e1
mov dword [esp + 4], ebp
lea esp, [esp + 4]
jp 0x4024ff
pushfd
pushfd
pop dword [esp]
pushal
pushal
pushfd
mov byte [esp], bh
lea esp, [esp + 0x44]
jmp fcn.004015a9
Function at 0x408b48
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
movzx eax, word [eax + 0x14]
add eax, dword [ebp + 0xc]
add eax, 0x18
xor ecx, ecx
jmp 0x408b7c
mov edx, dword [eax + 8]
test edx, edx
jne 0x408b6b
mov edx, dword [eax + 0x10]
mov esi, dword [eax + 0xc]
cmp ebx, esi
jb 0x408b78
add edx, esi
cmp ebx, edx
jb 0x408b89
inc ecx
add eax, 0x28
mov edx, dword [ebp + 0xc]
movzx edx, word [edx + 6]
cmp ecx, edx
jb 0x408b61
xor eax, eax
pop esi
pop ebx
pop ebp
ret