joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4024da
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, eax
dec eax
test ecx, ecx
je 0x4024f3
lea ecx, [eax + 1]
mov eax, dword [esp + 4]
xor byte [eax], 0xa5
inc eax
dec ecx
jne 0x4024ec
ret

Function at 0x402fd6
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
lea eax, [ebp - 0x38]
push ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__stat]
pop ecx
test eax, eax
pop ecx
je 0x40306b
push 0x40c548
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
pop ecx
test ebx, ebx
pop ecx
je 0x40306b
push esi
lea eax, [ebp + 0xc]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll_srand]
pop ecx
lea esi, [ebp - 0x14]
pop ecx
push 8
pop edi
call dword [sym.imp.MSVCRT.dll_rand]
mov word [esi], ax
inc esi
inc esi
dec edi
jne 0x403023
mov eax, dword [ebp + 0xc]
pop edi
mov dword [ebp - 4], eax
xor ecx, ecx
lea eax, [ebp - 0x11]
pop esi
mov dl, byte [ebp + ecx - 4]
inc ecx
mov byte [eax], dl
inc eax
inc eax
cmp ecx, 4
jb 0x40303e
mov al, byte [ebp + 0x10]
push ebx
mov byte [ebp - 0x10], al
push 0x10
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.0040307b
pop ecx
pop ecx
pop ebx
leave
ret

Function at 0x40312c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x40c54c
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [ebp + 0x10]
pop ecx
test edi, edi
pop ecx
mov esi, eax
je 0x403151
and byte [edi], 0
test esi, esi
jne 0x40315c
push 5
jmp 0x4031e8
push esi
push 0x10
lea eax, [ebp - 0x14]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
cmp ebx, 0x10
je 0x403180
push 4
jmp 0x4031e8
cmp byte [ebp - 0x10], 2
jne 0x40317c
xor ecx, ecx
lea eax, [ebp - 0x11]
mov dl, byte [eax]
mov byte [ebp + ecx + 8], dl
inc ecx
inc eax
inc eax
cmp ecx, 4
jb 0x40318b
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
imul esi, esi, 0x15180
test edi, edi
je 0x4031d0
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebx + esi]
push eax
call fcn.00402752
push edi
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00402d10
add esp, 0x20
mov edi, dword [sym.imp.MSVCRT.dll_time]
lea eax, [ebp - 4]
push eax
call edi
add eax, 0x3f480
pop ecx
cmp ebx, eax
jle 0x4031eb
push 2
pop eax
jmp 0x4031fe
lea eax, [ebp - 4]
push eax
call edi
pop ecx
add ebx, esi
xor ecx, ecx
cmp ebx, eax
setl cl
inc ecx
mov eax, ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403203
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
push edi
mov edi, dword [sym.imp.MSVCRT.dll_malloc]
push 0x11c
call edi
push dword [ebp + 8]
mov esi, eax
call sub.MSVCRT.dll_strlen
add eax, 4
push eax
call edi
push dword [ebp + 8]
mov edi, eax
push edi
call sub.MSVCRT.dll_strcpy
push 0x40c550
push edi
call sub.MSVCRT.dll_strcat
add esp, 0x1c
lea eax, [ebp - 0x140]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push edi
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov dword [esi], eax
call edi
cmp dword [esi], 0xffffffff
pop ecx
jne 0x4032ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x40327d
cmp eax, 3
jle 0x40329f
cmp eax, 8
je 0x403291
cmp eax, 0x12
je 0x40329f
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0x16
push esi
call edi
pop ecx
xor eax, eax
jmp 0x4032f5
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 0xc
jmp 0x403289
call dword [sym.imp.MSVCRT.dll__errno]
mov dword [eax], 2
jmp 0x403289
mov eax, dword [ebp - 0x140]
sub eax, 0x80
neg eax
sbb eax, eax
and eax, dword [ebp - 0x140]
mov word [esi + 0xa], 0xa
mov word [esi + 8], 0xa
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x120]
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x114]
push eax
lea eax, [esi + 0x10]
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
mov byte [esi + 0x118], 1
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret
Function at 0x4037e9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10a4
call fcn.00408920
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [eax + 0x3c]
xor edx, edx
cmp word [ecx + eax + 0x5c], 2
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x10a4]
push dword [ebp + 8]
sete dl
push eax
mov esi, edx
call dword [sym.imp.MSVCRT.dll_vsprintf]
add esp, 0xc
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
test esi, esi
pop esi
je 0x403864
lea eax, [ebp - 0x104]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0
push eax
lea eax, [ebp - 0x10a4]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
lea eax, [ebp - 0x10a4]
push eax
call dword [sym.imp.MSVCRT.dll_fputs]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
push 0xa
call dword [sym.imp.MSVCRT.dll_fputc]
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fflush]
add esp, 0x14
leave
ret
Function at 0x404148
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
cmp dword [0x40f6b8], 2
push esi
push edi
jne 0x404239
push str.advapi32.dll
xor edi, edi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
cmp eax, edi
je 0x404181
push str.GetUserNameW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
cmp esi, edi
mov dword [ebp - 4], 0x208
je 0x404239
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x21c]
push eax
call esi
test eax, eax
je 0x404239
cmp word [ebp - 0x21c], di
lea eax, [ebp - 0x21c]
je 0x40422e
push ebx
jmp 0x4041ba
mov eax, dword [ebp - 8]
movzx ebx, word [eax]
inc eax
inc eax
cmp ebx, 0x20
mov dword [ebp - 8], eax
jne 0x4041cd
push 0x5f
pop ebx
cmp ebx, 0x20
jl 0x4041f1
cmp ebx, 0x7e
jg 0x4041f1
push ebx
push str._:___
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
test eax, eax
pop ecx
jne 0x4041f1
and byte [ebp - 0x13], al
push 1
mov byte [ebp - 0x14], bl
pop eax
jmp 0x404204
push ebx
lea eax, [ebp - 0x14]
push str.__x_
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea esi, [eax + edi]
lea ecx, [esi + 1]
cmp ecx, dword [ebp + 0xc]
jae 0x404224
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
add edi, eax
push edi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edi, esi
mov eax, dword [ebp - 8]
cmp word [eax], 0
jne 0x4041b7
pop ebx
mov eax, dword [ebp + 8]
and byte [edi + eax], 0
mov eax, edi
jmp 0x40425a
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x404253
and byte [esi], al
push esi
call sub.MSVCRT.dll_strlen
pop ecx
pop edi
pop esi
leave
ret

Function at 0x404ed1
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
mov ebx, dword [ebp + 8]
push edi
push ebx
call fcn.00403203
mov edi, eax
pop ecx
test edi, edi
je 0x404f94
push esi
push ebx
call sub.MSVCRT.dll_strlen
mov esi, eax
lea eax, [ebp - 0x400]
push esi
push ebx
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
mov al, byte [ebp + esi - 0x401]
add esp, 0x10
cmp al, 0x2f
je 0x404f23
cmp al, 0x5c
je 0x404f23
mov byte [ebp + esi - 0x400], 0x5c
inc esi
push edi
call fcn.004032f9
test eax, eax
pop ecx
je 0x404f8c
cmp byte [eax + 0x10], 0x2e
lea ecx, [eax + 0x10]
jne 0x404f49
mov dl, byte [eax + 0x11]
test dl, dl
je 0x404f23
cmp dl, 0x2e
jne 0x404f49
cmp byte [eax + 0x12], 0
je 0x404f23
lea eax, [ebp + esi - 0x400]
push ecx
push eax
call sub.MSVCRT.dll_strcpy
lea eax, [ebp - 0x400]
push 0x1ff
push eax
call dword [sym.imp.MSVCRT.dll__chmod]
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.MSVCRT.dll__unlink]
add esp, 0x14
test eax, eax
je 0x404f23
lea eax, [ebp - 0x400]
push eax
call fcn.00404ed1
pop ecx
jmp 0x404f23
push edi
call fcn.004033b8
pop ecx
pop esi
push ebx
call dword [sym.imp.MSVCRT.dll__rmdir]
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x406cff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
test byte [eax + 8], 1
je 0x406d3c
mov ecx, dword [eax]
add eax, 0xc
mov dword [ebp + 8], ecx
push dword [eax - 8]
push eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.00408ae0
add esp, 0x10
test eax, eax
jne 0x406d38
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax]
je 0x406d4d
xor eax, eax
jmp 0x406d6d
push dword [eax]
add eax, 0xc
push eax
push dword [ebp + 0xc]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [esi + 0x18]
test byte [eax + 8], 2
je 0x406d6a
mov eax, dword [eax]
mov ecx, dword [ebp + 0xc]
mov edx, eax
dec eax
test edx, edx
je 0x406d6a
inc eax
xor byte [ecx], 0xea
inc ecx
dec eax
jne 0x406d63
mov eax, dword [ebp + 0xc]
pop esi
pop ebp
ret

Function at 0x406e6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
call dword [sym.imp.MSVCRT.dll_time]
push dword [ebp - 4]
call dword [sym.imp.MSVCRT.dll_srand]
call dword [sym.imp.MSVCRT.dll_rand]
mov edi, eax
mov eax, dword [ebp + 8]
and edi, 0x7f
mov ecx, dword [ebp + 0xc]
mov esi, dword [eax + 8]
add edi, 0x20
and edi, 0xfffffffc
add esi, edi
lea eax, [esi + 0xc]
push eax
mov dword [ecx], eax
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x406f28
push 0x10
mov dword [ebx + 4], 2
pop eax
mov word [ebx + 0xc], di
cmp edi, eax
mov dword [ebx + 8], esi
mov dword [ebp + 0xc], eax
jbe 0x406ee1
call dword [sym.imp.MSVCRT.dll_rand]
mov ecx, dword [ebp + 0xc]
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], edi
mov byte [ecx + ebx], al
jb 0x406ecd
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ecx + 8], eax
jbe 0x406efd
add edi, ebx
mov edx, dword [eax + ecx]
xor edx, esi
mov dword [edi + eax], edx
add eax, 4
cmp eax, dword [ecx + 8]
jb 0x406eed
push 4
push 0x40d32c
push ebx
call sub.MSVCRT.dll_memcpy
push 0xc
lea eax, [ebx + esi]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
push 4
push 0x40d324
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0x24
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406f2d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
push 0x18
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x406ff2
mov eax, dword [esp + 0xc]
and dword [esi + 0xc], 0
test eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], 1
je 0x406f63
push eax
call dword [sym.imp.MSVCRT.dll__strdup]
pop ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x406f73
push esi
call dword [sym.imp.MSVCRT.dll_free]
jmp 0x406ff1
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edi, eax
test edi, edi
jne 0x406f92
push 2
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
test edi, edi
je 0x406fd7
push 0x40d338
push 0x40d334
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x406fbc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406fbc
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esi], eax
push esi
call fcn.00406ff7
test eax, eax
pop ecx
je 0x406fd7
push dword [esi]
call fcn.00406bb1
test eax, eax
pop ecx
je 0x406fd7
mov eax, esi
jmp 0x406ff4
cmp dword [esi + 0xc], 0
mov edi, dword [sym.imp.MSVCRT.dll_free]
je 0x406fe8
push dword [esi]
call edi
pop ecx
push dword [esi + 4]
call edi
push esi
call edi
pop ecx
pop ecx
xor eax, eax
pop edi
pop esi
ret

Function at 0x406ff7
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [ebx]
test edi, edi
je 0x407053
push 4
push 0x40d324
push edi
call sub.MSVCRT.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x407053
movzx ebp, word [edi + 0xc]
mov esi, dword [edi + 8]
sub esi, ebp
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
test eax, eax
pop ecx
mov dword [ebx], eax
je 0x407056
push 1
xor ecx, ecx
pop edx
test esi, esi
mov dword [ebx + 0xc], edx
jbe 0x40704f
lea ebx, [edi + ebp]
mov ebp, dword [ebx + ecx]
xor ebp, dword [edi + 8]
mov dword [ecx + eax], ebp
add ecx, 4
cmp ecx, esi
jb 0x40703f
mov eax, edx
jmp 0x407056
push 1
pop eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407427
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x10], eax
push 1
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.004075d5
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x407463
xor eax, eax
jmp 0x4075d1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
add eax, dword [edx]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.00407611
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x407490
xor eax, eax
jmp 0x4075d1
lea ecx, [ebp - 0x18]
push ecx
push 0x40
mov edx, dword [ebp - 8]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4074b8
xor eax, eax
jmp 0x4075d1
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
je 0x4075b2
push str.KERNEL32.dll
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4075a4
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
add eax, dword [edx + 0x10]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0
je 0x4075a2
mov edx, dword [ebp - 0x20]
mov eax, dword [edx]
and eax, 0x80000000
test eax, eax
jne 0x40758b
mov dword [ebp - 0x30], str.DisableThreadLibraryCalls
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x14]
add edx, dword [ecx]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
mov cl, byte [eax + 2]
mov byte [ebp - 0x2c], cl
movsx edx, byte [ebp - 0x2c]
cmp edx, 0x44
je 0x407554
movsx eax, byte [ebp - 0x2c]
cmp eax, 0x46
je 0x407554
movsx ecx, byte [ebp - 0x2c]
cmp ecx, 0x47
je 0x407554
movsx edx, byte [ebp - 0x2c]
cmp edx, 0x4c
jne 0x40758b
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x40758b
mov ecx, dword [ebp - 0x28]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x30]
mov eax, dword [edx]
push eax
call sub.MSVCRT.dll_strcmp
add esp, 8
test eax, eax
jne 0x407580
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
add ecx, 0xc
mov dword [ebp - 0x30], ecx
jmp 0x407554
mov edx, dword [ebp - 0x20]
add edx, 4
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x24]
add eax, 4
mov dword [ebp - 0x24], eax
jmp 0x4074fb
jmp 0x4075b2
mov ecx, dword [ebp - 0x1c]
add ecx, 0x14
mov dword [ebp - 0x1c], ecx
jmp 0x4074b8
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
add ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esp, ebp
pop ebp
ret
Function at 0x407611
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 0x14]
mov edx, dword [ebp - 0x10]
lea eax, [edx + ecx + 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
jmp 0x407657
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
add edx, 0x28
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cx, word [eax + 6]
cmp dword [ebp - 4], ecx
jge 0x407688
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
cmp eax, dword [ebp + 0xc]
ja 0x407686
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
add edx, dword [eax + 8]
cmp dword [ebp + 0xc], edx
jae 0x407686
mov eax, dword [ebp - 8]
jmp 0x40768a
jmp 0x407645
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40899a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d340
push 0x408ad2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x40f8ac], 0xffffffff
or dword [0x40f8b0], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x40f7b4]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x40f7b0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40f8a8], eax
call fcn.00408ad1
cmp dword [0x40e290], 0
jne 0x408a1d
push 0x408ace
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00408abc
push 0x40e00c
push 0x40e008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x40f7ac]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x40f7a8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40e004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x43c500
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x43ca20
test edx, edx
je 0x43ca20
call fcn.0043c517
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x43ca60
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.0043c500
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x43cad1
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x43ca96
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

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

Disassembly:
push ebp
push ebx
push esi
push edi
sub esp, 0x10
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
mov eax, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0xc]
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
cmp ebp, 0x80
je 0x43d464
mov eax, dword [esi + 0x10]
mov ebx, dword [esi + 0x14]
cmp ebp, 0xc0
je 0x43d43c
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
jmp 0x43d444
mov ecx, eax
mov edx, ebx
not ecx
not edx
bswap eax
bswap ebx
bswap ecx
bswap edx
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ebx
mov dword [edi + 0x28], ecx
mov dword [edi + 0x2c], edx
xor eax, dword [edi]
xor ebx, dword [edi + 4]
xor ecx, dword [edi + 8]
xor edx, dword [edi + 0xc]
nop
call fcn.0043d469

Function at 0x449230
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 0x449291
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x449274
cmp edi, 2
jb 0x449274
cmp byte [esi], cl
jne 0x449274
cmp byte [esi + 1], cl
jne 0x449274
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x6a7668]
jmp 0x449245
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x6a7668]
test edi, edi
jne 0x449245
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x4492c0
cmp cl, 0x23
jne 0x4492a7
cmp byte [esi], cl
jne 0x4492a7
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 + 0x6a7668]
test cl, cl
jne 0x449298
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x4493d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4493e4
mov dword [ebx], 0
mov edx, 0x6a7254
call fcn.004492d0
mov esi, eax
test esi, esi
je 0x4494d2
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 - 4], eax
cmp eax, 0xffffffff
je 0x4494c8
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 0x4494c8
push esi
call edi
mov edi, eax
add esp, 4
mov dword [ebp + 8], edi
cmp edi, 0xffffffff
je 0x4494c8
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x4494c8
mov eax, dword [0x7ca4d8]
test eax, eax
je 0x44945c
inc dword [eax + 0xb4]
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x4494c8
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x4494ad
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x7ca4d8]
add esp, 4
test eax, eax
je 0x44949a
dec dword [eax + 0xb4]
push edi
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
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test ebx, ebx
je 0x4494bf
mov eax, dword [ebp + 8]
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
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
mov esp, ebp
pop ebp
ret
Function at 0x44bc10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x6efb00]
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 + 0xe4]
mov ebx, dword [edi + 0xec]
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 + 0x6a7668]
sub esi, 1
jne 0x44bc50
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3e9c], ebx
jne 0x44bc87
push ecx
push dword [ebp - 0xc]
lea edx, [esi + 4]
mov ecx, ebx
call fcn.0045d3e0
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006193d7
mov esp, ebp
pop ebp
ret 4