joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c90
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4dc
mov eax, dword [0x418008]
xor eax, esp
mov dword [esp + 0x4d8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
add esi, 4
mov eax, ebx
dec ebx
test eax, eax
jne 0x404d16
lea edx, [esp + 0x220]
mov eax, esi
sub edx, esi
jmp 0x404cd0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404cd0
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0x44c9cc]
push 0x298
lea edx, [esp + 0x24]
push edx
push 0x298
mov eax, edx
push eax
push 0x22003c
push ecx
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
mov ebx, 0x14
lea edi, [esp + 0x2b0]
call fcn.004025a0
mov edx, dword [0x44cbd8]
push 0
push edx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x404dc7
lea edx, [esp + 0x220]
mov eax, esi
sub edx, esi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404d44
mov al, byte [ebp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [0x44c9cc]
push 0x298
lea edx, [esp + 0x24]
push edx
push 0x298
mov byte [esp + 0x2c3], al
mov eax, edx
push eax
push 0x220034
push ecx
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x404ddc
mov eax, dword [esp + 0x2a6]
cmp eax, 0x20
je 0x404ddc
test eax, eax
je 0x404cb5
cmp eax, 3
je 0x404cb5
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4d8]
xor ecx, esp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
push 0x220008
call fcn.00402020
add esp, 0x14
mov ecx, dword [esp + 0x4e4]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
Function at 0x404e00
Capabilities:
Get thread local storage value
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x51c
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff5
mov edi, ecx
mov dword [ebp - 0x4ec], 0
call dword [sym.imp.kernel32.dll_GetStdHandle]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetConsoleScreenBufferInfo]
movsx edx, word [ebp - 0x1c]
xor ecx, ecx
mov ebx, ecx
mov dword [ebp - 0x4f0], ecx
movsx ecx, word [ebp - 0x1a]
imul ecx, edx
lea eax, [ebp - 0x4f4]
push eax
push ebx
push ecx
push 0x20
push esi
call dword [sym.imp.kernel32.dll_FillConsoleOutputCharacterW]
push ebx
push esi
call dword [sym.imp.kernel32.dll_SetConsoleCursorPosition]
push 0x415900
call fcn.00405cae
lea esi, [edi + 4]
lea ebx, [ebp - 0xb0]
add esp, 4
sub ebx, esi
mov edi, edi
mov eax, dword [ebp - 0x4ec]
mov ecx, eax
dec eax
mov dword [ebp - 0x4ec], eax
test ecx, ecx
jne 0x404eef
lea edx, [ebp - 0xb0]
mov eax, esi
sub edx, esi
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x404ea0
push 0
lea edx, [ebp - 0x4f4]
push edx
mov edx, dword [0x44c9cc]
push 0x298
lea eax, [ebp - 0x2b8]
push eax
push 0x298
mov ecx, eax
push ecx
push 0x22003c
push edx
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
mov dword [ebp - 0x4ec], 0x14
lea edi, [ebp - 0x4e8]
call fcn.004025a0
mov ecx, dword [ebp - 0x4e0]
mov eax, dword [ebp - 0x4dc]
mov edx, dword [ebp - 0x4e8]
mov dword [ebp - 0x510], ecx
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
mov dword [ebp - 0x50c], eax
fild qword [ebp - 0x510]
mov eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x4fc], ecx
xor edi, edi
mov dword [ebp - 0x500], edi
fild qword [ebp - 0x500]
mov ecx, eax
and eax, 0x7fffffff
and ecx, 0x80000000
fchs
mov dword [ebp - 0x508], edx
faddp st(1)
mov dword [ebp - 0x504], eax
fild qword [ebp - 0x508]
mov dword [ebp - 0x514], ecx
mov dword [ebp - 0x518], edi
fild qword [ebp - 0x518]
sub esp, 8
fchs
faddp st(1)
fdivp st(1)
fld qword [0x415bb0]
fmul st(1), st(0)
fsubrp st(1)
fstp qword [esp]
push 0x41593c
call fcn.00405cae
add esp, 0xc
mov eax, esi
nop
movzx ecx, word [eax]
mov word [ebx + eax], cx
add eax, 2
cmp cx, di
jne 0x404fa0
push edi
lea eax, [ebp - 0x4f0]
push eax
mov eax, dword [0x44c9cc]
push 0x298
lea ecx, [ebp - 0x2b8]
push ecx
push 0x298
mov edx, ecx
push edx
push 0x220038
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
push eax
call dword [sym.imp.kernel32.dll_DeviceIoControl]
test eax, eax
je 0x40502e
mov eax, dword [ebp - 0x2a]
cmp eax, 0x20
je 0x405035
cmp eax, edi
je 0x404e80
cmp eax, 3
je 0x404e80
push eax
push 0x415988
call fcn.00405cae
add esp, 8
push 0x4159b4
call fcn.00405cae
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
mov eax, 1
jmp 0x405000
push 0x415950
call fcn.00405cae
add esp, 4
jmp 0x40500e
Function at 0x4050b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0x40
push 0x3000
push 0x104
push 0
mov dword [ebp - 4], 0x104
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
test eax, eax
je 0x40510a
push 0
push 0
push 8
lea eax, [ebp - 8]
push eax
push 0x220060
call fcn.00402020
add esp, 0x14
test eax, eax
je 0x405103
mov ecx, dword [ebp - 8]
push 0x104
push ecx
call dword [sym.imp.kernel32.dll_VirtualLock]
mov esi, dword [ebp - 8]
test esi, esi
jne 0x405116
call fcn.00404430
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 0x4159b8
call fcn.00405cae
add esp, 4
mov ecx, esi
call fcn.00404950
cmp dword [esi], 0
jne 0x40513a
push esi
call fcn.00403820
add esp, 4
xor esi, esi
call fcn.00404430
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x405150
Capabilities:
Check os version
Create shortcut via ishelllink
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa34
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x44cbdc], 0
jne 0x4052b4
push 0
mov dword [0x44cbdc], 1
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4052b4
lea eax, [ebp - 0xa30]
push eax
push 0x413318
push 1
push 0
push 0x413328
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x4052ae
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0xa30]
mov edx, dword [eax]
mov edx, dword [edx + 0x50]
lea ecx, [ebp - 0x20c]
push ecx
push eax
call edx
mov eax, dword [ebp - 0xa30]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0x4159e0
push eax
call edx
mov eax, dword [ebp - 0xa30]
mov ecx, dword [eax]
lea edx, [ebp - 0xa34]
push edx
push 0x413338
push eax
mov eax, dword [ecx]
call eax
test eax, eax
js 0x4052a0
call dword [sym.imp.kernel32.dll_GetVersion]
push 0x410
cmp al, 6
jb 0x405227
lea ecx, [ebp - 0xa2c]
push ecx
push 0x4159f0
jmp 0x405233
lea edx, [ebp - 0xa2c]
push edx
push 0x415a04
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
push esi
push edi
lea edi, [ebp - 0xa2c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x405244
mov eax, dword [ebp - 0xa34]
mov ecx, 0xa
mov esi, 0x415a28
rep movsd dword es:[edi], dword [esi]
push 1
lea edx, [ebp - 0xa2c]
movsw word es:[edi], word [esi]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [ebp - 0xa34]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push 0
push eax
call edx
push 0x1388
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp - 0xa34]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
mov eax, dword [ebp - 0xa30]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
Function at 0x4052d0
Capabilities:
Check if file exists
Get file attributes
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ebx
push esi
push 0x415630
xor bl, bl
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40533b
mov esi, dword [sym.imp.kernel32.dll_CreateFileW]
push 0
push 0
push 3
push 0
push 0
push 0
push 0x415658
call esi
cmp eax, 0xffffffff
je 0x40533b
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0
push 0
push 3
push 0
push 0
push 0
push 0x415658
call esi
cmp eax, 0xffffffff
je 0x40533b
push eax
mov eax, dword [0x44c9cc]
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.004047e0
mov bl, 1
call fcn.004042a0
test eax, eax
jne 0x40534e
mov dword [0x44c9c8], 1
mov ecx, 0x44c9d0
call fcn.004021f0
test eax, eax
mov al, bl
je 0x405367
xor ecx, ecx
mov word [0x44c9d0], cx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405370
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
push 0x3000
push 0x104
push 0
mov dword [ebp - 0x114], 0x104
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 0x118], eax
test eax, eax
je 0x4054f8
push 0
push 0
push 8
lea eax, [ebp - 0x118]
push eax
push 0x220060
call fcn.00402020
add esp, 0x14
test eax, eax
je 0x4053df
mov ecx, dword [ebp - 0x118]
push 0x104
push ecx
call dword [sym.imp.kernel32.dll_VirtualLock]
push edi
mov edi, dword [ebp - 0x118]
test edi, edi
je 0x4054f7
push ebx
push esi
lea esi, [ebp - 0x108]
call fcn.004012a0
push 0x80
lea esi, [edi + 4]
push esi
push 0x104
lea edx, [ebp - 0x108]
push edx
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405422
sub eax, edx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x110]
sar eax, 1
push ecx
add eax, eax
push edx
lea ebx, [ebp - 0x108]
mov dword [edi], eax
call fcn.004015a0
add esp, 8
test eax, eax
je 0x4054ec
mov eax, dword [ebp - 0x110]
push 0
push 0
push 0x410
push 0x41a5b0
push 0x410
push eax
push 0
push 0
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
call fcn.00405050
test eax, eax
jne 0x4054df
call fcn.004048f0
mov esi, eax
test esi, esi
je 0x4054df
mov eax, dword [esi + 0x424]
mov word [ebp - 0x10c], 0
test al, 2
je 0x4054aa
movzx ecx, byte [esi + 0x435]
jmp 0x4054d5
test al, 0xc1
jne 0x4054df
lea edx, [ebp - 0x10c]
push edx
lea eax, [esi + 4]
push edi
push eax
call fcn.00402340
push edi
mov ebx, eax
call fcn.00403820
add esp, 0x10
test ebx, ebx
jne 0x4054df
movzx ecx, byte [ebp - 0x10b]
push ecx
push esi
call fcn.00404c90
add esp, 8
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.kernel32.dll_LocalFree]
push edi
call fcn.00403820
add esp, 4
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
Function at 0x405810
Capabilities:
Create process on windows
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe80
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push eax
push 0x415a6c
mov ecx, 0x400
lea ebx, [ebp - 0xe24]
call fcn.004057b0
add esp, 8
push 0x30c
lea ecx, [ebp - 0x624]
push ecx
xor eax, eax
push 0x415a7c
mov word [ebp - 0x626], ax
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x405890
push 0x30c
lea edx, [ebp - 0x624]
push edx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4058f4
push 0x415a8c
lea eax, [ebp - 0x624]
push eax
call dword [sym.imp.kernel32.dll_lstrcatW]
test eax, eax
je 0x4058f4
mov ecx, 0x10
lea eax, [ebp - 0xe34]
jmp 0x4058a0
mov byte [eax], 0
inc eax
dec ecx
jne 0x4058a0
mov ecx, 0x44
lea eax, [ebp - 0xe7c]
mov byte [eax], 0
inc eax
dec ecx
jne 0x4058b2
lea ecx, [ebp - 0xe34]
push ecx
lea edx, [ebp - 0xe7c]
push edx
push 0
push 0
push 0x8000000
push 0
push 0
push 0
lea eax, [ebp - 0xe24]
push eax
lea ecx, [ebp - 0x624]
push ecx
mov dword [ebp - 0xe7c], 0x44
call dword [sym.imp.kernel32.dll_CreateProcessW]
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop ebx
call fcn.00405c9f
mov esp, ebp
pop ebp
ret

