joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4406f0
Capabilities:
Encode data using xor
Reference sql statements
Reference wmi statements

Disassembly:
push 0xffffffffffffffff
push 0x474f33
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa8
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.004152e0
lea ecx, [esp + 0x44]
mov dword [esp + 0xbc], 0
call fcn.004396d0
xor eax, eax
xor ecx, ecx
mov dword [esp + 0xc], eax
mov byte [esp + 0xbc], 1
mov word [esp + 0x10], ax
mov eax, dword [esi]
and eax, 1
or eax, ecx
je 0x44084f
add esi, 8
push ecx
push 0x48df90
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0043a7b0
cmp eax, 1
mov edi, 6
jne 0x44078c
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], edi
push ecx
push 0x48df88
mov ecx, esi
call fcn.0043a880
cmp eax, 1
je 0x4408af
push 0
push 0x48df1c
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0043a7b0
cmp eax, 1
jne 0x4407c7
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push edx
push eax
push 0x48defc
mov ecx, esi
mov dword [esp + 0x20], edi
call fcn.0043a990
cmp eax, 1
je 0x4408af
push 0x48dee4
lea ecx, [esp + 0x48]
xor edi, edi
call fcn.004397c0
cmp eax, 1
jne 0x440828
push 0x48de58
lea ecx, [esp + 0x48]
call fcn.004399c0
cmp eax, 1
jne 0x440816
lea ecx, [esp + 0x44]
call fcn.00460740
test eax, eax
je 0x440816
push edi
lea ecx, [esp + 0x1c]
push edi
push ecx
push 0x48de40
mov ecx, eax
call fcn.00439f70
cmp eax, 1
jne 0x440816
mov edi, eax
lea ecx, [esp + 0x44]
call fcn.00439990
cmp edi, 1
je 0x4408af
push 0x100
lea edx, [esp + 0x1c]
push 0x4983e0
push edx
push 0x48dd4c
push 0x48bbd8
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0043b2d0
jmp 0x4408af
add esi, 8
push 0
push 0x48ddd4
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0043a7b0
cmp eax, 1
jne 0x44088d
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push ecx
push 0x48ddb4
mov ecx, esi
mov dword [esp + 0x20], 6
call fcn.0043a990
cmp eax, 1
je 0x4408af
push 0
lea edx, [esp + 0x1c]
push 0x4983e0
push edx
push 0x48dd4c
push 0x48dd60
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, esi
call fcn.0043b2d0
lea ecx, [esp + 0x18]
call fcn.00416550
test eax, eax
je 0x4408ef
lea ecx, [esp + 0x18]
xor edi, edi
call fcn.00416550
test eax, eax
jle 0x440915
push edi
lea ecx, [esp + 0x1c]
call fcn.004164e0
mov bl, byte [esp + 0xc]
lea ecx, [esp + 0x18]
xor bl, al
inc edi
mov byte [esp + 0xc], bl
call fcn.00416550
cmp edi, eax
jl 0x4408cb
jmp 0x440915
mov al, byte [esp + 0xc]
mov dl, byte [esp + 0xd]
mov cl, byte [esp + 0xe]
mov bl, byte [esp + 0xf]
xor al, dl
mov dl, byte [esp + 0x10]
xor al, cl
mov cl, byte [esp + 0x11]
xor al, bl
xor al, dl
xor al, cl
mov byte [esp + 0xc], al
mov ecx, esi
call fcn.0043add0
mov bl, byte [esp + 0xc]
lea ecx, [esp + 0x44]
mov byte [esp + 0xbc], 0
call fcn.00439730
lea ecx, [esp + 0x18]
mov dword [esp + 0xbc], 0xffffffff
call fcn.00415380
mov ecx, dword [esp + 0xb4]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0xb4
ret

