joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100059d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x100059e7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x10005a18
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x10005a14
cmp esi, eax
jae 0x10005a18
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x10005a04
cmp esi, eax
jb 0x10005a1e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x10005a80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x208], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.10012ec0
add esp, 0xc
push 0x208
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x10005adb
lea eax, [esp]
push 0x5c
push eax
call fcn.1000b3b5
add esp, 8
test eax, eax
je 0x10005adb
xor ecx, ecx
mov word [eax], cx
push edi
push str.NetConfig.ini
mov edx, 0x104
lea edi, [esp + 8]
call fcn.100013e0
mov edx, edi
push edx
push 0x104
push esi
push 0x10022f88
push 0x10023044
push str.SETTING
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, eax
test edi, edi
jne 0x10005b29
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.1000a328
add esp, 0x20c
ret
push 0x2e
push esi
call fcn.1000a393
add esp, 8
test eax, eax
je 0x10005b3d
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x20c]
mov eax, edi
pop edi
xor ecx, esp
call fcn.1000a328
add esp, 0x20c
ret
Function at 0x100096a0
Capabilities:
Read .ini file

Disassembly:
push 0x10022f88
push str.Ilssi
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x100096f2
push 0x10022f88
push str.WPopTime
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x100096f2
push 0x10022f88
push esi
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x100096f2
push esi
push 0
push str.WPopTime
push str.Ilssi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
ret
xor eax, eax
ret

Function at 0x10009700
Capabilities:
Read .ini file

Disassembly:
test edi, edi
je 0x1000975f
push 0x10022f88
push str.Ilssi
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x1000975f
push 0x10022f88
push str.LastTime
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x1000975f
push 0x10022f88
push esi
call fcn.1000a5cc
add esp, 8
test eax, eax
je 0x1000975f
push esi
push 0x104
push edi
push 0x10022f88
push str.LastTime
push str.Ilssi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
ret
xor eax, eax
ret

Function at 0x100097d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x10027074]
xor eax, esp
mov dword [esp + 0x218], eax
push edi
mov edi, ecx
test edi, edi
je 0x100098db
test esi, esi
je 0x100098db
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 1
mov word [esp + 0x20], ax
call fcn.10012ec0
push edi
push str.SOFTWARERising_s
mov eax, 0x104
lea edi, [esp + 0x28]
call fcn.10001330
add esp, 0x14
lea edx, [esp + 4]
push edx
push 0x20019
push 0
mov eax, edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100098b1
lea ecx, [esp + 8]
push ecx
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x14]
push 0x10022fd0
push eax
mov dword [esp + 0x20], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10009884
sub eax, edx
sar eax, 1
je 0x100098a6
push 0x10022fcc
mov edx, 0x104
mov edi, esi
call fcn.100013e0
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100098b6
sub eax, edx
sar eax, 1
pop edi
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.1000a328
add esp, 0x21c
ret
mov ecx, dword [esp + 0x21c]
pop edi
xor ecx, esp
xor eax, eax
call fcn.1000a328
add esp, 0x21c
ret
Function at 0x1000a328
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10027074]
jne 0x1000a332
repz ret
jmp fcn.1000c973

