joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5c961c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.005bb12d
xor ebx, ebx
cmp dword [0x661930], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x5c96f2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x5c97d2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6050e0
push edi
call esi
cmp eax, ebx
je 0x5c97d2
push eax
call fcn.005bb0bf
mov dword [esp], 0x6050d0
push edi
mov dword [0x661930], eax
call esi
push eax
call fcn.005bb0bf
mov dword [esp], 0x6050bc
push edi
mov dword [0x661934], eax
call esi
push eax
call fcn.005bb0bf
mov dword [0x661938], eax
lea eax, [ebp - 0xc]
push eax
call fcn.005b87f3
test eax, eax
pop ecx
pop ecx
je 0x5c96c0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005b07f3
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x5c96f2
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.005bb0bf
cmp eax, ebx
pop ecx
mov dword [0x661940], eax
je 0x5c96f2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005bb0bf
pop ecx
mov dword [0x66193c], eax
mov eax, dword [0x66193c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x5c9777
cmp dword [0x661940], ecx
je 0x5c9777
push eax
call fcn.005bb136
push dword [0x661940]
mov esi, eax
call fcn.005bb136
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x5c9777
cmp edi, ebx
je 0x5c9777
call esi
cmp eax, ebx
je 0x5c9744
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5c9744
test byte [ebp - 0x18], 1
jne 0x5c9777
lea eax, [ebp - 0x10]
push eax
call fcn.005b882a
test eax, eax
pop ecx
je 0x5c975f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.005b07f3
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x5c976e
or dword [ebp + 0x10], 0x200000
jmp 0x5c97b2
or dword [ebp + 0x10], 0x40000
jmp 0x5c97b2
mov eax, dword [0x661934]
cmp eax, dword [ebp - 8]
je 0x5c97b2
push eax
call fcn.005bb136
cmp eax, ebx
pop ecx
je 0x5c97b2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x5c97b2
mov eax, dword [0x661938]
cmp eax, dword [ebp - 8]
je 0x5c97b2
push eax
call fcn.005bb136
cmp eax, ebx
pop ecx
je 0x5c97b2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x661930]
call fcn.005bb136
cmp eax, ebx
pop ecx
je 0x5c97d2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5c97d4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5cd73e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x65b4e4]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.005cd6d3
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.005b4520
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x5cd78d
cmp dword [ebp - 0x1c], 5
jb 0x5cd7a5
jmp 0x5cd7a1
cmp dword [ebp - 0x10], 1
jne 0x5cd7a5
cmp dword [ebp - 0x1c], 4
ja 0x5cd7a1
jne 0x5cd7a5
cmp dword [ebp - 0x18], 0
jbe 0x5cd7a5
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x605a3c
call fcn.005cd5a7
test eax, eax
jge 0x5cd7c6
mov byte [0x661e18], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.005b0968
add ebp, 0x78
leave
ret
Function at 0x101438b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
cmp dword [ebp + 8], esi
mov dword [ebp - 4], esi
jne 0x10143a0
xor eax, eax
jmp 0x10143fe
push edi
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10143c5
xor eax, eax
jmp 0x10143fd
push esi
lea eax, [ebp - 4]
push eax
push 2
lea eax, [ebp + 0xa]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10143f4
cmp dword [ebp - 4], 2
jne 0x10143f4
cmp word [ebp + 0xa], 0xfeff
je 0x10143f1
cmp word [ebp + 0xa], 0xfffe
jne 0x10143f4
xor esi, esi
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
leave
ret 4

Function at 0x1016ab9
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1024510]
push ebx
push esi
mov esi, dword [sym.imp.SHELL32.dll_DragQueryFileW]
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push 0xffffffffffffffff
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
call esi
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x218], eax
lea eax, [ebp - 0x220]
push eax
call fcn.01008a3e
cmp dword [ebp - 0x218], ebx
jbe 0x1016b62
push 0x104
lea eax, [ebp - 0x210]
push eax
push ebx
push edi
call esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0x10
je 0x1016b59
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x214]
mov dword [ebp - 0x220], eax
lea eax, [ebp - 0x220]
push eax
call fcn.01008a80
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x210]
push eax
call fcn.0101bd10
inc ebx
cmp ebx, dword [ebp - 0x218]
jb 0x1016b07
mov ecx, dword [ebp - 0x214]
lea eax, [ebp - 0x220]
push eax
call fcn.01008a80
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor eax, eax
pop ebx
call fcn.010179d2
leave
ret 4

