joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484cb0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x2ec
mov eax, dword [0x4b1d00]
xor eax, esp
mov dword [esp + 0x2e8], eax
push edi
mov edi, dword [esp + 0x2f4]
mov dword [esp + 0x18], edi
test edi, edi
je 0x484eb1
cmp dword [esp + 0x2f8], 0
je 0x484eb1
push 0x64
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00464d20
add esp, 0xc
lea ecx, [esp + 4]
push ecx
push 8
push 0
push 0x498b98
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x484e78
mov ecx, dword [esp + 4]
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x100]
push eax
push ebx
mov esi, 0x104
push ecx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x484e6b
lea ebx, [ebx]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push 1
push 0
lea eax, [esp + 0xf8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x484e39
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x1f4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0
push str.ServiceName
push edx
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x484e2e
push 0x64
push eax
lea eax, [esp + 0x90]
push eax
call fcn.00464d20
lea ecx, [esp + 0x1fc]
push 0x64
push ecx
lea edi, [esp + 0x9c]
call fcn.00484ba0
add esp, 0x14
test eax, eax
je 0x484e2e
cmp byte [esp + 0x24], 0
je 0x484df2
lea edx, [esp + 0x24]
push edx
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jge 0x484e2e
lea eax, [esp + 0x24]
lea esi, [esp + 0x88]
mov ecx, eax
mov edx, 0x64
sub esi, ecx
lea ecx, [edx + 0x7fffff9a]
test ecx, ecx
je 0x484e21
mov cl, byte [esi + eax]
test cl, cl
je 0x484e21
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x484e06
jmp 0x484e25
test edx, edx
jne 0x484e26
dec eax
mov byte [eax], 0
mov esi, 0x104
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x100]
push ecx
inc ebx
push ebx
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x484d50
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
cmp byte [esp + 0x1c], 0
je 0x484eb1
mov edx, dword [esp + 0x2f8]
lea ecx, [esp + 0x1c]
push ecx
push edx
push edi
call fcn.004841c0
xor ecx, ecx
test eax, eax
setge cl
pop edi
mov eax, ecx
mov ecx, dword [esp + 0x2e8]
xor ecx, esp
call fcn.00464fe1
add esp, 0x2ec
ret
mov ecx, dword [esp + 0x2ec]
pop edi
xor ecx, esp
xor eax, eax
call fcn.00464fe1
add esp, 0x2ec
ret
Function at 0x485160
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x50c
mov eax, dword [0x4b1d00]
xor eax, esp
mov dword [esp + 0x508], eax
push ebp
mov ebp, dword [esp + 0x514]
test edi, edi
je 0x4852dd
cmp ebp, 0x20
jb 0x4852dd
push 0x400
lea eax, [esp + 0x110]
push 0
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x400
call fcn.00464d20
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0x10]
push eax
push 0x498c08
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x4852dd
lea eax, [esp + 0x10c]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4851f0
sub eax, edx
cmp eax, 0x40
jne 0x4852dd
push ebx
lea edx, [eax + 0x40]
push esi
lea eax, [esp + 0x14]
lea esi, [esp + 0x114]
mov ecx, eax
sub esi, ecx
lea ecx, [edx - 0x60]
test ecx, ecx
je 0x48522e
mov cl, byte [esi + eax]
test cl, cl
je 0x48522e
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x485216
jmp 0x485232
test edx, edx
jne 0x485233
dec eax
mov byte [eax], 0
lea eax, [esp + 0x94]
lea edx, [esp + 0x134]
mov ecx, eax
mov esi, 0x80
sub edx, ecx
lea ecx, [ecx]
lea ecx, [esi + 0x7fffff7e]
test ecx, ecx
je 0x48526b
mov cl, byte [edx + eax]
test cl, cl
je 0x48526b
mov byte [eax], cl
inc eax
sub esi, 1
jne 0x485250
jmp 0x48526f
test esi, esi
jne 0x485270
dec eax
push 0x400
lea edx, [esp + 0x118]
push 0
push edx
mov byte [eax], 0
call fcn.00464d20
push 0x400
lea ebx, [esp + 0x124]
lea ecx, [esp + 0x24]
call fcn.00484320
add esp, 0x10
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
pop esi
pop ebx
test eax, eax
jne 0x4852dd
lea edx, [esp + 0xc]
push edx
push ebp
push edi
call fcn.004841c0
neg eax
sbb eax, eax
inc eax
pop ebp
mov ecx, dword [esp + 0x508]
xor ecx, esp
call fcn.00464fe1
add esp, 0x50c
ret
mov ecx, dword [esp + 0x50c]
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00464fe1
add esp, 0x50c
ret

