joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4019f0
Capabilities:
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0xa
push dword [ebp + 8]
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
jne 0x401a13
push esi
push str.Could_not_find_compressed_executable_resource.
jmp 0x401a3c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x401a2a
push esi
push str.Could_not_get_size_of_resource_ncontaining_compressed_executable.
jmp 0x401a3c
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, esi
jne 0x401a51
push esi
push str.Could_not_load_resource_containing_compressed_executable.
push str.Internal_Error
call fcn.00401625
add esp, 0xc
or eax, 0xffffffff
jmp 0x401af1
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
cmp ebx, esi
push esi
jne 0x401a77
push str.Could_not_lock_resource_containing_compressed_executable.
push str.Internal_Error
call fcn.00401625
add esp, 0xc
or eax, 0xffffffff
jmp 0x401af0
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
jne 0x401aab
cmp dword [ebp + 0x10], 1
je 0x401af0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_create_temporary_file
jmp 0x401ae1
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push edi
jne 0x401ae8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [ebp + 0x10], 1
je 0x401a72
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Could_not_write_data_to_file.
push str.I_O_Error
jmp 0x401a6a
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x401c60
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push edi
push dword [0x40b02c]
mov edi, str._s_s
push dword [ebp + 8]
lea eax, [ebp - 0x310]
push edi
push eax
call esi
add esp, 0x10
xor ebx, ebx
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0xa
jge 0x401d0e
cmp dword [ebp - 4], 1
lea eax, [ebp - 0x108]
jne 0x401cb8
push dword [ebp + 0x10]
push str.GoToAssist__s.log
push eax
call esi
add esp, 0xc
jmp 0x401cc9
push dword [ebp - 4]
push dword [ebp + 0x10]
push str.GoToAssist__s__ld.log
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push edi
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ebx, eax
test ebx, ebx
jne 0x401d07
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401d0e
inc dword [ebp - 4]
test ebx, ebx
je 0x401c96
pop edi
test ebx, ebx
pop esi
setne al
pop ebx
leave
ret
Function at 0x4050e0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b050]
jne 0x4050e9
ret
jmp fcn.004050f0
Function at 0x424d74
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x424dcd
test eax, edx
je 0x424dd0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x424d8b
movzx eax, word [eax]
sub eax, ecx
jmp 0x424db2
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x424db3
add ecx, 4
js 0x424da3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x424db0
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x424db2
xor eax, eax
ret
test eax, eax
je 0x424ddc
test edx, edx
jne 0x424d7c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x42f628
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a73c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004105d8
mov edi, eax
cmp edi, 0x104
jbe 0x42f5d3
mov eax, edi
add eax, eax
call fcn.00406e3c
mov esi, eax
jmp 0x42f5d5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.004105d8
push esi
call fcn.00416280
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42f60e
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42f5f8
mov eax, esp
cmp esi, eax
je 0x42f61b
mov eax, esi
call fcn.00406e58
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42f654
cmp bl, 0
je 0x42f650
cmp bl, 0x41
jl 0x42f64b
cmp bl, 0x5a
jg 0x42f64b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42f62f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42f594
Function at 0x4327c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4327e2
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x4327fa
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x4327f5
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x4327ff
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x43286d
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x4328b6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43282b
inc dword [ebp - 0xc]
jmp 0x432843
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x432843
cmp dword [ebp - 0xc], 0
jle 0x432843
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x432865
xor eax, eax
jmp 0x432861
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x432860
mov eax, esi
jmp 0x4328b9
inc eax
cmp eax, ecx
jle 0x43284d
inc esi
cmp esi, dword [ebp - 8]
jl 0x432817
jmp 0x4328b6
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x4328b6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x43288e
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x4328b0
xor eax, eax
jmp 0x4328ac
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x4328ab
mov eax, esi
jmp 0x4328b9
inc eax
cmp eax, ecx
jle 0x432898
inc esi
cmp esi, dword [ebp - 8]
jl 0x432876
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x432ac8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x432ae5
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x432af3
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x432c15
test ebx, ebx
jl 0x432c15
test esi, esi
jle 0x432c15
mov eax, dword [ebp - 8]
call fcn.0040acc0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040acc0
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x432bb2
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x432c15
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x432b97
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x432b66
inc dword [ebp - 0x14]
jmp 0x432b76
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x432b76
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x432b81
or eax, 0xffffffff
jmp 0x432b97
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x432b94
inc eax
jmp 0x432b97
or eax, 0xffffffff
test eax, eax
jl 0x432b9f
cmp esi, eax
jg 0x432b54
cmp esi, eax
jg 0x432baa
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x432c18
inc edx
dec dword [ebp - 0x1c]
jne 0x432b50
jmp 0x432c15
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x432c15
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x432bfc
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x432bdb
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x432be6
or eax, 0xffffffff
jmp 0x432bfc
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x432bf9
inc eax
jmp 0x432bfc
or eax, 0xffffffff
test eax, eax
jl 0x432c04
cmp esi, eax
jg 0x432bc4
cmp esi, eax
jg 0x432c0f
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x432c18
inc edx
dec dword [ebp - 0x1c]
jne 0x432bc0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x443504
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x44350c
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4e21b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x4e21c7
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x4e21b7
mov eax, ecx
pop ebx
ret
Function at 0x501fec
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5021ab
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a694
mov eax, dword [ebp - 4]
call fcn.005018c0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x50203e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040b0c8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00502f98
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x50211f
xor eax, eax
push ebp
push 0x502118
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00501bd8
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.005021e0
test al, al
je 0x5020f4
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040a3f4
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x5020f4
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040acc0
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00415ab0
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00501b38
test al, al
je 0x5020ee
mov eax, dword [ebp - 8]
call fcn.0040acc0
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040ad20
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00501fec
dec ebx
cmp ebx, 0xffffffff
jne 0x50209d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50211f
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00501bd8
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00415a60
pop eax
jmp eax
cmp byte [0x5fa9e4], 0
je 0x50215f
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040acc0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00501bc4
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00501b38
mov ebx, eax
jmp 0x502186
mov eax, dword [ebp - 4]
call fcn.0040acc0
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00501bc4
push eax
call fcn.00415aa0
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00501b38
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5021b2
lea eax, [ebp - 0x3c]
call fcn.0040a25c
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a2bc
pop eax
jmp eax

