joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022a0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
lea eax, [esp + 0x10]
push 2
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edx, dword [0x40bd44]
lea ecx, [esp]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 8]
push 4
push eax
sub edx, eax
mov eax, dword [esp + 0x20]
push ecx
sub eax, ecx
mov ecx, dword [0x40bd44]
sub eax, 0x14
push edx
push eax
push 1
push ecx
call dword [sym.imp.USER32.dll_SetWindowPos]
mov edx, dword [0x40bd44]
push 0x40008
push 0x320
push edx
call dword [sym.imp.USER32.dll_AnimateWindow]
mov eax, dword [0x40bd44]
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
add esp, 0x20
ret

Function at 0x4023c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 4]
lea ecx, [esp]
push eax
lea edx, [esp + 0xc]
push ecx
push edx
push str.RunAppCount
push str.SoftwareVB_and_VBA_Program_SettingsCleanMacrooption
push 0x80000001
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
je 0x40240d
mov dword [esp], 0x1f
jmp 0x402414
cmp dword [esp], 0x1e
jbe 0x402433
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
push 0x402320
push 0
push 0x67
push eax
mov dword [0x40bd48], eax
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov eax, 1
add esp, 0xc
ret

Function at 0x4024c0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x403050
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xdc
xor eax, eax
push ebx
mov dword [esp + 0x11], eax
push ebp
mov dword [esp + 0x19], eax
push esi
mov dword [esp + 0x21], eax
push edi
mov word [esp + 0x29], ax
mov ecx, 0x18
lea edi, [esp + 0x89]
mov byte [esp + 0x2b], al
mov byte [esp + 0x88], al
mov edx, dword [esp + 0xf4]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ecx, ecx
xor esi, esi
mov word [esp + 0x11], cx
xor ebx, ebx
stosb byte es:[edi], al
mov byte [esp + 0x13], cl
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x34]
mov dword [esp + 0x30], esi
push 0x28
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], esi
mov byte [esp + 0x24], bl
mov byte [esp + 0x18], bl
call dword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
jne 0x40321d
mov eax, dword [esp + 0xf0]
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x40321d
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x4031f5
push 4
push 0x1000
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
test ebx, ebx
je 0x4031f5
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x30]
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4031f5
lea ecx, [esp + 0x30]
push ecx
call fcn.004024c0
push esi
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.004024f0
lea eax, [esp + 0x40]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.004025a0
add esp, 0x18
xor ebp, ebp
xor edx, edx
lea eax, [esp + 0x10]
mov dl, byte [esp + ebp + 0x1c]
push edx
push str._02X
push eax
call fcn.0040357e
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x88]
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
cmp ebp, 0x10
rep movsb byte es:[edi], byte [esi]
jl 0x403180
mov ecx, dword [esp + 0xf4]
lea eax, [esp + 0x88]
push 0x28
push eax
push ecx
call fcn.00403480
mov ebp, dword [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x14], 1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40320e
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xdc
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x488d19
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x488d39
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x488d26
ret
Function at 0x419c00
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
cmp esi, 4
jae 0x419c0e
xor eax, eax
pop esi
ret
mov ecx, dword [esp + 8]
xor eax, eax
xor edx, edx
sub esi, 4
mov al, byte [ecx]
mov dl, byte [ecx + 1]
shl eax, 0x18
inc ecx
shl edx, 0x10
or eax, edx
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
xor edx, edx
mov dl, byte [ecx]
or eax, edx
inc ecx
mov edx, esi
dec esi
test edx, edx
not eax
je 0x419c5f
push ebx
lea edx, [esi + 1]
mov esi, eax
xor ebx, ebx
mov bl, byte [ecx]
shr esi, 0x18
shl eax, 8
mov esi, dword [esi*4 + 0x406020]
or eax, ebx
xor eax, esi
inc ecx
dec edx
jne 0x419c43
pop ebx
not eax
pop esi
ret

Function at 0x41bc60
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
ret
Function at 0x100040a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0xf6a750
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.100039a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.10003a20
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.10003a20
lea ecx, [esi + 0xc]
call fcn.1001351f
lea ecx, [esi + 0x10]
call fcn.1001351f
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.100066a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.100066a0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.100066a0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.10013594
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.10013594
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10001e40
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
push ebx
push esi
push edi
lea edi, [ebp - 0xfc]
mov ecx, 0x3f
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 0x38], eax
mov dword [ebp - 8], 0
jmp 0x10001e97
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x38]
add ecx, 0x28
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x10001f5a
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x10], 0
jne 0x10001f05
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0
jle 0x10001f03
mov esi, esp
push 4
push 0x1000
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x20]
add edx, dword [ecx + 0xc]
push edx
call dword [0x1000508c]
cmp esi, esp
call fcn.10003ce4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x14]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10003d64
add esp, 0xc
jmp 0x10001e85
mov esi, esp
push 4
push 0x1000
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
add eax, dword [edx + 0xc]
push eax
call dword [0x1000508c]
cmp esi, esp
call fcn.10003ce4
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10003cde
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x2c]
mov dword [eax + 8], ecx
jmp 0x10001e85
pop edi
pop esi
pop ebx
add esp, 0xfc
cmp ebp, esp
call fcn.10003ce4
mov esp, ebp
pop ebp
ret
Function at 0x10001f70
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push ebx
push esi
push edi
lea edi, [ebp - 0x120]
mov ecx, 0x48
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movzx edx, word [eax + 0x14]
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], 0
jmp 0x10001fbe
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x28
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
movzx edx, word [ecx + 6]
cmp dword [ebp - 8], edx
jge 0x100020e6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
and ecx, 0x20000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
and ecx, 0x40000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
neg ecx
mov dword [ebp - 0x5c], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
and ecx, 0x2000000
je 0x10002044
mov esi, esp
push 0x4000
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
push eax
call dword [0x10005010]
cmp esi, esp
call fcn.10003ce4
jmp 0x10001fac
mov eax, dword [ebp - 0x44]
shl eax, 4
mov ecx, dword [ebp - 0x50]
lea edx, [eax + ecx*8 + section..data]
mov eax, dword [ebp - 0x5c]
mov ecx, dword [edx + eax*4]
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
and ecx, 0x4000000
je 0x10002076
mov eax, dword [ebp - 0x20]
or eax, 0x200
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x38], 0
jne 0x100020b6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
and ecx, 0x40
je 0x1000209d
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x20]
mov dword [ebp - 0x38], edx
jmp 0x100020b6
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0x24]
and ecx, 0x80
je 0x100020b6
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
jbe 0x100020e1
mov esi, esp
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 8]
push edx
call dword [0x1000504c]
cmp esi, esp
call fcn.10003ce4
jmp 0x10001fac
push edx
mov ecx, ebp
push eax
lea edx, [0x1000150c]
call fcn.10003d07
pop eax
pop edx
pop edi
pop esi
pop ebx
add esp, 0x120
cmp ebp, esp
call fcn.10003ce4
mov esp, ebp
pop ebp
ret
Function at 0x10002ef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0xd8]
mov ecx, 0x36
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
movzx eax, byte [ebp + 0x10]
cdq
mov ecx, 0xfe
idiv ecx
add edx, 8
mov byte [ebp - 0x11], dl
mov dword [ebp - 8], 0
jmp 0x10002f32
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x10002f67
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
xor edx, eax
mov eax, dword [ebp + 8]
mov byte [eax], dl
movzx eax, byte [ebp - 0x11]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
add edx, eax
mov eax, dword [ebp + 8]
mov byte [eax], dl
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
jmp 0x10002f29
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40432b
Capabilities:
Parse pe header

Disassembly:
test ecx, ecx
jne 0x404332
xor al, al
ret
cmp word [ecx], 0x5a4d
jne 0x40432f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40432f
mov eax, dword [eax + 0x98]
test eax, eax
je 0x404355
lea edx, [eax + ecx]
jmp 0x404357
xor edx, edx
test edx, edx
je 0x40432f
lea eax, [edx + 8]
test eax, eax
je 0x40432f
cmp byte [eax], 0x30
lea ecx, [eax + 1]
jne 0x404386
mov al, byte [ecx]
inc ecx
cmp al, 0x82
jne 0x404386
movzx eax, byte [ecx]
movzx ecx, byte [ecx + 1]
shl eax, 8
lea eax, [eax + ecx + 0x13]
and eax, 0xffffff8
jmp 0x404388
xor eax, eax
test eax, eax
je 0x40432f
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], edx
mov al, 1
ret

Function at 0x4068d0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x4068e3
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4068df
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x406900
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x40693f
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x406935
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x406941
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x406925
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4c27cf
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x4c27e2
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4c27de
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x4c27ff
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4c283e
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4c2834
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4c2840
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4c2824
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40699a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x4069d1
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4069ab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x4069a6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a02
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x4069e4
pop edi
not eax
pop esi
ret 0xc
Function at 0x405e47
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
cmp dword [ebp + 0xc], 1
mov ecx, dword [eax]
mov dword [esi], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jae 0x405e90
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push eax
mov dword [ebp + 0xc], str.Incorrect_key_length
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
lea eax, [ebp - 0x1c]
push 0x425ce0
push eax
call sub.MSVCRT.dll__CxxThrowException
push 0x38
pop eax
cmp dword [ebp + 0xc], eax
jbe 0x405e9b
mov dword [ebp + 0xc], eax
push ebx
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
lea edi, [esi + 0x10]
push 0x48
push 0x422938
push edi
call sub.MSVCRT.dll_memcpy
lea eax, [esi + 0x58]
push 0x1000
push 0x422980
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x24
and dword [ebp + 0x10], 0
lea eax, [ebp - 0x54]
mov ecx, edi
push 4
mov dword [ebp - 8], 0x12
pop ebx
and dword [ebp + 8], 0
mov dword [ebp - 4], ebx
mov edx, dword [ebp + 8]
movzx ebx, byte [eax]
shl edx, 8
or edx, ebx
inc eax
inc dword [ebp + 0x10]
mov dword [ebp + 8], edx
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x405f0d
and dword [ebp + 0x10], 0
lea eax, [ebp - 0x54]
dec dword [ebp - 4]
jne 0x405eec
mov edx, dword [ebp + 8]
push 4
xor dword [ecx], edx
pop ebx
add ecx, ebx
dec dword [ebp - 8]
jne 0x405ee5
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00405f9e
mov eax, dword [ebp - 0x10]
inc dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
add edi, ebx
inc dword [ebp + 0xc]
mov dword [edi], eax
add edi, ebx
cmp dword [ebp + 0xc], 0x12
jb 0x405f2c
lea eax, [esi + 0x58]
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], eax
and dword [ebp + 0xc], 0
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00405f9e
mov eax, dword [ebp - 0x10]
inc dword [ebp + 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0xc]
add edi, ebx
inc dword [ebp + 0xc]
mov dword [edi], eax
add edi, ebx
cmp dword [ebp + 0xc], 0x100
jl 0x405f61
add dword [ebp + 0x10], 0x400
dec dword [ebp + 8]
jne 0x405f5a
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret 0xc
Function at 0x406264
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
test eax, eax
mov esi, ecx
je 0x4063a7
test al, 7
jne 0x4063a7
and dword [ebp - 8], 0
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 1
jne 0x4062fa
mov ecx, dword [esi + 8]
cmp eax, 8
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0xc], ecx
jb 0x4062f3
shr eax, 3
mov dword [ebp + 0x14], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004061c0
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
pop ecx
lea eax, [ebp - 8]
pop ecx
push eax
mov ecx, esi
call fcn.004060cd
mov eax, dword [ebp - 0x10]
add dword [ebp + 0xc], 8
xor dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
mov dword [ebp - 0x10], edi
push eax
mov dword [ebp - 0xc], ebx
call fcn.0040621d
add dword [ebp + 8], 8
dec dword [ebp + 0x14]
pop ecx
pop ecx
jne 0x4062a7
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0x14], 2
jne 0x406366
mov ecx, dword [esi + 8]
cmp eax, 8
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0xc]
mov dword [ebp - 0xc], ecx
jb 0x4062f3
shr eax, 3
mov ebx, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004061c0
pop ecx
lea eax, [ebp - 0x10]
pop ecx
push eax
mov ecx, esi
call fcn.00405f9e
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
add dword [ebp + 0xc], 8
push dword [ebp + 0xc]
mov edx, eax
xor eax, dword [ebp - 0x10]
mov edi, ecx
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edi
call fcn.0040621d
add dword [ebp + 8], 8
pop ecx
dec ebx
pop ecx
jne 0x406316
jmp 0x4062f3
cmp eax, 8
jb 0x4062f3
shr eax, 3
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.004061c0
pop ecx
lea eax, [ebp - 8]
pop ecx
push eax
mov ecx, esi
call fcn.004060cd
add dword [ebp + 0xc], 8
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0040621d
add dword [ebp + 8], 8
pop ecx
dec edi
pop ecx
jne 0x406370
jmp 0x4062f3
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x14]
push eax
mov dword [ebp + 0xc], str.Incorrect_buffer_length
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
lea eax, [ebp - 0x14]
push 0x425ce0
push eax
call sub.MSVCRT.dll__CxxThrowException
Function at 0x4078c4
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x40792c
push 1
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x407986
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x40790f
push 5
jmp 0x40797d
cmp eax, 5
jne 0x40797e
cmp dword [edi + 8], 0
jne 0x40791e
push 6
jmp 0x40797d
cmp eax, 5
jne 0x40797e
cmp dword [edi + 8], ebx
jne 0x40797e
push 7
jmp 0x40797d
cmp al, 4
jae 0x407934
xor ebx, ebx
jmp 0x407986
push 2
mov esi, 0x94
pop ebx
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov edi, eax
pop ecx
test edi, edi
je 0x407986
push esi
push 0
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi], esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [edi + 4]
cmp eax, 4
jne 0x40797e
cmp dword [edi + 8], 0xa
jne 0x407971
push 3
jmp 0x40797d
cmp eax, 4
jne 0x40797e
cmp dword [edi + 8], 0x5a
jne 0x40797e
push eax
pop ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
pop edi
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x409d84
Capabilities:
Check os version

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x409d9c
cmp al, 5
sbb eax, eax
and eax, 2
add eax, 6
ret
push 8
pop eax
ret

Function at 0x4152cf
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 0x10]
mov eax, dword [esi + 0xd8]
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.0041cc34
push 0
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetWindowRgn]
push 1
push 0xf
call dword [sym.imp.USER32.dll_GetSysColor]
mov edi, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push edi
call fcn.0040693e
add esp, 0x14
lea eax, [ebp - 0xd4]
push 0xc8
push eax
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [esi + 4]
and byte [ebp - 0xd], 0
add eax, 0x90
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [ebp - 8], eax
call ebx
mov esi, dword [esi + 4]
mov dword [ebp + 8], eax
push dword [esi + 0xcc]
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push edi
call esi
push 1
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x25
mov dword [ebp - 0xc], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0xd4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0xd4]
push eax
push edi
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp + 0xc]
push edi
call esi
push dword [ebp + 8]
push edi
call ebx
push dword [ebp - 8]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [ebp - 0xc]
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
cmp dword [ebp - 4], 0
je 0x4153c6
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 0xc