joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4155c0
Capabilities:
Log keystrokes

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
movzx ecx, word [edi]
test cx, cx
je 0x415677
cmp word [edi + 2], 0
jne 0x4155ea
push 1
push dword [esp + 0x1c]
call fcn.00415680
add esp, 8
pop edi
pop esi
pop ecx
ret
call fcn.0040ba80
cmp ax, 0x56
jne 0x41562e
mov cx, word [edi + 2]
call fcn.0040ba80
cmp ax, 0x4b
jne 0x41562e
push ebx
push 0x10
lea eax, [esp + 0x10]
push eax
lea eax, [edi + 4]
push eax
call fcn.004b2a5a
mov ecx, dword [esp + 0x18]
add esp, 0xc
xor ebx, ebx
movzx edx, al
cmp word [ecx], bx
cmove ebx, edx
mov al, bl
pop ebx
pop edi
pop esi
pop ecx
ret
xor esi, esi
push edi
push dword [esi*8 + 0x4f4980]
call fcn.004af78f
add esp, 8
test eax, eax
je 0x41566c
inc esi
cmp esi, 0x6d
jl 0x415630
cmp byte [esp + 0x10], 0
jne 0x415677
xor edx, edx
mov ecx, edi
call fcn.004154d0
movzx ecx, ax
test cx, cx
je 0x415677
pop edi
pop esi
add esp, 4
jmp fcn.00415f50
mov al, byte [esi*8 + 0x4f4984]
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret

Function at 0x415680
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
cmp di, 0xa
jne 0x415693
pop edi
mov al, 0xd
pop esi
pop ecx
ret
push ebx
push dword [esp + 0x14]
push edi
call dword [sym.imp.USER32.dll_VkKeyScanExW]
movzx edx, ax
mov ecx, edx
shr ecx, 8
cmp cl, 0xff
jne 0x4156f4
cmp dl, 0xff
jne 0x4156f4
cmp byte [esp + 0x18], 0
je 0x4156f9
movzx ebx, di
test ebx, 0xffffff80
jne 0x4156f9
push 0x103
push ebx
call fcn.004b15e4
add esp, 8
test eax, eax
je 0x4156f9
mov ecx, edi
call fcn.0040ba80
push 1
push ebx
mov byte [esp + 0x14], al
call fcn.004b15e4
mov edx, dword [esp + 0x14]
add esp, 8
test eax, eax
setne cl
test cl, 0x38
je 0x415700
pop ebx
pop edi
xor al, al
pop esi
pop ecx
ret
test esi, esi
je 0x41573e
mov al, cl
and al, 6
cmp al, 6
jne 0x415711
or byte [esi], 8
jmp 0x41572f
test cl, 2
je 0x415720
mov al, byte [esi]
test al, 3
jne 0x415720
or al, 1
mov byte [esi], al
test cl, 4
je 0x41572f
mov al, byte [esi]
test al, 0xc
jne 0x41572f
or al, 4
mov byte [esi], al
test cl, 1
je 0x41573e
mov al, byte [esi]
test al, 0x30
jne 0x41573e
or al, 0x10
mov byte [esi], al
pop ebx
pop edi
mov al, dl
pop esi
pop ecx
ret
Function at 0x415f50
Capabilities:
Log keystrokes