Function at 0x440b10
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
xor al, al
xor ecx, ecx
mov dl, byte [ecx + esi]
not dl
xor al, dl
inc ecx
cmp ecx, 7
jl 0x440b19
pop esi
ret 4
Function at 0x4440d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004152e0
mov eax, dword [esi]
mov dword [esp + 0x38], 0
test eax, eax
jne 0x444125
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push eax
mov eax, dword [esi + 0xc]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x7379736c
lea ecx, [esp + 8]
push 0x48a004
push ecx
call fcn.00416930
add esp, 0xc
lea ecx, [esp + 4]
push 0
call fcn.00416510
mov edx, dword [esi + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_RemovePropW]
lea ecx, [esp + 4]
mov dword [esi], 0
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
mov ecx, dword [esp + 0x30]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x444ed0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004456f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x14]
mov dword [esi + 0xd0], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x54], ecx
mov ecx, dword [esp + 0x30]
and al, 0xef
mov dword [esi + 0x58], edx
mov edx, dword [esp + 0x34]
mov dword [esi + 0xc0], eax
mov eax, dword [esp + 0x2c]
mov dword [esi + 0xc4], ecx
lea ecx, [esi + 0x34]
mov dword [esi + 0xf8], ebp
mov dword [esi + 0xc8], edx
mov dword [esi + 0xcc], eax
call fcn.00431cd0
mov ecx, dword [esi + 0xf8]
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x10000
jne 0x444f4f
or dword [esi + 0xc0], 0x100000
mov edx, dword [esp + 0x18]
push 0
push edx
mov ecx, esi
call fcn.004454c0
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
lea edi, [esi + 0x64]
mov ecx, edi
lea eax, [ebx + 2]
push eax
call fcn.00415470
inc ebx
mov ecx, edi
push ebx
push 0
call fcn.00416510
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ebx
mov ecx, edi
call fcn.00416560
mov ecx, edi
call fcn.00415700
push 0x4983e0
push ebp
call dword [sym.imp.USER32.dll_SetWindowTextW]
test dword [esi + 0xc0], 0x10000
jne 0x444fce
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push ebp
call edi
test al, 0x20
je 0x444fd4
mov eax, dword [esi + 0xc0]
or ah, 1
mov dword [esi + 0xc0], eax
jmp 0x444fd4
mov edi, dword [sym.imp.USER32.dll_GetWindowLongW]
mov al, byte [esi + 0xc0]
mov ebx, 1
test bl, al
je 0x444ff4
push 0xfffffffffffffff0
push ebp
call edi
or ah, bl
push eax
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [esi + 0xc0]
test al, 0x40
je 0x44500a
mov dword [esi + 0xbc], 0x10
jmp 0x445014
mov dword [esi + 0xbc], 0x20
test eax, 0x40000
je 0x44502a
mov eax, dword [esi + 0xbc]
or ah, 0x80
mov dword [esi + 0xbc], eax
push 0xfffffffffffffff0
push ebp
call edi
test bl, al
je 0x445039
or dword [esi + 0xbc], ebx
test al, 2
je 0x445044
or dword [esi + 0xbc], 2
test ah, 2
mov ecx, 4
je 0x445054
or dword [esi + 0xbc], ecx
test al, 0x80
je 0x445067
mov eax, dword [esi + 0xbc]
or ah, 8
mov dword [esi + 0xbc], eax
test dword [esi + 0xc0], 0x800000
je 0x445079
or dword [esi + 0xbc], ecx
mov ecx, esi
call fcn.00445240
push esi
push 0x444250
push ebp
mov ecx, esi
call fcn.00445730
push ebx
mov ecx, esi
call fcn.00445630
pop edi
pop esi
pop ebp
pop ebx
ret 0x24
Function at 0x445820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004152e0
mov eax, dword [esi]
mov dword [esp + 0x38], 0
test eax, eax
jne 0x445875
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push eax
mov eax, dword [esi + 0xc]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x73746178
lea ecx, [esp + 8]
push 0x48a004
push ecx
call fcn.00416930
add esp, 0xc
lea ecx, [esp + 4]
push 0
call fcn.00416510
mov edx, dword [esi + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_RemovePropW]
lea ecx, [esp + 4]
mov dword [esi], 0
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
mov ecx, dword [esp + 0x30]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x445c70
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4753d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
mov esi, ecx
lea ecx, [ebp - 0x40]
call fcn.0043c750
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
push 0
push 0
push 0
push 1
mov dword [ebp - 4], 0
call fcn.00445bb0
test eax, eax
jne 0x445cd6
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00447900
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
test byte [ebp - 0x10], 0x10
jne 0x445cfe
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
call fcn.00447900
xor eax, eax
pop esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.0043c7c0
rdtsc
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x40]
call fcn.0043c850
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
rdtsc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
lea ecx, [ebp - 0x40]
call fcn.0043c860
lea ecx, [ebp - 0x40]
call fcn.0043c8c0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
sub ecx, esi
mov esi, dword [ebp - 0x14]
push edx
sbb esi, edi
push eax
push esi
push ecx
call fcn.00463140
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0x40]
mov dword [ebp - 4], 0xffffffff
mov dword [edx], eax
call fcn.00447900
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x445fa7
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x475423
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00428c00
lea ebx, [esi + 8]
xor edi, edi
mov ecx, ebx
mov dword [esp + 0x18], edi
call fcn.00428c00
push 0x48a068
mov ecx, esi
mov byte [esp + 0x1c], 1
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
call fcn.00428c30
push 0x48ee9c
mov ecx, ebx
call fcn.00428c30
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x44b1e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4759b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004152e0
mov eax, dword [esi]
mov dword [esp + 0x38], 0
test eax, eax
jne 0x44b235
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
add esp, 0x38
ret
push eax
mov eax, dword [esi + 0xc]
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x6f6c6563
lea ecx, [esp + 8]
push 0x48a004
push ecx
call fcn.00416930
add esp, 0xc
lea ecx, [esp + 4]
push 0
call fcn.00416510
mov edx, dword [esi + 0xc]
push eax
push edx
call dword [sym.imp.USER32.dll_RemovePropW]
lea ecx, [esp + 4]
mov dword [esi], 0
mov dword [esp + 0x38], 0xffffffff
call fcn.00415380
mov ecx, dword [esp + 0x30]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret
Function at 0x457a70
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
test ebp, ebp
push edi
mov dword [esp + 0x1c], ebp
je 0x457b32
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0xc8e8]
test eax, eax
jg 0x457ade
mov eax, dword [ebx + 0xc8e0]
mov ecx, dword [ebx + 0xc904]
push 0x2000
push eax
push ecx
call fcn.0046d7e4
add esp, 0xc
mov dword [ebx + 0xc8e8], eax
test eax, eax
je 0x457b3b
jl 0x457b46
mov eax, dword [ebx + 0xc90c]
mov edx, dword [ebx + 0xc8e0]
add eax, 0x2000
mov dword [ebx + 0xc8e4], edx
mov dword [ebx + 0xc90c], eax
mov eax, dword [ebx + 0xc8e8]
cmp ebp, eax
jae 0x457aea
mov eax, ebp
mov esi, dword [ebx + 0xc8e4]
mov edi, dword [esp + 0x18]
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov esi, dword [ebx + 0xc8e4]
mov edx, dword [ebx + 0xc8e8]
add edi, eax
add esi, eax
sub edx, eax
sub ebp, eax
mov dword [esp + 0x18], edi
mov dword [ebx + 0xc8e4], esi
mov dword [ebx + 0xc8e8], edx
jne 0x457a88
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 0x1c]
pop edi
sub eax, ebp
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret

Function at 0x457b50
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
cmp dword [esi + 0xc99c], edi
je 0x457b66
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 0x88]
cmp eax, edi
jg 0x457b83
dec eax
mov dword [esi + 0xc8e8], edi
mov dword [esi + 0x88], eax
pop edi
or eax, 0xffffffff
pop esi
ret
cmp dword [esi + 0xc8e8], edi
jg 0x457bf1
mov eax, dword [esi + 0xc8e0]
mov ecx, dword [esi + 0xc904]
push 0x2000
push eax
push ecx
call fcn.0046d7e4
add esp, 0xc
cmp eax, edi
mov dword [esi + 0xc8e8], eax
jne 0x457bbc
mov dword [esi + 0xc8e8], edi
pop edi
or eax, 0xffffffff
pop esi
ret
jge 0x457bca
push 1
push 0x49dfe0
call fcn.00463b54
mov edx, dword [esi + 0xc90c]
push esi
add edx, 0x2000
mov dword [esi + 0xc90c], edx
mov edx, dword [esi + 0xc8e0]
mov dword [esi + 0xc8e4], edx
call fcn.00457a00
add esp, 4
mov eax, dword [esi + 0x8d4]
test byte [eax + 0x1c], 1
je 0x457c36
mov eax, dword [esi + 0xc8e8]
mov edi, dword [esi + 0xc8e4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x457c36
push ebx
lea ebx, [eax + 1]
push esi
call fcn.0045dc40
mov cl, byte [edi]
xor cl, al
mov al, cl
mov byte [edi], cl
and eax, 0xff
push eax
push esi
call fcn.0045dc60
add esp, 0xc
inc edi
dec ebx
jne 0x457c14
pop ebx
mov eax, dword [esi + 0xc8e8]
xor edx, edx
dec eax
pop edi
mov dword [esi + 0xc8e8], eax
mov eax, dword [esi + 0xc8e4]
mov dl, byte [eax]
inc eax
mov dword [esi + 0xc8e4], eax
mov eax, edx
pop esi
ret
Function at 0x458b40
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x18
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
mov eax, dword [esi + 0xc9c4]
push eax
call fcn.004640a6
mov eax, dword [esi + 0x14]
add esp, 4
test eax, eax
jne 0x458bff
lea ecx, [esp + 0x1c]
push ebx
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push esi
call fcn.00458c10
add esp, 0x10
lea ebx, [esi + 0xc9dc]
mov edi, eax
push 0
push 0x80
push 3
push 0
push 2
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esi + 0x8d4]
mov ebp, eax
mov eax, dword [ecx + 0x18]
test al, 0x5f
je 0x458bb8
and eax, 0x7f
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp ebp, 0xffffffff
pop ebx
je 0x458bff
test edi, edi
je 0x458bf8
mov edx, edi
mov ecx, edi
and dl, 1
lea eax, [esp + 0xc]
neg dl
sbb edx, edx
and cl, 2
and edx, eax
mov eax, edi
neg cl
push edx
lea edx, [esp + 0x18]
sbb ecx, ecx
and al, 4
and ecx, edx
neg al
push ecx
lea ecx, [esp + 0x24]
sbb eax, eax
and eax, ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x458fc0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x218
push esi
mov esi, dword [esp + 0x224]
push edi
push 2
push 0x493dd4
push esi
call fcn.00462150
add esp, 0xc
test eax, eax
je 0x458ff7
push 2
push 0x493dd0
push esi
call fcn.00462150
add esp, 0xc
test eax, eax
jne 0x459011
mov al, byte [esi + 2]
test al, al
je 0x459011
cmp al, 0x2f
je 0x459011
cmp al, 0x5c
je 0x459011
pop edi
xor eax, eax
pop esi
add esp, 0x218
ret
cmp dword [0x4956fc], 1
jle 0x45902e
xor eax, eax
push 0x103
mov al, byte [esi]
push eax
call fcn.00463a9a
add esp, 8
jmp 0x459041
mov edx, dword [0x4954f0]
xor ecx, ecx
mov cl, byte [esi]
mov ax, word [edx + ecx*2]
and eax, 0x103
test eax, eax
je 0x45904f
cmp byte [esi + 1], 0x3a
jne 0x45904f
mov eax, esi
jmp 0x45907c
lea eax, [esp + 8]
lea ecx, [esp + 0x11c]
push eax
push ecx
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x459075
pop edi
pop esi
add esp, 0x218
ret
lea eax, [esp + 0x11c]
mov edi, dword [esp + 0x224]
push 2
push eax
mov dword [esp + 0x10], eax
lea esi, [edi + 0xcb44]
push esi
call fcn.00462150
add esp, 0xc
test eax, eax
je 0x459181
mov edx, dword [esp + 8]
push 2
push edx
push esi
call fcn.00464130
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
lea edx, [esp + 0xc]
push 0x104
push eax
push ecx
lea eax, [esp + 0x20]
push edx
push eax
lea ecx, [esp + 0x130]
push 0x104
push ecx
push esi
mov byte [edi + 0xcb46], 0x2f
mov byte [edi + 0xcb47], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4590fb
mov byte [esi], al
pop edi
pop esi
add esp, 0x218
ret
mov esi, dword [esp + 0xc]
mov edx, 0xc
cmp edx, esi
push 4
sbb eax, eax
lea ecx, [esp + 0x1c]
inc eax
push str.VFAT
push ecx
mov dword [edi + 0xcb48], eax
call fcn.0046fc1c
add esp, 4
push eax
call fcn.00462150
add esp, 0xc
test eax, eax
je 0x459176
push 4
lea edx, [esp + 0x1c]
push str.HPFS
push edx
call fcn.00462150
add esp, 0xc
test eax, eax
je 0x459176
push 3
lea eax, [esp + 0x1c]
push 0x493dbc
push eax
call fcn.00462150
add esp, 0xc
test eax, eax
je 0x459176
xor eax, eax
mov dword [edi + 0xcb4c], eax
pop edi
mov eax, 1
pop esi
add esp, 0x218
ret
mov eax, 1
mov dword [edi + 0xcb4c], eax
pop edi
mov eax, 1
pop esi
add esp, 0x218
ret
Function at 0x45a4d0
Capabilities:
Get disk information

Disassembly:
mov al, byte [esp + 4]
lea ecx, [esp + 4]
add al, 0x40
push ecx
mov byte [esp + 8], al
mov byte [esp + 9], 0x3a
mov byte [esp + 0xa], 0x2f
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
xor edx, edx
cmp eax, 2
sete dl
mov eax, edx
ret

Function at 0x45a6d0
Capabilities:
Get geographical location

Disassembly:
push ecx
lea eax, [esp + 2]
push 2
push eax
push 0x21
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x45a707
movsx eax, byte [esp + 2]
sub eax, 0x30
je 0x45a707
dec eax
je 0x45a700
dec eax
jne 0x45a707
mov eax, 2
pop ecx
ret
mov eax, 1
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x45a710
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x18
push ebx
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x2c]
push esi
push edi
call fcn.0046fe34
add esp, 8
test eax, eax
jne 0x45a86d
mov eax, dword [esp + 0x28]
push ebp
push edi
push eax
call fcn.00458d60
add esp, 8
mov ebp, eax
push 0
push 0x80
push 3
push 0
push 3
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x45a863
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x45a863
lea edi, [esi + 0x1c]
lea ecx, [esp + 0x20]
test ebp, ebp
push edi
push ecx
jne 0x45a803
call fcn.0045a8d0
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x45a7b8
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x45a7b8
mov edx, dword [edi]
mov dword [esi + 0x18], edx
jmp 0x45a7c9
lea eax, [esi + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0045a8d0
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x45a7e8
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x45a7e8
mov edx, dword [edi]
pop ebp
mov dword [esi + 0x20], edx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
add esi, 0x20
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0045a8d0
add esp, 8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18
ret
call fcn.0045a950
mov eax, dword [esp + 0x18]
add esp, 8
test eax, eax
jne 0x45a822
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x45a822
mov edx, dword [edi]
mov dword [esi + 0x18], edx
jmp 0x45a833
lea eax, [esi + 0x18]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.0045a950
add esp, 8
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x45a852
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x45a852
mov edx, dword [edi]
pop ebp
mov dword [esi + 0x20], edx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
add esi, 0x20
lea eax, [esp + 0x18]
push esi
push eax
call fcn.0045a950
add esp, 8
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x45a8b9
test bl, 0x10
je 0x45a8b9
mov ecx, 9
xor eax, eax
mov edi, esi
push 0x210000
rep stosd dword es:[edi], eax
call fcn.00458010
not bl
and ebx, 1
add esp, 4
or bl, 0x82
mov dword [esi + 0x1c], eax
shl ebx, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x18], eax
mov word [esi + 6], bx
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x18
ret
Function at 0x45dc00
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x49d7ec
mov eax, edx
mov esi, 8
test al, 1
je 0x45dc1c
shr eax, 1
xor eax, 0xedb88320
jmp 0x45dc1e
shr eax, 1
dec esi
jne 0x45dc0f
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x49dbec
jl 0x45dc08
mov dword [0x493df0], 0
pop esi
ret

