joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401d27
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.00411430
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x401d51
mov cl, dl
test bl, 4
je 0x401d53
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401d78
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401d87
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401e16
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.00403201
test al, al
je 0x401e05
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401e00
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401e16
cmp dword [esp + 0x10], 2
jne 0x401e16
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
cmp ebp, 0xffffffff
je 0x401e45
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.00405a62
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8

Function at 0x4023aa
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411430
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4023ef
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403201
test al, al
je 0x4023ef
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40242c
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411430
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0040350c
movzx eax, word [eax]
cmp eax, 0x2e
je 0x40245d
cmp eax, 0x20
je 0x40245d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x402490
push esi
call fcn.00402396
test al, al
jne 0x4024a3
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.00403201
test al, al
je 0x4024a3
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4024a3
cmp byte [ebp + 0xc], 0
je 0x40249f
push dword [ebp + 0x10]
push esi
call fcn.00402669
xor eax, eax
jmp 0x4024bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4024b8
cmp eax, 3
je 0x4024b8
xor eax, eax
inc eax
jmp 0x4024bb
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402669
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411430
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x4026b9
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.00403201
test al, al
je 0x4026b9
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402816
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.00411430
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x4028b0
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x4028d7
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.00403201
test al, al
je 0x402889
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x4028d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4028a3
cmp eax, 3
je 0x4028a3
cmp eax, 0x12
je 0x4028a3
xor eax, eax
inc eax
jmp 0x4028a5
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x402985
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4028cf
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x402985
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.00405a62
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004035e3
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.004064a6
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.004064a6
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.004064a6
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x403201
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411430
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x40321f
xor al, al
jmp 0x4033a1
push esi
push edi
call fcn.004033a8
push edi
call fcn.004166c5
pop ecx
push edi
mov esi, eax
call fcn.004033d4
test al, al
je 0x4032bf
push edi
call fcn.004033a8
test al, al
je 0x40326e
lea eax, [esi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x4032b8
mov esi, dword [ebp + 0xc]
push 4
push 0x4242b8
push esi
call fcn.00417a6b
lea eax, [esi + 8]
push edi
push eax
call fcn.004166a3
add esp, 0x14
jmp 0x4032b1
push 0x5c
pop eax
cmp word [edi], ax
jne 0x4032b8
add edi, 2
cmp word [edi], ax
jne 0x4032b8
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x4032b8
mov esi, dword [ebp + 0xc]
push 4
push 0x4242b8
push esi
call fcn.00417a6b
lea eax, [esi + 8]
push 0x4242c4
push eax
call fcn.004166a3
lea eax, [esi + 0xe]
push edi
push eax
call fcn.004166a3
add esp, 0x1c
mov al, 1
jmp 0x4033a0
xor al, al
jmp 0x4033a0
push ebx
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40339d
cmp eax, ebx
ja 0x40339d
movzx eax, word [edi]
push eax
call fcn.0040340a
test al, al
je 0x40332d
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x40339d
mov esi, dword [ebp + 0xc]
push 4
push 0x4242b8
push esi
call fcn.00417a6b
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00417a6b
lea eax, [esi + 0xc]
push edi
push eax
call fcn.004166a3
add esp, 0x20
jmp 0x403399
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402e13
lea eax, [ebp - 0x1000]
push eax
call fcn.004166c5
add eax, 4
add eax, esi
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x40339d
mov esi, dword [ebp + 0xc]
push 4
push 0x4242b8
push esi
call fcn.00417a6b
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.004166a3
add esp, 0x14
cmp word [edi], 0x2e
jne 0x40338f
movzx eax, word [edi + 2]
push eax
call fcn.0040340a
test al, al
je 0x40338f
add edi, 4
push dword [ebp + 0x10]
push edi
push esi
call fcn.00405a36
mov al, 1
jmp 0x40339f
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404811
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp dword [esp + 8], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [ecx + 0x18]
jbe 0x40488b
mov edx, dword [esp + 0x14]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x40483b
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x40486d
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 0xc], edi
lea edi, [ecx + 0x18]
sub dword [esp + 0xc], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x404857
mov edx, dword [esp + 0x14]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x10], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x14], edx
movups xmmword [eax], xmm1
jne 0x404829
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
ret 0xc

