joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406bf8
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
dec eax
push edi
mov edi, ecx
cmp eax, 0x49
ja case.0x406bbb.2
movzx eax, byte [eax + 0x406e18]
jmp dword [eax*4 + 0x406e04]
mov ecx, dword [ebx + 0x10]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
push ecx
mov ecx, dword [ebx + 0x1c]
push edx
mov edx, dword [edi + 0x78]
push eax
push ecx
lea esi, [edi + 0xb4]
push edx
call fcn.004025c0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push ebx
push ecx
push edx
mov ecx, edi
call fcn.00412f60
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
cmp dword [ebp + 0xc], 0
je 0x406c0b
lea esi, [edi + 0xb4]
call fcn.00402630
jmp case.0x406bbb.2
mov eax, dword [edi + 0xb4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je case.0x406bbb.2
mov ecx, dword [edi + 0xb4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x406bbb.2
push 0x25
mov edx, ebx
shr edx, 0x10
push 0
movsx eax, dx
sub eax, dword [edi + 0xbc]
mov edx, dword [edi + 0xb4]
push 0
movsx ecx, bx
sub ecx, dword [edi + 0xb8]
push eax
push ecx
push 0
push edx
call dword [sym.imp.USER32.dll_SetWindowPos]
jmp case.0x406bbb.2
mov ecx, dword [edi + 0xcc]
mov eax, dword [ecx]
mov edx, dword [eax + 0x18]
push 0
call edx
mov eax, dword [ebx]
sub eax, 0
je 0x406d08
dec eax
jne case.0x406bbb.2
mov eax, dword [ebx + 8]
fild dword [eax]
fmul qword [0x463100]
fdiv qword [0x4630f8]
call fcn.00451650
mov esi, eax
test esi, esi
jne 0x406caa
mov edx, dword [edi + 0xb0]
mov eax, dword [edx]
lea ecx, [edi + 0xb0]
call eax
mov eax, dword [edi + 0xf8]
test byte [eax + 0x18], 1
je 0x406cf3
mov ecx, dword [eax + 0x64]
cmp esi, ecx
jg 0x406cbf
mov esi, ecx
mov ecx, esi
call fcn.004019d0
cmp esi, 0x1b8
jge 0x406cff
cmp esi, 0x18c
jl 0x406cf3
mov ecx, dword [edi + 0xd8]
test byte [ecx + 0x18], 1
jne 0x406cf3
mov edx, dword [edi + 0xb0]
mov eax, dword [edx + 4]
lea ecx, [edi + 0xb0]
call eax
cmp esi, 0x1b8
jl case.0x406bbb.2
mov ecx, dword [edi + 0x78]
push ecx
jmp 0x406d91
mov ecx, dword [ebx + 8]
fild dword [ecx]
fmul qword [0x463110]
fmul qword [0x4630a0]
fdiv qword [0x4630f8]
call fcn.00451650
mov ecx, dword [edi + 0xf8]
mov esi, 0xdc
sub esi, eax
mov eax, dword [ecx + 0x64]
cmp esi, eax
jg 0x406d3a
mov esi, eax
cmp esi, 0x18c
jl 0x406ddf
mov edx, dword [edi + 0xd8]
test byte [edx + 0x18], 1
jne 0x406ddf
mov eax, dword [edi + 0xb0]
mov edx, dword [eax + 4]
lea ecx, [edi + 0xb0]
call edx
cmp esi, 0x1b8
jl 0x406d74
mov esi, 0x1b8
mov eax, dword [edi + 0xf8]
mov ecx, esi
call fcn.004019d0
cmp esi, 0x1b8
jl case.0x406bbb.2
mov eax, dword [edi + 0x78]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je case.0x406bbb.2
cmp dword [edi + 0xf4], 0
je 0x406dad
call fcn.004048c0
push 0
call fcn.00438820
mov ecx, eax
call fcn.00438790
mov edx, dword [edi + 0xb0]
mov eax, dword [edx + 0x10]
lea ecx, [edi + 0xb0]
mov byte [edi + 0x100], 1
call eax
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 0xc
test byte [ecx + 0x18], 1
je 0x406d67
test esi, esi
jne 0x406d67
mov eax, dword [edi + 0xb0]
mov edx, dword [eax]
lea ecx, [edi + 0xb0]
call edx
jmp 0x406d74
Function at 0x407a00
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x46d674]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.00446e60
add esp, 0xc
push 0
push 0x28
lea edx, [ebp - 0x20c]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407a70
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
call fcn.00401490
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0043e417
mov esp, ebp
pop ebp
ret

Function at 0x407aa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x46d674]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x407be4
cmp word [esi], 0
je 0x407be4
xor eax, eax
push 0x3fe
push eax
lea ecx, [ebp - 0x402]
push ecx
mov word [ebp - 0x404], ax
call fcn.00446e60
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
jmp 0x407af0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407af0
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 - 2], 0x5c
jne 0x407b30
lea edx, [eax - 1]
cmp edx, 0x7ffffffe
jbe 0x407b1d
xor edx, edx
mov word [ebp - 0x404], dx
jmp 0x407b6a
push esi
mov eax, 0x200
lea ecx, [ebp - 0x404]
call fcn.004078f0
jmp 0x407b6a
lea eax, [ebp - 0x404]
mov ecx, eax
mov edx, 0x200
sub esi, ecx
nop
lea ecx, [edx + 0x7ffffdfe]
test ecx, ecx
je 0x407b5e
movzx ecx, word [esi + eax]
test cx, cx
je 0x407b5e
mov word [eax], cx
add eax, 2
dec edx
jne 0x407b40
jmp 0x407b62
test edx, edx
jne 0x407b65
sub eax, 2
xor edx, edx
mov word [eax], dx
xor eax, eax
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x414], eax
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x40c], eax
mov word [ebp - 0x408], ax
lea edx, [ebp - 0x424]
lea eax, [ebp - 0x404]
mov ecx, 0x614
push edx
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x420], 3
mov dword [ebp - 0x41c], eax
mov word [ebp - 0x414], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e417
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor al, al
pop esi
call fcn.0043e417
mov esp, ebp
pop ebp
ret
Function at 0x40a740
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
lea eax, [ebp - 8]
push eax
xor edi, edi
lea ecx, [ebp - 4]
push ecx
push edi
push 0x20006
push edi
push edi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push Ordinal_4
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
cmp ebx, edi
jne 0x40a7a1
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40a785
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
mov eax, dword [esi]
cmp eax, edi
je 0x40a797
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], edi
mov dword [esi + 8], edi
mov edx, dword [ebp - 4]
mov dword [esi], edx
mov dword [esi + 8], edi
mov eax, ebx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40a7b0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0044c6b0
mov eax, dword [0x46d674]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push esi
push edi
mov esi, edx
lea edx, [ebp - 0x1008]
push edx
lea edx, [ebp - 0x804]
push edx
lea edx, [ebp - 0x100c]
push edx
push 0
push ecx
push eax
mov dword [ebp - 0x100c], 1
mov dword [ebp - 0x1008], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x40a8bb
mov eax, dword [ebp - 0x100c]
cmp eax, 1
jne 0x40a850
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40a821
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x804]
call fcn.00401490
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e417
mov esp, ebp
pop ebp
ret 4
cmp eax, 2
jne 0x40a8b6
push 0x400
lea ecx, [ebp - 0x1004]
push ecx
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x40a89f
cmp eax, 0x400
ja 0x40a89f
push esi
lea eax, [ebp - 0x1004]
call fcn.00406e70
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e417
mov esp, ebp
pop ebp
ret 4
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043e417
mov esp, ebp
pop ebp
ret 4
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043e417
mov esp, ebp
pop ebp
ret 4
Function at 0x412970
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
xor esi, esi
call edi
test ax, ax
jns 0x412988
mov esi, 8
push 2
call edi
test ax, ax
jns 0x412994
or esi, 1
push 1
call edi
test ax, ax
jns 0x4129a0
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x4129ac
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x4129b8
or esi, 0x20
pop edi
mov ax, si
pop esi
ret
Function at 0x413c10
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [ecx + 0x78]
test eax, eax
je 0x413c20
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x414b20
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebx + 0x78]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
push 0x11
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 9
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
xor esi, esi
call edi
test ax, ax
jns 0x414b66
mov esi, 8
push 2
call edi
test ax, ax
jns 0x414b72
or esi, 1
push 1
call edi
test ax, ax
jns 0x414b7e
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x414b8a
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x414b96
or esi, 0x20
lea edx, [ebp - 0x18]
mov eax, ebx
mov word [ebp - 0xa], si
call fcn.00411610
mov eax, dword [ebx + 0x78]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x414bc0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x11
mov dword [ebp - 0x18], 0xa
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
xor esi, esi
call edi
test ax, ax
jns 0x414c02
mov esi, 8
push 2
call edi
test ax, ax
jns 0x414c0e
or esi, 1
push 1
call edi
test ax, ax
jns 0x414c1a
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x414c26
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x414c32
or esi, 0x20
mov eax, dword [0x4700c4]
mov word [ebp - 0xa], si
test eax, eax
je 0x414c51
lea edx, [ebp - 0x18]
call fcn.00411610
mov dword [0x4700c4], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x414c60
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov ecx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push 0x11
mov dword [ebp - 0x1c], 0xb
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
xor esi, esi
call edi
test ax, ax
jns 0x414c9c
mov esi, 8
push 2
call edi
test ax, ax
jns 0x414ca8
or esi, 1
push 1
call edi
test ax, ax
jns 0x414cb4
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x414cc0
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x414ccc
or esi, 0x20
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1c]
mov word [ebp - 0xe], si
call fcn.00411610
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x414cf0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebx + 0x78]
push esi
push edi
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
push 0x11
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], 0xc
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
xor esi, esi
call edi
test ax, ax
jns 0x414d36
mov esi, 8
push 2
call edi
test ax, ax
jns 0x414d42
or esi, 1
push 1
call edi
test ax, ax
jns 0x414d4e
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x414d5a
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x414d66
or esi, 0x20
lea edx, [ebp - 0x18]
mov eax, ebx
mov word [ebp - 0xa], si
call fcn.00411610
mov eax, dword [ebx + 0x78]
push eax
call dword [sym.imp.USER32.dll_SetCapture]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x414d90
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push 0x11
mov dword [ebp - 0x18], 0xd
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
xor esi, esi
call edi
test ax, ax
jns 0x414dd2
mov esi, 8
push 2
call edi
test ax, ax
jns 0x414dde
or esi, 1
push 1
call edi
test ax, ax
jns 0x414dea
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x414df6
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x414e02
or esi, 0x20
mov eax, dword [0x4700c4]
mov word [ebp - 0xa], si
test eax, eax
je 0x414e21
lea edx, [ebp - 0x18]
call fcn.00411610
mov dword [0x4700c4], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x414e30
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov al, byte [ebp + 8]
push 0x11
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x10
mov byte [ebp - 0x10], al
xor esi, esi
call edi
test ax, ax
jns 0x414e74
mov esi, 8
push 2
call edi
test ax, ax
jns 0x414e80
or esi, 1
push 1
call edi
test ax, ax
jns 0x414e8c
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x414e98
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x414ea4
or esi, 0x20
mov word [ebp - 0xe], si
mov esi, dword [0x4700d0]
test esi, esi
je 0x414eca
mov edx, dword [esi]
mov edx, dword [edx + 0x28]
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call edx
test eax, eax
jne 0x414eca
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x414eb2
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x414ee0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
xor eax, eax
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov al, byte [ebp + 8]
push 0x11
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0x11
mov byte [ebp - 0x10], al
xor esi, esi
call edi
test ax, ax
jns 0x414f24
mov esi, 8
push 2
call edi
test ax, ax
jns 0x414f30
or esi, 1
push 1
call edi
test ax, ax
jns 0x414f3c
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x414f48
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x414f54
or esi, 0x20
mov ecx, dword [0x4700d0]
mov word [ebp - 0xe], si
test ecx, ecx
je 0x414f6d
mov edx, dword [ecx]
mov edx, dword [edx + 0x28]
lea eax, [ebp - 0x1c]
push eax
call edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41ff90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x41ff97
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x42006d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45f9f8]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45f9f8]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45f9f8]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45f9f8]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45f9f8]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45f9f8]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45f9f8]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x45f9f8]
add ecx, 8
sub edx, 8
dec esi
jne 0x41ffb0
pop edi
test edx, edx
je 0x42008a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x45f9f8]
inc ecx
dec edx
jne 0x420071
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x45f9f8]
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 + 0x45f9f8]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x45f9f8]
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 + 0x45f9f8]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x420830
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x420866
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42085c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x420877
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.004413c0
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x4208a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4208d3
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4208ce
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x4208fe
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4208e5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.004413c0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x420913
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x42090d
cmp byte [esi + 8], 0
je 0x42090d
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x420a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x420a97
cmp byte [esi + 1], 0
je 0x420a9f
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x420ab2
cmp byte [esi + 1], 0
je 0x420aa6
mov eax, dword [esi + 4]
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [esi + 0xc]
mov ebx, eax
mov dword [ebp - 4], ebx
jmp 0x420aba
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x420a71
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x420aba
mov edx, dword [esi + 0x1c]
mov dword [ebp - 4], edx
mov ebx, edx
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x420acc
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.0043f664
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x420ae9
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x420bfd
jmp 0x420b09
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x420b18
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x420b2f
mov ebx, 0x404
cmp byte [esi], 0
je 0x420b54
cmp byte [esi + 1], 0
je 0x420bfd
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x420b57
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x420b80
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x420b7b
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x420ba9
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x420b91
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.004413c0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x420bfd
lea eax, [ebx - 3]
test eax, eax
js 0x420beb
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x420bdf
cmp byte [eax + ecx + 1], 0x4b
jne 0x420bdf
cmp byte [eax + ecx + 2], 5
jne 0x420bdf
cmp byte [eax + ecx + 3], 6
je 0x420be5
test eax, eax
jns 0x420bc0
jmp 0x420beb
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x420bfd
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x420b00
mov eax, dword [ebp - 0x10]
push eax
call fcn.0043f1ec
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x421a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x421af7
cmp dword [esi + 4], 0xffffffff
jne 0x421af7
lea edi, [esi + 0x244]
push edi
push 0x103
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421a96
sub eax, edx
sar eax, 1
movzx ecx, word [esi + eax*2 + 0x242]
cmp ecx, 0x5c
je 0x421ac2
cmp ecx, 0x2f
je 0x421ac2
mov dword [esi + eax*2 + 0x244], 0x2f
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp + 8]
call fcn.00420790
add esp, 4
test eax, eax
jne 0x421add
mov eax, dword [ebp + 8]
pop edi
pop ebp
ret 4
call fcn.00420c20
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ebp
ret 4
mov eax, 0x1000000
pop edi
pop ebp
ret 4