joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c7262
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x65ff58]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.004bbc85
pop ecx
cmp eax, esi
je 0x4c734c
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x4c734c
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.005b7490
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x4c734c
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x4c734c
cmp esi, 0x14
jge 0x4c734c
push 0x10
push 0
push edi
call fcn.005bcd1a
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x4c733b
call fcn.005baf26
cmp dword [eax], 0x22
je 0x4c733b
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.005badbf
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x4c7311
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x67543c], 0
jne 0x4c73d7
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x4c7400
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004c6ce0
pop ecx
pop ecx
test eax, eax
jne 0x4c7402
inc edi
cmp edi, esi
jl 0x4c73dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b734a
leave
ret 8
Function at 0x4c94e5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4c952d
call fcn.004c3a1b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4c952d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4c9570
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x4c9559
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4c9559
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x4c956d
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4cdd52
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x65ff58]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x4cdd87
xor eax, eax
jmp 0x4cddda
lea eax, [ebp - 0x210]
push eax
call fcn.005badbf
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x4cddb8
push 0x5f0c74
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005baa44
add esp, 0xc
test eax, eax
jne 0x4cdd83
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.005baa44
add esp, 0xc
test eax, eax
jne 0x4cdd83
lea eax, [ebp - 0x210]
push eax
call fcn.004bbc85
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005b734a
leave
ret
Function at 0x502f16
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0058d9b3
call fcn.004c3438
cmp dword [eax + 0x14], 0
jne 0x502f33
mov ecx, esi
pop esi
jmp fcn.00502a1b
pop esi
ret

Function at 0x5064b2
Capabilities:
Get common file path
Get file system object information

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.00560999
call fcn.004c3438
cmp dword [eax + 0x14], 0
jne 0x5064cf
mov ecx, esi
pop esi
jmp fcn.00505e85
pop esi
ret

Function at 0x54502e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x545048
call fcn.004c3a1b
mov esi, dword [eax + 0xc]
push dword [0x677624]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x545066
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x54505e
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x545093
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x545060
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00544f5c
mov esi, eax
jmp 0x545085

Function at 0x597cb5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x597ccd
mov edi, dword [esi + 0xc]
jmp 0x597d0d
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x597ce6
call fcn.004b8eda
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x597cfb
call fcn.004b8eda
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x597d0d
call fcn.004b8eda
call fcn.004c3a1b
cmp dword [eax + 0x3c], 0
je 0x597d22
push edi
mov ecx, ebx
call fcn.00596b67
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00597bcf
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x597d40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x597d4c
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x5b734a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x65ff58]
jne 0x5b7354
repz ret
jmp fcn.005c19ec
Function at 0x5c9938
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x65ff58]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.005beb3b
and dword [ebp - 0x14], 0
cmp dword [0x679c5c], 0
mov dword [ebp - 0x18], eax
jne 0x5c99eb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x5c9a93
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x62e738
push ebx
call edi
test eax, eax
je 0x5c9a93
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x62e728
push ebx
mov dword [0x679c5c], eax
call edi
push eax
call esi
push 0x62e714
push ebx
mov dword [0x679c60], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x679c64], eax
call edi
push eax
call esi
mov dword [0x679c6c], eax
test eax, eax
je 0x5c99eb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x679c68], eax
mov eax, dword [0x679c68]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5c9a44
cmp dword [0x679c6c], ecx
je 0x5c9a44
push eax
call esi
push dword [0x679c6c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5c9a44
test ebx, ebx
je 0x5c9a44
call edi
test eax, eax
je 0x5c9a3b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5c9a3b
test byte [ebp - 8], 1
jne 0x5c9a44
or dword [ebp + 0x10], 0x200000
jmp 0x5c9a77
mov eax, dword [0x679c60]
cmp eax, dword [ebp - 0x18]
je 0x5c9a77
push eax
call esi
test eax, eax
je 0x5c9a77
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x5c9a77
mov eax, dword [0x679c64]
cmp eax, dword [ebp - 0x18]
je 0x5c9a77
push eax
call esi
test eax, eax
je 0x5c9a77
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x679c5c]
call esi
test eax, eax
je 0x5c9a93
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x5c9a95
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b734a
leave
ret
Function at 0x1001408
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x100144b
push esi
lea ecx, [eax + 8]
call dword [sym.imp.ulib.dll_public:_class_WSTRING____thiscall_PATH::QueryFullPathString_void_const]
mov esi, eax
cmp esi, ebx
je 0x100144a
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x1001442
cmp word [eax], bx
je 0x1001442
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1001442
test ah, 0x10
je 0x1001442
mov bl, 1
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x40195e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40199d
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40199d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40199d
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40199d
cmp dword [ecx + 0x74], 0xe
jbe 0x40199d
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x7002e77
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x701a85c]
jne 0x7002e81
repz ret
jmp fcn.0700f55f

