joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40df1f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40dfbc
push ebx
push esi
call fcn.0040dee8
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040de7c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40df69
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dfbb
push edi
push eax
call fcn.0040b021
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40df89
call fcn.0040a63b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dfba
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040de7c
add esp, 0x20
test eax, eax
jne 0x40dfa8
push edi
call fcn.0040a63b
jmp 0x40dfb0
push ebx
call fcn.0040a63b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x415620
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41564d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41564d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
pop eax
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4c5300
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x80000]
push edi
or ebp, 0xffffffff
jmp 0x4c5322
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c5329
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c5318
mov eax, 1
add ebx, ebx
jne 0x4c533b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c534c
jne 0x4c536b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c536b
dec eax
add ebx, ebx
jne 0x4c5358
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c5330
add ebx, ebx
jne 0x4c5367
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c53bd
xor ecx, ecx
sub eax, 3
jb 0x4c5383
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c53f2
sar eax, 1
mov ebp, eax
jmp 0x4c538e
add ebx, ebx
jne 0x4c538e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c535c
inc ecx
add ebx, ebx
jne 0x4c539c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c535c
add ebx, ebx
jne 0x4c53a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c539e
jne 0x4c53ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c539e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c53dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c53ce
jmp 0x4c531e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c53dc
add edi, ecx
jmp 0x4c531e
pop esi
mov edi, esi
mov ecx, 0x2dfe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c53fa
cmp byte [edi], 0x13
jne 0x4c53fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4c53ff
lea edi, [esi + 0xc2000]
mov eax, dword [edi]
or eax, eax
je 0x4c5477
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc56fc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc57d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c542c
mov ecx, edi
jns 0x4c545b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc57dc]
or eax, eax
je 0x4c5471
mov dword [ebx], eax
add ebx, 4
jmp 0x4c5449
call dword [esi + 0xc57ec]
mov ebp, dword [esi + 0xc57e0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4c54ab
sub esp, 0xffffff80
jmp 0x45fca6
Function at 0x4010b4
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
jmp 0x403de0
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x403e63
push ebx
push esi
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov esi, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x403e56
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x403e56
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
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]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
mov ebp, 1
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov eax, ebp
pop ebx
pop ebp
ret
mov eax, ebp
pop ebp
ret

Function at 0x401104
Capabilities:
Check mutex on windows

Disassembly:
jmp 0x404410
mov eax, dword [0x45e130]
sub esp, 0x30c
test eax, eax
jne 0x40447a
mov eax, dword [esp + 0x314]
mov edx, dword [esp + 0x310]
push esi
lea ecx, [esp + 4]
push eax
push ecx
push edx
call fcn.0040100f
add esp, 0xc
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x45e130], eax
call esi
cmp eax, 0xb7
je 0x40446d
call esi
cmp eax, 5
je 0x40446d
xor eax, eax
pop esi
add esp, 0x30c
ret
mov eax, 1
pop esi
add esp, 0x30c
ret
xor eax, eax
add esp, 0x30c
ret

Function at 0x401159
Capabilities:
Get common file path