Function at 0x10018af8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000e48d
and dword [ebp - 4], 0
cmp dword [0x10029280], 0
mov ebx, eax
jne 0x10018ba9
push 0x10022c88
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10018c5a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10022c7c
push edi
call esi
test eax, eax
je 0x10018c5a
push eax
call fcn.1000e41b
mov dword [esp], 0x10022c6c
push edi
mov dword [0x10029280], eax
call esi
push eax
call fcn.1000e41b
mov dword [esp], 0x10022c58
push edi
mov dword [0x10029284], eax
call esi
push eax
call fcn.1000e41b
mov dword [esp], 0x10022c3c
push edi
mov dword [0x10029288], eax
call esi
push eax
call fcn.1000e41b
pop ecx
mov dword [0x10029290], eax
test eax, eax
je 0x10018ba9
push 0x10022c24
push edi
call esi
push eax
call fcn.1000e41b
pop ecx
mov dword [0x1002928c], eax
mov eax, dword [0x1002928c]
cmp eax, ebx
je 0x10018c01
cmp dword [0x10029290], ebx
je 0x10018c01
push eax
call fcn.1000e496
push dword [0x10029290]
mov esi, eax
call fcn.1000e496
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x10018c01
test edi, edi
je 0x10018c01
call esi
test eax, eax
je 0x10018bf8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10018bf8
test byte [ebp - 0xc], 1
jne 0x10018c01
or dword [ebp + 0x10], 0x200000
jmp 0x10018c3a
mov eax, dword [0x10029284]
cmp eax, ebx
je 0x10018c3a
push eax
call fcn.1000e496
pop ecx
test eax, eax
je 0x10018c3a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10018c3a
mov eax, dword [0x10029288]
cmp eax, ebx
je 0x10018c3a
push eax
call fcn.1000e496
pop ecx
test eax, eax
je 0x10018c3a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10029280]
call fcn.1000e496
pop ecx
test eax, eax
je 0x10018c5a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10018c5c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401b90
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x445550
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x459930]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov dword [esp + 0x28], 0
call fcn.0040fb6f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x401bd7
push 0x80004005
call fcn.004049d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x18], edi
mov byte [esp + 0x28], 1
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
push eax
call fcn.00404850
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 0xd
push str.602cqcybz.exe
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 2
call fcn.00403c20
call fcn.00409480
mov esi, dword [esp + 0x10]
test eax, eax
je 0x401cde
push str._OGY8
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403870
add esp, 0xc
mov byte [esp + 0x28], 3
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00401d60
mov byte [esp + 0x28], 2
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401c74
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str._OGY8
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00403870
mov eax, dword [eax]
add esp, 0xc
push 1
push 0
push 0
push eax
push str.taskbarpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401cc1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 6
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push str._OGY8
call fcn.00404440
mov ecx, dword [esp + 0x38]
push ecx
call fcn.004034f0
lea eax, [esi - 0x10]
mov byte [esp + 0x28], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401cff
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov byte [esp + 0x28], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401d48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x401d60
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x445510
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x459930]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x10]
push eax
push 0x44ba54
push 1
push ebx
push 0x44ba64
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jge 0x401dd0
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push esi
push eax
call edx
push esi
lea ecx, [esp + 0x10]
call fcn.00404440
mov dword [esp + 0x24], ebx
mov eax, dword [esp + 0xc]
push 0x5c
push eax
call fcn.0042df01
add esp, 8
or esi, 0xffffffff
cmp eax, ebx
jne 0x401e05
mov eax, esi
jmp 0x401e0b
sub eax, dword [esp + 0xc]
sar eax, 1
push eax
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00403710
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 1
call fcn.00404750
mov byte [esp + 0x24], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, esi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x401e4c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push 0x44ca3c
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x44ba94
push eax
mov eax, dword [ecx]
call eax
cmp eax, ebx
jge 0x401ec4
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x401eae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
cmp eax, ebx
jl 0x401e87
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], esi
dec esi
test esi, esi
jg 0x401f1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 4
Function at 0x401f40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4454e0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push esi
push edi
mov eax, dword [0x459930]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
push eax
call fcn.00404850
add eax, 0x10
add esp, 4
mov dword [esp + 0x10], eax
push 0xd
push str.602cqcybz.exe
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 1
call fcn.00403c20
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str._OGY8
call fcn.00404440
mov byte [esp + 0x34], 2
mov eax, dword [esp + 0x18]
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x20], esp
mov esi, esp
push eax
call fcn.00404850
add eax, 0x10
mov dword [esi], eax
add esp, 4
mov edi, ebx
mov byte [esp + 0x38], 1
call fcn.00402130
push str.unists.exe
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.00403870
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x30], 3
call fcn.00404750
mov byte [esp + 0x2c], 1
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402025
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0040fb6f
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40203f
push 0x80004005
call fcn.004049d0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x44c5b8
lea ecx, [esp + 0x18]
push 0x44c610
push ecx
mov byte [esp + 0x38], 4
call fcn.00404600
mov esi, dword [esp + 0x20]
add esp, 0xc
push 0
push ecx
add esi, 0xfffffff0
mov dword [esp + 0x24], esp
mov ebp, esp
push esi
call fcn.00404850
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x38], 5
mov ebp, dword [esp + 0x1c]
add ebp, 0xfffffff0
mov dword [esp + 0x2c], esp
mov edi, esp
push ebp
call fcn.00404850
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov edi, ebx
mov byte [esp + 0x38], 4
call fcn.00402130
mov byte [esp + 0x2c], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4020d1
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [esp + 0x2c], 0
lea ecx, [ebp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020f0
mov ecx, dword [ebp]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebp
call edx
mov dword [esp + 0x2c], 0xffffffff
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402118
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x20
ret 4
Function at 0x4041c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4041d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404214
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x404210
lea ebx, [ebx]
cmp esi, eax
jae 0x404214
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x404200
cmp esi, eax
jb 0x40421a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x406830
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x406837
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x406914
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 + 0x44e478]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x44e478]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x44e478]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e478]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e478]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e478]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e478]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x44e478]
inc ecx
sub edx, 8
sub esi, 1
jne 0x406850
pop edi
test edx, edx
je 0x40693b
jmp 0x406920
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x44e478]
inc ecx
sub edx, 1
jne 0x406920
not eax
pop esi
ret

Function at 0x406940
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 + 0x44e478]
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 + 0x44e478]
mov dword [edx + 8], ecx
ret

Function at 0x406990
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 + 0x44e478]
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 + 0x44e478]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x407140
Capabilities:
Read file on windows

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

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x4071d3
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4071cd
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x4071ff
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x4071e5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.00434da0
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x407216
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x407210
cmp byte [esi + 8], 0
je 0x407210
or eax, 0xffffffff
add esp, 8
ret
Function at 0x407300
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x407345
cmp byte [esi + 1], 0
je 0x40734d
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 ebp
je 0x407362
cmp byte [esi + 1], 0
je 0x407354
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x40736b
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x40731e
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x40736b
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x40737f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.0042e04c
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40739d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x4074b1
jmp 0x4073c0
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x4073d1
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x4073ea
mov ebp, 0x404
cmp byte [esi], 0
je 0x40740f
cmp byte [esi + 1], 0
je 0x4074b1
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 0x407412
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x40743a
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407434
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x407460
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x40744b
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.00434da0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x4074b1
lea eax, [ebp - 3]
test eax, eax
jl 0x40749c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x40748c
cmp byte [eax + ebx + 1], 0x4b
jne 0x40748c
cmp byte [eax + ebx + 2], 5
jne 0x40748c
cmp byte [eax + ebx + 3], 6
je 0x407492
test eax, eax
jge 0x407470
jmp 0x40749c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x4074b1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x4073b4
push ebx
call fcn.0042df6d
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret