joyce8/EMBER2024-capa huggingface dataset:
Function at 0x545a4c
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x5487dd
call fcn.00522fd4
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x545b5e
cmp byte [esi + 0x42], bl
je 0x545b5e
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x545a88
xor al, al
jmp 0x545b60
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00415570
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d40
mov ecx, eax
call fcn.00416070
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d40
mov ecx, eax
call fcn.00416070
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x545af8
dec eax
je 0x545afc
dec eax
dec eax
je 0x545b5a
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040ad30
mov al, bl
jmp 0x545b60
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d40
mov ecx, eax
call fcn.00416070
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x545b3c
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d40
mov ecx, eax
call fcn.00416070
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005286c4
add esp, 0x10
cmp edi, eax
jne 0x545ae6
cmp byte [esi + 0x42], 0
je 0x545b5a
test edi, edi
jne 0x545a96
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040e9b0
jmp 0x545a96
mov bl, 1
jmp 0x545ae8
mov al, 1
call fcn.00523057
ret
Function at 0x545c07
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x54884b
call fcn.00522fd4
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x545c31
lea eax, [ebp + 8]
push eax
call fcn.00401060
pop ecx
jmp 0x545dac
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x545c5f
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x545c5f
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x545dac
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x545da7
cmp dword [esi + 0x3c], ebx
jne 0x545c88
push eax
push edi
call fcn.005453c8
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x545dac
jmp 0x545da7
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call fcn.00415570
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00408d40
mov ecx, eax
call fcn.00416070
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d40
mov ecx, eax
call fcn.00416070
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x545d79
cmp eax, 1
jg 0x545db4
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d40
mov ecx, eax
call fcn.00416070
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x545d1e
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d40
mov ecx, eax
call fcn.00416070
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005286c4
add esp, 0x10
cmp edi, eax
jne 0x545d9b
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x545de4
test edi, edi
ja 0x545d44
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x545da0
push 8
call fcn.0040e9b0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d40
mov ecx, eax
call fcn.00416070
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00408d40
mov ecx, eax
call fcn.00416070
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x545cd5
push 0
lea ecx, [ebp - 0x2c]
push 1
call fcn.0040ad30
mov eax, 0xffff
call fcn.00523057
ret 4
cmp eax, 3
jne 0x545d9b
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.005453c8
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x545dd3
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040ad30
mov ax, si
jmp 0x545dac
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040ad30
mov ax, word [ebp + 8]
jmp 0x545dac
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00405c61
cmp dword [eax], 2
jge 0x401021
xor eax, eax
jmp 0x40117d
lea ecx, [ebp - 0x1c]
call fcn.00401b10
lea ecx, [ebp - 0x34]
call fcn.00401b10
mov dword [ebp - 0x50], 1
jmp 0x401043
mov eax, dword [ebp - 0x50]
add eax, 1
mov dword [ebp - 0x50], eax
call fcn.00405c61
mov ecx, dword [eax]
sub ecx, 1
cmp dword [ebp - 0x50], ecx
jg 0x401086
call fcn.00405c67
mov edx, dword [eax]
mov eax, dword [ebp - 0x50]
mov ecx, dword [edx + eax*4]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00401f40
call fcn.00405c61
mov edx, dword [eax]
sub edx, 1
cmp dword [ebp - 0x50], edx
je 0x401084
push 0x40f184
lea ecx, [ebp - 0x1c]
call fcn.00401f40
jmp 0x40103a
lea ecx, [ebp - 0x1c]
call fcn.00402650
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x68], eax
lea ecx, [ebp - 0x1c]
call fcn.004026f0
lea ecx, [eax + eax + 2]
mov dword [ebp - 0x6c], ecx
push 0
push 0x40f188
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jne 0x4010f2
lea edx, [ebp - 0x4c]
push edx
call fcn.00401190
add esp, 4
push eax
lea ecx, [ebp - 0x34]
call fcn.00401da0
lea ecx, [ebp - 0x4c]
call fcn.00401cf0
push 0
push 0
push 0
lea ecx, [ebp - 0x34]
call fcn.00402650
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov dword [ebp - 0x58], 0
jmp 0x401104
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0x12c
jge 0x401163
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push str.TeleNVDAURLHandler
call dword [sym.imp.USER32.dll_FindWindowW]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jbe 0x401161
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x70]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x54]
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x60], 0
lea ecx, [ebp - 0x34]
call fcn.00401cf0
lea ecx, [ebp - 0x1c]
call fcn.00401cf0
mov eax, dword [ebp - 0x60]
jmp 0x40117d
jmp 0x4010fb
mov dword [ebp - 0x64], 1
lea ecx, [ebp - 0x34]
call fcn.00401cf0
lea ecx, [ebp - 0x1c]
call fcn.00401cf0
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402952
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
call fcn.00401e10
mov dword [ebp - 0x40c], 0x400
lea ecx, [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x404]
push edx
push 0
push 0
mov ecx, dword [ebp + 0xc]
call fcn.00402650
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x408], 0
jne 0x40138c
lea ecx, [ebp - 0x404]
push ecx
mov ecx, dword [ebp + 0x10]
call fcn.00401e80
mov eax, dword [ebp - 0x408]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402952
mov esp, ebp
pop ebp
ret
Function at 0x4031e4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403223
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403223
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403223
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403223
cmp dword [ecx + 0x74], 0xe
jbe 0x403223
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407c9e
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x407ce9
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00407ebb
test al, al
jne 0x407ce3
sub edx, 2
cmp edx, edi
jne 0x407cc9
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x407d0b
lea eax, [edi + 2]
cmp edx, eax
je 0x407d0b
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00407bea
add esp, 0x10
jmp 0x407e05
push esi
lea ecx, [ebp - 0x255]
call fcn.00407ebb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407d4e
push dword [ebp - 0x25c]
jmp 0x407cfb
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x407d8b
cmp word [ebp - 0x226], 0
je 0x407dac
cmp word [ebp - 0x226], ax
jne 0x407d8b
cmp word [ebp - 0x224], 0
je 0x407dac
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00407bea
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x407df8
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x407d65
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x407de0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x407e05
push 0x407a1a
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040a8d0
add esp, 0x10
jmp 0x407dd5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402952
leave
ret

Function at 0x409831
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41114c
push 0x411144
push str.FlsAlloc
push 0x1f
call fcn.0040976c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409865
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f128]
call esi
jmp 0x40986b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x4098af
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41115c
push 0x411154
push str.FlsGetValue
push 0x21
call fcn.0040976c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4098e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x40f128]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4098ee
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x411164
push 0x41115c
push str.FlsSetValue
push 0x22
call fcn.0040976c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409928
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x40f128]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e5f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40e61d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40e61d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401d60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3fc
mov eax, dword [0x4506f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x3f8], eax
mov dword [ebp - 0x3f4], edi
mov ecx, 0x3e8
lea eax, [ebp - 0x3ec]
mov byte [eax], 0
inc eax
dec ecx
jne 0x401d93
push 0x440220
lea ecx, [ebp - 0x3ec]
push ecx
call dword [0x440020]
mov esi, dword [0x44001c]
lea edx, [ebp - 0x3ec]
push edx
call esi
lea eax, [ebp - 0x3ec]
push eax
call fcn.0042a5d0
add esp, 4
lea ecx, [ebp - 0x3ec]
push ecx
call esi
lea edx, [ebp - 0x3ec]
push edx
call fcn.0042a5d0
add esp, 4
lea eax, [edi + 1]
push eax
push 0x40
call dword [0x440018]
lea ecx, [ebp - 0x3ec]
mov ebx, eax
push ecx
mov dword [ebp - 0x3f0], ebx
call esi
lea edx, [ebp - 0x3ec]
push edx
call fcn.0042a5d0
add esp, 4
lea eax, [ebp - 0x3ec]
push eax
call esi
lea ecx, [ebp - 0x3ec]
push ecx
call fcn.0042a5d0
add esp, 4
lea edx, [ebp - 0x3ec]
push edx
mov byte [edi + ebx], 0
call esi
lea eax, [ebp - 0x3ec]
push eax
call fcn.0042a5d0
add esp, 4
lea ecx, [ebp - 0x3ec]
push ecx
call esi
lea edx, [ebp - 0x3ec]
push edx
call fcn.0042a5d0
xor edi, edi
add esp, 4
cmp dword [ebp - 0x3f4], edi
jbe 0x401ed6
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 0x3fc], eax
nop
lea eax, [ebp - 0x3ec]
push eax
call esi
lea ecx, [ebp - 0x3ec]
push ecx
call fcn.0042a5d0
mov edx, dword [ebp - 0x3f8]
add esp, 4
push edx
add ebx, edi
call esi
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp - 0x3f8]
mov cl, byte [edx + eax]
mov edx, dword [ebp - 0x3fc]
xor cl, byte [edx + ebx]
lea eax, [ebp - 0x3ec]
push eax
mov byte [ebx], cl
call esi
lea ecx, [ebp - 0x3ec]
push ecx
call fcn.0042a5d0
mov ebx, dword [ebp - 0x3f0]
inc edi
add esp, 4
cmp edi, dword [ebp - 0x3f4]
jb 0x401e70
lea edx, [ebp - 0x3ec]
push edx
call esi
lea eax, [ebp - 0x3ec]
push eax
call fcn.0042a5d0
push 0x3e8
lea ecx, [ebp - 0x3ec]
push 0
push ecx
call fcn.0042a540
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0042a5ba
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405210
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push ebx
push 0x40
push 0
push esi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x40522f
mov eax, 1
pop ebx
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x4052db
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4052db
push edi
push ebx
push 0xf8
push eax
lea edi, [esi + 0x40]
push edi
call dword [ebp + 8]
add esp, 0x10
test eax, eax
jne 0x405267
pop edi
mov eax, 1
pop ebx
pop ebp
ret
cmp dword [edi], 0x4550
jne 0x4052d2
mov ecx, 0x10b
cmp word [esi + 0x58], cx
jne 0x4052d2
movzx eax, word [esi + 0x46]
test ax, ax
je 0x4052d2
lea edi, [eax + eax*4]
add edi, edi
add edi, edi
add edi, edi
push edi
mov dword [esi + 0x140], edi
call fcn.0042a65b
add esp, 4
mov dword [esi + 0x138], eax
test eax, eax
jne 0x4052ae
pop edi
mov eax, 3
pop ebx
pop ebp
ret
movzx edx, word [esi + 0x54]
mov ecx, dword [esi + 0x3c]
push ebx
lea ecx, [edx + ecx + 0x18]
push edi
push ecx
push eax
mov dword [esi + 0x13c], ecx
call dword [ebp + 8]
add esp, 0x10
neg eax
sbb eax, eax
pop edi
inc eax
pop ebx
pop ebp
ret
pop edi
mov eax, 2
pop ebx
pop ebp
ret
mov eax, 2
pop ebx
pop ebp
ret
Function at 0x407300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40730e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x4073ed
mov esi, edx
shr esi, 3
push edi
jmp 0x407330
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446710]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446710]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446710]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446710]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446710]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446710]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446710]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x446710]
add ecx, 8
sub edx, 8
dec esi
jne 0x407330
pop edi
test edx, edx
je 0x40740a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x446710]
inc ecx
dec edx
jne 0x4073f1
not eax
pop esi
pop ebp
ret

Function at 0x407410
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x446710]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x446710]
mov dword [edx + 8], ecx
pop ebp
ret

Function at 0x407460
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 8]
mov eax, ecx
and eax, 0xfffd
or eax, 2
mov edx, eax
xor edx, 1
imul edx, eax
mov al, byte [ebp + 0xc]
shr edx, 8
xor al, dl
mov edx, dword [esi]
push edi
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x446710]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x446710]
pop edi
mov dword [esi + 8], ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x418ce0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e2bb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4506f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], 0x44788c
call fcn.0042a2b9
push 4
mov dword [ebp - 4], 0
call fcn.0042b111
mov edi, eax
add esp, 4
test edi, edi
je 0x418d60
call fcn.00429f77
mov dword [edi], eax
call fcn.00429d36
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00429c6b
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x418d56
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00429c93
jmp 0x418d62
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4198d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43e378
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4506f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4199fe
cmp byte [edi + 0x49], bl
je 0x4199fe
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4199f2
push 8
lea eax, [ebp - 0x2c]
push ebx
push eax
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.0042a540
mov eax, dword [ebp - 0x2c]
add esp, 0xc
cmp dword [ebp - 0x18], 0x10
mov dword [ebp - 0x1c], 8
jae 0x419952
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x41996a
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
mov edx, dword [esi + 0x18]
push eax
lea eax, [edi + 0x4c]
push eax
call edx
sub eax, 0
je 0x419993
dec eax
je 0x419997
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4199ed
jmp 0x4199f9
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4199a7
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4199d0
cmp ebx, 0x10
jae 0x4199b6
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0042de27
add esp, 0x10
cmp esi, eax
jne 0x4199ea
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4199f6
test esi, esi
jne 0x41995e
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040bc20
jmp 0x419958
lea ecx, [ebp - 0x2c]
call fcn.00405cf0
xor al, al
jmp 0x419a00
lea ecx, [ebp - 0x2c]
call fcn.00405cf0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042a5ba
mov esp, ebp
pop ebp
ret
Function at 0x41f7c0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4506f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0xfe
lea eax, [ebp - 0x103]
mov dword [ebp - 0x208], 0
push 0
push eax
mov dword [ebp - 0x208], 0xff
mov byte [ebp - 0x104], 0
call fcn.0042a540
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
push 0x20119
push 0
push 0x447d1c
push 0x80000002
call dword [0x462f60]
test eax, eax
jne 0x41f84e
mov ecx, dword [ebp - 0x20c]
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x447d10
push ecx
call dword [0x462f44]
mov edx, dword [ebp - 0x20c]
push edx
call dword [0x462fe8]
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [0x462e9c]
lea edx, [ebp - 0x204]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
push edx
mov byte [esi], 0
call fcn.0042a5d0
add esp, 4
push eax
lea eax, [ebp - 0x204]
push eax
mov ecx, esi
call fcn.00406280
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042a5ba
mov esp, ebp
pop ebp
ret 4
Function at 0x426a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x426a3e
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push esi
not eax
cmp edx, 8
jb 0x426b1d
mov esi, edx
shr esi, 3
push edi
jmp 0x426a60
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x448280]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x448280]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x448280]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x448280]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x448280]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x448280]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x448280]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x448280]
add ecx, 8
sub edx, 8
dec esi
jne 0x426a60
pop edi
test edx, edx
je 0x426b3a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x448280]
inc ecx
dec edx
jne 0x426b21
not eax
pop esi
pop ebp
ret

Function at 0x426b40
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
mov eax, dword [edx]
movsx ecx, byte [ebp + 0xc]
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x448280]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x448280]
mov dword [edx + 8], ecx
pop ebp
ret