joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000663a
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.1001901c
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.1001901c
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.1001901c
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.1001901c
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.1001901c
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.1001901c
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x10006641
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov edx, dword [0x10047b00]
push ebx
push esi
mov esi, ecx
mov ebx, 0x10000
cmp esi, 0x7ff80000
push edi
mov edi, 0xfff80000
lea eax, [esi - 0x7ff80000]
cmova ebx, eax
cmp esi, 0x80000000
lea eax, [esi + 0x7ff80000]
cmovb edi, eax
mov eax, dword [0x10047af4]
test edx, edx
jne 0x10006682
test eax, eax
je 0x10006695
mov edx, eax
mov dword [0x10047b00], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x10006695
cmp ecx, ebx
jb 0x10006695
cmp ecx, edi
jbe 0x10006779
mov edx, eax
test eax, eax
jmp 0x100066b7
test edx, edx
je 0x100066b2
mov eax, dword [edx + 8]
test eax, eax
je 0x100066b2
cmp eax, ebx
jb 0x100066b2
cmp eax, edi
jbe 0x10006779
mov edx, dword [edx + 4]
test edx, edx
mov dword [0x10047b00], edx
jne 0x1000669b
and esi, 0xffff0000
cmp esi, 0x40000000
jbe 0x100066f9
lea ecx, [esi - 0x40000000]
mov edx, esi
call fcn.1001901c
mov edx, eax
test edx, edx
jne 0x1000673f
lea edx, [esi - 0x40000000]
mov ecx, ebx
call fcn.1001901c
mov edx, eax
test edx, edx
jne 0x1000673f
cmp esi, 0x40000000
jae 0x10006721
lea edx, [esi + 0x40000000]
mov ecx, esi
call fcn.1001901c
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
lea ecx, [esi + 0x40000000]
call fcn.1001901c
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, esi
mov ecx, ebx
call fcn.1001901c
mov edx, eax
test edx, edx
jne 0x1000673f
mov edx, edi
mov ecx, esi
call fcn.1001901c
mov edx, eax
test edx, edx
je 0x1000679e
xor ecx, ecx
mov dword [edx], 0x52727464
mov dword [edx + 8], ecx
mov esi, 0x38b
mov eax, dword [0x10047af4]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x10047b00], edx
mov dword [0x10047af4], edx
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x10006769
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, ebx
jb 0x1000679e
cmp esi, edi
ja 0x1000679e
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call fcn.1000aff4
add esp, 0xc
mov eax, esi
jmp 0x100067a0
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x1000783d
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push 0x24
push 0x10041c30
call fcn.10009a30
mov dword [ebp - 0x30], edx
mov ebx, ecx
xor esi, esi
test ebx, ebx
jne 0x1000785d
push esi
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
mov ebx, eax
mov dword [ebp - 4], esi
mov eax, 0x5a4d
cmp word [ebx], ax
je 0x10007874
push 0xc1
jmp 0x10007985
mov edi, dword [ebx + 0x3c]
cmp dword [edi + ebx], 0x4550
je 0x1000788a
push 0xbf
jmp 0x10007985
cmp word [edi + ebx + 0x14], si
je 0x10007980
mov edi, dword [edi + ebx + 0x78]
lea eax, [edi + ebx]
neg edi
sbb edi, edi
and edi, eax
mov dword [ebp - 0x28], edi
je 0x10007980
mov ecx, dword [edi + 0x1c]
lea eax, [ecx + ebx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov dword [ebp - 0x34], ecx
mov edx, dword [edi + 0x20]
lea eax, [edx + ebx]
neg edx
sbb edx, edx
and edx, eax
mov dword [ebp - 0x2c], edx
mov edx, dword [edi + 0x24]
lea eax, [edx + ebx]
neg edx
sbb edx, edx
and edx, eax
mov dword [ebp - 0x24], edx
mov eax, esi
mov dword [ebp - 0x1c], esi
cmp eax, dword [edi + 0x14]
jae 0x10007957
test ecx, ecx
je 0x100078f4
mov edx, dword [ecx + eax*4]
lea eax, [edx + ebx]
neg edx
sbb edx, edx
and edx, eax
jmp 0x100078f6
mov edx, esi
mov ecx, esi
mov eax, esi
mov dword [ebp - 0x20], esi
cmp eax, dword [edi + 0x18]
jae 0x10007927
mov edi, dword [ebp - 0x24]
movzx eax, word [edi + eax*2]
cmp eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x28]
jne 0x1000794e
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1000794a
mov ecx, dword [ebp - 0x20]
mov ecx, dword [eax + ecx*4]
lea eax, [ecx + ebx]
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [edi + 0x10]
add eax, dword [ebp - 0x1c]
push edx
push ecx
push eax
push dword [ebp - 0x30]
mov eax, 0x10006382
call eax
test eax, eax
je 0x10007957
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x34]
jmp 0x100078dd
mov ecx, esi
jmp 0x10007927
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
jmp 0x100078fd
push esi
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x10007994
push 0xc0
call dword [sym.imp.kernel32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x1001901c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x1001902b
pop dword [ebp - 0x3c]
mov eax, 0xb7d934fe
add eax, 0x58285b2d
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x41765
push 0
mov eax, 0x8ace215f
sub eax, 0x7acaf10b
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x3e44
mov ebx, eax
mov edx, 0xd2a4fb57
sub edx, 0xc2a04557
add edx, dword [ebp - 0x3c]
mov edi, 0x64bae8bb
add edi, 0xe0457154
xor dword [ebp - 0x18], 0xd27ee116
mov esi, dword [edx]
add dword [ebp - 8], edx
add esi, edi
mov dword [ebx], esi
xor dword [ebp - 0x28], ebx
add ebx, 0x1aba8bd1
sub ebx, 0x1aba8bcd
add edx, 4
loop 0x10019084
add eax, 0x54b1c342
add eax, 0xab4f28a1
mov ebx, eax
add eax, 5
mov ecx, 0xdaeea537
sub ecx, 0xcaeea537
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x403436
Capabilities:
Move file

Disassembly:
push 0x1c
mov eax, 0x465c1b
call fcn.0043d25b
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x403606
push dword [ebp + 8]
push dword [0x498a28]
call fcn.0044913a
pop ecx
pop ecx
test eax, eax
jne 0x403474
push str.Updated_location_is_same
call fcn.004064a1
pop ecx
jmp 0x4035f3
lea ecx, [ebp - 0x10]
call fcn.0040431c
lea ecx, [ebp - 0x14]
call fcn.0040431c
push str.MeetingLauncherTemp.exe
mov byte [ebp - 4], 2
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov ebx, 0x47d25c
push ebx
push eax
call fcn.00404e31
push 0x47d5e8
push dword [ebp + 8]
lea eax, [ebp - 0x14]
push ebx
push eax
call fcn.00404e31
mov esi, dword [ebp - 0x10]
xor ebx, ebx
inc ebx
add esp, 0x20
cmp dword [esi - 4], ebx
jle 0x4034cd
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.00404809
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
cmp dword [edi - 4], ebx
jle 0x4034e3
push dword [edi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00404809
mov edi, dword [ebp - 0x14]
push esi
push edi
call fcn.00448fb7
pop ecx
pop ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.File_rename__d__d____s_:__s
call fcn.004064a1
add esp, 0x14
lea ecx, [ebp - 0x1c]
call fcn.0040431c
mov byte [ebp - 4], 3
mov eax, dword [ebp + 8]
cmp dword [eax - 4], ebx
jle 0x403525
push dword [eax - 0xc]
lea ecx, [ebp + 8]
call fcn.00404809
mov eax, dword [ebp + 8]
push 0x47d5e8
push eax
mov esi, 0x47d25c
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00404e31
add esp, 0x10
lea ecx, [ebp - 0x18]
call fcn.0040431c
mov byte [ebp - 4], 4
mov eax, dword [0x498a28]
cmp dword [eax - 4], ebx
jle 0x403565
push dword [eax - 0xc]
mov ecx, 0x498a28
call fcn.00404809
mov eax, dword [0x498a28]
push 0x47d5e8
push eax
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.00404e31
mov esi, dword [ebp - 0x18]
add esp, 0xc
or dword [ebp - 0x20], 0xffffffff
mov ebx, esp
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x24], ebx
lea eax, [esi - 0x10]
push eax
call fcn.00404a80
add eax, 0x10
mov dword [ebx], eax
mov byte [ebp - 4], 5
mov ebx, esp
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov dword [ebp - 0x24], ebx
push eax
mov dword [ebp - 0x24], eax
call fcn.00404a80
pop ecx
add eax, 0x10
lea ecx, [ebp - 0x20]
mov dword [ebx], eax
mov byte [ebp - 4], 4
call fcn.0040dea5
push dword [ebp - 0x20]
push esi
push str.ZohoMeetingLauncher_exe_copied_from__s_to_localapp_:__d
call fcn.00406531
add esp, 0x14
lea ecx, [esi - 0x10]
call fcn.00401696
mov ecx, dword [ebp - 0x24]
call fcn.00401696
lea ecx, [edi - 0x10]
call fcn.00401696
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401696
mov ecx, dword [ebp + 8]
lea ecx, [ecx - 0x10]
call fcn.00401696
call fcn.0043d229
ret 4
push 0x80004005
call fcn.00401566
int3
Function at 0x4055d8
Capabilities:
Check if file exists
Delete file

Disassembly:
push 0x10
mov eax, 0x465e69
call fcn.0043d25b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x1c
pop edx
lea ecx, [ebp - 0x10]
call fcn.0040dee0
mov esi, str.VirtualStoreProgramData_
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.00443870
add esp, 0xc
lea ecx, [ebp - 0x10]
push eax
push esi
call fcn.00404875
mov esi, str.ZohoMeeting
push esi
call fcn.00443870
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00404875
mov esi, str.log_
push esi
call fcn.00443870
pop ecx
push eax
push esi
lea ecx, [ebp - 0x10]
call fcn.00404875
mov eax, dword [0x4989b8]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00404875
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4056e3
mov eax, dword [0x4989b4]
add eax, 0xfffffff0
push eax
call fcn.00404a80
add eax, 0x10
pop ecx
mov dword [ebp - 0x14], eax
inc ebx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
mov eax, dword [0x4989b8]
push dword [eax - 0xc]
push eax
call fcn.00404875
mov eax, dword [ebp - 0x10]
lea edi, [ebp - 0x18]
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x18], esp
mov esi, esp
push eax
mov dword [ebp - 0x1c], esi
call fcn.00404a80
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 2
mov esi, esp
mov eax, dword [0x4989b8]
add eax, 0xfffffff0
mov dword [ebp - 0x1c], esi
push eax
call fcn.00404a80
pop ecx
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.0040dea5
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401696
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401696
mov eax, ebx
call fcn.0043d229
ret
Function at 0x407dd8
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x230
mov eax, dword [0x49353c]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebp
push esi
push edi
xor ebp, ebp
push ebp
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x228
mov edi, eax
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.00440370
add esp, 0xc
mov dword [esp + 0xc], 0x22c
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x407e17
lea eax, [esp + 0x30]
push str.zohomeeting.exe
push eax
call fcn.00447af5
pop ecx
pop ecx
test eax, eax
jne 0x407e5a
push dword [esp + 0x14]
push ebp
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x407e27
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x238]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0043caa2
add esp, 0x230
ret
Function at 0x4092f3
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x4667b7
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x49353c]
xor eax, ebp
mov dword [ebp + 0x238], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
xor ebx, ebx
lea eax, [ebp + 0x30]
push ebx
push eax
call fcn.00440370
add esp, 0xc
mov dword [ebp - 0x10], ebx
lea ecx, [ebp + 0x18]
push str.SoftwareMicrosoftDirectXUserGpuPreferences
call fcn.00403db0
push str.GpuPreference1_
lea ecx, [ebp]
mov dword [ebp - 4], ebx
call fcn.00403db0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], ebx
call fcn.0040431c
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x1c
pop edx
lea ecx, [ebp - 0x14]
call fcn.0040dee0
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x14]
cmp dword [eax - 4], 1
jle 0x40939f
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
call fcn.00404809
mov eax, dword [ebp - 0x14]
push str.ZohoZohoMeetingZohoMeeting.exe
push eax
lea eax, [ebp - 0x18]
push 0x47d25c
push eax
call fcn.00404e31
add esp, 0x10
lea ecx, [ebp - 0x10]
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
mov edi, 0xf003f
cmovae eax, dword [ebp + 0x18]
push ecx
push edi
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x40941c
push str.Creating_GPU_preference_reg_key
call fcn.004064a1
cmp dword [ebp + 0x2c], 8
lea eax, [ebp + 0x18]
pop ecx
cmovae eax, dword [ebp + 0x18]
lea ecx, [ebp - 0x10]
push ebx
push ecx
push ebx
push edi
push ebx
push ebx
push ebx
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edi, eax
test edi, edi
jne 0x40946c
push str.GPU_preference_Key_created
call fcn.004064a1
pop ecx
push str.Creating_GPU_preference_reg_value
call fcn.004064a1
cmp dword [ebp + 0x14], 8
lea eax, [ebp]
cmovae eax, dword [ebp]
push eax
push 0x47d290
lea eax, [ebp + 0x30]
push 0x104
push eax
call fcn.0040678c
lea eax, [ebp + 0x30]
push eax
call fcn.00443870
add esp, 0x18
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp + 0x30]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
cmp dword [ebp - 0x10], 0
je 0x40947e
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x10], ebx
push edi
push str.Ret_value_for_CreateGPUPreferenceRegKey__:__d
call fcn.004064a1
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
lea ecx, [ecx - 0x10]
call fcn.00401696
lea ecx, [esi - 0x10]
call fcn.00401696
lea ecx, [ebp]
call fcn.00404442
lea ecx, [ebp + 0x18]
call fcn.00404442
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.0043caa2
add ebp, 0x23c
leave
ret
Function at 0x40b85b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x40b862
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
not ecx
cmp esi, 8
jb 0x40b91f
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 + 0x47b990]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47b990]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47b990]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47b990]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47b990]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47b990]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47b990]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47b990]
sub edi, 1
jne 0x40b878
pop edi
test esi, esi
je 0x40b93b
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x47b990]
inc edx
sub esi, 1
jne 0x40b923
not ecx
mov eax, ecx
pop esi
ret

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

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