Disassembly:
jmp 0x405300
push 0xffffffffffffffff
push 0x44c988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
push edi
mov eax, dword [ebx + 0x78]
test eax, eax
jne 0x4053c6
call fcn.00447f81
mov edi, dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f89
push 0
call edi
test eax, eax
mov dword [ebx + 0x78], eax
jne 0x4053c6
mov eax, dword [0x45b93c]
push esi
mov dword [esp + 0xc], eax
push 0x104
push 0x104
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0
call fcn.00434c00
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x10]
call fcn.00434c4f
push str.winhlp32.exe
lea ecx, [esp + 0x10]
call fcn.00434bac
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4053b4
push 0x6a
push esi
call edi
test eax, eax
je 0x4053ad
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x78], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xffffffff
call fcn.004347d0
pop esi
mov ecx, dword [esp + 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4011b8
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x405420
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push ebx
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x4054a3
mov edx, dword [esp + 4]
push esi
lea eax, [esp + 0xc]
push edi
lea ecx, [esp + 0x14]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x124]
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 [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop esi
pop ebx
add esp, 0x10c
ret
mov eax, ebx
pop ebx
add esp, 0x10c
ret
Function at 0x4011f9
Capabilities:
Create process on windows

Disassembly:
jmp 0x405570
sub esp, 0x208
push ebp
mov ebp, dword [esp + 0x210]
test ebp, ebp
je 0x4056e9
cmp byte [ebp], 0
je 0x4056e9
mov ecx, dword [esp + 0x218]
mov eax, str.open
test ecx, ecx
je 0x4055a5
mov eax, 0x45b140
mov ecx, dword [esp + 0x214]
push ebx
push esi
push edi
push ecx
push 0
push 0
push ebp
push eax
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ebx, eax
cmp ebx, 0x20
ja 0x4056dc
lea edx, [esp + 0x10]
push edx
push str..htm
push 0x80000000
call fcn.004011b8
add esp, 0xc
test eax, eax
jne 0x4056dc
mov edi, str._shellopencommand
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
push 0x80000000
call fcn.004011b8
add esp, 0xc
test eax, eax
jne 0x4056dc
lea edx, [esp + 0x10]
push str.__1_
push edx
call fcn.0040c847
mov edx, eax
add esp, 8
test edx, edx
jne 0x405675
lea eax, [esp + 0x10]
push 0x45b114
push eax
call fcn.0040c847
mov edx, eax
add esp, 8
test edx, edx
jne 0x405675
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0xf]
jmp 0x405678
mov byte [edx], 0
mov edi, 0x45b110
or ecx, 0xffffffff
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
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 edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x220]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov ebx, eax
pop edi
mov eax, ebx
pop esi
pop ebx
pop ebp
add esp, 0x208
ret
mov eax, 0x24
pop ebp
add esp, 0x208
ret
Function at 0x40128f
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
jmp 0x40a2e0
sub esp, 8
mov eax, dword [0x45b25c]
push ebx
push ebp
push esi
push edi
push eax
call fcn.0040cd2e
mov ecx, dword [0x45b260]
mov esi, eax
push ecx
mov dword [esp + 0x18], esi
call fcn.0040cd2e
mov ecx, eax
mov eax, dword [0x45b264]
add esp, 8
xor ebp, ebp
xor ebx, ebx
test eax, eax
jbe 0x40a34c
mov eax, ecx
sub eax, esi
mov dword [esp + 0x14], eax
jmp 0x40a328
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
add esi, ebx
xor edx, edx
mov byte [eax + esi], bl
mov edi, dword [0x45b258]
mov eax, ebx
div dword [edi]
mov eax, dword [esp + 0x24]
inc ebx
mov dl, byte [edx + eax]
mov byte [esi], dl
mov eax, dword [0x45b264]
cmp ebx, eax
jb 0x40a320
mov eax, dword [0x45b268]
xor esi, esi
test eax, eax
jbe 0x40a399
mov eax, dword [esp + 0x10]
mov edi, ecx
sub eax, ecx
mov dword [esp + 0x24], eax
jmp 0x40a369
mov eax, dword [esp + 0x24]
mov bl, byte [edi]
xor edx, edx
mov dl, byte [eax + edi]
mov eax, ebx
and eax, 0xff
add ebp, edx
add eax, ebp
xor edx, edx
div dword [0x45b26c]
inc esi
inc edi
mov ebp, edx
mov al, byte [ecx + ebp]
mov byte [ecx + ebp], bl
mov byte [edi - 1], al
mov eax, dword [0x45b268]
cmp esi, eax
jb 0x40a365
mov ebp, dword [esp + 0x20]
xor edi, edi
cmp ebp, edi
mov dword [0x45e240], edi
jbe 0x40a417
lea eax, [esi + 1]
xor edx, edx
div dword [0x45b270]
xor eax, eax
mov esi, edx
xor edx, edx
mov al, byte [esi + ecx]
add eax, edi
div dword [0x45b274]
mov edi, edx
mov dl, byte [esi + ecx]
mov al, byte [edi + ecx]
mov byte [edi + ecx], dl
mov byte [esp + 0x24], al
mov byte [esi + ecx], al
mov eax, dword [0x45b27c]
mov edx, dword [esp + 0x24]
and edx, 0xff
mov ebx, dword [eax]
xor eax, eax
mov al, byte [edi + ecx]
add eax, edx
xor edx, edx
div dword [0x45b278]
mov al, byte [edx + ecx]
mov edx, dword [esp + 0x1c]
xor al, byte [ebx + edx]
mov edx, dword [esp + 0x28]
mov byte [ebx + edx], al
mov eax, dword [0x45e240]
inc eax
cmp eax, ebp
mov dword [0x45e240], eax
jb 0x40a3a9
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x414049
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x45c390
cmp edx, dword [eax]
je 0x41406b
add eax, 8
inc ecx
cmp eax, 0x45c420
jl 0x41405c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x45c390]
jne 0x414199
mov eax, dword [0x460250]
cmp eax, 1
je 0x414173
test eax, eax
jne 0x41409c
cmp dword [0x45bd44], 1
je 0x414173
cmp edx, 0xfc
je 0x414199
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4140d3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00414770
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410e90
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x414116
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410e90
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x453300
push edi
call fcn.00411940
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00414770
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00414780
lea eax, [ebp - 0xa0]
push 0x4532e0
push eax
call fcn.00414780
push dword [esi + 0x45c394]
lea eax, [ebp - 0xa0]
push eax
call fcn.00414780
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041761f
add esp, 0x2c
pop edi
jmp 0x414199
lea eax, [ebp + 8]
lea esi, [esi + 0x45c394]
push 0
push eax
push dword [esi]
call fcn.00410e90
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 0x420d30
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.0040c750
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x420dfb
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 0x420dfb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x420dae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x420db9
or bh, 8
and edi, 0x8000000
je 0x420dd4
mov eax, dword [0x4624fc]
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 0x420dfb
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 0x4211d0
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 0x4211fb
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 0x42121f
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 0x42123a
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 0x4312d5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43130d
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.00434c77
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00434c4f
jmp 0x431319
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4330d7
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 0x433119
call fcn.00447f81
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x433119
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x433110
xor eax, eax
jmp 0x433121
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00433127
pop edi
pop esi
pop ebx
ret 4
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x6c307949
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
nop
cmp eax, 0
nop
je 0x4300d2
nop
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xa5a0478
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219