Function at 0x700d408
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x700d476
cmp byte [esi + 0x10], 0
je 0x700d427
push eax
call dword [sym.imp.MSVCR100.dll_fflush]
pop ecx
mov byte [esi + 0x10], 0
push edi
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_fread]
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700d464
push dword [esi + 0xc]
call dword [sym.imp.MSVCR100.dll_feof]
pop ecx
test eax, eax
jne 0x700d464
push str.stream_read_error
push eax
call fcn.070034f1
push dword [esi + 0xc]
call dword [sym.imp.MSVCR100.dll_ftell]
pop ecx
mov dword [esi + 8], eax
mov eax, edi
pop edi
jmp 0x700d478
xor eax, eax
pop esi
pop ebp
ret 8

Function at 0x700d940
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 8], 0
je 0x700d95b
push str.Attempt_to_write_read_only_stream
push 0
call fcn.070034f1
mov eax, dword [esi + 0xc]
test eax, eax
je 0x700d999
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.MSVCR100.dll_fwrite]
push dword [esi + 0xc]
mov byte [esi + 0x10], 1
call dword [sym.imp.MSVCR100.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700d98c
push 0x7013b70
jmp 0x700d954
push dword [esi + 0xc]
call dword [sym.imp.MSVCR100.dll_ftell]
pop ecx
mov dword [esi + 8], eax
pop esi
pop ebp
ret 8

Function at 0x700dbc5
Capabilities:
Set current directory

Disassembly:
push 4
mov eax, 0x7010ec2
call fcn.07001aa5
mov esi, ecx
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
push edi
call fcn.0700da5a
and dword [esi + 0xc], 0
and dword [ebp - 4], 0
mov dword [esi], vtable.FileSharedStream.0
mov byte [esi + 0x10], 0
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0700d99e
lea ecx, [ebp + 8]
call fcn.0700d6a0
mov eax, dword [esi + 0x14]
push dword [eax + 0x14]
mov edi, dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov byte [ebp - 4], 2
call edi
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700dc35
mov eax, dword [eax + 0x14]
jmp 0x700dc3a
mov eax, 0x7012365
push 0x7013bb4
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
pop ecx
pop ecx
mov dword [esi + 0xc], eax
test eax, eax
jne 0x700dc5a
push 0x7013ba0
push eax
call fcn.070034f1
mov ecx, dword [esi + 4]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebp + 8]
mov dword [esi + 8], eax
mov byte [ebp - 4], 1
call edi
push dword [ebp + 8]
mov ecx, 0x701a480
call fcn.070034f1
mov eax, esi
call fcn.07002d5f
ret 4
Function at 0x4013f0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
rdtsc
push 0
mov dword [0x40639c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0
mov dword [ebp - 4], ebx
call esi
mov edi, eax
push 1
mov dword [ebp - 0x10], edi
call esi
mov esi, eax
push ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push edi
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x40638c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [0x40638c]
mov esi, dword [0x406390]
mov edx, dword [0x406394]
mov ecx, dword [0x406398]
lea eax, [edi + 0xa]
mov dword [0x4063a0], eax
lea eax, [esi - 0xa]
mov dword [0x4063a4], eax
lea eax, [edx + 0xa]
push 0
mov dword [0x4063a8], eax
sub edx, edi
push 0
lea eax, [esi + 0xa]
mov dword [0x4063ac], eax
lea eax, [edi - 0xa]
push 0
mov dword [0x4063b0], eax
lea eax, [ecx - 0xa]
sub ecx, esi
mov dword [0x4063b4], eax
push ecx
push edx
push esi
push edi
push dword [ebp - 4]
push 0x4063a0
push ebx
call dword [sym.imp.GDI32.dll_PlgBlt]
mov ecx, dword [0x40639c]
shl ecx, 0xd
xor ecx, dword [0x40639c]
mov eax, ecx
shl eax, 0x11
xor eax, ecx
mov ebx, eax
shl ebx, 5
xor ebx, eax
mov eax, ebx
shl eax, 0xd
xor eax, ebx
mov ecx, eax
shl ecx, 0x11
xor ecx, eax
mov edi, ecx
shl edi, 5
xor edi, ecx
mov eax, edi
shl eax, 0xd
xor eax, edi
mov ecx, eax
shl ecx, 0x11
xor ecx, eax
mov eax, 0x80808081
mov esi, ecx
shl esi, 5
xor esi, ecx
mul esi
mov eax, 0x80808081
mov dword [0x40639c], esi
mov ecx, edx
mul edi
shr ecx, 7
mov eax, 0x80808081
shr edx, 7
add ecx, esi
add edx, edi
shl ecx, 0x10
shl edx, 8
and ecx, 0xff0000
and edx, 0xff00
or ecx, edx
mul ebx
shr edx, 7
add edx, ebx
movzx eax, dl
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401580
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
rdtsc
push 0
mov dword [0x40639c], eax
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ebx, eax
push 0
mov dword [ebp - 4], ebx
call esi
mov edi, eax
push 1
mov dword [ebp - 0x10], edi
call esi
mov esi, eax
push ebx
mov dword [ebp - 0xc], esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push esi
push edi
push dword [ebp - 4]
mov ebx, eax
mov dword [ebp - 8], ebx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0x40638c
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [0x40638c]
mov esi, dword [0x406390]
mov edx, dword [0x406394]
mov ecx, dword [0x406398]
lea eax, [edi - 0xa]
mov dword [0x4063a0], eax
lea eax, [esi + 0xa]
mov dword [0x4063a4], eax
lea eax, [edx - 0xa]
push 0
mov dword [0x4063a8], eax
sub edx, edi
push 0
lea eax, [esi - 0xa]
mov dword [0x4063ac], eax
lea eax, [edi + 0xa]
push 0
mov dword [0x4063b0], eax
lea eax, [ecx + 0xa]
sub ecx, esi
mov dword [0x4063b4], eax
push ecx
push edx
push esi
push edi
push dword [ebp - 4]
push 0x4063a0
push ebx
call dword [sym.imp.GDI32.dll_PlgBlt]
mov ecx, dword [0x40639c]
shl ecx, 0xd
xor ecx, dword [0x40639c]
mov eax, ecx
shl eax, 0x11
xor eax, ecx
mov ebx, eax
shl ebx, 5
xor ebx, eax
mov eax, ebx
shl eax, 0xd
xor eax, ebx
mov ecx, eax
shl ecx, 0x11
xor ecx, eax
mov edi, ecx
shl edi, 5
xor edi, ecx
mov eax, edi
shl eax, 0xd
xor eax, edi
mov ecx, eax
shl ecx, 0x11
xor ecx, eax
mov eax, 0x80808081
mov esi, ecx
shl esi, 5
xor esi, ecx
mul esi
mov eax, 0x80808081
mov dword [0x40639c], esi
mov ecx, edx
mul edi
shr ecx, 7
mov eax, 0x80808081
shr edx, 7
add ecx, esi
add edx, edi
shl ecx, 0x10
shl edx, 8
and ecx, 0xff0000
and edx, 0xff00
or ecx, edx
mul ebx
shr edx, 7
add edx, ebx
movzx eax, dl
or ecx, eax
push ecx
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push 0xcc0020
push 0
push 0
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push 0
push 0
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50c44
call fcn.00403e60
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x50c20], 0
push eax
push eax
push eax
mov word [ebp - 0x50c0c], ax
lea eax, [ebp - 0x50c1c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x50c20]
mov dword [ebp - 0x50c1c], 0x10001
push eax
mov dword [ebp - 0x50c18], 0x2b11
mov dword [ebp - 0x50c14], 0x2b11
mov dword [ebp - 0x50c10], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0x50bfe
lea eax, [ebp - 0x50c08]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov eax, ecx
lea esi, [ecx - 0x3200]
or eax, 0x100
xor esi, ecx
shr eax, 8
xor edx, edx
div esi
movsx edx, cl
add eax, ecx
shr eax, 0xa
xor al, cl
movsx eax, al
imul eax, edx
mov byte [ebp + ecx - 0x50c08], al
inc ecx
cmp ecx, 0x50bfe
jb 0x4028a0
lea eax, [ebp - 0x50c08]
mov dword [ebp - 0x50c3c], 0x50bfe
mov dword [ebp - 0x50c40], eax
lea eax, [ebp - 0x50c40]
push 0x20
push eax
push dword [ebp - 0x50c20]
mov dword [ebp - 0x50c38], 0
mov dword [ebp - 0x50c34], 0
mov dword [ebp - 0x50c30], 0
mov dword [ebp - 0x50c2c], 0
mov dword [ebp - 0x50c28], 0
mov dword [ebp - 0x50c24], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0x50c40]
push eax
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0x50c20]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004031b3
mov esp, ebp
pop ebp
ret
Function at 0x402c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa184c
call fcn.00403e60
mov eax, dword [0x406004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
mov dword [ebp - 0xa1820], 0
push eax
push eax
push eax
mov word [ebp - 0xa180c], ax
lea eax, [ebp - 0xa181c]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0xa1820]
mov dword [ebp - 0xa181c], 0x10001
push eax
mov dword [ebp - 0xa1818], 0x5622
mov dword [ebp - 0xa1814], 0x5622
mov dword [ebp - 0xa1810], 0x80001
call dword [sym.imp.WINMM.dll_waveOutOpen]
push 0xa17fc
lea eax, [ebp - 0xa1808]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor edx, edx
mov dword [ebp - 0xa1824], edx
nop word [eax + eax]
mov eax, edx
neg edx
shr eax, 6
mov dword [ebp - 0xa1828], eax
mov ecx, eax
mov eax, dword [ebp - 0xa1824]
and ecx, 3
mov bl, al
neg al
shl bl, cl
mov ecx, edx
shr ecx, 0xd
and cl, al
shr edx, 1
xor bl, cl
and bl, 0x7f
xor bl, dl
mov edx, dword [ebp - 0xa1824]
mov ecx, edx
mov eax, edx
shr ecx, 9
and cl, dl
shr eax, 0xc
xor cl, al
xor cl, byte [ebp - 0xa1828]
or bl, cl
mov byte [ebp + edx - 0xa1808], bl
inc edx
mov dword [ebp - 0xa1824], edx
cmp edx, 0xa17fc
jb 0x402cf0
lea eax, [ebp - 0xa1808]
mov dword [ebp - 0xa1844], 0xa17fc
mov dword [ebp - 0xa1848], eax
lea eax, [ebp - 0xa1848]
push 0x20
push eax
push dword [ebp - 0xa1820]
mov dword [ebp - 0xa1840], 0
mov dword [ebp - 0xa183c], 0
mov dword [ebp - 0xa1838], 0
mov dword [ebp - 0xa1834], 0
mov dword [ebp - 0xa1830], 0
mov dword [ebp - 0xa182c], 0
call dword [sym.imp.WINMM.dll_waveOutPrepareHeader]
push 0x20
lea eax, [ebp - 0xa1848]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutWrite]
push 0x20
lea eax, [ebp - 0xa1848]
push eax
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutUnprepareHeader]
push dword [ebp - 0xa1820]
call dword [sym.imp.WINMM.dll_waveOutClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004031b3
mov esp, ebp
pop ebp
ret
Function at 0x4039e9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403a28
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403a28
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403a28
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403a28
cmp dword [ecx + 0x74], 0xe
jbe 0x403a28
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret