joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
nop
jmp int.00401219
Function at 0x649161
Capabilities:
Resolve function by hash

Disassembly:
mov eax, dword fs:[0x30]
test eax, eax
js 0x649177
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
mov ebx, dword [eax + 8]
jmp 0x649180
mov eax, dword [eax + 0x34]
mov ebx, dword [eax + 0xb8]
pop esi
add esi, 3
push ebx
mov edx, 0xec0e4e8e
call esi
push eax
mov edx, 0x7c0dfcaa
call esi
push eax
push edi
mov edx, 0x4ee4a045
call esi
xor edx, edx
push edx
push 0x6d756369
push 0x6c656167
push esp
push edx
push edx
call eax
push eax
mov edx, 0x75da1966
call esi
call eax
xchg edi, eax
mov edx, 0xffd97fb
call esi
call eax
cmp edi, 0xb7
jne 0x6491cf
mov esp, ebp
popal
ret
call fcn.006491f0
sti
xchg edi, eax
std
pcmpeqd mm5, qword [ebp - 0x50]
inc ebp
jb 0x6491dc
mov bl, 0x16
mov eax, dword [0xd2d83d6a]
invalid

Function at 0x64982b
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
call dword [edi + 0x30]
push edi
push eax
or esi, esi
jne 0x649844
pop eax
cmp byte [ebx + eax - 1], 0x5c
jne 0x649852
dec eax
jmp 0x649852
push esi
call dword [edi + 0x30]
xchg ecx, eax
pop eax
lea edi, [ebx + eax]
add eax, ecx
inc ecx
rep movsb byte es:[edi], byte [esi]
call 0x64985c
pop esp
sub ch, byte [esi]
sub al, byte [eax]
pop esi
lea edi, [ebx + eax]
push edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
inc esi
pop edi
push ebx
push esi
push dword [ebp - 4]
push ebx
call dword [edi + 0x38]
mov byte [esi], 0
cmp eax, 0xffffffff
je 0x6498e3
mov esi, eax
mov ebx, dword [ebp - 4]
test byte [ebx], 0x10
lea ebx, [ebx + 0x2c]
je 0x64989a
cmp byte [ebx], 0x2e
je 0x6498ca
push esi
mov edx, dword [ebp - 4]
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.0064982b
pop esi
jmp 0x6498ca
push ebx
call dword [edi + 0x30]
push eax
call 0x6498a9
js 0x64990d
add byte [ebp + 0x51fc034c], cl
call dword [edi + 0x34]
or eax, eax
pop ecx
jne 0x6498ca
push esi
push edi
mov esi, ebx
mov edi, dword [ebp - 0xc]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp - 8]
call fcn.006498e5
pop esi
mov ebx, dword [ebp - 0xc]
mov byte [ebx], 0
push dword [ebp - 4]
push esi
push 1
call dword [edi]
call dword [edi + 0x3c]
or eax, eax
jne 0x649879
push esi
call dword [edi + 0x40]
leave
ret
jae 0x64997a
jb 0x64997f
insb byte es:[edi], dx
js 0x64997b
invalid
Function at 0x64985c
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edx
push ebx
call dword [edi + 0x30]
push edi
push eax
or esi, esi
jne 0x649844
pop eax
cmp byte [ebx + eax - 1], 0x5c
jne 0x649852
dec eax
jmp 0x649852
push esi
call dword [edi + 0x30]
xchg ecx, eax
pop eax
lea edi, [ebx + eax]
add eax, ecx
inc ecx
rep movsb byte es:[edi], byte [esi]
call 0x64985c
pop esp
sub ch, byte [esi]
sub al, byte [eax]
pop esi
lea edi, [ebx + eax]
push edi
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
inc esi
pop edi
push ebx
push esi
push dword [ebp - 4]
push ebx
call dword [edi + 0x38]
mov byte [esi], 0
cmp eax, 0xffffffff
je 0x6498e3
mov esi, eax
mov ebx, dword [ebp - 4]
test byte [ebx], 0x10
lea ebx, [ebx + 0x2c]
je 0x64989a
cmp byte [ebx], 0x2e
je 0x6498ca
push esi
mov edx, dword [ebp - 4]
mov esi, ebx
mov ebx, dword [ebp - 8]
call fcn.0064982b
pop esi
jmp 0x6498ca
push ebx
call dword [edi + 0x30]
push eax
call 0x6498a9
js 0x64990d
add byte [ebp + 0x51fc034c], cl
call dword [edi + 0x34]
or eax, eax
pop ecx
jne 0x6498ca
push esi
push edi
mov esi, ebx
mov edi, dword [ebp - 0xc]
inc ecx
rep movsb byte es:[edi], byte [esi]
pop edi
mov eax, dword [ebp - 8]
call fcn.006498e5
pop esi
mov ebx, dword [ebp - 0xc]
mov byte [ebx], 0
push dword [ebp - 4]
push esi
push 1
call dword [edi]
call dword [edi + 0x3c]
or eax, eax
jne 0x649879
push esi
call dword [edi + 0x40]
leave
ret
jae 0x64997a
jb 0x64997f
insb byte es:[edi], dx
js 0x64997b
invalid

Function at 0x6498e5
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor edx, edx
push edx
push edx
push 3
push edx
push 1
push 0xc0000000
push eax
mov esi, eax
push esi
call dword [edi + 0x30]
lea esi, [esi + eax - 0xc]
push esi
call fcn.00649917
outsb dx, byte [esi]
je 0x64997c

Function at 0x649917
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
call dword [edi + 0x34]
or eax, eax
jne 0x649920
leave
call dword [edi + 0x44]
mov ebx, eax
inc ebx
jne 0x649932
dec ebx
push 0x40
pop esi
sub esp, esi
mov edx, esp
push 0
push esp
push esi
push edx
push ebx
call dword [edi + 0x48]
cmp dword [esp - 4], esi
jne 0x649928
cmp word [esp], 0x5a4d
jne 0x649928
cmp byte [esp + 0x32], 0x56
je 0x649928
push eax
add esp, esi
pop esi
mov dword [ebp - 0x1c], esi
push 0
push 0
push esi
push ebx
call dword [edi + 0x50]
inc eax
je 0x649928
sub esp, 0x58
mov edx, esp
push 0
push esp
push 0x58
push edx
push ebx
call dword [edi + 0x48]
Function at 0x401791
Capabilities:
Create pipe
Get thread local storage value
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2404
call fcn.00410f90
mov eax, dword [0x24605dc]
mov ecx, dword [0x2460068]
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x401884
mov edi, ecx
mov ebx, eax
cmp dword [0x24605dc], 0x959
jne 0x401874
push esi
lea eax, [ebp - 0x1c00]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
push str.wonicoxo
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
lea eax, [ebp - 0x1400]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
lea eax, [ebp - 0xc00]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.pihitilurasixavokomidipovucas_jur_winedome_mit_pulitehanusawov
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
push esi
lea eax, [ebp - 0x2400]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push edi
call fcn.00401543
add edi, 8
dec ebx
jne 0x4017bd
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402cb2
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x413adc
call fcn.00413960
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00403992
xor edi, edi
push 4
mov dword [ebp - 4], edi
call fcn.00404d98
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x402cfa
call fcn.00403746
mov dword [ebx], eax
call fcn.00403505
mov ecx, eax
call fcn.00401181
mov eax, ebx
jmp 0x402cfc
xor eax, eax
mov dword [esi + 0x38], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea ecx, [esi + 0x1c]
mov dword [esi + 0x24], ecx
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x2c]
mov dword [esi + 0x34], ecx
mov dword [eax], edi
mov eax, dword [esi + 0x24]
mov dword [eax], edi
mov eax, dword [esi + 0x34]
mov dword [eax], edi
mov eax, dword [esi + 0x10]
mov dword [eax], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov eax, dword [esi + 0x30]
mov dword [eax], edi
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
pop edi
mov dword [esi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x405420
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x447408]
jne 0x40542a
repz ret
jmp fcn.0040a47c
Function at 0x41057a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x447408]
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.00408fef
and dword [ebp - 0x14], 0
cmp dword [0x44ded0], 0
mov dword [ebp - 0x18], eax
jne 0x41062d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4106d5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4106d5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x44ded0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x44ded4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x44ded8], eax
call edi
push eax
call esi
mov dword [0x44dee0], eax
test eax, eax
je 0x41062d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x44dedc], eax
mov eax, dword [0x44dedc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x410686
cmp dword [0x44dee0], ecx
je 0x410686
push eax
call esi
push dword [0x44dee0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x410686
test ebx, ebx
je 0x410686
call edi
test eax, eax
je 0x41067d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41067d
test byte [ebp - 8], 1
jne 0x410686
or dword [ebp + 0x10], 0x200000
jmp 0x4106b9
mov eax, dword [0x44ded4]
cmp eax, dword [ebp - 0x18]
je 0x4106b9
push eax
call esi
test eax, eax
je 0x4106b9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4106b9
mov eax, dword [0x44ded8]
cmp eax, dword [ebp - 0x18]
je 0x4106b9
push eax
call esi
test eax, eax
je 0x4106b9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x44ded0]
call esi
test eax, eax
je 0x4106d5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4106d7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405420
leave
ret
Function at 0x406128
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x40614d
mov dword [0x40a0f4], eax
add esp, 0xfffffff8
push 0x4060ec
push eax
call fcn.00407c20
jmp 0x406152
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x406168
mov dword [0x409054], 0x40624c
jmp 0x406172
mov dword [0x409054], 0x406200
leave
ret

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

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

Function at 0x417d34
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00417db3
jae 0x417d40
xor ecx, ecx
call fcn.00417db3
jae 0x417d6a
xor eax, eax
call fcn.00417db3
jae 0x417d7b
mov al, 0x10
call fcn.00417db3
adc al, al
jae 0x417d5c
jne 0x417da8
stosb byte es:[edi], al
jmp 0x417d41
call fcn.00417dbf
dec ecx
loop 0x417d87
mov eax, ebp
call fcn.00417dbd
jmp 0x417da9
lodsb al, byte [esi]
shr eax, 1
je 0x417dcf
adc ecx, 2
mov ebp, eax
jmp 0x417da9
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00417dbd
cmp eax, 0x7d00
jae 0x417da7
cmp eax, 0x500
jae 0x417da8
cmp eax, 0x7f
ja 0x417da9
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x417d41
pop ebp
ret 8

Function at 0xec205c
Capabilities:
Encode data using xor

Disassembly:
jmp 0xec2066
pushal
call 0xec206c
pop ebp
sub ebp, 0x10
sub ebp, 0xac205c
jmp 0xec2082
mov eax, 0xac205c
add eax, ebp
add eax, 0x4c
mov ecx, 0x5b4
mov edx, 0x9680c631
xor byte [eax], dl
inc eax
dec ecx
jne 0xec2099
jmp 0xec20ac
mov edx, 0xdb8bafc
xor dword [ecx], esi
xor dword [eax + 0x3131c9f0], esi
xor dword [edx], esi
cld
mov dword [ecx + esi], esi
xor dword [ecx], esi
mov ebx, dword [ecx]
xor dword [ecx], esi
xor esi, eax
sal dword [edx], cl
stc
mov edx, 0x31313db0
xor dword [edx], esi
hlt
Function at 0x401028
Capabilities:
Encode data using xor

Disassembly:
push ebp
movzx eax, al
shl eax, 4
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 8
mov dword [ebp - 0x10], eax
lea eax, [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov ebx, edx
xor ecx, ecx
lea edi, [esi + eax]
mov al, byte [edi + ecx]
inc ecx
xor byte [ebx], al
inc ebx
cmp ecx, 4
jne 0x40104c
add dword [ebp - 0x10], 4
add edx, 4
cmp edx, dword [ebp - 0x14]
jne 0x401042
pop eax
pop edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4011a4
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, 0x10
mov esi, dword [ebp - 0x20]
cmp dword [ebp - 0x2c], esi
je 0x401373
cmp eax, 0x10
jne 0x401361
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x1c]
mov ecx, 4
lea edx, [ebp - 0x1c]
lea esi, [eax + 0xf0]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
call fcn.00401028
mov dword [ebp - 0x28], 1
lea edx, [ebp - 0x1c]
lea edi, [ebp - 0x18]
mov ecx, edx
mov byte [ebp - 0x21], 0
mov eax, ecx
movzx esi, byte [eax]
inc byte [ebp - 0x21]
add eax, 4
mov bl, byte [esi + str.cw]
mov byte [eax - 4], bl
cmp byte [ebp - 0x21], 4
jne 0x401207
inc ecx
cmp edi, ecx
jne 0x401201
mov al, byte [ebp - 0x17]
mov cl, byte [ebp - 0x1b]
cmp dword [ebp - 0x28], 0xe
mov byte [ebp - 0x1b], al
mov al, byte [ebp - 0x13]
mov byte [ebp - 0x17], al
mov al, byte [ebp - 0xf]
mov byte [ebp - 0xf], cl
mov cl, byte [ebp - 0x1a]
mov byte [ebp - 0x13], al
mov al, byte [ebp - 0x12]
mov byte [ebp - 0x12], cl
mov cl, byte [ebp - 0x16]
mov byte [ebp - 0x1a], al
mov al, byte [ebp - 0xe]
mov byte [ebp - 0xe], cl
mov cl, byte [ebp - 0x19]
mov byte [ebp - 0x16], al
mov al, byte [ebp - 0xd]
mov byte [ebp - 0x19], al
mov al, byte [ebp - 0x11]
mov byte [ebp - 0xd], al
mov al, byte [ebp - 0x15]
mov byte [ebp - 0x15], cl
mov byte [ebp - 0x11], al
je 0x401321
lea eax, [edx + 0x10]
mov dword [ebp - 0x30], eax
mov al, byte [edx]
mov cl, byte [edx + 1]
mov bl, 0x1b
add edx, 4
xor ecx, eax
mov byte [ebp - 0x21], al
mov al, byte [edx - 2]
xor al, byte [edx - 1]
movzx edi, byte [ebp - 0x21]
mov byte [ebp - 0x22], al
mov esi, eax
mov eax, ecx
shr al, 7
xor esi, ecx
add ecx, ecx
imul eax, ebx
xor edi, esi
xor edi, eax
mov al, byte [edx - 3]
xor al, byte [edx - 2]
xor ecx, edi
mov edi, eax
shr al, 7
imul eax, ebx
mov byte [edx - 4], cl
mov ecx, esi
xor cl, byte [edx - 3]
add edi, edi
xor ecx, eax
mov al, byte [ebp - 0x22]
xor ecx, edi
movzx edi, byte [edx - 1]
shr al, 7
mov byte [edx - 3], cl
mov ecx, esi
xor cl, byte [edx - 2]
imul eax, ebx
xor esi, edi
xor ecx, eax
mov al, byte [ebp - 0x22]
add eax, eax
xor eax, ecx
mov cl, byte [ebp - 0x21]
xor cl, byte [edx - 1]
mov byte [edx - 2], al
mov eax, ecx
add ecx, ecx
shr al, 7
imul eax, ebx
xor esi, eax
xor ecx, esi
mov byte [edx - 1], cl
cmp dword [ebp - 0x30], edx
jne 0x40127c
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x1c]
call fcn.00401028
inc dword [ebp - 0x28]
jmp 0x4011f9
mov ecx, dword [ebp + 8]
mov eax, 0xe
lea edx, [ebp - 0x1c]
call fcn.00401028
mov eax, 0xf
mov edi, dword [ebp + 8]
mov dl, byte [edi + eax + 0xf0]
cmp dl, 0xff
jne 0x401354
mov byte [edi + eax + 0xf0], 0
sub eax, 1
jae 0x401336
jmp 0x40135f
mov edi, dword [ebp + 8]
inc edx
mov byte [edi + eax + 0xf0], dl
xor eax, eax
mov ebx, dword [ebp - 0x20]
mov dl, byte [ebp + eax - 0x1c]
inc eax
inc dword [ebp - 0x20]
xor byte [ebx], dl
jmp 0x4011be
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40b458
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [ebp + 8]
mov dword [esp + 4], ebx
mov eax, dword [ebx + 0x3c]
mov eax, dword [ebx + eax + 0x78]
mov dword [esp], eax
call fcn.00412360
mov dword [esp + 4], ebx
lea esi, [ebx + eax]
mov eax, dword [esi + 0x20]
mov dword [esp], eax
call fcn.00412360
mov dword [esp + 4], ebx
add eax, ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call fcn.00412360
add eax, ebx
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x24], eax
lea eax, [edi + edi]
add eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x24], edi
je 0x40b51c
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], ebx
mov eax, dword [eax + edi*4]
mov dword [esp], eax
call fcn.00412360
lea ecx, [ebx + eax]
mov dword [esp], ecx
mov dword [ebp - 0x2c], ecx
call fcn.0040ba50
mov ecx, dword [ebp - 0x2c]
cmp eax, 0xa6caa1c5
jne 0x40b50a
mov dword [esp + 4], ebx
mov eax, dword [esi + 0x1c]
mov dword [esp], eax
call fcn.00412360
mov edx, dword [ebp - 0x28]
mov dword [esp + 4], ebx
add eax, ebx
movzx edx, word [edx]
mov eax, dword [eax + edx*4]
mov dword [esp], eax
call fcn.00412360
jmp 0x40b51e
mov dword [esp], ecx
inc edi
call fcn.0040ba50
cmp eax, 0xffe885ef
jne 0x40b4aa
jmp 0x40b4e2
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov eax, dword [0x41733c]
mov dword [ebp - 0x14], eax
mov eax, dword [eax + 0x48e]
test eax, eax
je 0x40b633
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x444]
test edx, edx
jne 0x40b633
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], 0
mov esi, dword [eax + ecx + 0x78]
add esi, eax
mov ecx, dword [esi + 0x24]
mov edi, dword [esi + 0x20]
mov ebx, dword [esi + 0x1c]
add ecx, eax
add edi, eax
mov dword [ebp - 0x20], ecx
mov ecx, dword [esi + 0x18]
add ebx, eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov edi, dword [ebp - 0x10]
cmp dword [ebp - 0x1c], edi
je 0x40b62a
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x10]
mov esi, dword [edi + esi*4]
cmp word [eax + esi], 0x775a
jne 0x40b625
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
test ebx, ebx
movzx esi, word [edi + esi*2]
jne 0x40b603
mov edi, dword [ebp - 0x18]
mov ebx, dword [edi + esi*4]
add ebx, eax
jmp 0x40b625
mov ecx, dword [ebp - 0x18]
mov edi, dword [ecx + esi*4]
add edi, eax
mov esi, edi
sub edi, ebx
mov ecx, edi
cmp ebx, esi
jbe 0x40b61b
mov edi, ebx
sub edi, esi
mov ecx, edi
test edx, edx
je 0x40b623
cmp edx, ecx
jbe 0x40b625
mov edx, ecx
inc dword [ebp - 0x10]
jmp 0x40b5d2
mov eax, dword [ebp - 0x14]
mov dword [eax + 0x444], edx
add esp, 0x18
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40b9fc
Capabilities:
Hash data using djb2

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
mov esi, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x40ba48
mov ecx, ebx
mov eax, 0x1505
mov dl, byte [ecx]
test esi, esi
jne 0x40ba21
test dl, dl
jne 0x40ba2f
jmp 0x40ba48
mov edi, ecx
sub edi, ebx
cmp esi, edi
jbe 0x40ba48
cmp dl, 1
adc ecx, 0
cmp dl, 0x60
jbe 0x40ba3d
cmp dword [ebp + 0x10], 0
je 0x40ba3d
sub edx, 0x20
imul eax, eax, 0x21
movzx edx, dl
inc ecx
add eax, edx
jmp 0x40ba15
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40ba50
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov eax, 0x1505
mov ebp, esp
mov ecx, dword [ebp + 8]
movsx edx, byte [ecx]
inc ecx
test dl, dl
je 0x40ba6a
imul eax, eax, 0x21
add eax, edx
jmp 0x40ba5b
pop ebp
ret

