joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002f845
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push 1
pop esi
lea eax, [ebp - 0x114]
push str.ASCMutex
push eax
call fcn.100302e0
push dword [ebp + 8]
lea eax, [ebp - 0x114]
push eax
call fcn.100302f0
add esp, 0x10
lea eax, [ebp - 0x114]
push eax
push esi
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
mov dword [0x100449b4], eax
je 0x1002f89e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1002f8a0
xor esi, esi
mov ax, si
pop esi
leave
ret

Function at 0x10031060
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov edx, eax
dec eax
test edx, edx
jbe 0x100310cd
push edi
mov edi, dword [esp + 0x14]
sub edi, ecx
push esi
mov esi, dword [esp + 0xc]
inc eax
push ebp
push ebx
mov dword [esp + 0x1c], eax
mov eax, ecx
xor edx, edx
mov ebx, 0x7b
mov ebp, 0x7f
div ebx
xor eax, eax
mov al, byte [edx + esi]
xor edx, edx
mov ebx, eax
mov eax, ecx
div ebp
xor eax, eax
mov al, byte [edx + esi]
mov edx, ecx
xor ebx, eax
and edx, ebp
mov al, byte [ebx + 0x1003a420]
mov bl, byte [edx + esi]
xor al, bl
mov bl, byte [ecx + edi]
xor bl, al
mov eax, dword [esp + 0x1c]
mov byte [ecx + edi], bl
inc ecx
dec eax
mov dword [esp + 0x1c], eax
jne 0x10031082
pop ebx
pop ebp
pop esi
pop edi
mov eax, 0x3e9
ret

Function at 0x10032420
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
mov al, byte [ecx]
xor edi, edi
mov byte [esi], al
mov al, byte [ecx]
test al, al
je 0x1003245a
mov edx, esi
push ebx
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc edi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
mov al, byte [ecx]
test al, al
jne 0x1003243b
mov byte [edi + esi], 0
pop ebx
mov eax, esi
pop edi
pop esi
ret
mov byte [edi + esi], 0
mov eax, esi
pop edi
pop esi
ret

Function at 0x100325d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
push 0x40
push 0
push dword [ebp + 8]
call fcn.10024043
add esp, 0x10
test ax, ax
jne 0x1003260f
mov edi, 0xff
push 0x40
push edi
push esi
call fcn.10026ec0
push 0xf8
push edi
push dword [ebp + 0x10]
call fcn.10026ec0
add esp, 0x18
jmp 0x1003264f
cmp word [esi], 0x5a4d
mov ebx, dword [ebp + 0x10]
mov edi, 0xf8
jne 0x10032640
push ebx
push edi
push dword [esi + 0x3c]
push dword [ebp + 8]
call fcn.10024043
add esp, 0x10
test ax, ax
je 0x10032640
xor eax, eax
cmp dword [ebx], 0x4550
sete al
jmp 0x10032652
push edi
push 0xff
push ebx
call fcn.10026ec0
add esp, 0xc
xor ax, ax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100080c7
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100080c7
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100080c7
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100080c7
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100080c7
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100080c7
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100080c7
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100080c7
push 0xd008
push edi
call fcn.100080c7
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100080c7
int3

Function at 0x100080c7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x100080d6
pop dword [ebp - 0x40]
mov eax, 0x36ea2f9c
sub eax, 0x26e9aec6
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x3afda
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x4ff4
mov esi, eax
mov edi, 0x10018600
add edi, dword [ebp - 0x40]
mov edx, 0x3ebe96d9
sub edx, 0x3fbb80d0
mov ebx, dword [edi]
mov dword [ebp - 0x10], 0x6c73bd5b
sub ebx, edx
sub dword [ebp - 0x38], edx
mov dword [esi], ebx
xor dword [ebp - 0x38], 0x546f1f6f
add esi, 0x181ac4b6
sub esi, 0x181ac4b2
add edi, 0xfe91aa3b
sub edi, 0xfe91aa37
loop 0x10008124
add eax, 0x6db936f3
add eax, 0x9247fbb0
xor ebx, ebx
add ebx, eax
add eax, 0x5518fea1
add eax, 0xaae70164
mov ecx, 0x3d26b12b
add ecx, 0xd2d94ed5
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x17d0fd0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1378000]
push edi
or ebp, 0xffffffff
jmp 0x17d0ff2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x17d0ff9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17d0fe8
mov eax, 1
add ebx, ebx
jne 0x17d100b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x17d101c
jne 0x17d103b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17d103b
dec eax
add ebx, ebx
jne 0x17d1028
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x17d1000
add ebx, ebx
jne 0x17d1037
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x17d108d
xor ecx, ecx
sub eax, 3
jb 0x17d1053
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x17d10c2
sar eax, 1
mov ebp, eax
jmp 0x17d105e
add ebx, ebx
jne 0x17d105e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17d102c
inc ecx
add ebx, ebx
jne 0x17d106c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x17d102c
add ebx, ebx
jne 0x17d1079
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x17d106e
jne 0x17d108a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x17d106e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x17d10ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x17d109e
jmp 0x17d0fee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x17d10ac
add edi, ecx
jmp 0x17d0fee
pop esi
lea edi, [esi + 0x13c9000]
mov eax, dword [edi]
or eax, eax
je 0x17d1114
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x13d1704]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x13d17a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x17d10c9
mov ecx, edi
jns 0x17d10f8
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 + 0x13d17a8]
or eax, eax
je 0x17d110e
mov dword [ebx], eax
add ebx, 4
jmp 0x17d10e6
call dword [esi + 0x13d17b8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x17d1145
cmp al, 0xef
ja 0x17d1138
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x17d111a
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x17d1127
mov ebp, dword [esi + 0x13d17ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x17d1179
sub esp, 0xffffff80
jmp 0x4cf600
Function at 0x30003f49
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x30007ff0
call fcn.30004288
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x3000a288
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x30003ce8
cmp eax, esi
jne 0x30003cdb
xor esi, esi
inc esi
mov ebx, esi
jmp 0x30003ceb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30003cc2
xor esi, esi
inc esi
mov eax, dword [0x3000a284]
cmp eax, esi
jne 0x30003cfe
push 0x1f
call sub.MSVCR80.dll__amsg_exit
pop ecx
jmp 0x30003d2d
mov eax, dword [0x3000a284]
test eax, eax
jne 0x30003d27
mov dword [0x3000a284], esi
push 0x300011a4
push 0x3000119c
call fcn.30179000
pop ecx
pop ecx
test eax, eax
je 0x30003d2d
jmp 0x30003e55
mov dword [0x300097bc], esi
mov eax, dword [0x3000a284]
cmp eax, esi
jne 0x30003d51
push 0x30001198
push 0x30001180
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x3000a284], 2
test ebx, ebx
jne 0x30003d5d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3000a294], 0
je 0x30003d81
push 0x3000a294
call fcn.30004210
pop ecx
test eax, eax
je 0x30003d81
push 0
push 2
push 0
call dword [0x3000a294]
mov eax, dword [sym.imp.MSVCR80.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x30003ddd
test al, al
je 0x30003d9b
cmp dword [ebp - 0x1c], 0
jne 0x30003ddd
mov al, byte [esi]
test al, al
je 0x30003dab
cmp al, 0x20
ja 0x30003dab
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30003d9b
test byte [ebp - 0x3c], 1
je 0x30003db7
movzx eax, word [ebp - 0x38]
jmp 0x30003dba
push 0xa
pop eax
push eax
push esi
push 0
push 0x30000000
call main
mov dword [0x300097b8], eax
cmp dword [0x300097ac], 0
jne 0x30003e31
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp al, 0x22
jne 0x30003dec
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.MSVCR80.dll__ismbblead]
pop ecx
test eax, eax
je 0x30003dff
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x30003d88
cmp dword [0x300097bc], 0
jne 0x30003e40
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x300097b8]
jmp 0x30003e61
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300042cd
ret
call fcn.30003b71
jmp 0x30003c88
Function at 0x68b410
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
push ecx
mov edi, eax
mov esi, dword [esp + 0x10]
mov eax, 0xa46de6
xor esi, eax
sub esi, eax
and esi, 0xffff
call 0x68b431
pop eax
sub eax, 0x135
add esi, eax
mov ecx, dword [esp + 0x14]
mov eax, dword [esi]
inc esi
push edi
mov ah, byte [esi]
xor ah, al
mov byte [edi], ah
inc esi
ror al, 1
inc edi
dec ecx
jne 0x68b441
pop eax
pop ecx
pop edi
pop esi
ret