Function at 0x405910
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe70
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
lea eax, [ebp - 0xe64]
push eax
call dword [sym.imp.kernel32.dll_GetLocalTime]
lea ecx, [ebp - 0xe6c]
push ecx
lea edx, [ebp - 0xe64]
push edx
call dword [sym.imp.kernel32.dll_SystemTimeToFileTime]
mov ecx, dword [ebp - 0xe6c]
mov eax, dword [ebp - 0xe68]
add ecx, 0x6b49d200
adc eax, 0
mov dword [ebp - 0xe6c], ecx
mov ecx, eax
lea edx, [ebp - 0xe64]
mov dword [ebp - 0xe68], eax
push edx
lea eax, [ebp - 0xe6c]
push eax
sar ecx, 0x1f
call dword [sym.imp.kernel32.dll_FileTimeToSystemTime]
push 0x30c
lea ecx, [ebp - 0x654]
push ecx
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405a40
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x654]
push eax
mov dword [ebp - 0x38], 0x680073
mov dword [ebp - 0x34], 0x740075
mov dword [ebp - 0x30], 0x6f0064
mov dword [ebp - 0x2c], 0x6e0077
mov dword [ebp - 0x28], 0x65002e
mov dword [ebp - 0x24], 0x650078
mov dword [ebp - 0x20], 0x2f0020
mov dword [ebp - 0x1c], 0x200072
mov dword [ebp - 0x18], 0x74002f
mov dword [ebp - 0x14], 0x300020
mov dword [ebp - 0x10], 0x2f0020
mov dword [ebp - 0xc], 0x66
call dword [sym.imp.shlwapi.dll_PathAppendW]
test eax, eax
je 0x405a40
movzx ecx, word [ebp - 0xe5a]
movzx edx, word [ebp - 0xe5c]
push ecx
mov ecx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x654]
push eax
push ecx
push 0x415aa0
mov ecx, 0x400
lea ebx, [ebp - 0xe54]
call fcn.004057b0
mov edx, ebx
add esp, 0x14
push edx
call fcn.00405810
add esp, 4
mov ecx, dword [ebp - 8]
xor ecx, ebp
pop ebx
call fcn.00405c9f
mov esp, ebp
pop ebp
ret
Function at 0x405b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x415b9c
push 0x415b40
mov ecx, 0x104
lea ebx, [ebp - 0x20c]
call fcn.004057b0
mov eax, ebx
push eax
call fcn.00405810
add esp, 0xc
push 0
push 0
push 0
push 0x405a50
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00405c9f
mov esp, ebp
pop ebp
ret