Function at 0x101a06d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1006cc8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101a0c5
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004d10
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101a0b8
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101a0c7
xor eax, eax
pop esi
leave
ret 4
Function at 0x10364bb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
imul eax, eax, 0xf
push eax
movzx eax, byte [edi]
jmp 0x1036495
lea esi, [ebx]
add edi, dword [edx + 0x1c]
add esi, dword [edx + 0x24]
lea esi, [esi + ecx*2]
jmp 0x103b119
lea edi, [edi + 1]
sub dword [esp], eax
cmp byte [edi], 1
pop eax
ja 0x1036400
jmp 0x1036589
mov edx, ebx
mov esi, ebx
jmp 0x1036524
ret
mov eax, ebx
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
jmp 0x103b0b6
cmp ecx, dword [edx + 0x18]
je 0x10364ee
push 0
pop eax
jmp 0x1036400
xor eax, 0x6cf765e7
sbb eax, dword [esp + 4]
jne 0x103b0ba
lea edi, [ebx]
jmp 0x103640c
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
inc ecx
lea edi, [eax + ebx]
jmp 0x1036578
push ebx
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
ret 4

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x432030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4031a0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x409044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40903c]
sub esp, 4
test ebx, ebx
je 0x4031eb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4031e4
test esi, esi
je 0x4031e4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4031c0
mov dword [esp], 0x409044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4033d0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x403420
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4034f4
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x40345e
cmp eax, 4
jne 0x403480
test esi, esi
je 0x403472
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x403464
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x4034bf
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x4034b1
cmp ecx, 0x40
je 0x403472
cmp ecx, 4
je 0x403472
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004033d0
lea esi, [esi]
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x408f6c
mov ecx, 0x588b2727
nop
nop
nop
test eax, eax
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42e3d0
mov ecx, 0x3ed41385
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408f6c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x380c1ddc
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..pdata_1
nop
cmp eax, 0
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e3d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x45dd5e55
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0xd32510
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x214
mov eax, dword [0xd5d094]
xor eax, esp
mov dword [esp + 0x210], eax
push edi
push 0x206
xor edi, edi
lea ecx, [esp + 0x12]
xor eax, eax
push edi
push ecx
mov word [esp + 0x18], ax
call fcn.00d44250
add esp, 0xc
mov dword [esp + 4], edi
cmp esi, edi
je 0xd325df
mov eax, 0xd58bbc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xd32555
sub eax, edx
sar eax, 1
je 0xd325df
lea edx, [esp + 0xc]
push edx
push 0x104
call dword [fcn.00d55124]
push 0xd58bbc
lea eax, [esp + 0x10]
push 0x104
push eax
call fcn.00d426bd
push 0xd58bb4
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00d42164
mov eax, dword [esp + 0x1c]
add esp, 0x18
cmp eax, edi
je 0xd325df
push eax
push 1
push 0x200
push esi
call fcn.00d429da
mov eax, dword [esp + 0x14]
push eax
call fcn.00d42412
add esp, 0x14
mov eax, 1
pop edi
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.00d41ee8
add esp, 0x214
ret
mov ecx, dword [esp + 0x214]
mov eax, edi
pop edi
xor ecx, esp
call fcn.00d41ee8
add esp, 0x214
ret

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

Disassembly:
sub esp, 8
push ebx
push esi
push edi
push 0x3e8
mov dword [esp + 0x10], 0
call dword [0xd55140]
push 0xd58bb4
lea eax, [esp + 0x10]
push 0xd5fde8
push eax
call fcn.00d42164
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0xd328f1
push 2
push 0
push eax
call fcn.00d42e4f
mov ecx, dword [esp + 0x18]
add esp, 0xc
push ecx
call fcn.00d43071
mov esi, eax
add esp, 4
push esi
call fcn.00d430df
mov edx, dword [esp + 0x10]
add esp, 4
push 0
push 0
push edx
mov edi, eax
call fcn.00d42e4f
mov eax, dword [esp + 0x18]
add esp, 0xc
push eax
push esi
push 1
push edi
call fcn.00d429da
add esp, 0x10
cmp esi, eax
jne 0xd328d3
call dword [0xd5512c]
push eax
call fcn.00d42d91
add esp, 4
call fcn.00d42da3
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul qword [0xd5ad90]
fmul qword [0xd5ad88]
fadd qword [0xd5ad80]
call fcn.00d44af0
cmp esi, eax
jl 0xd328d3
mov ebx, edi
sub ebx, eax
add ebx, esi
call fcn.00d32770
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00d42412
add esp, 4
push 0xd5fde8
call dword [0xd5511c]
push 0xd588c4
lea edx, [esp + 0x10]
push 0xd5fde8
push edx
call fcn.00d42164
mov eax, dword [esp + 0x18]
add esp, 0xc
test eax, eax
je 0xd328f1
push eax
push esi
push 1
push edi
call fcn.00d42319
add esp, 0x10
mov eax, dword [esp + 0xc]
test eax, eax
je 0xd328e4
push eax
call fcn.00d42412
add esp, 4
test edi, edi
je 0xd328f1
push edi
call fcn.00d41edd
add esp, 4
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0xd347a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
xor ebp, ebp
push esi
mov ebx, ecx
push edi
mov edi, eax
mov dword [esp + 0x10], ebp
cmp ebx, ebp
je 0xd34891
cmp edi, 0xa
jb 0xd34891
lea eax, [edi*4]
mov dword [esp + 0x14], eax
inc eax
push eax
call fcn.00d41f46
add esp, 4
mov esi, eax
push esi
push ebx
lea edx, [esp + 0x1c]
mov ecx, edi
call fcn.00d34620
add esp, 8
test eax, eax
je 0xd3488a
mov eax, dword [esp + 0x1c]
push 0xd588c4
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.00d42164
mov eax, dword [esp + 0x1c]
add esp, 0xc
test eax, eax
jne 0xd34815
lea ebp, [eax - 2]
jmp 0xd34840
mov edi, dword [esp + 0x14]
push eax
push edi
push 1
push esi
call fcn.00d42319
add esp, 0x10
cmp eax, edi
je 0xd34857
mov ebp, 0xfffffffe
mov eax, dword [esp + 0x10]
test eax, eax
je 0xd34840
push eax
call fcn.00d42412
add esp, 4
test esi, esi
je 0xd3484d
push esi
call fcn.00d42010
add esp, 4
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov edi, dword [0xd5512c]
call edi
xor edx, edx
mov ecx, 0x1f4
div ecx
mov ebx, edx
call edi
xor edx, edx
mov ecx, 0x3e8
div ecx
mov eax, dword [esp + 0x10]
push eax
push ebx
push 1
add edx, esi
push edx
call fcn.00d42319
add esp, 0x10
jmp 0xd3482f
mov ebp, 0xfffffffd
jmp 0xd3482f
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0xd36610
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0xd36617
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0xd366f4
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 + 0xd5a720]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xd5a720]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0xd5a720]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xd5a720]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xd5a720]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xd5a720]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xd5a720]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0xd5a720]
inc ecx
sub edx, 8
sub esi, 1
jne 0xd36630
pop edi
test edx, edx
je 0xd3671b
jmp 0xd36700
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0xd5a720]
inc ecx
sub edx, 1
jne 0xd36700
not eax
pop esi
ret

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

Function at 0xd36770
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 + 0xd5a720]
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 + 0xd5a720]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret
Function at 0xd37b70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0xd37b8e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0xd37b82
cmp dword [edi + 0x7c], ebx
je 0xd37b9d
call fcn.00d37f50
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00d378e0
add esp, 0xc
test eax, eax
je 0xd37bc4
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x7e
call fcn.00d41f46
mov esi, eax
add esp, 4
cmp esi, ebx
je 0xd37c02
push 0x4000
call fcn.00d41f46
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0xd37c0f
push esi
call fcn.00d42010
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0xd37c57
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.00d36a30
test eax, eax
jne 0xd37c57
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0xd37c7e
mov cl, byte [edi + 0x39]
mov byte [esi + 0x7d], cl
jmp 0xd37c84
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x7d], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x6d]
mov dword [esi + 0x79], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
cmp ebp, ebx
je 0xd37cc1
lea ecx, [ecx]
mov cl, byte [ebp]
cmp cl, bl
je 0xd37cc1
call fcn.00d36720
add ebp, 1
jne 0xd37cb0
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x100041f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
xor eax, eax
push esi
mov esi, ecx
push ebx
mov ebx, edx
lea edx, [ebp - 0x214]
sub esp, 0x214
lea esi, [esi]
movzx ecx, word [edi + eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x10004210
cmp word [ebp - 0x214], 0
mov edi, dword [sym.imp.ucrtbase.dll_wcscat]
je 0x10004260
mov eax, edx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x10004238
mov ecx, eax
mov edi, dword [sym.imp.ucrtbase.dll_wcscat]
sub ecx, edx
sar ecx, 1
cmp eax, edx
je 0x10004260
cmp word [ebp + ecx*2 - 0x216], 0x5c
jne 0x10004300
mov dword [esp], edx
mov dword [esp + 4], 0x10014dd0
call edi
lea edx, [ebp - 0x214]
mov dword [esp + 4], ebx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
jne 0x100042a8
jmp 0x1000432c
test eax, eax
je 0x100042ee
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
je 0x10004320
mov eax, dword [ebx]
and eax, 0x10
test esi, esi
jne 0x10004290
test eax, eax
je 0x10004294
lea edx, [ebx + 0x2c]
mov dword [esp + 4], 0x10014dd4
mov dword [esp], edx
mov dword [ebp - 0x218], edx
call dword [sym.imp.ucrtbase.dll_wcscmp]
mov edx, dword [ebp - 0x218]
test eax, eax
je 0x10004294
mov dword [esp + 4], 0x10014dda
mov dword [esp], edx
call dword [sym.imp.ucrtbase.dll_wcscmp]
test eax, eax
je 0x10004294
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], edx
mov dword [esp + 4], 0x10014dcc
call edi
lea edx, [ebp - 0x214]
jmp 0x10004260
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindClose]
sub esp, 4
lea esp, [ebp - 0xc]
xor edi, edi
pop ebx
mov eax, edi
pop esi
pop edi
pop ebp
ret

Function at 0x10004620
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x18
mov ebx, dword [ebp + 0xc]
test byte [0x10012028], 8
jne 0x100046b0
mov dword [ebx], 0
mov dword [esp], 0x1c
call dword [sym.imp.ucrtbase.dll_malloc]
mov esi, eax
test eax, eax
je 0x100046f1
mov dword [eax + 0xc], sym._drivecoll_QueryInterface_12
mov dword [eax + 0x10], 1
call dword [sym.imp.kernel32.dll_GetLogicalDrives]
mov edx, 1
mov dword [esi + 0x14], eax
test eax, eax
je 0x100046e8
lea esi, [esi]
lea ecx, [eax - 1]
mov edi, edx
add edx, 1
and eax, ecx
jne 0x10004678
mov dword [esi + 0x18], edi
lea edi, [esi + 0xc]
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], 0x10016970
call sym._init_classinfo
mov dword [ebx], edi
xor eax, eax
add esp, 0x18
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], str._p__p_n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.filesys_get_Drives
mov dword [esp + 4], 0x10012028
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0_1
jmp 0x10004635
mov dword [esi + 0x18], 0
jmp 0x10004687
mov eax, 0x8007000e
jmp 0x100046a2