Function at 0x485300
Capabilities:
Set registry value

Disassembly:
sub esp, 0x188
mov eax, dword [0x4b1d00]
xor eax, esp
mov dword [esp + 0x184], eax
push ebx
push esi
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov esi, ecx
call fcn.00464d20
push 0x80
lea ebx, [esp + 0x18]
mov ecx, esi
call fcn.00484320
lea eax, [esp + 0x98]
mov ecx, eax
add esp, 0x10
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x48536b
mov cl, byte [esi + eax]
test cl, cl
je 0x48536b
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x485350
jmp 0x48536f
test edx, edx
jne 0x485370
dec eax
lea edx, [esp + 8]
push edx
mov byte [eax], 0
push 0x104
lea eax, [esp + 0x90]
push eax
call fcn.00484230
lea eax, [esp + 0x88]
pop esi
lea edx, [eax + 1]
pop ebx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x485396
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
push 1
push 0x498c08
push str.Software360SafeLiveup
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00464fe1
add esp, 0x188
ret
Function at 0x487600
Capabilities:
Set thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x488b28
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4b1d00]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
push 0x486ef0
push 0x4b9b98
call fcn.00487120
mov eax, dword [0x4b9ba0]
add esp, 8
test eax, eax
je 0x48765a
mov ecx, dword [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.00464b08
mov dword [esp + 0x10], 0
mov dword [esp + 4], vtable.boost::thread_resource_error.0
lea edx, [esp + 4]
push edx
mov dword [esp + 0x20], 0
call fcn.00410a40
int3

Function at 0x487690
Capabilities:
Get thread local storage value

Disassembly:
push 0xffffffffffffffff
push 0x488b58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b1d00]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov eax, dword [0x4b9ba0]
test eax, eax
jne 0x4876c2
xor esi, esi
jmp 0x4876cb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [esp + 0x14], esi
mov ebp, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esp + 0x20], 0
test esi, esi
je 0x4876f7
cmp dword [esi + 0x14], 0
jne 0x487739
cmp dword [esi + 0x10], 0
jne 0x487740
push 0
call fcn.00487600
add esp, 4
mov dword [esp + 0x20], 0xffffffff
test esi, esi
je 0x487725
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x487725
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
cmp dword [esi + 0x10], 0
je 0x487780
nop
mov ebx, dword [esi + 0x10]
mov eax, dword [ebx + 4]
mov dword [esi + 0x10], eax
mov ecx, dword [ebx]
test ecx, ecx
je 0x48776e
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov edi, dword [ebx]
mov edx, dword [edi]
mov eax, dword [edx]
push 0
mov ecx, edi
call eax
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x10], 0
jne 0x487740
cmp dword [esi + 0x14], 0
je 0x4876e7
mov edi, dword [esi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [esi + 0x14], ecx
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x4877a5
mov edx, dword [ecx]
mov eax, dword [edi + 0xc]
mov edx, dword [edx + 4]
push eax
call edx
mov ebx, dword [edi + 8]
test ebx, ebx
je 0x4877d6
lea eax, [ebx + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x4877d6
mov edx, dword [ebx]
mov eax, dword [edx + 4]
mov ecx, ebx
call eax
lea ecx, [ebx + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x4877d6
mov eax, dword [ebx]
mov edx, dword [eax + 8]
mov ecx, ebx
call edx
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call ebp
cmp dword [esi + 0x14], 0
jne 0x48778a
jmp 0x4876e1
Function at 0x487870
Capabilities:
Create thread
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x488ba8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4b1d00]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
lea ecx, [eax + 0x1c]
push ecx
push 4
push eax
push 0x4877f0
push 0
push 0
call fcn.0046902c
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4878db
lea ecx, [esp + 0x10]
call fcn.00464b08
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], vtable.boost::thread_resource_error.0
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x2c], ebx
call fcn.00410a40
mov eax, dword [edi]
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov esi, dword [edi]
mov eax, dword [esi + 8]
add esi, 8
test eax, eax
je 0x487901
cmp eax, 0xffffffff
je 0x487901
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
mov edx, dword [edi]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x5003972
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
mov eax, esi
shr eax, 2
push edi
mov edi, eax
dec eax
test edi, edi
jle 0x50039b2
lea edi, [eax + 1]
movzx eax, byte [ecx]
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or eax, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or eax, ebx
inc ecx
xor edx, eax
dec edi
jne 0x5003990
and esi, 3
xor eax, eax
dec esi
je 0x50039ce
dec esi
je 0x50039c7
dec esi
jne 0x50039d3
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor ebx, ebx
mov bh, byte [ecx]
or eax, ebx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
pop edi
pop esi
xor eax, edx
pop ebx
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x1c35656
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x262d6980
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x406346
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebx + 0x2c]
push edi
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
mov eax, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x2c]
lea edx, [esi + ecx - 0x106]
sub edi, eax
cmp eax, edx
jae 0x406465
mov dword [ebp - 4], edi
mov edi, dword [ebx]
cmp dword [edi + 4], 0
jne 0x406384
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x74]
add eax, dword [ebx + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [ebx + 0x38]
mov ebx, ecx
mov dword [ebp - 8], eax
cmp ebx, dword [ebp - 4]
ja 0x41380d
test ebx, ebx
je 0x413815
mov edx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [edi + 4], ecx
cmp dword [edx + 0x18], 1
push ebx
jne 0x41381c
mov eax, dword [edi]
push eax
mov eax, dword [edi + 0x30]
push eax
call fcn.00406136
mov ecx, dword [ebp - 8]
mov dword [edi + 0x30], eax
mov eax, dword [edi]
push ebx
push eax
push ecx
call fcn.0040d9d6
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
mov eax, ebx
mov edi, dword [ebp + 8]
add dword [edi + 0x74], eax
mov edx, dword [edi + 0x74]
cmp edx, 3
jb 0x40640a
mov ebx, dword [edi + 0x6c]
add ebx, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx eax, byte [ebx]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [ebx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp edx, 0x106
jb 0x41382f
mov eax, dword [edi + 0x16c0]
mov ecx, dword [edi + 0x3c]
cmp eax, ecx
jae 0x40637d
mov esi, dword [edi + 0x6c]
add esi, edx
cmp eax, esi
jae 0x41383c
sub ecx, esi
mov ebx, 0x102
cmp ecx, 0x102
ja 0x406445
mov ebx, ecx
mov ecx, dword [edi + 0x38]
push ebx
add ecx, esi
push 0
push ecx
call fcn.0040d186
add esp, 0xc
add ebx, esi
mov dword [edi + 0x16c0], ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x38]
push esi
lea ecx, [eax + esi]
push ecx
push eax
call fcn.0040d9d6
mov edx, dword [ebx + 0x4c]
mov eax, dword [ebx + 0x44]
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
add esp, 0xc
sub dword [ebx + 0x5c], esi
lea eax, [eax + edx*2]
movzx ecx, word [eax - 2]
sub eax, 2
cmp ecx, esi
jae 0x4064c4
xor ecx, ecx
dec edx
mov word [eax], cx
jne 0x406488
mov ecx, dword [ebx + 0x40]
mov edx, esi
lea ecx, [ecx + esi*2]
lea ecx, [ecx]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, esi
jb 0x4064c0
sub eax, esi
dec edx
mov word [ecx], ax
jne 0x4064a6
add edi, esi
jmp 0x406372
xor eax, eax
jmp 0x4064b3
sub ecx, esi
jmp 0x406495
mov ebx, edi
jmp 0x406355
mov ebx, dword [ebp - 4]
jmp 0x40639e
xor eax, eax
jmp 0x4063df
push 1
push 0
push eax
push edi
call fcn.00417cda
add esp, 0x14
jmp 0x4063df
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x413806
jmp 0x406416
lea edx, [esi + 0x102]
cmp eax, edx
jae 0x40637d
sub esi, eax
add esi, 0x102
sub ecx, eax
cmp esi, ecx
jbe 0x41385a
mov esi, ecx
mov ecx, dword [edi + 0x38]
push esi
add ecx, eax
push 0
push ecx
call fcn.0040d186
add esp, 0xc
add dword [edi + 0x16c0], esi
jmp 0x40637d
Function at 0x4083d6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x4083fb
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x408413
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x408442
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x408484
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x408558
sub edx, 0x10000
js 0x408558
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x40846a
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x40846a
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x4084db
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x4084d8
add edx, 8
jne 0x4084bf
jmp 0x408549
add edx, 4
test eax, 0xffff
jne 0x4084e8
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x408549
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x40851c
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x40846a
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x408558
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x40846a
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x408569
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x415bc7
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
cmp dword [esi + 0x100ac], ebx
je 0x415c88
cmp dword [esi + 0x7c], ebx
jbe 0x415c88
mov eax, 0xffffff5c
sub eax, esi
lea edi, [esi + 0xa4]
mov dword [ebp + 8], eax
jmp 0x415c07
movzx ecx, byte [edi]
mov eax, dword [esi + 0x100d0]
mov ebx, dword [esi + 0x100dc]
xor ecx, eax
mov edx, dword [esi + 0x100d8]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x100d4]
mov dword [esi + 0x100d0], ecx
mov ecx, dword [esi + 0x100d8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x100d4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [ebx + eax*4]
and edx, 0xfffd
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x100d8], ecx
mov ecx, dword [ebp + 8]
shr eax, 8
xor byte [edi], al
inc edi
add ecx, edi
cmp ecx, dword [esi + 0x7c]
jb 0x415c07
mov ebx, dword [ebp - 4]
mov edi, dword [esi + 0x7c]
mov ecx, dword [esi + 0x2c]
mov edx, dword [esi + 0x1c]
push edi
lea eax, [esi + 0xa4]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, edi
je 0x415caa
or ebx, 0xffffffff
add dword [esi + 0x100c0], edi
mov ecx, dword [esi + 0x48]
mov eax, 0
adc dword [esi + 0x100c4], eax
add dword [esi + 0x100c8], ecx
pop edi
mov dword [esi + 0x48], eax
adc dword [esi + 0x100cc], eax
mov dword [esi + 0x7c], eax
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41638e
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, 0x34567890
mov dword [eax], 0x12345678
mov dword [eax + 4], 0x23456789
mov dword [eax + 8], edi
mov dl, byte [ecx]
test dl, dl
je 0x416408
push esi
mov esi, dword [eax + 4]
lea ecx, [ecx]
mov ecx, dword [eax]
movsx edx, dl
xor edx, ecx
and edx, 0xff
mov edx, dword [ebx + edx*4]
shr ecx, 8
xor edx, ecx
movzx ecx, dl
add esi, ecx
mov ecx, dword [ebp + 8]
imul esi, esi, 0x8088405
mov dword [eax], edx
inc esi
mov edx, esi
shr edx, 0x18
xor edx, edi
and edx, 0xff
shr edi, 8
mov dword [eax + 4], esi
xor edi, dword [ebx + edx*4]
inc ecx
mov dword [eax + 8], edi
mov dl, byte [ecx]
mov dword [ebp + 8], ecx
test dl, dl
jne 0x4163be
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4179fa
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [esi], 0
mov eax, dword [esi]
mov ecx, edi
sub ecx, eax
add eax, dword [ebp + 0xc]
push ecx
push eax
mov eax, dword [ebx + 4]
push eax
call fcn.0040c026
add esp, 0xc
test eax, eax
jle 0x417a32
add dword [esi], eax
cmp dword [esi], edi
jb 0x417a0f
test eax, eax
jns 0x417a55
call fcn.00409035
mov ecx, dword [eax]
push ecx
call fcn.00408edb
push eax
push 0xffffffffffffffff
push ebx
call fcn.004150a5
add esp, 0x10
pop edi
pop esi
or eax, 0xffffffff
pop ebx
pop ebp
ret
test eax, eax
jne 0x417a60
mov dword [ebx + 0x28], 1
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x407ad0
Capabilities:
Check if file exists
Get file attributes
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a676
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x5ec374]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x14], 8
jb 0x407b0e
mov eax, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push eax
call ebx
cmp eax, 0xffffffff
jne 0x407b23
xor al, al
jmp 0x407c21
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x407b2d
mov eax, dword [edi]
push eax
call ebx
cmp eax, 0xffffffff
setne cl
jne 0x407c1f
xorps xmm0, xmm0
mov dword [ebp - 0x2d0], 0
movups xmmword [ebp - 0x2e4], xmm0
mov dword [ebp - 0x2cc], 0x18
mov dword [ebp - 0x2d4], 0x400
lea eax, [ebp - 0x2fc]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.00466eb0
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x407b83
mov esi, dword [esi]
push 0x2b4
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.005663c0
add esp, 0xc
lea eax, [ebp - 0x2c4]
xor ebx, ebx
push 0x100
push 0x2b4
push eax
push ebx
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov esi, dword [ebp - 0x2c4]
test eax, eax
je 0x407bd6
mov dword [ebp - 0x2dc], ebx
mov ebx, esi
mov dword [ebp - 0x2e4], esi
mov dword [ebp - 0x2e0], 0x20
lea ecx, [ebp - 0x2fc]
call fcn.004064f0
lea eax, [ebp - 0x314]
mov ecx, edi
push eax
call fcn.00466eb0
push eax
push esi
mov byte [ebp - 4], 1
call fcn.0040a1a0
add esp, 8
mov byte [ebp - 0x2c5], al
lea ecx, [ebp - 0x314]
call fcn.004064f0
test ebx, ebx
je 0x407c19
push ebx
call dword [sym.imp.USER32.dll_DestroyIcon]
mov cl, byte [ebp - 0x2c5]
mov al, cl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045674d
mov esp, ebp
pop ebp
ret