joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44d270
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x28], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x6a09e667
mov dword [eax + 0xc], 0xbb67ae85
mov dword [eax + 0x10], 0x3c6ef372
mov dword [eax + 0x14], 0xa54ff53a
mov dword [eax + 0x18], 0x510e527f
mov dword [eax + 0x1c], 0x9b05688c
mov dword [eax + 0x20], 0x1f83d9ab
mov dword [eax + 0x24], 0x5be0cd19
xor eax, eax
pop ebp
ret
Function at 0x44d370
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x28]
mov edx, 0x40
cmp eax, edx
jb 0x44d389
lea eax, [edx - 0x30]
pop esi
pop ebp
ret
lea ecx, [eax*8]
add dword [esi], ecx
push ebx
mov ebx, 0
adc dword [esi + 4], ebx
push edi
mov byte [eax + esi + 0x2c], 0x80
mov edi, 1
add dword [esi + 0x28], edi
mov eax, dword [esi + 0x28]
mov ecx, 0x38
cmp eax, ecx
jbe 0x44d3e2
cmp eax, edx
jae 0x44d3ce
lea esp, [esp]
mov byte [eax + esi + 0x2c], bl
add dword [esi + 0x28], edi
mov eax, dword [esi + 0x28]
cmp eax, edx
jb 0x44d3c0
lea eax, [esi + 0x2c]
push esi
call fcn.0044b7c0
add esp, 4
mov dword [esi + 0x28], ebx
mov ecx, 0x38
cmp dword [esi + 0x28], ecx
jae 0x44d3ff
jmp 0x44d3f0
mov edx, dword [esi + 0x28]
mov byte [esi + edx + 0x2c], bl
add dword [esi + 0x28], edi
cmp dword [esi + 0x28], ecx
jb 0x44d3f0
movzx eax, byte [esi + 7]
movzx ecx, byte [esi + 6]
movzx edx, byte [esi + 5]
mov byte [esi + 0x64], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x65], cl
movzx ecx, byte [esi + 3]
mov byte [esi + 0x67], al
movzx eax, byte [esi + 1]
mov byte [esi + 0x66], dl
movzx edx, byte [esi + 2]
mov byte [esi + 0x68], cl
movzx ecx, byte [esi]
mov byte [esi + 0x6a], al
lea eax, [esi + 0x2c]
push esi
mov byte [esi + 0x69], dl
mov byte [esi + 0x6b], cl
call fcn.0044b7c0
movzx edx, byte [esi + 0xb]
mov eax, dword [ebp + 0xc]
mov byte [eax], dl
movzx ecx, byte [esi + 0xa]
mov byte [eax + 1], cl
movzx edx, byte [esi + 9]
mov byte [eax + 2], dl
movzx ecx, byte [esi + 8]
mov byte [eax + 3], cl
movzx edx, byte [esi + 0xf]
mov byte [eax + 4], dl
movzx ecx, byte [esi + 0xe]
mov byte [eax + 5], cl
movzx edx, byte [esi + 0xd]
mov byte [eax + 6], dl
movzx ecx, byte [esi + 0xc]
mov byte [eax + 7], cl
movzx edx, byte [esi + 0x13]
mov byte [eax + 8], dl
movzx ecx, byte [esi + 0x12]
mov byte [eax + 9], cl
movzx edx, byte [esi + 0x11]
mov byte [eax + 0xa], dl
movzx ecx, byte [esi + 0x10]
mov byte [eax + 0xb], cl
movzx edx, byte [esi + 0x17]
mov byte [eax + 0xc], dl
movzx ecx, byte [esi + 0x16]
mov byte [eax + 0xd], cl
movzx edx, byte [esi + 0x15]
mov byte [eax + 0xe], dl
movzx ecx, byte [esi + 0x14]
mov byte [eax + 0xf], cl
movzx edx, byte [esi + 0x1b]
mov byte [eax + 0x10], dl
movzx ecx, byte [esi + 0x1a]
mov byte [eax + 0x11], cl
movzx edx, byte [esi + 0x19]
mov byte [eax + 0x12], dl
movzx ecx, byte [esi + 0x18]
mov byte [eax + 0x13], cl
movzx edx, byte [esi + 0x1f]
mov byte [eax + 0x14], dl
movzx ecx, byte [esi + 0x1e]
mov byte [eax + 0x15], cl
movzx edx, byte [esi + 0x1d]
mov byte [eax + 0x16], dl
movzx ecx, byte [esi + 0x1c]
mov byte [eax + 0x17], cl
movzx edx, byte [esi + 0x23]
mov byte [eax + 0x18], dl
movzx ecx, byte [esi + 0x22]
mov byte [eax + 0x19], cl
movzx edx, byte [esi + 0x21]
mov byte [eax + 0x1a], dl
movzx ecx, byte [esi + 0x20]
mov byte [eax + 0x1b], cl
movzx edx, byte [esi + 0x27]
mov byte [eax + 0x1c], dl
movzx ecx, byte [esi + 0x26]
add esp, 4
mov byte [eax + 0x1d], cl
movzx edx, byte [esi + 0x25]
mov byte [eax + 0x1e], dl
movzx ecx, byte [esi + 0x24]
pop edi
pop ebx
mov byte [eax + 0x1f], cl
xor eax, eax
pop esi
pop ebp
ret
Function at 0x44dba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 8
mov dword [ebp - 4], edi
cmp eax, edi
je 0x44dc44
push esi
mov eax, dword [ebp + 0x10]
dec dword [ebp + 0xc]
test eax, eax
je 0x44dbd1
call eax
dec dword [ebp - 8]
call fcn.004689db
mov esi, eax
call fcn.004689db
cmp esi, eax
jne 0x44dbf0
xor edi, 1
call fcn.004689db
cmp esi, eax
je 0x44dbe4
call fcn.004689db
mov esi, eax
call fcn.004689db
cmp esi, eax
jne 0x44dc0c
xor ebx, 1
call fcn.004689db
cmp esi, eax
je 0x44dc00
cmp edi, ebx
je 0x44dbd4
mov eax, dword [ebp - 4]
lea ecx, [eax + eax]
or ecx, edi
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
jne 0x44dbd1
mov eax, dword [ebp + 8]
mov dl, cl
mov byte [eax], dl
inc eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 8
jne 0x44dbc5
mov eax, dword [ebp - 0xc]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44dd50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [edi]
add eax, eax
lea edx, [ecx + eax*8 + 0x258]
push 0x10
push edx
lea eax, [ebp - 0x10]
push eax
call fcn.00466fe0
add esp, 0xc
mov esi, 1
mov edx, 0x100
movzx ecx, byte [esi + edi]
mov ebx, dword [ebp + 8]
add ecx, edx
xor eax, eax
add ecx, ecx
lea ecx, [ebx + ecx*8 + 0x258]
jmp 0x44dda0
mov ebx, dword [ecx]
xor dword [ebp + eax - 0x10], ebx
add eax, 4
add ecx, 4
cmp eax, 0x10
jl 0x44dda0
add edx, 0x100
inc esi
cmp edx, 0x1000
jl 0x44dd84
push 0x10
lea edx, [ebp - 0x10]
push edx
push edi
call fcn.00466fe0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457524
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, edx
mov eax, edx
xor eax, dword [ebp + 0x10]
shr ecx, 5
inc ecx
cmp edx, ecx
jb 0x45755b
push esi
push edi
mov esi, dword [ebp + 8]
movzx esi, byte [esi + edx - 1]
mov edi, eax
shl edi, 5
add esi, edi
mov edi, eax
shr edi, 2
add esi, edi
sub edx, ecx
xor eax, esi
cmp edx, ecx
jae 0x45753b
pop edi
pop esi
pop ebp
ret

Function at 0x45b6c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
mov esi, 0x200
call fcn.0044f366
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0044f205
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.00466b0d
add esp, 0x20
jmp 0x45b722
cmp esi, 0x3fffffff
ja 0x45b706
add esi, esi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0044f205
push dword [ebp + 0xc]
push esi
push 1
push eax
call fcn.00466b0d
add esp, 0x18
add dword [ebp - 0x208], eax
cmp eax, esi
jae 0x45b6fc
lea eax, [ebp - 0x210]
push eax
call fcn.0044f2ce
pop ecx
pop esi
leave
ret

Function at 0x45b73c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
lea eax, [ebp - 0x210]
push eax
push dword [ebp + 8]
call fcn.0044f366
push dword [ebp + 0x10]
lea eax, [ebp - 0x210]
push eax
call fcn.0044f205
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push 1
push eax
call fcn.00466b0d
mov esi, eax
add dword [ebp - 0x208], esi
lea eax, [ebp - 0x210]
push eax
call fcn.0044f2ce
xor eax, eax
add esp, 0x24
cmp eax, esi
sbb eax, eax
neg eax
pop esi
leave
ret

Function at 0x45ba2d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, eax
call fcn.00450314
pop ecx
mov esi, eax
sub esi, ebx
push 1
pop edi
je 0x45babe
push ebx
push dword [ebp + 8]
dec esi
call fcn.004504a3
pop ecx
pop ecx
cmp eax, 3
jne 0x45ba87
test edi, edi
je 0x45bab3
push 0
push ebx
push dword [ebp + 8]
call fcn.0045068c
fstp qword [esp + 4]
mov dword [esp], str._.14g
push dword [ebp + 0xc]
call fcn.0046414d
add esp, 0x10
test eax, eax
jle 0x45bab3
xor edi, edi
inc edi
jmp 0x45bab5
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 8]
call fcn.0044fe88
add esp, 0xc
test edi, edi
je 0x45bab3
push dword [ebp + 0xc]
xor edi, edi
push dword [ebp - 4]
inc edi
push edi
push eax
call fcn.0046573e
add esp, 0x10
cmp eax, dword [ebp - 4]
je 0x45bab5
xor edi, edi
inc ebx
test esi, esi
jne 0x45ba48
test edi, edi
je 0x45bac3
xor eax, eax
inc eax
jmp 0x45bad2
push 0
push 0
push dword [ebp + 8]
call fcn.0044f02f
add esp, 0xc
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431ddb
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x439a10
call fcn.0042e2e0
xor esi, esi
cmp dword [0x43e76c], esi
jne 0x431e1f
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x431e0a
mov dword [0x43e76c], edi
jmp 0x431e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x431e1f
mov dword [0x43e76c], 2
mov eax, dword [0x43e76c]
cmp eax, 2
je 0x431f00
cmp eax, esi
je 0x431f00
cmp eax, 1
jne 0x431e64
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x431e4d
mov eax, dword [0x43e4d8]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x431e6b
xor eax, eax
jmp 0x431f12
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00424ea0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x431ea1
cmp edi, esi
jne 0x431ebc
lea eax, [ebx + ebx]
push eax
call fcn.0042372d
pop ecx
mov edi, eax
cmp edi, esi
je 0x431e64
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x431eef
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x431ed9
push esi
push esi
jmp 0x431edf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x431efb
push edi
call fcn.00423779
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x431f12
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0042e31b
ret

Function at 0x43b658
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x43b3c1
mov edi, 0x617472bf
call fcn.0043b689
or edi, edi
sub edi, edi
dec edi
xor dword [ebx], edx
inc ecx
dec edi
inc ebx
sub ecx, 0xf240a95b
cmp ebx, esi
jne fcn.0043b658
and ecx, ecx
dec ecx
dec ecx
ret
Function at 0x41c390
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4033b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x70
call sub.MSVBVM60.DLL___vbaChkstk
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x14], 0x4027a0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 1
mov dword [ebp - 4], 2
push 0xffffffffffffffff
call dword [sym.imp.MSVBVM60.DLL___vbaOnError]
mov dword [ebp - 4], 3
call fcn.00406354
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
lea eax, [ebp - 0x64]
push eax
push 0x28
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.00406308
mov dword [ebp - 0x70], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x70], 0
setne dl
neg edx
movsx eax, dx
test eax, eax
je 0x41c545
mov dword [ebp - 4], 4
xor ecx, ecx
test ecx, ecx
je 0x41c466
mov dword [ebp - 4], 6
mov dword [ebp - 0x6c], 0x1c
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x1c
lea ecx, [ebp - 0x60]
push ecx
push 0
mov edx, dword [ebp - 0x64]
push edx
call fcn.00406430
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
jmp 0x41c545
mov dword [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
push 0x4054d0
lea ecx, [ebp - 0x68]
push ecx
call dword [sym.imp.MSVBVM60.DLL___vbaStrToAnsi]
push eax
push 0
call fcn.004063b4
mov dword [ebp - 0x6c], eax
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
xor edx, edx
cmp dword [ebp - 0x6c], 0
setne dl
neg edx
mov word [ebp - 0x74], dx
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVBVM60.DLL___vbaFreeStr]
movsx eax, word [ebp - 0x74]
test eax, eax
je 0x41c545
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x60], 1
mov dword [ebp - 4], 0xb
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x41c4e3
mov dword [ebp - 0x8c], 0
jmp 0x41c4ef
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x8c], eax
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x74]
imul edx, edx, 0xc
lea eax, [ebp + edx - 0x5c]
push eax
push 8
call dword [sym.imp.MSVBVM60.DLL___vbaCopyBytes]
mov dword [ebp - 4], 0xc
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 2
jae 0x41c526
mov dword [ebp - 0x90], 0
jmp 0x41c532
call dword [sym.imp.MSVBVM60.DLL___vbaGenerateBoundsError]
mov dword [ebp - 0x90], eax
mov ecx, dword [ebp - 0x74]
imul ecx, ecx, 0xc
mov dword [ebp + ecx - 0x54], 2
jmp 0x41c434
mov dword [ebp - 4], 0x11
mov edx, dword [ebp - 0x64]
push edx
call fcn.00405fa8
call dword [sym.imp.MSVBVM60.DLL___vbaSetSystemError]
push 0x41c56d
jmp 0x41c56c
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x44db3ade
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x66b16459
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x44b610
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
mov al, byte [0x66104e]
mov cl, byte [0x661043]
xor cl, al
mov byte [0x661043], cl
mov cl, byte [0x661041]
or cl, 0xc
shr cl, 2
and ecx, 0xff
mov dword [esp], ecx
fild dword [esp]
fdivr qword [0x6649d0]
fadd qword [0x664970]
fstp qword [0x6649d0]
call dword [sym.imp.USER32.dll_GetDialogBaseUnits]
mov dl, byte [0x661042]
mov al, byte [0x661049]
mov ecx, dword [0x661030]
xor al, dl
mov byte [0x661049], al
mov eax, dword [0x661034]
mov edx, dword [0x661048]
and eax, 4
add ecx, eax
and edx, 0xff
mov dword [0x661030], ecx
mov ecx, dword [0x66103c]
and ecx, 0xc
mov eax, dword [esp + 8]
imul ecx, edx
mov edx, dword [0x661038]
push eax
xor edx, ecx
mov dword [0x661038], edx
call dword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [0x664bd4], eax
mov eax, dword [0x664bd0]
test eax, eax
jne 0x44b728
mov ecx, dword [0x664abc]
push ecx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push 0xa3
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jne 0x44b6ed
mov eax, dword [esp + 8]
mov ecx, dword [0x664bd4]
cmp eax, ecx
je 0x44b6ed
mov dword [0x664bd4], eax
push esi
push edi
push str.comctl32.dll
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.LoadIconWithScaleDown
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov dword [0x664ac4], eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
pop edi
mov dword [0x664bd0], 1
pop esi
pop ecx
ret 4
mov eax, dword [esp + 8]
pop ecx
ret 4
Function at 0x465aa2
Capabilities:
Encode data using xor

Disassembly:
pushfd
add dword [edi + 0x31], ebx
xchg ebp, eax
jo 0x465b29
pop ebp
invalid
jmp 0x465ba1
push es
stosd dword es:[edi], eax
cmp ah, byte [edx - 0x3e7fe07d]
out dx, eax
sub ch, byte [edx - 0x4afcc40]
xchg ecx, eax
inc ecx
sal dword [esi + edi*4 + 0x115e635], 1
mov dl, 0x32
add eax, 0xf3b95398
mov ch, 0xad
jbe 0x465b80
cld
das
nop
fstp qword [edi - 0x1eeb202b]
add dh, al
xor byte [ecx], bh
loope 0x465baf
lock xor byte [ecx], bh
cmp dword [edx], esp
int 0xf5
and cl, ch
cmc
in eax, dx
xor dword [edi], eax
std
dec ebx
add ecx, dword [edi]
pop edi
or cl, byte [ecx + 0x6255b6b1]
lds eax, [ecx - 0x4f]
jb 0x465bb4
jo 0x465bab
adc cl, bh
and eax, 0x5f5f3d2f
das
xchg esp, eax
insb byte es:[edi], dx
invalid
Function at 0x500ad2
Capabilities:
Encode data using xor

Disassembly:
and eax, 0xc90657d7
push edi
salc
jo 0x500b52
adc eax, edi
adc edx, dword [ebp - 0x64]
jl 0x500b58
mov dh, 0xec
pop edx
adc dword [edi + edx*8 + 0x76718f3f], esp
mov word [ecx + 0x1bd005b6], es
pop ebx
sbb dword [esi], eax
cmp dh, byte [ecx - 0x54115a84]
invalid
cmpsb byte [esi], byte es:[edi]
invalid
xchg edi, eax
fidiv word [ebp - 0xb0771ab]
invalid
Function at 0x58e342
Capabilities:
Encode data using xor

Disassembly:
xchg ecx, eax
or dword [ecx + 0x40114f65], ecx
xchg edx, eax
loop 0x58e3b6
rcl esp, 1
push esp
fist word [edx]
push ss
cmpsb byte [esi], byte es:[edi]
mov dl, 0x72
push es
adc byte [esi - 0x52], al
mov eax, 0xb6009922
inc esp
cmp byte [ebp - 0x360a68e], ah
cmp al, ah
clc
adc byte [ecx + 0x58], 0x6c
ljmp 0x481b
sub dword [edx - 0x76], edi
pop ecx
ja 0x58e424
mov cl, 0x17
sbb dword [ecx - 0x7a], esi
pop eax
in al, dx
inc ecx
ror dword [eax + ecx*8 - 0x4ca4c0d8], 1
lahf
push 0xb766c019
add ebx, dword [eax + 0x13]
mov al, byte [0x815b0a52]
in al, dx
mov ecx, 0xa7d07b27
cld
dec ecx
xchg esp, eax
mov al, byte [0xa1fbc0ec]
or dh, byte [ebx + 0x4a2167de]
sub dword [edi - 0x40], ebp
xor byte [ecx + 0xc], dh
xchg dword [edx + 0x49], edx
cmp al, 0x43
push ds
push ebp
invalid
Function at 0x657dad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6613a8
cmp edx, dword [eax]
je 0x657dcf
add eax, 8
inc ecx
cmp eax, 0x661438
jl 0x657dc0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6613a8]
jne 0x657efd
mov eax, dword [0xa66d18]
cmp eax, 1
je 0x657ed7
test eax, eax
jne 0x657e00
cmp dword [0x6612d4], 1
je 0x657ed7
cmp edx, 0xfc
je 0x657efd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x657e37
lea eax, [ebp - 0x1a4]
push 0x65dc00
push eax
call fcn.00658790
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00658c20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x657e7a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00658c20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x65dbfc
push edi
call fcn.0065aaf0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x65dbe0
push eax
call fcn.00658790
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.006587a0
lea eax, [ebp - 0xa0]
push 0x65dbdc
push eax
call fcn.006587a0
push dword [esi + 0x6613ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.006587a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x65dbb4
push eax
call fcn.0065aa64
add esp, 0x2c
pop edi
jmp 0x657efd
lea eax, [ebp + 8]
lea esi, [esi + 0x6613ac]
push 0
push eax
push dword [esi]
call fcn.00658c20
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 0x401940
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0040f250
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0040f250
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4019a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0xd3f078]
test esi, esi
jle 0x401ac0
mov eax, dword [0xd3f07c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4019d4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401a57
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4019c0
mov dword [esp], ebx
call fcn.00402390
mov edi, eax
test eax, eax
je 0x401ae7
mov eax, dword [0xd3f07c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004024d0
mov edx, dword [0xd3f07c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401ac7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401a50
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401a60
add dword [0xd3f078], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0xd3f07c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401a50
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00401940
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4019de
mov eax, dword [0xd3f07c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00401940
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00401940
lea esi, [esi]
nop