Function at 0x50fbac
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x50fbb2
ret
Function at 0x40273f
Capabilities:
Write file on windows

Disassembly:
push dword [ecx + 8]
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.00514990
add esp, 0x10
ret 0xc

Function at 0x403540
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [eax + 0xc]
mov dword [ebp - 0xc], edi
mov edi, dword [eax + 8]
mov dword [ebp - 8], edi
mov edi, dword [eax + 4]
mov eax, dword [eax]
mov esi, 0xf1bbcdc8
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 8
mov eax, edx
shl eax, 4
add eax, dword [ebp - 8]
mov edi, edx
shr edi, 5
add edi, dword [ebp - 0xc]
xor eax, edi
lea edi, [edx + esi]
xor eax, edi
sub ecx, eax
mov eax, ecx
shl eax, 4
add eax, dword [ebp - 0x10]
mov edi, ecx
shr edi, 5
add edi, dword [ebp - 0x14]
xor eax, edi
lea edi, [ecx + esi]
xor eax, edi
sub edx, eax
add esi, 0x61c88647
dec dword [ebp - 4]
jne 0x403578
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
pop edi
mov dword [eax], ecx
pop esi
leave
ret

Function at 0x4035f9
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebx
push esi
push edi
push 0x578770
push dword [esp + 0x18]
call fcn.00514c15
push 2
xor edi, edi
mov esi, eax
push edi
push esi
call fcn.0051517e
push esi
call fcn.00515086
push edi
push edi
push esi
mov ebx, eax
call fcn.0051517e
push ebx
call fcn.0040a258
push esi
push ebx
mov edi, eax
push 1
push edi
call fcn.00514ecc
push esi
mov ebx, eax
call fcn.00514a89
push dword [esp + 0x4c]
push ebx
push edi
call fcn.004035c3
add esp, 0x48
push 0x577c74
push dword [esp + 0x1c]
call fcn.00514c15
mov esi, eax
push esi
push ebx
push 1
push edi
call fcn.00514990
push esi
call fcn.00514a89
push edi
call fcn.0040a24d
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x40367c
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xb4]
sub esp, 0x134
mov eax, dword [0x5cd81c]
xor eax, ebp
mov dword [ebp + 0xb0], eax
push ebx
mov ebx, dword [ebp + 0xc0]
push esi
push edi
mov edi, dword [ebp + 0xbc]
push 0x577c70
push ebx
call fcn.0040a079
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4036bd
xor eax, eax
jmp 0x403722
push edi
push esi
call fcn.0040860c
pop ecx
pop ecx
test eax, eax
je 0x4036d3
push esi
call fcn.0040a0e1
pop ecx
jmp 0x4036b9
lea eax, [ebp - 0x7c]
push eax
push 0xffffffffffffffff
push esi
call fcn.004085cd
add esp, 0xc
test eax, eax
jne 0x4036ca
mov eax, dword [ebp - 0x7c]
xor edi, edi
mov dword [ebp - 0x80], eax
test eax, eax
jle 0x403711
lea eax, [ebp - 0x7c]
push eax
push edi
push esi
call fcn.004085cd
lea eax, [ebp - 0x78]
push eax
push edi
push esi
call fcn.0040a0c8
add esp, 0x18
inc edi
cmp edi, dword [ebp - 0x80]
jl 0x4036f2
push esi
call fcn.0040a0e1
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xb0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00514038
add ebp, 0xb4
leave
ret
Function at 0x40718d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x407198
xor eax, eax
ret
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [esp + 0x14]
not eax
mov ecx, 0xff
cmp edi, 8
jb 0x407253
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x57b948]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x57b948]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x57b948]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x57b948]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x57b948]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x57b948]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x57b948]
inc edx
movzx ebx, byte [edx]
xor ebx, eax
and ebx, ecx
shr eax, 8
xor eax, dword [ebx*4 + 0x57b948]
inc edx
sub edi, 8
dec esi
jne 0x4071b8
pop ebx
test edi, edi
je 0x40726c
movzx esi, byte [edx]
xor esi, eax
and esi, ecx
shr eax, 8
xor eax, dword [esi*4 + 0x57b948]
inc edx
dec edi
jne 0x407257
pop edi
not eax
pop esi
ret

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

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

Function at 0x4076d9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x40770d
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407708
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x407735
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x40771e
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00515350
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret
Function at 0x4084d2
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5cd81c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x408506
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408506
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [edi]
test al, al
je 0x4085bf
push esi
mov esi, edi
mov ecx, edi
cmp al, 0x2f
je 0x40851d
cmp al, 0x5c
jne 0x40851f
mov esi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x408515
cmp esi, edi
je 0x408552
sub esi, edi
push esi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00515350
lea eax, [ebp - 0x20c]
push eax
push ebx
mov byte [ebp + esi - 0x20c], 0
call fcn.004084d2
add esp, 0x14
mov byte [ebp - 0x108], 0
test ebx, ebx
je 0x408571
lea edx, [ebp - 0x108]
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x408567
mov eax, edi
mov edx, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408575
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x408585
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [ebp - 0x108]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x4085bf
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00514038
leave
ret

Function at 0x409b8e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x409c44
cmp dword [ebx + 4], 0xffffffff
jne 0x409c44
push esi
push edi
lea esi, [ebx + 0x140]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x409bc0
sub eax, edi
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x409bea
cmp al, 0x2f
je 0x409bea
dec esi
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x409bd9
mov edi, esi
mov esi, 0x57be6c
movsw word es:[edi], word [esi]
cmp dword [ebp + 0x10], 1
pop edi
pop esi
jne 0x409c0d
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x409c0d
mov eax, 0x2000000
jmp 0x409c49
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00407507
add esp, 0x10
test eax, eax
jne 0x409c2b
mov eax, dword [ebp + 0x10]
jmp 0x409c49
push eax
call fcn.00409673
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x409c49
mov eax, 0x1000000
pop ebx
pop ebp
ret 0xc
Function at 0x414eb8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x414eff
call fcn.004312b0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x414eff
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x414f1b
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00414a32
mov esi, eax
test edi, edi
je 0x414f19
test ebx, ebx
je 0x414f19
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x416c83
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x56de35
call fcn.00514047
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x416ca8
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x416cee
lea ecx, [ebp - 0x10]
call fcn.00402270
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00415a86
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401188
mov eax, esi
call fcn.0051411f
ret 8