Function at 0x68b5fa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov eax, esi
add eax, dword [esi + 0x3c]
mov edi, esi
add edi, dword [eax + 0x78]
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0068b5c0
test eax, eax
jne 0x68b669
mov ebx, 0
cmp ebx, dword [edi + 0x18]
jae 0x68b686
lea eax, [ebx*4]
add eax, dword [edi + 0x20]
mov edx, dword [eax + esi]
lea eax, [esi + edx]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0068b5c0
test eax, eax
je 0x68b680
lea eax, [ebx + ebx]
add eax, dword [edi + 0x24]
movzx eax, word [eax + esi]
shl eax, 2
add eax, dword [edi + 0x1c]
add esi, dword [eax + esi]
mov eax, esi
jmp 0x68b68b
inc ebx
cmp ebx, dword [edi + 0x18]
jb 0x68b646
mov eax, 0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0xf5d108
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf5d112
pushal
call 0xf5d118
pop ebp
sub ebp, 0x10
sub ebp, 0xb5d108
jmp 0xf5d12e
mov eax, 0xb5d108
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b8
mov edx, 0x2fe1c14f
xor byte [eax], dl
inc eax
dec ecx
jne 0xf5d145
jmp 0xf5d158
les eax, [edx + 0x4f73c6c4]
dec edi
dec edi
into
invalid
Function at 0x4024a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x20
push ebx
push ebp
mov al, 0x45
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov byte [esp + 0x11], al
mov byte [esp + 0x14], al
mov al, 0x6c
push str.HeapFree
push str.kernel32.dll
mov byte [esp + 0x18], 0x4b
mov byte [esp + 0x1a], 0x52
mov byte [esp + 0x1b], 0x4e
mov byte [esp + 0x1d], 0x4c
mov byte [esp + 0x1e], 0x33
mov byte [esp + 0x1f], 0x32
mov byte [esp + 0x20], 0x2e
mov byte [esp + 0x21], 0x64
mov byte [esp + 0x22], al
mov byte [esp + 0x23], al
mov byte [esp + 0x24], 0
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
mov ebx, eax
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
mov al, 0x65
mov cl, 0x73
mov byte [esp + 0x21], al
mov byte [esp + 0x27], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x28], cl
mov byte [esp + 0x29], cl
lea eax, [esp + 0x20]
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x28], 0x47
mov byte [esp + 0x2a], 0x74
mov byte [esp + 0x2b], 0x50
mov byte [esp + 0x2c], 0x72
mov byte [esp + 0x2d], 0x6f
mov byte [esp + 0x2e], 0x63
mov byte [esp + 0x32], 0x48
mov byte [esp + 0x34], 0x61
mov byte [esp + 0x35], 0x70
mov byte [esp + 0x36], 0
call edi
push eax
call ebp
push 0
mov edi, eax
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
mov edx, dword [esp + 0x34]
push edx
push 0
call edi
push eax
call ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x404260
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, 0xfe
and eax, 0xff
push esi
cdq
idiv ecx
mov esi, dword [esp + 0xc]
add dl, 0x58
test esi, esi
jbe 0x40428d
mov eax, dword [esp + 8]
mov cl, byte [eax]
xor cl, dl
add cl, dl
mov byte [eax], cl
inc eax
dec esi
jne 0x404281
pop esi
ret

Function at 0x404290
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push 0xed8
push 0x11c000
push 0x435180
call fcn.00404260
push 0x435180
call fcn.00402a30
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x4042d5
mov eax, dword [esp + 0x10]
push eax
push ebx
call fcn.00402870
add esp, 8
test eax, eax
jne 0x4042d9
push ebx
call fcn.00402740
add esp, 4
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov esi, str.gopayy.cn
push ecx
mov ecx, 0x270
sub esp, 0x9c0
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call eax
push ebx
call fcn.00402740
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x41c310
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.00410970
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41c3db
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 0x41c3db
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41c38e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41c399
or bh, 8
and edi, 0x8000000
je 0x41c3b4
mov eax, dword [0x55957c]
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 0x41c3db
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 0x41c7b0
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 0x41c7db
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 0x41c7ff
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 0x41c81a
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 0x420415
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 0x420457
call fcn.00425b81
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x420457
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x42044e
xor eax, eax
jmp 0x42045f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00420465
pop edi
pop esi
pop ebx
ret 4
Function at 0x40f56a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040f1e7
Function at 0x415cc6
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 0x415d63
push ebx
push esi
call fcn.00415c8f
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.00414914
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x415d10
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415d62
push edi
push eax
call fcn.00412cd1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x415d30
call fcn.0040f432
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x415d61
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00414914
add esp, 0x20
test eax, eax
jne 0x415d4f
push edi
call fcn.0040f432
jmp 0x415d57
push ebx
call fcn.0040f432
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 0x41b930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b95d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b95d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

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