Disassembly:
push ebx
mov ebx, ecx
movzx edx, bx
mov eax, edx
cmp edx, 0x11c
ja 0x415fc8
je 0x415fc4
sub eax, 0x1d
cmp eax, 0x36
ja case.0x415fd9.286
movzx eax, byte [eax + 0x41607c]
jmp dword [eax*4 + 0x416030]
mov al, 0xa0
pop ebx
ret
mov al, 0xa2
pop ebx
ret
mov al, 0xa4
pop ebx
ret
mov al, 0x6a
pop ebx
ret
mov al, 0x6d
pop ebx
ret
mov al, 0x6b
pop ebx
ret
mov al, 0x2e
pop ebx
ret
mov al, 0xc
pop ebx
ret
mov al, 0x2d
pop ebx
ret
mov al, 0x26
pop ebx
ret
mov al, 0x28
pop ebx
ret
mov al, 0x25
pop ebx
ret
mov al, 0x27
pop ebx
ret
mov al, 0x24
pop ebx
ret
mov al, 0x23
pop ebx
ret
mov al, 0x21
pop ebx
ret
mov al, 0x22
pop ebx
ret
mov al, 0x13
pop ebx
ret
mov al, 0xd
pop ebx
ret
sub eax, 0x11d
cmp eax, 0x40
ja case.0x415fd9.286
movzx eax, byte [eax + 0x4160dc]
jmp dword [eax*4 + 0x4160b4]
mov al, 0xa1
pop ebx
ret
mov al, 0xa3
pop ebx
ret
mov al, 0xa5
pop ebx
ret
mov al, 0x5b
pop ebx
ret
mov al, 0x5c
pop ebx
ret
mov al, 0x90
pop ebx
ret
mov al, 0x6f
pop ebx
ret
mov al, 0x5d
pop ebx
ret
mov al, 0x2c
pop ebx
ret
test ebx, 0x100
je 0x416021
movzx eax, dl
push 1
or eax, 0xe000
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
jne 0x41602d
push 1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
pop ebx
ret
Function at 0x417e00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x417ebd
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
sub edi, 1
jne 0x417e16
pop edi
test esi, esi
je 0x417edb
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
sub esi, 1
jne 0x417ec1
not ecx
mov eax, ecx
pop esi
ret

Function at 0x4182e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
test byte [esi], 1
jne 0x418313
push 0
lea eax, [esp + 8]
push eax
push dword [esp + 0x14]
push edx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41830c
mov dword [esi + 8], 7
pop esi
pop ecx
ret
mov eax, dword [esp + 4]
pop esi
pop ecx
ret
mov ecx, dword [esi + 0x10]
xor eax, eax
push ebx
mov ebx, dword [esi + 0x18]
push ebp
push edi
mov edi, dword [esp + 0x18]
mov ebp, edi
add ebp, ebx
adc eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x14]
jb 0x418338
ja 0x418334
cmp ebp, ecx
jbe 0x418338
mov edi, ecx
sub edi, ebx
mov ecx, dword [esi + 4]
push edi
add ecx, ebx
push ecx
push edx
call fcn.004aef60
add esp, 0xc
mov eax, edi
add dword [esi + 0x18], edi
adc dword [esi + 0x1c], 0
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x419720
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
mov al, byte [ecx]
mov dword [esp + 4], 0xc
mov dword [esp + 8], 0
mov dword [esp + 0xc], 1
mov dword [esp], ecx
push ebx
mov ebx, edx
push ebp
push esi
push edi
test al, al
je 0x419756
cmp byte [ecx + 1], 0x3a
jne 0x419756
mov al, byte [ecx + 2]
add ecx, 2
mov dl, al
cmp al, 0x5c
jne 0x41975f
mov dl, byte [ecx + 1]
lea esi, [ecx + 1]
cmovne esi, ecx
test dl, dl
je 0x4197b8
mov al, byte [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test al, al
je 0x41978c
nop dword [eax + eax]
cmp al, 0x5c
je 0x4197c5
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x419780
xor esi, esi
test ebx, ebx
je 0x4197b8
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x4197aa
call edi
cmp eax, 0xb7
jne 0x4197ca
test esi, esi
je 0x4197b8
mov byte [esi], 0x5c
inc esi
mov al, byte [esi]
test al, al
jne 0x419780
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
mov byte [esi], 0
jmp 0x419792
test esi, esi
je 0x4197d1
mov byte [esi], 0x5c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret

Function at 0x4197e0
Capabilities:
Create directory

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
movzx esi, word [ecx]
mov ebx, edx
mov dword [esp + 0x10], 0xc
mov eax, esi
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0xc], ecx
push edi
test si, si
je 0x41981d
cmp word [ecx + 2], 0x3a
jne 0x41981d
movzx eax, word [ecx + 4]
add ecx, 4
movzx edi, ax
movzx edx, ax
cmp ax, 0x5c
jne 0x41982d
movzx edx, word [ecx + 2]
cmp edi, 0x5c
lea esi, [ecx + 2]
cmovne esi, ecx
test dx, dx
je 0x4198a1
movzx ecx, word [esi]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop word [eax + eax]
movzx eax, cx
test ax, ax
je 0x41986a
cmp ax, 0x5c
je 0x4198ae
movzx eax, word [esi + 2]
add esi, 2
test ax, ax
jne 0x419858
xor esi, esi
test ebx, ebx
je 0x4198a1
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call ebp
test eax, eax
jne 0x419888
call edi
cmp eax, 0xb7
jne 0x4198b5
test esi, esi
je 0x4198a1
mov eax, 0x5c
mov word [esi], ax
add esi, 2
movzx eax, word [esi]
mov ecx, eax
test ax, ax
jne 0x419850
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret
xor eax, eax
mov word [esi], ax
jmp 0x419870
test esi, esi
je 0x4198c1
mov eax, 0x5c
mov word [esi], ax
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret
Function at 0x4198d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x419ae1
mov eax, dword [esi + 0x30]
and eax, dword [esi + 0x34]
cmp eax, 0xffffffff
je 0x419ae1
mov ebx, dword [ebp + 0xc]
mov dword [esi + 8], 0
test bl, 1
je 0x419982
cmp word [esi + 0x70], 0
mov ebx, dword [ebp + 8]
jne 0x419933
mov edx, ebx
mov ecx, esi
call fcn.00418ab0
cmp dword [esi + 8], 0
jne 0x419ad0
mov eax, 1
mov word [esi + 0x70], ax
push dword [ebx + 0x2c]
mov edx, edi
mov ecx, esi
push dword [ebx + 0x28]
call fcn.00418dc0
add esp, 8
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], edx
cmp dword [esi + 8], 0
jne 0x41996b
mov eax, dword [esi + 0xe8]
or eax, dword [esi + 0xec]
je 0x41996b
mov eax, 5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, esi
mov word [esi + 0x70], ax
call fcn.00418940
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test byte [eax + 8], 0x10
je 0x4199b8
test bl, 2
je 0x4199af
mov edx, 1
mov ecx, edi
test ebx, ebx
jns 0x4199a2
call fcn.004197e0
jmp 0x4199a7
call fcn.00419720
test eax, eax
je 0x419ac9
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 4
je 0x419a05
xor edx, edx
mov ecx, edi
test ebx, ebx
jns 0x4199cc
call fcn.004197e0
jmp 0x4199d1
call fcn.00419720
test eax, eax
je 0x419ac9
mov eax, dword [ebp + 8]
push 0
mov eax, dword [eax + 8]
push eax
push 2
push 0
push 0
push 0x40000000
push edi
test ebx, ebx
jns 0x4199fa
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x419a00
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [ebp + 8]
cmp edi, 0xffffffff
je 0x419ac9
mov edx, eax
mov ecx, esi
call fcn.00418ab0
cmp dword [esi + 8], 0
jne 0x419aac
cmp dword [esi + 0x4c], 0
jne 0x419a42
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x4c], eax
test eax, eax
jne 0x419a42
mov dword [esi + 8], 2
cmp dword [esi + 8], 0
jne 0x419aac
mov edx, dword [esi + 0x4c]
mov ecx, esi
push 0
push 0x4000
call fcn.00418dc0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x419a8d
push 0
lea eax, [esp + 0x10]
push eax
push ebx
push dword [esi + 0x4c]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x419a86
cmp dword [esp + 0xc], ebx
jne 0x419a86
cmp dword [esi + 8], 0
je 0x419a48
jmp 0x419a8d
mov dword [esi + 8], 3
cmp dword [esi + 8], 0
mov ebx, dword [ebp + 0xc]
jne 0x419aac
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x1c]
push eax
lea eax, [ecx + 0xc]
push eax
lea eax, [ecx + 0x14]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
cmp ebx, 4
je 0x419ad0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00418940
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 8], 1
mov ecx, esi
call fcn.00418940
mov eax, dword [esi + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a390
Capabilities:
Get file size
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x24], edx
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x41a3bc
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ebx, dword [esp + 0x28]
mov esi, ebx
and esi, 1
mov eax, ebx
mov ecx, esi
or ecx, 2
and al, 2
mov eax, ebx
cmove ecx, esi
mov edx, ecx
or edx, 4
and al, 4
cmove edx, ecx
mov ecx, ebx
mov eax, edx
or eax, 0x10
and ecx, 0x10
cmove eax, edx
mov edx, 0x81000000
mov ebp, eax
or ebp, 0x20
and bl, 0x20
cmove ebp, eax
test ecx, ecx
mov eax, 0x41000000
cmove eax, edx
or ebp, eax
test esi, esi
jne 0x41a410
or ebp, 0x800000
push 0
push dword [edi + 0x64]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
mov dword [edi + 0x50], eax
mov dword [edi + 0x54], ecx
cmp eax, 0x28
jbe 0x41a4eb
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
jne 0x41a4eb
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push eax
push eax
push eax
push dword [edi + 0x64]
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x18]
push 0
push eax
push 2
lea eax, [esp + 0x20]
push eax
push dword [edi + 0x64]
call ebx
push 0
push 0
push 0x24
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x28]
push eax
push dword [edi + 0x64]
call ebx
mov eax, 0x54ad
cmp word [esp + 0x14], ax
jne 0x41a4e0
cmp dword [edi + 0x54], 0
mov eax, dword [esp + 0x1c]
lea ecx, [eax + 0x34]
jb 0x41a4e0
ja 0x41a49d
cmp dword [edi + 0x50], ecx
jbe 0x41a4e0
push 0
push 0
push eax
push dword [edi + 0x64]
call esi
push 0
lea eax, [esp + 0x1c]
push eax
push 4
lea eax, [esp + 0x2c]
push eax
push dword [edi + 0x64]
call ebx
mov eax, dword [esp + 0x20]
cmp eax, 0x5a4d
je 0x41a4da
cmp eax, 0x454e
je 0x41a4da
cmp eax, 0x454c
je 0x41a4da
cmp eax, 0x4550
jne 0x41a4e0
or ebp, 0x400000
push 0
push 0
push 0
push dword [edi + 0x64]
call esi
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
sub ecx, 0xd53e8000
mov ebx, dword [esp + 0x24]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
mov dword [ebx + 0x10], ebp
call fcn.004c53b0
mov ecx, dword [esp + 0x3c]
mov dword [ebx], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x40]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004c53b0
mov ecx, dword [esp + 0x2c]
mov dword [ebx + 4], eax
sub ecx, 0xd53e8000
mov eax, dword [esp + 0x30]
push 0
push 0x989680
sbb eax, 0x19db1de
push eax
push ecx
call fcn.004c53b0
mov dword [ebx + 8], eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToDosDateTime]
movzx ecx, word [esp + 0x14]
movzx eax, word [esp + 0x18]
pop edi
shl ecx, 0x10
pop esi
or ecx, eax
xor eax, eax
pop ebp
mov dword [ebx + 0xc], ecx
pop ebx
add esp, 0x4c
ret
Function at 0x41c060
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, edx
push edi
mov edi, ecx
mov ecx, esi
cmp dword [esi], 0
jge 0x41c0bb
mov edx, 0x8b1f
call fcn.0041cba0
mov edx, 0x808
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.0041cba0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.0041cba0
mov edx, 0xb02
mov ecx, esi
call fcn.0041cba0
mov eax, dword [edi + 0x20]
lea edx, [edi + 0x48]
inc eax
mov ecx, esi
push eax
call fcn.0041cc60
add esp, 4
pop edi
pop esi
pop ebx
ret
mov edx, 0x4034b50
call fcn.0041cba0
mov edx, 0x403
mov ecx, esi
call fcn.0041cba0
mov edx, 0x2d
mov ecx, esi
call fcn.0041cba0
movzx edx, word [edi + 0x30]
mov ecx, esi
call fcn.0041cba0
movzx edx, word [edi + 2]
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 4]
mov ecx, esi
call fcn.0041cba0
movzx edx, word [edi + 6]
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 8]
mov ecx, esi
call fcn.0041cba0
movzx edx, word [edi + 0xa]
mov ecx, esi
call fcn.0041cba0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041cba0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041cba0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041cba0
or edx, 0xffffffff
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 0x20]
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 0x24]
mov ecx, esi
add edx, 0x14
call fcn.0041cba0
push dword [edi + 0x20]
lea edx, [edi + 0x48]
mov ecx, esi
call fcn.0041cc60
add esp, 4
mov edx, 1
mov ecx, esi
call fcn.0041cba0
mov edx, 0x10
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 0x18]
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 0x18]
mov ecx, esi
mov eax, dword [edi + 0x1c]
shrd edx, eax, 0x10
call fcn.0041cba0
mov eax, dword [edi + 0x18]
mov cl, 0x20
mov edx, dword [edi + 0x1c]
call fcn.004c5360
mov edx, eax
mov ecx, esi
call fcn.0041cba0
movzx edx, word [edi + 0x1e]
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 0x10]
mov ecx, esi
call fcn.0041cba0
mov edx, dword [edi + 0x10]
mov ecx, esi
mov eax, dword [edi + 0x14]
shrd edx, eax, 0x10
call fcn.0041cba0
mov eax, dword [edi + 0x10]
mov cl, 0x20
mov edx, dword [edi + 0x14]
call fcn.004c5360
mov edx, eax
mov ecx, esi
call fcn.0041cba0
movzx edx, word [edi + 0x16]
mov ecx, esi
call fcn.0041cba0
mov eax, dword [edi + 0x24]
test eax, eax
je 0x41c211
mov edx, dword [edi + 0x40]
mov ecx, esi
push eax
call fcn.0041cc60
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x41c9f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x41c9f7
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x41cab7
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
sub edi, 1
jne 0x41ca10
pop edi
test esi, esi
je 0x41cada
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
sub esi, 1
jne 0x41cac0
not ecx
mov eax, ecx
pop esi
ret

Function at 0x41cae0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x4d1098]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d1098]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x41cb30
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
mov ebx, ecx
movsx ecx, dl
push esi
push edi
mov edx, dword [ebx]
mov eax, edx
xor eax, ecx
mov esi, dword [ebx + 8]
movzx eax, al
mov edi, esi
shr edx, 8
and edi, 0xfffd
or edi, 2
mov eax, dword [eax*4 + 0x4d1098]
xor eax, edx
mov dword [ebx], eax
movzx eax, al
add eax, dword [ebx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [ebx + 4], eax
shr eax, 0x18
xor eax, esi
shr esi, 8
movzx eax, al
xor esi, dword [eax*4 + 0x4d1098]
mov eax, edi
xor eax, 1
mov dword [ebx + 8], esi
imul eax, edi
pop edi
pop esi
pop ebx
shr eax, 8
xor al, cl
ret
Function at 0x41cba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi + 0x20], 0
jne 0x41cc5b
mov eax, dword [edi]
push ebx
mov ebx, edx
mov byte [esp + 8], dl
shr ebx, 8
mov byte [esp + 9], bl
test al, 0x10
je 0x41cbe2
push esi
lea ecx, [edi + 0x38]
call fcn.0041cb30
mov dl, bl
mov byte [esp + 0xc], al
lea ecx, [edi + 0x38]
call fcn.0041cb30
mov byte [esp + 0xd], al
mov eax, dword [edi]
pop esi
pop ebx
test al, 1
je 0x41cc23
mov edx, dword [edi + 0x28]
mov ecx, edx
mov eax, dword [edi + 0x2c]
add ecx, 2
adc eax, 0
cmp eax, dword [edi + 0x34]
jb 0x41cc0d
ja 0x41cc01
cmp ecx, dword [edi + 0x30]
jb 0x41cc0d
mov dword [edi + 0x20], 0xb
pop edi
add esp, 8
ret
mov ecx, dword [edi + 4]
mov ax, word [esp + 4]
mov word [edx + ecx], ax
add dword [edi + 0x28], 2
adc dword [edi + 0x2c], 0
jmp 0x41cc4c
push 0
lea eax, [esp + 0xc]
push eax
push 2
lea eax, [esp + 0x10]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41cc45
cmp dword [esp + 8], 2
je 0x41cc4c
mov dword [edi + 0x20], 3
test dword [edi], 0x40000000
je 0x41cc5b
mov dword [edi + 0x20], 0x14
pop edi
add esp, 8
ret

Function at 0x41cc60
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x41cd6f
cmp dword [esi + 0x20], 0
jne 0x41cd6f
test byte [esi], 0x10
je 0x41ccfd
mov ecx, dword [esi + 0x44]
mov eax, ecx
test ecx, ecx
je 0x41cca0
cmp dword [esi + 0x48], ebx
jae 0x41cca0
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x44], 0
xor eax, eax
test eax, eax
jne 0x41ccc6
lea eax, [ebx + ebx]
push eax
push 0
mov dword [esi + 0x48], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + 0x44], eax
test eax, eax
jne 0x41ccc6
mov dword [esi + 0x20], 2
jmp 0x41cd60
push ebx
push edi
push eax
call fcn.004aef60
add esp, 0xc
xor edi, edi
test ebx, ebx
je 0x41ccfa
push ebp
nop dword [eax + eax]
mov eax, dword [esi + 0x44]
lea ecx, [esi + 0x38]
mov dl, byte [eax + edi]
call fcn.0041cb30
mov ecx, dword [esi + 0x44]
mov byte [edi + ecx], al
inc edi
cmp edi, ebx
jb 0x41cce0
pop ebp
mov edi, dword [esi + 0x44]
test byte [esi], 1
je 0x41cd3d
mov edx, dword [esi + 0x28]
mov ecx, edx
mov eax, dword [esi + 0x2c]
add ecx, ebx
adc eax, 0
cmp eax, dword [esi + 0x34]
jb 0x41cd24
ja 0x41cd1b
cmp ecx, dword [esi + 0x30]
jb 0x41cd24
mov dword [esi + 0x20], 0xb
jmp 0x41cd60
mov eax, dword [esi + 4]
push ebx
add eax, edx
push edi
push eax
call fcn.004aef60
add esp, 0xc
add dword [esi + 0x28], ebx
adc dword [esi + 0x2c], 0
jmp 0x41cd60
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41cd59
cmp dword [esp + 0x10], ebx
je 0x41cd60
mov dword [esi + 0x20], 3
test dword [esi], 0x40000000
je 0x41cd6f
mov dword [esi + 0x20], 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x41ceb0
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov eax, dword [esi]
test eax, 0x40000000
je 0x41cecf
pop edi
mov dword [esi + 0x20], 0x14
xor eax, eax
pop esi
pop ebx
pop ecx
ret
test al, al
jns 0x41cf1a
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x70]
mov edi, dword [esi + 0x68]
cmp eax, dword [esi + 0x6c]
ja 0x41cf3a
jb 0x41cee7
cmp ecx, edi
jae 0x41cf3a
mov eax, dword [esp + 0x14]
sub edi, ecx
mov dword [esp + 0xc], edi
push ebp
mov ebp, edi
cmp edi, eax
jbe 0x41cf00
mov edi, eax
mov ebp, eax
mov dword [esp + 0x10], edi
mov eax, dword [esi + 0x64]
push edi
add eax, ecx
push eax
push ebx
call fcn.004aef60
add esp, 0xc
add dword [esi + 0x70], ebp
adc dword [esi + 0x74], 0
pop ebp
jmp 0x41cf45
push 0
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x1c]
push ebx
push dword [esi + 0x64]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41cf41
mov dword [esi + 0x20], 7
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
mov edi, dword [esp + 0xc]
add dword [esi + 0x58], edi
mov edx, ebx
mov ecx, dword [esi + 0x60]
adc dword [esi + 0x5c], 0
push edi
call fcn.0041c9f0
add esp, 4
mov dword [esi + 0x60], eax
mov eax, edi
pop edi
pop esi
pop ebx
pop ecx
ret