Function at 0x404894
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x404942
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x434890]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x434090]
xor dl, byte [esi + eax*4 + 0x433c90]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x434490]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x4048cc
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x4048c1
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00412c70
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x4048b8
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x404948
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x14]
push edi
push 0x20
push dword [esp + 0x40]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.00412c70
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test esi, esi
jle 0x4049c1
cmp ebx, dword [ebp + 4]
jg 0x404b1e
cmp edx, esi
jge 0x4049b5
lea ebp, [esp + 0x18]
lea ebp, [ebp + edx*4]
cmp edi, 4
jge 0x4049b1
mov esi, dword [esp + 0x10]
lea ecx, [edi + ebx*4]
mov eax, dword [ebp]
inc edx
add ebp, 4
inc edi
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edx, esi
jl 0x404991
mov ebp, dword [esp + 0x10]
cmp edi, 4
jne 0x4049bd
inc ebx
xor edi, edi
cmp edx, esi
jl 0x40497c
cmp ebx, dword [ebp + 4]
jg 0x404b1e
mov edx, 0x431c70
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x431a70]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x431a70]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x431a70]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x431a70]
xor byte [esp + 0x1b], al
mov al, byte [edx]
xor byte [esp + 0x18], al
inc edx
mov dword [esp + 0x14], edx
cmp esi, 8
je 0x404a4e
cmp esi, 1
jle 0x404acc
lea eax, [esi - 1]
lea edx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov al, byte [edx + ecx - 4]
xor byte [edx + ecx], al
inc ecx
cmp ecx, 4
jl 0x404a35
add edx, 4
sub dword [esp + 0x3c], 1
jne 0x404a33
jmp 0x404acc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 3
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404a5d
sub dword [esp + 0x3c], 1
jne 0x404a5a
movzx eax, byte [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 3
mov al, byte [eax + 0x431a70]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x431a70]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x431a70]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x431a70]
xor byte [esp + 0x2b], al
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404aba
sub dword [esp + 0x3c], 1
jne 0x404ab7
xor edx, edx
test esi, esi
jle 0x404b11
cmp ebx, dword [ebp + 4]
jg 0x404b14
cmp edx, esi
jge 0x404b05
lea eax, [esp + 0x18]
lea eax, [eax + edx*4]
mov dword [esp + 0x3c], eax
cmp edi, 4
jge 0x404b08
mov eax, dword [eax]
lea ecx, [edi + ebx*4]
mov dword [ebp + ecx*4 + 0x18], eax
inc edx
mov eax, dword [esp + 0x3c]
add eax, 4
inc edi
mov dword [esp + 0x3c], eax
cmp edx, esi
jl 0x404ae6
cmp edi, 4
jne 0x404b0d
inc ebx
xor edi, edi
cmp edx, esi
jl 0x404ad2
cmp ebx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
jle 0x4049cf
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x404c6e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x434c98]
test eax, eax
jne 0x404c89
mov ecx, 0x434c90
call fcn.00404bef
mov eax, dword [0x434c98]
push esi
mov esi, dword [ebp + 0xc]
xor edx, edx
mov ecx, esi
and ecx, 0xfffffff0
cmp byte [ebp + 0x14], dl
setne dl
cmp byte [ebp + 0x10], 0
je 0x404cd3
test eax, eax
je 0x404cee
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404d13
push str.CryptProtectMemory_failed
mov esi, 0x44f80c
push esi
call fcn.004017ae
pop ecx
pop ecx
mov ecx, esi
call fcn.004018ec
push 2
mov ecx, esi
call fcn.004017a9
jmp 0x404d13
mov eax, dword [0x434c9c]
test eax, eax
je 0x404cee
push edx
push ecx
push dword [ebp + 8]
call eax
test eax, eax
jne 0x404d13
push str.CryptUnprotectMemory_failed
jmp 0x404cb4
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
test esi, esi
je 0x404d12
push edi
mov edi, dword [ebp + 8]
add bl, 0x4b
lea ecx, [edx + edi]
lea eax, [edx + ebx]
xor byte [ecx], al
inc edx
cmp edx, esi
jb 0x404d04
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4056aa
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x408b2b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push edi
mov edi, ecx
test ebp, ebp
jne 0x402149
mov al, 1
jmp 0x402237
cmp dword [edi + 0xc], 1
jne 0x40215a
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push ebx
push esi
and dword [esp + 0x18], 0
xor bl, bl
cmp dword [edi + 0xc], 0
je 0x4021af
xor esi, esi
test ebp, ebp
je 0x4021d1
mov eax, ebp
sub eax, esi
cmp eax, 0x4000
jb 0x40217f
mov eax, 0x4000
push 0
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [esp + 0x20]
add eax, esi
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
add bl, 1
je 0x4021d1
add esi, 0x4000
cmp esi, ebp
jb 0x40216f
jmp 0x4021cd
push 0
lea eax, [esp + 0x1c]
push eax
push ebp
push dword [esp + 0x20]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov bl, al
test bl, bl
jne 0x40222f
cmp byte [edi + 0x14], 0
je 0x40222f
cmp dword [edi + 0xc], 0
jne 0x40222f
push 0
lea esi, [edi + 0x1e]
mov ecx, 0x44f80c
push esi
call fcn.00401743
test al, al
je 0x402222
cmp dword [esp + 0x18], ebp
jae 0x40215c
cmp dword [esp + 0x18], 0
jbe 0x40215c
mov esi, dword [edi]
mov ecx, edi
push 0
call dword [esi + 0x10]
sub eax, dword [esp + 0x1c]
mov ecx, edi
sbb edx, 0
push edx
push eax
call dword [esi + 0xc]
jmp 0x40215c
push esi
push 0
mov ecx, 0x44f80c
call fcn.0040193d
pop esi
mov al, bl
mov byte [edi + 8], 1
pop ebx
pop edi
pop ebp
ret 8
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [0x44522c]
call fcn.00401595
cmp byte [0x4549f9], 0
mov dword [0x44522c], eax
jne 0x408b5f
cmp dword [ebp + 0xc], 0
jbe 0x408b5f
mov ecx, dword [0x445328]
pop ebp
jmp 0x402136
pop ebp
ret 8
Function at 0x408e38
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x445318], 0
je 0x408e45
or eax, 0xffffffff
ret
mov eax, dword [0x435204]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x408e83
mov ecx, dword [0x435200]
jl 0x408e5e
cmp ecx, ebp
ja 0x408e83
or ebx, 0xffffffff
mov dword [0x445238], ebp
add ecx, ebx
mov dword [0x44523c], ebp
mov dword [0x435200], ecx
adc eax, ebx
mov dword [0x435204], eax
mov eax, ebx
jmp 0x408f8d
push esi
push edi
mov edi, dword [0x44523c]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x408ee8
jl 0x408e9e
mov esi, dword [0x445238]
cmp esi, ebp
ja 0x408eee
mov esi, 0x2000
push esi
push dword [0x445230]
call fcn.00409121
cdq
mov ecx, eax
mov dword [0x445238], eax
or ecx, edx
mov dword [0x44523c], edx
je 0x408f2a
and eax, edx
cmp eax, ebx
je 0x408f1b
add dword [0x445270], esi
mov eax, dword [0x445230]
adc dword [0x445274], ebp
mov dword [0x445234], eax
call fcn.004088fb
mov edi, dword [0x44523c]
mov esi, dword [0x445238]
mov eax, dword [0x435224]
test byte [eax + 0x40], 1
je 0x408f6d
cmp byte [0x4464cd], 0
mov eax, esi
je 0x408f3a
or eax, edi
je 0x408f6d
push 0x4464d8
push esi
push dword [0x445234]
call fcn.0040bf95
jmp 0x408f61
push 0x457b0a
mov ecx, 0x44f80c
call fcn.00401875
mov dword [0x445238], ebp
mov eax, ebx
mov dword [0x44523c], ebp
jmp 0x408f8b
or eax, edi
mov ebp, dword [0x445234]
je 0x408f6d
add esi, ebx
adc edi, ebx
call fcn.0040bbd4
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.0040bd16
mov eax, esi
inc ebp
or eax, edi
jne 0x408f44
mov esi, dword [0x445238]
mov edi, dword [0x44523c]
mov eax, dword [0x445234]
add esi, ebx
mov dword [0x445238], esi
adc edi, ebx
mov dword [0x44523c], edi
movzx eax, byte [eax]
inc dword [0x445234]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40bc65
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040bbf2
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00412c70
add esp, 0xc
xor esi, esi
call fcn.0040bbd4
movzx ecx, byte [ebp + esi - 0xc]
xor eax, ecx
mov byte [ebp + esi - 0xc], al
movzx eax, al
push eax
call fcn.0040bd16
inc esi
cmp esi, 0xc
jl 0x40bc87
mov eax, dword [0x435224]
movzx edx, byte [ebp - 1]
movzx ecx, byte [0x44528f]
test byte [eax + 0x40], 2
jne 0x40bcc3
movzx ecx, byte [0x445297]
cmp edx, ecx
je 0x40bccc
or eax, 0xffffffff
jmp 0x40bd0f
mov ecx, dword [0x445238]
mov eax, ecx
cdq
cmp edx, dword [0x435204]
jl 0x40bce9
mov esi, dword [0x435200]
jg 0x40bceb
cmp eax, esi
ja 0x40bceb
mov esi, ecx
push edi
mov edi, dword [0x445234]
test esi, esi
je 0x40bd0c
call fcn.0040bbd4
xor byte [edi], al
movzx eax, byte [edi]
push eax
call fcn.0040bd16
inc edi
sub esi, 1
jne 0x40bcf6
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40bd16
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov ecx, dword [0x446358]
mov eax, ecx
xor eax, dword [esp + 4]
mov edx, dword [0x446360]
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x434de0]
movzx eax, cl
add eax, dword [0x44635c]
mov dword [0x446358], ecx
imul ecx, eax, 0x8088405
mov eax, dword [esp + 4]
inc ecx
mov dword [0x44635c], ecx
shr ecx, 0x18
xor ecx, edx
shr edx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x434de0]
mov dword [0x446360], edx
ret 4