Function at 0x40c060
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebx, edx
mov ebp, ecx
mov ecx, ebx
imul ecx, dword [esp + 0x10]
cmp byte [edi], 0
je 0x40c097
push 0
lea eax, [esp + 0x14]
push eax
push ecx
push ebp
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40c091
mov byte [edi + 8], 1
mov eax, dword [esp + 0x10]
jmp 0x40c0bf
mov edx, dword [edi + 0x1c]
push esi
mov esi, dword [edi + 0x18]
sub esi, edx
lea eax, [edx + ecx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ecx
mov ecx, dword [edi + 0x14]
push esi
add ecx, edx
push ecx
push ebp
call fcn.00440710
add esp, 0xc
mov eax, esi
add dword [edi + 0x1c], esi
pop esi
pop edi
xor edx, edx
pop ebp
div ebx
pop ebx
ret
Function at 0x40c851
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x40c99b
xor ebp, ebp
cmp dword [edi + 0x18], ebp
je 0x40c99b
cmp dword [edi + 0x7c], ebp
je 0x40c879
call fcn.0040cbc8
lea eax, [esp + 0x14]
mov ecx, edi
push eax
lea eax, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
call fcn.0040c6b3
pop ecx
pop ecx
test eax, eax
je 0x40c89b
push 0xffffffffffffff99
jmp 0x40c99d
push 0x84
call fcn.0044ac16
mov esi, eax
pop ecx
test esi, esi
jne 0x40c8b3
push 0xffffffffffffff98
jmp 0x40c99d
push 0x4000
call fcn.0044ac16
mov dword [esi], eax
mov dword [esi + 0x4c], ebp
pop ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x44], ecx
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x48], ecx
test eax, eax
jne 0x40c8de
push esi
call fcn.00443733
pop ecx
jmp 0x40c8ac
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], ebp
mov dword [esi + 0x50], ebp
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], ebp
test ecx, ecx
je 0x40c91e
lea ecx, [esi + 4]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call fcn.0040bb17
test eax, eax
jne 0x40c91e
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x40c942
mov al, byte [edi + 0x39]
jmp 0x40c945
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
xor eax, eax
push 0xc
test cl, cl
mov dword [esi + 0x70], 0x12345678
pop edx
cmovne eax, edx
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x40c984
mov dl, byte [ebx]
test dl, dl
je 0x40c984
lea ecx, [esi + 0x70]
call fcn.0040b941
add ebx, 1
jne 0x40c971
mov eax, dword [esp + 0x18]
and dword [esi + 8], ebp
add eax, 0x1e
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x7c], esi
jmp 0x40c99e
push 0xffffffffffffff9a
pop eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40ccbd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
jne 0x40cd3e
cmp dword [esi + 4], 0xffffffff
jne 0x40cd3e
lea edi, [esi + 0x240]
mov ebx, 0x104
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push edi
call fcn.00443870
pop ecx
movzx eax, word [esi + eax*2 + 0x23e]
cmp eax, 0x5c
je 0x40cd0d
cmp eax, 0x2f
je 0x40cd0d
push 0x47ea4c
push ebx
push edi
call fcn.0044aaac
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ecx
mov ecx, dword [ebp + 8]
call fcn.0040bf42
pop ecx
pop ecx
test eax, eax
jne 0x40cd25
mov eax, dword [ebp - 4]
jmp 0x40cd43
mov ecx, eax
call fcn.0040c2e7
xor ecx, ecx
mov dword [esi], eax
test eax, eax
mov edx, 0x200
cmove ecx, edx
mov eax, ecx
jmp 0x40cd43
mov eax, 0x1000000
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40d1ac
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x49353c]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [edx]
push ebx
mov ebx, ecx
test ax, ax
je 0x40d264
push esi
push edi
mov edi, edx
mov ecx, edx
mov esi, eax
cmp si, 0x2f
je 0x40d1e2
cmp si, 0x5c
jne 0x40d1e4
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
mov esi, eax
test ax, ax
jne 0x40d1d6
cmp edi, edx
je 0x40d22f
mov esi, edi
lea eax, [ebp - 0x20c]
sub esi, edx
and esi, 0xfffffffe
push esi
push edx
push eax
call fcn.00440710
add esp, 0xc
cmp esi, 0x208
jae 0x40d271
xor eax, eax
lea edx, [ebp - 0x20c]
mov ecx, ebx
mov word [ebp + esi - 0x20c], ax
call fcn.0040d1ac
add edi, 2
push ebx
mov esi, 0x104
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0044aa48
push edi
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0044aaac
add esp, 0x18
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0043caa2
leave
ret
call fcn.0043d039
int3