joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a227
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [ebp + 0x14]
test edx, edx
jle 0x41a29a
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
sub ecx, edi
mov dword [ebp - 4], ecx
mov dword [ebp + 0x14], edx
inc byte [eax + 0x100]
movzx ecx, byte [eax + 0x100]
lea esi, [ecx + eax]
mov cl, byte [esi]
add byte [eax + 0x101], cl
movzx ecx, byte [eax + 0x101]
mov dl, byte [esi]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
movzx ecx, byte [eax + 0x101]
movzx edx, byte [eax + 0x100]
mov cl, byte [ecx + eax]
add cl, byte [edx + eax]
mov edx, dword [ebp - 4]
movzx ecx, cl
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp + 0x14]
jne 0x41a246
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ce78
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
push edi
push dword [ebx]
call esi
push dword [ebx + 4]
mov edi, eax
call esi
and dword [ebp + 8], 0
mov ebx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x14]
sub eax, ecx
mov dword [ebp - 4], eax
jmp 0x41ceab
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
lea eax, [eax + ecx*4]
push dword [ebp + eax - 0x14]
call esi
mov ecx, dword [ebp + 8]
inc dword [ebp + 8]
cmp dword [ebp + 8], 4
mov dword [ebp + ecx*4 - 0x14], eax
jl 0x41cea8
push 0x10
xor eax, eax
pop ecx
mov edx, ebx
shr edx, 5
add edx, dword [ebp - 0x10]
mov esi, ebx
shl esi, 4
add esi, dword [ebp - 0x14]
sub eax, 0x61c88647
xor edx, esi
lea esi, [eax + ebx]
xor edx, esi
add edi, edx
mov edx, edi
shr edx, 5
add edx, dword [ebp - 8]
mov esi, edi
shl esi, 4
add esi, dword [ebp - 0xc]
xor edx, esi
lea esi, [eax + edi]
xor edx, esi
add ebx, edx
dec ecx
jne 0x41cecc
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push edi
call esi
mov edi, dword [ebp + 0x10]
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41de8a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x44e620]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0041ddc9
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0041f640
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x41ded9
cmp dword [ebp - 0x1c], 5
jb 0x41def1
jmp 0x41deed
cmp dword [ebp - 0x10], 1
jne 0x41def1
cmp dword [ebp - 0x1c], 4
ja 0x41deed
jne 0x41def1
cmp dword [ebp - 0x18], 0
jbe 0x41def1
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x441520
call fcn.004087a4
test eax, eax
jge 0x41df12
mov byte [0x44fd54], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041f54a
add ebp, 0x78
leave
ret

Function at 0x41e109
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4502ac], 0
push esi
jne 0x41e07c
call fcn.0041dfa7
test eax, eax
je 0x41e0bf
mov eax, dword [0x4502ac]
cmp eax, 1
jne 0x41e09d
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41e0bf
pop esi
ret
push eax
call dword [0x4502b4]
test eax, eax
jne 0x41e107
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41e0c3
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4502ac]
call dword [0x4502b4]
mov edi, eax
test edi, edi
je 0x41e0ea
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41e106
lea edi, [esi + 0xff0]
push esi
push dword [0x4502ac]
call dword [0x4502b0]
add esi, 0x10
cmp esi, edi
jb 0x41e0f0
mov eax, esi
pop edi
pop esi
ret
jmp 0x41e069

Function at 0x41f54a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e620]
jne 0x41f554
repz ret
jmp fcn.0042998c
Function at 0x422f18
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x422f55
cmp dword [ebp + 0x14], edi
je 0x422f55
cmp ecx, edi
jne 0x422f5c
call fcn.0042452a
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0041e5ec
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x422f70
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x422f91
cmp ebx, 0xffffffff
je 0x422f80
push ebx
push edi
push ecx
call fcn.0041f640
add esp, 0xc
cmp esi, edi
je 0x422f3d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x422f3d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x422fad
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x422fb4
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4230a5
test word [esi + 0xc], 0x10c
je 0x423008
mov eax, dword [esi + 4]
test eax, eax
je 0x423008
jl 0x423106
cmp ebx, eax
mov edi, ebx
jb 0x422fd9
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4230ad
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0041e37c
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x42309d
cmp ebx, dword [ebp - 0xc]
jb 0x423075
cmp dword [ebp - 0xc], 0
je 0x423032
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x423027
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x42302e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x42303d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x42303d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4230d9
push eax
push dword [ebp - 8]
push esi
call fcn.0042a976
pop ecx
push eax
call fcn.0042c69d
add esp, 0xc
test eax, eax
je 0x423118
cmp eax, 0xffffffff
je 0x423106
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x42309d
push esi
call fcn.0042bfbc
cmp eax, 0xffffffff
pop ecx
je 0x42310a
cmp dword [ebp - 4], 0
je 0x4230d9
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x422fbc
mov eax, dword [ebp + 0x14]
jmp 0x422f57
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4230c4
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0041f640
add esp, 0xc
call fcn.0042452a
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x422f4d
cmp dword [ebp + 0xc], 0xffffffff
je 0x4230ef
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0041f640
add esp, 0xc
call fcn.0042452a
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x422f4d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x422f57
or dword [esi + 0xc], 0x10
jmp 0x42310a
Function at 0x429ea6
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x44ef90]
je 0x429ec1
inc edi
cmp edi, 0x17
jb 0x429eb2
cmp edi, 0x17
jae 0x42a041
push ebp
push 3
call fcn.00431a99
cmp eax, 1
pop ecx
je 0x42a00d
push 3
call fcn.00431a99
test eax, eax
pop ecx
jne 0x429ef5
cmp dword [0x44e678], 1
je 0x42a00d
cmp ebx, 0xfc
je 0x42a040
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x450818
push ebp
call fcn.0041f7fe
add esp, 0xc
test eax, eax
je 0x429f2b
push esi
push esi
push esi
push esi
push esi
call fcn.0041e4f0
add esp, 0x14
push 0x104
mov esi, 0x450831
push esi
push 0
mov byte [0x450935], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x429f6f
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0041f7fe
add esp, 0xc
test eax, eax
je 0x429f6f
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0041e4f0
add esp, 0x14
push esi
call fcn.0041e400
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x429fb4
push esi
call fcn.0041e400
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x450b2c
push 0x4425b4
sub ecx, eax
push ecx
push eax
call fcn.004221d7
add esp, 0x14
test eax, eax
je 0x429fb4
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0041e4f0
add esp, 0x14
jmp 0x429fb6
xor esi, esi
push 0x4425b0
push ebx
push ebp
call fcn.004304f5
add esp, 0xc
test eax, eax
je 0x429fd6
push esi
push esi
push esi
push esi
push esi
call fcn.0041e4f0
add esp, 0x14
push dword [edi*8 + 0x44ef94]
push ebx
push ebp
call fcn.004304f5
add esp, 0xc
test eax, eax
je 0x429ff8
push esi
push esi
push esi
push esi
push esi
call fcn.0041e4f0
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004318dc
add esp, 0xc
jmp 0x42a040
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x42a040
cmp ebp, 0xffffffff
je 0x42a040
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x44ef94]
push dword [esi]
call fcn.0041e400
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4318dc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004268c7
xor ebx, ebx
cmp dword [0x450dbc], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x4319b2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x431a92
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x431a92
push eax
call fcn.00426859
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x450dbc], eax
call esi
push eax
call fcn.00426859
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x450dc0], eax
call esi
push eax
call fcn.00426859
mov dword [0x450dc4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00429c33
test eax, eax
pop ecx
pop ecx
je 0x431980
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041e4f0
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x4319b2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00426859
cmp eax, ebx
pop ecx
mov dword [0x450dcc], eax
je 0x4319b2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00426859
pop ecx
mov dword [0x450dc8], eax
mov eax, dword [0x450dc8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x431a37
cmp dword [0x450dcc], ecx
je 0x431a37
push eax
call fcn.004268d0
push dword [0x450dcc]
mov esi, eax
call fcn.004268d0
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x431a37
cmp edi, ebx
je 0x431a37
call esi
cmp eax, ebx
je 0x431a04
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431a04
test byte [ebp - 0x18], 1
jne 0x431a37
lea eax, [ebp - 0x10]
push eax
call fcn.00429c6a
test eax, eax
pop ecx
je 0x431a1f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041e4f0
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x431a2e
or dword [ebp + 0x10], 0x200000
jmp 0x431a72
or dword [ebp + 0x10], 0x40000
jmp 0x431a72
mov eax, dword [0x450dc0]
cmp eax, dword [ebp - 8]
je 0x431a72
push eax
call fcn.004268d0
cmp eax, ebx
pop ecx
je 0x431a72
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x431a72
mov eax, dword [0x450dc4]
cmp eax, dword [ebp - 8]
je 0x431a72
push eax
call fcn.004268d0
cmp eax, ebx
pop ecx
je 0x431a72
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x450dbc]
call fcn.004268d0
cmp eax, ebx
pop ecx
je 0x431a92
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x431a94
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x407ed0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4536b0
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45e040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], 0
lea edi, [esi + 0x38]
mov dword [esi + 8], 0
lea eax, [edi + 0x10]
mov dword [esi + 0xc], 0
xorps xmm0, xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
movups xmmword [esi], xmm0
mov dword [ebp - 0x10], edi
movups xmmword [esi + 0x10], xmm0
movq qword [esi + 0x20], xmm0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov byte [edi], 0
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov dword [edi + 4], 0
mov ecx, dword [eax + 4]
test ecx, ecx
jns 0x407fca
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
lea ecx, [edi + 0x10]
call fcn.004225d0
lea eax, [edi + 0x10]
mov dword [eax], 0
xorps xmm0, xmm0
mov dword [edi + 0x2c], 0
mov eax, esi
mov dword [edi + 0x30], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x34], 0
mov dword [esi + 0x7c], 0
mov dword [esi + 0x78], 0
mov dword [esi + 0x80], 0
movups xmmword [esi + 0x70], xmm0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x9c], 0
mov dword [esi + 0xa0], 0
mov dword [esi + 0x2c], 0xffffffff
mov dword [esi + 0x28], 0xffffffff
mov dword [esi + 0x34], 0
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ab00
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x40ab61
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x40ab44
cmp edi, 2
jb 0x40ab44
cmp byte [esi], cl
jne 0x40ab44
cmp byte [esi + 1], cl
jne 0x40ab44
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x455768]
jmp 0x40ab15
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x455768]
test edi, edi
jne 0x40ab15
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x40ab90
cmp cl, 0x23
jne 0x40ab77
cmp byte [esi], cl
jne 0x40ab77
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x455768]
test cl, cl
jne 0x40ab68
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x40ac40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x40ac53
mov dword [ebx], 0
mov edx, 0x455358
call fcn.0040aba0
mov esi, eax
test esi, esi
je 0x40ad72
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call edi
add esp, 4
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x40ad68
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x40ad68
push esi
call edi
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
je 0x40ad68
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x40ad68
mov ecx, edi
call fcn.0040ea30
mov dword [ebp + 8], eax
test eax, eax
je 0x40ad68
push esi
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, edi
je 0x40ad51
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [0x45e6e8]
add esp, 4
test ecx, ecx
je 0x40ad3e
movsx edx, word [ecx + 0x5ea4]
lea eax, [ecx + 0x5ea8]
mov esi, dword [ecx + 0x3f10]
lea eax, [eax + edx*8]
cmp dword [eax], esi
je 0x40ad34
lea eax, [edx + 1]
mov edi, 6
cdq
idiv edi
movzx eax, dx
mov word [ecx + 0x5ea4], ax
cwde
add eax, 0xbd5
xor edx, edx
lea eax, [ecx + eax*8]
mov dword [eax], esi
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5ea0]
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x40ad60
mov dword [ebx], edi
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x40e250
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x45e040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xec]
mov ebx, dword [edi + 0xf4]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x455768]
sub esi, 1
jne 0x40e290
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fcc], ebx
jne 0x40e2c7
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.00421af0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004522e5
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x45e040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x18]
mov edi, 0x10
movss xmm1, dword [edx + 0x108]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x10c]
subss xmm0, xmm1
mov ecx, dword [edx + 0xec]
movss dword [ebp - 0x18], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xf4]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 0xc], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x455768]
sub edi, 1
jne 0x40e360
mov ecx, dword [ebp - 8]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.004522e5
mov esp, ebp
pop ebp
ret 4
Function at 0x410690
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x45e6e8]
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0xc], edi
mov eax, dword [esi + 0x4a28]
mov edx, dword [eax]
inc dword [esi + 0xa8]
mov ecx, dword [edi + 0x26c]
mov dword [ebp - 4], edx
cmp dword [ecx + 0x7c], 1
jle 0x4106cf
push ecx
add ecx, 0x78
call fcn.0042e340
mov edx, dword [ebp - 4]
mov edi, dword [edi + 0x26c]
mov esi, dword [edx + ebx*4 + 0x70]
mov eax, dword [edi]
test eax, eax
je 0x410742
cmp eax, 1
jne 0x4106f3
mov eax, dword [edi + 8]
cmp dword [eax + 0x1c], 0
jne 0x4106f3
cmp dword [eax + 0x20], 0
je 0x410742
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
jne 0x410729
lea edx, [eax + 1]
mov dword [ebp - 8], edx
test ecx, ecx
je 0x410714
mov eax, ecx
cdq
sub eax, edx
mov edx, dword [ebp - 8]
sar eax, 1
add eax, ecx
jmp 0x410719
mov eax, 8
cmp eax, edx
mov ecx, esi
cmovg edx, eax
push edx
call fcn.004225d0
mov edx, dword [ebp - 4]
mov ecx, dword [esi]
mov eax, dword [esi + 8]
mov dword [eax + ecx*4], edi
inc dword [esi]
inc dword [edx + 0x3c]
mov eax, dword [edi + 0x18]
add dword [edx + 0x44], eax
mov eax, dword [edi + 0xc]
add dword [edx + 0x40], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 0x190]
mov eax, dword [eax + 0x188]
lea edi, [esi + eax*4]
cmp esi, edi
je 0x410782
nop dword [eax + eax]
mov ecx, dword [esi]
cmp byte [ecx + 0xae], 0
je 0x41077b
cmp byte [ecx + 0xb5], 0
jne 0x41077b
mov edx, ebx
call fcn.00410690
add esi, 4
cmp esi, edi
jne 0x410760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x411990
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45e040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [0x45e6e8]
mov ebx, edx
push edi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x10], ecx
mov edi, dword [esi + 0x3f94]
mov eax, dword [esi + 0x4944]
or eax, 0x100
mov dword [esi + 0x497c], 1
mov dword [esi + 0x4944], eax
cmp dword [edi + 0x198], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], eax
jne 0x4119ef
cmp dword [esi + 0x4cbc], 0
mov eax, 0x230
je 0x4119f4
mov eax, 0x200
movss xmm1, dword [edi + eax]
lea ecx, [ebp - 0x24]
movss xmm2, dword [edi + eax + 4]
mov eax, dword [ebp + 8]
subss xmm2, dword [edi + 0xfc]
subss xmm1, dword [edi + 0xf8]
push dword [eax + 4]
push dword [eax]
call fcn.0041a270
mov eax, dword [ebp - 0x14]
add esp, 8
mov ecx, dword [ebp - 0x20]
or eax, 2
mov dword [esi + 0x4944], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x4968], ecx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x4964], eax
mov dword [esi + 0x494c], 1
mov eax, dword [edi + 4]
push ebx
test ecx, ecx
je 0x411a6c
push ecx
push eax
push str._s__s__08X
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0040a9d0
add esp, 0x18
jmp 0x411a80
push eax
push str._s__08X
lea eax, [ebp - 0x14]
push 0
push eax
call fcn.0040a9d0
add esp, 0x14
movss xmm0, dword [esi + 0x38e0]
xor edx, edx
mov ecx, dword [ebp - 0x14]
push 0x1000107
movss dword [ebp - 0x10], xmm0
call fcn.00414700
mov edi, dword [esi + 0x3f94]
add esp, 4
movss xmm0, dword [ebp - 0x10]
movss dword [esi + 0x38e0], xmm0
mov byte [ebp - 9], al
cmp word [edi + 0xbc], 1
mov dword [ebp - 0x10], edi
mov dword [edi + 0x78], ebx
jne 0x411ada
mov eax, dword [ebp - 0x18]
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x1c]
mov dword [eax + 0xf8], ecx
mov dword [eax + 0xfc], edx
mov edi, ebx
mov edx, 0x4548a9
not edi
mov al, 0x23
mov ebx, edi
cmp al, 0x23
jne 0x411af5
cmp byte [edx], al
jne 0x411af5
cmp byte [edx + 1], al
cmove ebx, edi
movzx ecx, bl
movzx eax, al
xor ecx, eax
shr ebx, 8
mov al, byte [edx]
inc edx
xor ebx, dword [ecx*4 + 0x455768]
test al, al
jne 0x411ae7
mov edi, dword [ebp - 0x10]
not ebx
cmp dword [esi + 0x3fe4], ebx
jne 0x411b24
xor edx, edx
xor ecx, ecx
call fcn.0040e390
mov eax, dword [ebp - 0x1c]
cmp dword [esi + 0x4a38], eax
jne 0x411b69
cmp word [edi + 0x154], 0
jne 0x411b42
cmp byte [edi + 0x15a], 0
je 0x411b69
xor edx, edx
mov ecx, edi
call fcn.004171d0
xor dl, dl
mov ecx, edi
call fcn.0041cb70
mov edx, edi
mov ecx, ebx
call fcn.0040e390
mov eax, dword [esi + 0x4a5c]
mov dword [esi + 0x4004], eax
mov ecx, dword [ebp - 8]
mov al, byte [ebp - 9]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004522e5
mov esp, ebp
pop ebp
ret
Function at 0x411d90
Capabilities:
Hash data with crc32

Disassembly:
mov eax, ecx
or ecx, 0xffffffff
push ebx
push esi
mov bl, byte [eax]
lea esi, [eax + 1]
test bl, bl
je 0x411dcd
push edi
or edi, 0xffffffff
cmp bl, 0x23
jne 0x411db3
cmp byte [esi], bl
jne 0x411db3
cmp byte [esi + 1], bl
cmove ecx, edi
movzx edx, cl
movzx eax, bl
mov bl, byte [esi]
xor edx, eax
shr ecx, 8
inc esi
xor ecx, dword [edx*4 + 0x455768]
test bl, bl
jne 0x411da4
pop edi
pop esi
not ecx
pop ebx
jmp fcn.00411d30