Function at 0x45dc60
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [edx + 0xcae8]
push edi
mov edi, dword [edx + 0xc8d8]
mov ecx, esi
xor ecx, eax
and ecx, 0xff
shr esi, 8
mov ecx, dword [edi + ecx*4]
xor ecx, esi
mov esi, dword [edx + 0xcaec]
mov dword [edx + 0xcae8], ecx
and ecx, 0xff
add ecx, esi
mov esi, dword [edx + 0xcaf0]
imul ecx, ecx, 0x8088405
inc ecx
mov ebx, esi
mov dword [edx + 0xcaec], ecx
and ebx, 0xff
shr ecx, 0x18
xor ecx, ebx
shr esi, 8
mov ecx, dword [edi + ecx*4]
pop edi
xor ecx, esi
pop esi
mov dword [edx + 0xcaf0], ecx
pop ebx
ret

Function at 0x45dfc0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x18]
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push eax
push esi
call fcn.0045dcd0
mov ecx, dword [esp + 0x28]
add esp, 8
xor edi, edi
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 8]
mov dword [esp + 0x14], ecx
push esi
call fcn.0045dc40
mov bl, byte [esp + edi + 0x10]
xor bl, al
mov al, bl
mov byte [esp + edi + 0x10], bl
and eax, 0xff
push eax
push esi
call fcn.0045dc60
add esp, 0xc
inc edi
cmp edi, 0xc
jl 0x45dff2
mov edx, dword [esi + 0x8d4]
movzx cx, byte [esp + 0x17]
test byte [edx + 0x1c], 2
je 0x45e039
xor eax, eax
mov ax, word [esi + 0xc924]
shr eax, 8
jmp 0x45e042
mov eax, dword [esi + 0xc928]
shr eax, 0x18
and ecx, 0xffff
cmp ecx, eax
je 0x45e056
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0xc
ret
mov eax, dword [esi + 0xc8e8]
mov ecx, dword [esi + 0x88]
cmp eax, ecx
jle 0x45e068
mov eax, ecx
mov edi, dword [esi + 0xc8e4]
mov ecx, eax
dec eax
test ecx, ecx
je 0x45e099
lea ebx, [eax + 1]
push esi
call fcn.0045dc40
mov cl, byte [edi]
xor cl, al
mov al, cl
mov byte [edi], cl
and eax, 0xff
push eax
push esi
call fcn.0045dc60
add esp, 0xc
inc edi
dec ebx
jne 0x45e078
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0xc
ret