Function at 0x40bd70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2f0
push ebx
push esi
mov esi, 0xa8
lea eax, [esp + 0x40]
push esi
xor ebx, ebx
push ebx
push eax
call fcn.00412450
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x304]
push dword [esp + 0x304]
call fcn.0040c27e
push esi
lea eax, [esp + 0x44]
mov byte [esp + 0xe], bl
push eax
lea eax, [esp + 0x1f8]
mov byte [esp + 0x13], bl
push eax
call fcn.00412c70
add esp, 0xc
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x194]
push eax
lea eax, [esp + 0x1f8]
push eax
push dword [esp + 0x314]
push dword [esp + 0x314]
call fcn.0040c0fa
mov eax, dword [esp + 0x314]
xor edx, edx
push 0x14
dec eax
pop ecx
div ecx
add eax, 1
mov dword [esp + 0x14], eax
je 0x40bf31
push ebp
push edi
mov edi, ebx
lea ebp, [esp + 0x34]
inc ebx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebx
push ecx
lea eax, [esp + 0x38]
push 0
push eax
call fcn.00412450
push esi
lea eax, [esp + 0x208]
push eax
lea eax, [esp + 0x104]
push eax
call fcn.00412c70
mov eax, ebx
mov byte [esp + 0x3b], bl
shr eax, 0x18
add esp, 0x18
mov byte [esp + 0x20], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x21], al
mov eax, ebx
shr eax, 8
cmp dword [esp + 0x314], 0
push 4
mov byte [esp + 0x26], al
pop esi
jbe 0x40bee6
mov ebp, dword [esp + 0x314]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x19c]
push eax
lea eax, [esp + 0xf8]
push eax
push esi
lea eax, [esp + 0x30]
push eax
call fcn.0040c0fa
lea eax, [esp + 0x13]
push eax
lea eax, [esp + 0x2a4]
push eax
lea eax, [esp + 0xf8]
push eax
push 0x14
lea eax, [esp + 0x30]
push eax
call fcn.0040c1c4
xor esi, esi
mov al, byte [esp + esi + 0x20]
xor byte [esp + esi + 0x34], al
inc esi
cmp esi, 0x14
jb 0x40beb5
push 0xa8
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0xf8]
push eax
call fcn.00412c70
add esp, 0xc
sub ebp, 1
jne 0x40be72
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x318]
xor edx, edx
mov ebx, dword [esp + 0x31c]
mov ecx, edi
cmp ecx, ebx
jae 0x40bf09
mov al, byte [ecx + ebp]
inc edx
mov byte [ecx + esi], al
inc ecx
cmp edx, 0x14
jb 0x40bef8
mov ebx, dword [esp + 0x14]
mov esi, 0xa8
inc ebx
push 0x14
pop ecx
sub ebp, ecx
mov dword [esp + 0x14], ebx
lea eax, [ebx - 1]
mov dword [esp + 0x18], ebp
add edi, ecx
cmp eax, dword [esp + 0x1c]
jb 0x40be19
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x2f0
ret 0x1c
Function at 0x40c0fa
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0xa0]
cmp eax, 0xffffffff
je 0x40c1a8
push ebp
push esi
push edi
push 0x40
pop edi
cmp eax, edi
jbe 0x40c12c
push ebx
lea eax, [ebx + 0x40]
push eax
call fcn.0040c2e8
mov dword [ebx + 0xa0], 0x14
cmp dword [esp + 0x20], 0
je 0x40c14c
mov eax, dword [esp + 0x24]
cmp byte [eax], 0
je 0x40c14c
mov esi, dword [esp + 0x20]
lea ebp, [ebx + 0x40]
push 0x18
pop ecx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
jmp 0x40c184
mov ecx, dword [ebx + 0xa0]
mov eax, edi
sub eax, ecx
xor esi, esi
push eax
push esi
lea eax, [ecx + ebx]
push eax
call fcn.00412450
add esp, 0xc
xor byte [esi + ebx], 0x36
inc esi
cmp esi, edi
jb 0x40c166
lea ebp, [ebx + 0x40]
push ebp
call fcn.004056aa
push edi
push ebx
push ebp
call fcn.004056db
mov eax, dword [esp + 0x24]
cmp dword [esp + 0x20], 0
je 0x40c19e
cmp byte [eax], 0
jne 0x40c19e
mov edi, dword [esp + 0x20]
mov esi, ebp
push 0x18
pop ecx
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
or dword [ebx + 0xa0], 0xffffffff
pop edi
pop esi
pop ebp
cmp dword [esp + 0xc], 0
je 0x40c1c0
push dword [esp + 0xc]
lea eax, [ebx + 0x40]
push dword [esp + 0xc]
push eax
call fcn.004056db
pop ebx
ret 0x14

Function at 0x40c1c4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
xor esi, esi
cmp dword [edi + 0xa0], 0xffffffff
je 0x40c1e4
push esi
push esi
push edi
push esi
push esi
call fcn.0040c0fa
lea eax, [esp + 0x10]
push eax
lea ebx, [edi + 0x40]
push ebx
call fcn.0040c2e8
mov ebp, dword [esp + 0x34]
test ebp, ebp
je 0x40c20e
mov eax, dword [esp + 0x38]
cmp byte [eax], 0
je 0x40c20e
push 0x18
pop ecx
mov esi, ebp
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
jmp 0x40c22b
xor byte [esi + edi], 0x6a
inc esi
cmp esi, 0x40
jb 0x40c20e
push ebx
call fcn.004056aa
push 0x40
push edi
push ebx
call fcn.004056db
mov eax, dword [esp + 0x38]
test ebp, ebp
je 0x40c240
cmp byte [eax], 0
jne 0x40c240
push 0x18
pop ecx
mov esi, ebx
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x14
lea eax, [esp + 0x14]
push eax
push ebx
call fcn.004056db
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.0040c2e8
cmp dword [esp + 0x2c], 0
pop edi
pop esi
pop ebp
pop ebx
jbe 0x40c278
push dword [esp + 0x1c]
lea eax, [esp + 4]
push eax
push dword [esp + 0x20]
call fcn.00412c70
add esp, 0xc
add esp, 0x14
ret 0x14