Function at 0x40d3d4
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
xor esi, esi
push ebx
push edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov cl, byte [edx + esi*4]
mov byte [eax + esi*4], cl
mov cl, byte [edx + esi*4 + 1]
mov byte [eax + esi*4 + 1], cl
mov cl, byte [edx + esi*4 + 2]
mov byte [eax + esi*4 + 2], cl
mov cl, byte [edx + esi*4 + 3]
mov byte [eax + esi*4 + 3], cl
inc esi
cmp esi, 8
jne 0x40d3e3
mov dl, byte [eax + 0x1e]
mov edi, esi
movzx ebx, byte [eax + 0x1c]
movzx ecx, byte [eax + 0x1d]
mov byte [ebp - 0xd], dl
mov dl, byte [eax + 0x1f]
mov byte [ebp - 0xe], dl
and edi, 7
jne 0x40d45a
movzx edx, byte [ebp - 0xd]
movzx edi, byte [ecx + str.cw]
mov bl, byte [ebx + str.cw]
mov cl, byte [edx + str.cw]
movzx edx, byte [ebp - 0xe]
mov byte [ebp - 0xe], bl
mov ebx, esi
mov dl, byte [edx + str.cw]
shr ebx, 3
mov byte [ebp - 0xd], dl
mov edx, edi
xor dl, byte [ebx + 0x418298]
mov ebx, edx
jmp 0x40d485
cmp edi, 4
jne 0x40d485
movzx edx, byte [ebp - 0xd]
movzx edi, byte [ebp - 0xe]
mov bl, byte [ebx + str.cw]
mov cl, byte [ecx + str.cw]
mov dl, byte [edx + str.cw]
mov byte [ebp - 0xd], dl
mov dl, byte [edi + str.cw]
mov byte [ebp - 0xe], dl
mov dl, byte [ebp - 0xd]
xor dl, byte [eax + 2]
inc esi
add eax, 4
xor bl, byte [eax - 4]
xor cl, byte [eax - 3]
mov byte [eax + 0x1e], dl
mov dl, byte [ebp - 0xe]
xor dl, byte [eax - 1]
mov byte [eax + 0x1c], bl
mov byte [eax + 0x1d], cl
mov byte [eax + 0x1f], dl
cmp esi, 0x3c
jne 0x40d407
pop eax
pop ebx
pop esi
pop edi
pop ebp
ret