Function at 0x405bf0
Capabilities:
Contain obfuscated stackstrings
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64c
mov eax, dword [0x418008]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x30c
lea eax, [ebp - 0x64c]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
test eax, eax
je 0x405c91
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x64c]
push edx
mov dword [ebp - 0x34], 0x680073
mov dword [ebp - 0x30], 0x740075
mov dword [ebp - 0x2c], 0x6f0064
mov dword [ebp - 0x28], 0x6e0077
mov dword [ebp - 0x24], 0x65002e
mov dword [ebp - 0x20], 0x650078
mov dword [ebp - 0x1c], 0x2f0020
mov dword [ebp - 0x18], 0x200072
mov dword [ebp - 0x14], 0x74002f
mov dword [ebp - 0x10], 0x300020
mov dword [ebp - 0xc], 0x2f0020
mov dword [ebp - 8], 0x66
call dword [sym.imp.shlwapi.dll_PathAppendW]
test eax, eax
je 0x405c91
lea eax, [ebp - 0x64c]
push eax
call fcn.00405810
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405c9f
mov esp, ebp
pop ebp
ret

Function at 0x405c9f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x418008]
jne 0x405ca9
repz ret
jmp fcn.0040675f
Function at 0x40c85c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x418008]
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.00409f06
and dword [ebp - 0x14], 0
cmp dword [0x41a584], 0
mov dword [ebp - 0x18], eax
jne 0x40c90f
push 0x414648
call dword [sym.imp.kernel32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c9b7
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x41463c
push ebx
call edi
test eax, eax
je 0x40c9b7
mov esi, dword [sym.imp.kernel32.dll_EncodePointer]
push eax
call esi
push 0x41462c
push ebx
mov dword [0x41a584], eax
call edi
push eax
call esi
push 0x414618
push ebx
mov dword [0x41a588], eax
call edi
push eax
call esi
push 0x4145fc
push ebx
mov dword [0x41a58c], eax
call edi
push eax
call esi
mov dword [0x41a594], eax
test eax, eax
je 0x40c90f
push 0x4145e4
push ebx
call edi
push eax
call esi
mov dword [0x41a590], eax
mov eax, dword [0x41a590]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.kernel32.dll_DecodePointer]
cmp eax, ecx
je 0x40c968
cmp dword [0x41a594], ecx
je 0x40c968
push eax
call esi
push dword [0x41a594]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c968
test ebx, ebx
je 0x40c968
call edi
test eax, eax
je 0x40c95f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c95f
test byte [ebp - 8], 1
jne 0x40c968
or dword [ebp + 0x10], 0x200000
jmp 0x40c99b
mov eax, dword [0x41a588]
cmp eax, dword [ebp - 0x18]
je 0x40c99b
push eax
call esi
test eax, eax
je 0x40c99b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c99b
mov eax, dword [0x41a58c]
cmp eax, dword [ebp - 0x18]
je 0x40c99b
push eax
call esi
test eax, eax
je 0x40c99b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41a584]
call esi
test eax, eax
je 0x40c9b7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c9b9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405c9f
leave
ret
Function at 0x44fe57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
xor dl, dl
mov cl, 1
movzx eax, dl
mov byte [ebp + eax - 0x104], cl
movzx eax, cl
mov byte [ebp + eax - 0x204], dl
add eax, eax
test cl, cl
jns 0x44fe83
xor eax, 0x11b
xor cl, al
inc dl
jne 0x44fe64
push ebx
push esi
mov byte [ebp - 0x204], dl
mov byte [ebp - 5], dl
push edi
movzx esi, dl
movzx eax, byte [ebp + esi - 0x204]
lea ecx, [ebp - 5]
sub ecx, eax
mov cl, byte [ecx]
mov al, cl
shr al, 1
xor al, cl
shr al, 1
mov bl, cl
add bl, bl
xor bl, cl
xor al, cl
add bl, bl
shr al, 1
xor bl, cl
xor al, cl
add bl, bl
shr al, 4
xor bl, cl
add bl, bl
xor al, bl
xor al, cl
xor al, 0x63
mov byte [esi + 0x50b0], al
movzx eax, al
mov byte [eax + 0x55b0], dl
inc dl
jne 0x44fe95
mov byte [ebp - 1], dl
movzx eax, byte [ebp - 1]
mov cl, byte [eax + 0x50b0]
mov bl, byte [eax + 0x55b0]
movzx edx, cl
test cl, cl
mov cl, dl
jns 0x44ff04
add cl, cl
xor cl, 0x1b
jmp 0x44ff06
add cl, cl
mov edi, eax
movzx ecx, cl
mov eax, ecx
xor eax, edx
shl eax, 8
or eax, edx
shl eax, 8
or eax, edx
shl eax, 8
or eax, ecx
mov dword [edi*4 + 0x4cb0], eax
test bl, bl
jne 0x44ff2d
xor ecx, ecx
jmp 0x44ff94
movzx eax, bl
movzx esi, byte [ebp + eax - 0x204]
lea eax, [esi + 0x68]
cdq
mov ecx, 0xff
idiv ecx
lea eax, [esi + 0xee]
mov ebx, 0xff
movzx ecx, byte [ebp + edx - 0x104]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [ebp + edx - 0x104]
xor ecx, eax
lea eax, [esi + 0xc7]
cdq
idiv ebx
shl ecx, 8
movzx eax, byte [ebp + edx - 0x104]
xor ecx, eax
lea eax, [esi + 0xdf]
cdq
mov esi, ebx
idiv esi
shl ecx, 8
movzx eax, byte [ebp + edx - 0x104]
xor ecx, eax
inc byte [ebp - 1]
mov dword [edi*4 + 0x51b0], ecx
jne 0x44fee4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4508c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
push 1
call fcn.0045080c
xor al, byte [ebx + edi*4 + 0x18]
push 0
mov byte [ebp + 0x10], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 1]
lea esi, [ebx + edi*4]
call fcn.0045080c
xor al, byte [esi + 0x19]
push 0
mov byte [ebp + 0x11], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 2]
call fcn.0045080c
xor al, byte [esi + 0x1a]
push 1
mov byte [ebp + 0x12], al
mov eax, dword [ebp + 8]
movzx eax, byte [eax + 3]
call fcn.0045080c
xor al, byte [esi + 0x1b]
push 1
mov byte [ebp + 0x13], al
movzx eax, byte [ebp + 0x10]
call fcn.0045080c
xor al, byte [ebx + edi*4 + 0x10]
push 1
mov byte [ebp + 0x10], al
movzx eax, byte [ebp + 0x11]
call fcn.0045080c
xor al, byte [esi + 0x11]
push 0
mov byte [ebp + 0x11], al
movzx eax, byte [ebp + 0x12]
call fcn.0045080c
xor al, byte [esi + 0x12]
push 0
mov byte [ebp + 0x12], al
movzx eax, byte [ebp + 0x13]
call fcn.0045080c
xor al, byte [esi + 0x13]
push 0
mov byte [ebp + 0x13], al
movzx eax, byte [ebp + 0x10]
call fcn.0045080c
movzx ecx, byte [ebx + edi*4 + 8]
xor ebx, ebx
xor eax, ecx
push ebx
call fcn.0045080c
movzx ecx, byte [esi]
xor edi, edi
inc edi
xor eax, ecx
push edi
call fcn.0045080c
mov byte [ebp + 0x10], al
movzx eax, byte [ebp + 0x11]
push edi
call fcn.0045080c
movzx ecx, byte [esi + 9]
xor eax, ecx
push ebx
call fcn.0045080c
movzx ecx, byte [esi + 1]
xor eax, ecx
push ebx
call fcn.0045080c
mov byte [ebp + 0x11], al
movzx eax, byte [ebp + 0x12]
push ebx
call fcn.0045080c
movzx ecx, byte [esi + 0xa]
xor eax, ecx
push edi
call fcn.0045080c
movzx ecx, byte [esi + 2]
add esp, 0x40
xor eax, ecx
push edi
call fcn.0045080c
mov byte [ebp + 0x12], al
movzx eax, byte [ebp + 0x13]
push edi
call fcn.0045080c
movzx ecx, byte [esi + 0xb]
xor eax, ecx
push edi
call fcn.0045080c
movzx ecx, byte [esi + 3]
xor eax, ecx
push ebx
call fcn.0045080c
mov byte [ebp + 0x13], al
mov esi, 0x2d8
lea eax, [ebp + 0x10]
add esp, 0x10
mov dword [ebp - 4], ebx
sub esi, eax
jmp 0x450a15
xor ebx, ebx
mov edi, dword [ebp - 4]
add edi, dword [ebp + 0xc]
mov byte [ebp + 0xb], 0
mov byte [edi], 0
lea eax, [ebp + ebx + 0x10]
movzx ecx, byte [esi + eax]
movzx eax, byte [eax]
push 0x169
call fcn.0045089b
xor byte [ebp + 0xb], al
mov al, byte [ebp + 0xb]
inc ebx
pop ecx
mov byte [edi], al
cmp ebx, 4
jl 0x450a22
inc dword [ebp - 4]
add esi, 4
cmp dword [ebp - 4], 4
jl 0x450a13
pop edi
pop esi
pop ebx
leave
ret
Function at 0x450df8
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x48
push esi
mov esi, ecx
mov ecx, dword [ebx + 0xc]
push edi
mov edi, eax
mov eax, dword [ebx + 0x10]
shrd ecx, eax, 9
mov dword [ebp - 0x30], ecx
xor ecx, ecx
shr eax, 9
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
cmp dword [ebx + 8], ecx
je 0x450f24
jmp 0x450e3f
mov eax, dword [ebp - 0x2c]
cmp dword [ebx + 0x18], 0x3f0
jne 0x450e4d
pushfd
popfd
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x30], 1
push dword [ebx + 0x20]
adc eax, 0
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [ebx + 0x18]
add esp, 0xc
cmp dword [ebx + 0x18], 0x3f0
jne 0x450e73
pushfd
popfd
mov dword [ebp - 4], 0x20
mov eax, dword [ebp - 0x20]
xor eax, dword [esi]
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [esi + 4]
push dword [ebx + 0x1c]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 8]
xor eax, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 0xc]
xor ecx, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x40]
push eax
push eax
mov dword [ebp - 0x34], ecx
call dword [ebx + 0x14]
mov eax, dword [ebp - 0x40]
xor eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x3c]
xor ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp - 0x38]
xor eax, dword [ebp - 0x18]
mov dword [edi + 4], ecx
mov ecx, dword [ebp - 0x34]
xor ecx, edx
mov dword [edi + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0xc], ecx
mov ecx, edx
shld edx, eax, 1
add eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
shr ecx, 0x1f
imul ecx, ecx, 0x87
shr eax, 0x1f
or dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x1c]
shld edx, eax, 1
add eax, eax
mov dword [ebp - 0x20], eax
xor dword [ebp - 0x20], ecx
add esp, 0xc
add esi, 0x10
add edi, 0x10
dec dword [ebp - 4]
mov dword [ebp - 0x1c], edx
jne 0x450e7a
sub dword [ebx + 8], 0x200
jne 0x450e3c
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret