joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4780f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ecx + 0x30]
xor eax, eax
dec ebx
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
test ebx, ebx
jle 0x478193
mov eax, dword [ecx + 0xc]
mov edx, dword [ecx + 8]
movsd xmm1, qword [0x4c1050]
sub edx, eax
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
push edi
cvttsd2si esi, qword [edx + eax]
cvttsd2si edi, qword [eax]
mov eax, esi
cdq
mov ecx, eax
xor ecx, edx
sub ecx, edx
mov eax, edi
cdq
xor eax, edx
sub eax, edx
cmp ecx, eax
cmovle esi, edi
mov eax, esi
cdq
xor eax, edx
sub eax, edx
mov edx, 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
divsd xmm0, xmm1
cvttsd2si ecx, xmm0
test ecx, ecx
cmove ecx, edx
cmp ecx, edx
lea eax, [ecx + 1]
cmovl eax, edx
mov edx, dword [ebp - 8]
add eax, dword [ebp - 4]
test edx, edx
lea ecx, [eax - 1]
cmovle ecx, eax
mov eax, dword [ebp - 0xc]
inc edx
mov dword [ebp - 4], ecx
add eax, 8
mov dword [ebp - 8], edx
cmp edx, ebx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x10]
jl 0x478123
pop edi
mov eax, ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47a640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
cmp dword [esi + 0x60], ebx
jbe 0x47a710
xor ecx, ecx
mov dword [ebp - 4], ecx
nop
mov eax, dword [esi + 0x58]
mov eax, dword [ecx + eax + 0x18]
test eax, eax
je 0x47a704
push eax
call edi
mov ecx, dword [ebp - 4]
add esp, 4
inc ebx
add ecx, 0x1c
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0x60]
jb 0x47a6f0
mov eax, dword [esi + 0x58]
test eax, eax
je 0x47a71d
push eax
call edi
add esp, 4
mov eax, dword [esi + 0x74]
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x78], 0
test eax, eax
je 0x47a75b
push eax
call edi
add esp, 4
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x74], 0
mov dword [esi + 0x70], 0
test eax, eax
je 0x47a776
push eax
call edi
add esp, 4
mov eax, dword [esi + 0x80]
mov dword [esi + 0x7c], 0
test eax, eax
je 0x47a78d
push eax
call edi
add esp, 4
mov eax, dword [esi + 0x84]
mov dword [esi + 0x80], 0
test eax, eax
je 0x47a7a7
push eax
call edi
add esp, 4
mov ecx, dword [esi + 0xb8]
mov dword [esi + 0x84], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x8c], 0
mov dword [esi + 0x98], 0
mov dword [esi + 0x90], 0
mov dword [esi + 0x94], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xbc], ecx
test ecx, ecx
je 0x47a839
mov eax, dword [ecx + 8]
test eax, eax
je 0x47a81a
push eax
call edi
mov ecx, dword [esi + 0xbc]
add esp, 4
mov dword [esi + 0xb8], ecx
mov eax, dword [ecx + 0xc]
push ecx
mov dword [esi + 0xbc], eax
call edi
mov ecx, dword [esi + 0xbc]
add esp, 4
test ecx, ecx
jne 0x47a807
mov eax, dword [esi + 0xc0]
mov dword [esi + 0xb8], 0
mov dword [esi + 0xbc], 0
test eax, eax
je 0x47a85d
push eax
call edi
add esp, 4
mov eax, dword [esi + 0x9c]
mov dword [esi + 0xc0], 0
mov dword [esi + 0xc4], 0
mov dword [esi + 0xc8], 0
mov dword [esi + 0xcc], 0
mov dword [esi + 0xd0], 0
mov dword [esi + 0xd4], 0
mov dword [esi + 0xd8], 0
mov dword [esi + 0xdc], 1
mov dword [esi + 0xe0], 0
test eax, eax
je 0x47a8c7
push eax
call edi
add esp, 4
mov eax, dword [esi + 0xa0]
test eax, eax
je 0x47a8d7
push eax
call edi
add esp, 4
pop edi
mov dword [esi + 0xa0], 0
mov dword [esi + 0x9c], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x482ff0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bd90c
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x587614]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe0], ecx
lea ecx, [ebp - 0xc8]
call dword [sym.imp.mfc140u.dll_Ordinal_296]
push 0
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push 0x58cfe8
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xc8]
push str._sBackup
push eax
mov dword [ebp - 0xcc], edx
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
push 0
push dword [ebp - 0xc8]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
add esp, 0x18
test eax, eax
je 0x483085
push dword [ebp - 0xc8]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
add esp, 4
mov ebx, dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__localtime64_s]
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x34]
push eax
call ebx
or esi, 0xffffffff
test eax, eax
lea eax, [ebp - 0xd0]
mov ecx, esi
cmove ecx, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x58]
mov dword [ebp - 0xd8], ecx
push eax
call ebx
test eax, eax
lea eax, [ebp - 0xd0]
push eax
cmove esi, dword [ebp - 0x50]
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0xdc], esi
call ebx
xor ecx, ecx
test eax, eax
lea eax, [ebp - 0xd0]
cmove ecx, dword [ebp - 0x70]
push eax
lea eax, [ebp - 0xa0]
mov dword [ebp - 0xd4], ecx
push eax
call ebx
add esp, 0x20
test eax, eax
jne 0x4830fd
mov esi, dword [ebp - 0x90]
inc esi
jmp 0x4830ff
xor esi, esi
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0xc4]
push eax
call ebx
add esp, 8
test eax, eax
jne 0x483123
mov eax, dword [ebp - 0xb0]
add eax, 0x76c
jmp 0x483125
xor eax, eax
push dword [ebp - 0xd8]
push dword [ebp - 0xdc]
push dword [ebp - 0xd4]
push esi
push eax
push 0x58cfe8
lea eax, [ebp - 0xc8]
push str._sBackupJobs__04d__02d__02d__02d__02d.pjr
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__18]
add esp, 0x1c
lea eax, [ebp - 0xc8]
mov ecx, esp
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__17]
mov ecx, dword [ebp - 0xe0]
call fcn.00483420
lea ecx, [ebp - 0xc8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b61c2
mov esp, ebp
pop ebp
ret
Function at 0x48cd30
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x587614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x48cd64
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x48cd64
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x48ce5c
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x48cd83
cmp dx, 0x5c
jne 0x48cd85
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x48cd77
cmp edi, ebx
je 0x48cdd3
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
cmp edi, 0x208
jae 0x48ce6c
xor eax, eax
mov word [ebp + edi - 0x414], ax
lea eax, [ebp - 0x414]
push eax
push esi
call fcn.0048cd30
add esp, 8
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x48ce00
lea ecx, [ebp - 0x20c]
sub ecx, esi
nop dword [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x48cdf0
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x48ce02
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x48ce20
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x48ce5c
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004b61c2
mov esp, ebp
pop ebp
ret
call fcn.004b6924
int3
Function at 0x48d530
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov dword [ebp - 8], ebx
cmp dword [ebx], 0
jne 0x48d6dc
cmp dword [ebx + 4], 0xffffffff
jne 0x48d6dc
push edi
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x48d567
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x48d5a3
cmp eax, 0x2f
je 0x48d5a3
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x48d590
mov eax, dword [0x4d7b2c]
mov dword [edi], eax
mov edi, dword [ebp + 0x10]
push esi
cmp edi, 1
jne 0x48d5ce
mov esi, dword [ebp + 8]
push edi
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x48d5e9
pop esi
pop edi
mov eax, 0x2000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp edi, 2
je 0x48d5e6
cmp edi, 3
je 0x48d5e6
pop esi
pop edi
mov eax, 0x10000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 8]
xor ebx, ebx
xor al, al
mov byte [ebp - 1], al
mov byte [ebp + 0x13], bl
cmp edi, 1
je 0x48d62f
cmp edi, 2
jne 0x48d64b
push ebx
push 0x80
push 3
push ebx
push 1
push closesocket
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x48d629
pop esi
pop edi
mov eax, 0x200
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov byte [ebp + 0x13], 1
jmp 0x48d635
mov ebx, esi
mov byte [ebp + 0x13], 0
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
setne al
mov byte [ebp - 1], al
push 0x20
call sub.mfc140u.dll_operator_2
add esp, 4
mov esi, eax
cmp edi, 1
je 0x48d686
cmp edi, 2
je 0x48d686
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0xc]
mov word [esi], 0x100
mov byte [esi + 0x10], 0
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0xc], 0
jmp 0x48d6b7
mov al, byte [ebp + 0x13]
mov byte [esi + 0x10], al
mov al, byte [ebp - 1]
mov byte [esi], 1
mov byte [esi + 1], al
mov dword [esi + 4], ebx
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
test al, al
je 0x48d6b7
push 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0xc], eax
push esi
call fcn.00490640
mov ecx, dword [ebp - 8]
add esp, 4
mov edx, 0x200
mov dword [ecx], eax
xor ecx, ecx
test eax, eax
pop esi
cmove ecx, edx
pop edi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, 0x1000000
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x48dd30
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
movsx eax, byte [ebp + 0xc]
mov ecx, dword [edx]
xor eax, ecx
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4fead0]
xor eax, ecx
mov ecx, dword [edx + 8]
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4fead0]
mov dword [edx + 8], ecx
pop ebp
ret
Function at 0x4901f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, esi
imul ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x49022e
push 0
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x490222
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
pop edi
div esi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edi + 0x1c]
mov esi, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
sub esi, edx
lea eax, [edx + ebx]
cmp eax, dword [edi + 0x18]
cmovbe esi, ebx
add ecx, edx
push esi
push ecx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x490260
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x49026e
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not eax
cmp esi, 8
jb 0x49032d
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fead0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fead0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fead0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fead0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fead0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fead0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fead0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fead0]
sub edi, 1
jne 0x490286
pop edi
test esi, esi
je 0x49034b
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4fead0]
sub esi, 1
jne 0x490331
not eax
pop esi
pop ebp
ret
Function at 0x491140
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 1
cmp byte [esi], 0
je 0x491174
push 0
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xb]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x49116f
mov byte [esi + 8], 1
mov edi, dword [ebp - 4]
jmp 0x4911a0
mov ecx, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x491186
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp + 0xb]
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
lea eax, [ebx + edi]
mov dword [esi + 0x1c], eax
pop ebx
cmp edi, 1
jne 0x4911b6
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0xb]
mov dword [eax], ecx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x4911ae
cmp byte [esi + 8], 0
je 0x4911ae
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x491790
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4be089
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [0x587614]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x58cfd8]
mov dword [ebp - 4], 0
push dword [eax + 0x894]
call fcn.00473090
push eax
call fcn.004189e0
mov esi, dword [ebp + 0xc]
add esp, 8
mov ecx, dword [0x4dd8c0]
mov edi, eax
push str.GetNativeSystemInfo
mov dword [esi], ecx
mov ecx, dword [0x4dd8c4]
push str.kernel32.dll
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x491810
lea ecx, [ebp - 0x30]
push ecx
call eax
jmp 0x49181a
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
test byte [ebp - 0x30], 9
je 0x491875
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
movzx ecx, al
movzx eax, ax
sbb edx, edx
shr eax, 8
and edx, 0xa
add edx, 0xa
add edx, ecx
imul ecx, edx, 0x64
add ecx, eax
cmp ecx, 0xa2a
jb 0x491875
push 3
push 0x4f5d00
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x491875
movups xmm0, xmmword [str.XPS_PASS]
movups xmmword [esi], xmm0
mov cx, word [0x4ff3b8]
mov word [esi + 0x10], cx
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4918a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x587614]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [ebp + 0x14]
lea eax, [ebp - 0x208]
push 0x100
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
add esp, 4
lea ecx, [ebp + 8]
fstp qword [ebp - 0x210]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 0xc]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 0x10]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp + 0x14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 4]
fld qword [ebp - 0x210]
xor ecx, ebp
call fcn.004b61c2
mov esp, ebp
pop ebp
ret
Function at 0x494110
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
mov eax, dword [0x587614]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push esi
push edi
push dword [esp + 0xa4]
mov edi, dword [esp + 0xa4]
call fcn.00495dd0
push 0x6c636d73
mov dword [esp + 0x20], eax
call fcn.00495dd0
push dword [edi + 0x2c]
mov dword [esp + 0x28], eax
call fcn.00495dd0
push dword [edi + 0x30]
mov dword [esp + 0x30], eax
call fcn.00495dd0
push dword [edi + 0x34]
mov dword [esp + 0x38], eax
call fcn.00495dd0
push dword [edi + 0x38]
mov dword [esp + 0x40], eax
call fcn.00495dd0
mov dword [esp + 0x44], eax
lea eax, [edi + 8]
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00495f80
push 0x61637370
call fcn.00495dd0
push 0x4d534654
mov dword [esp + 0x64], eax
call fcn.00495dd0
push dword [edi + 0x40]
mov dword [esp + 0x6c], eax
call fcn.00495dd0
push dword [edi + 0x44]
mov dword [esp + 0x74], eax
call fcn.00495dd0
push dword [edi + 0x48]
mov dword [esp + 0x7c], eax
call fcn.00495dd0
mov dword [esp + 0x80], eax
lea eax, [edi + 0x50]
push eax
lea eax, [esp + 0x88]
push eax
call fcn.00495e00
push dword [edi + 0x3c]
call fcn.00495dd0
add esp, 0x40
mov dword [esp + 0x58], eax
call fcn.00495a70
sub esp, 8
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
call fcn.00495f20
push eax
call fcn.00495dd0
mov dword [esp + 0x68], eax
call fcn.00495a70
add esp, 4
movsd xmm0, qword [eax + 8]
movsd qword [esp], xmm0
call fcn.00495f20
push eax
call fcn.00495dd0
mov dword [esp + 0x6c], eax
call fcn.00495a70
add esp, 4
movsd xmm0, qword [eax + 0x10]
movsd qword [esp], xmm0
call fcn.00495f20
push eax
call fcn.00495dd0
push 0x6c636d73
mov dword [esp + 0x74], eax
call fcn.00495dd0
xorps xmm0, xmm0
mov dword [esp + 0x78], eax
movups xmmword [esp + 0x8c], xmm0
movq qword [esp + 0x9c], xmm0
push 0x10
lea eax, [edi + 0x5c]
mov dword [esp + 0xa8], 0
push eax
lea eax, [esp + 0x84]
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [edi]
lea ecx, [esp + 0x34]
push ecx
push 0x80
push eax
mov eax, dword [eax + 0x120]
call eax
add esp, 0x28
test eax, eax
je 0x49435d
mov esi, dword [edi + 0x6c]
xor ecx, ecx
test esi, esi
je 0x4942d3
lea edx, [edi + 0x70]
nop dword [eax + eax]
cmp dword [edx], 0
lea eax, [ecx + 1]
lea edx, [edx + 4]
cmove eax, ecx
mov ecx, eax
sub esi, 1
jne 0x4942c0
push ecx
push dword [edi]
call fcn.00496560
add esp, 8
test eax, eax
je 0x49435d
xor ebx, ebx
cmp dword [edi + 0x6c], ebx
jbe 0x494340
lea esi, [edi + 0x520]
nop
mov eax, dword [esi - 0x4b0]
test eax, eax
je 0x494337
push eax
call fcn.00495dd0
push dword [esi]
mov dword [esp + 0x14], eax
call fcn.00495dd0
push dword [esi - 0x190]
mov dword [esp + 0x1c], eax
call fcn.00495dd0
mov dword [esp + 0x20], eax
lea ecx, [esp + 0x18]
mov eax, dword [edi]
push ecx
push 0xc
push eax
mov eax, dword [eax + 0x120]
call eax
add esp, 0x18
test eax, eax
je 0x49435d
inc ebx
add esi, 4
cmp ebx, dword [edi + 0x6c]
jb 0x4942f0
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.004b61c2
add esp, 0x90
ret
mov ecx, dword [esp + 0x98]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004b61c2
add esp, 0x90
ret
Function at 0x494bd0
Capabilities:
Delete file

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
push esi
call fcn.004945f0
push 0x4ff7ec
push dword [esp + 0x18]
push eax
call fcn.00494710
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x494bf7
pop esi
pop ebx
ret
push ebx
push esi
call fcn.00494c30
neg eax
push ebx
sbb esi, esi
neg esi
call fcn.004943d0
add esp, 0xc
and esi, eax
jne 0x494c1e
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
add esp, 4
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4b4def
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004ab2e1
and dword [ebp - 4], 0
cmp dword [0x4e0844], 0
mov ebx, eax
jne 0x4b4ea0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4b4f51
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4cbf78
push edi
call esi
test eax, eax
je 0x4b4f51
push eax
call fcn.004ab26f
mov dword [esp], 0x4cbf68
push edi
mov dword [0x4e0844], eax
call esi
push eax
call fcn.004ab26f
mov dword [esp], 0x4cbf54
push edi
mov dword [0x4e0848], eax
call esi
push eax
call fcn.004ab26f
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4e084c], eax
call esi
push eax
call fcn.004ab26f
pop ecx
mov dword [0x4e0854], eax
test eax, eax
je 0x4b4ea0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ab26f
pop ecx
mov dword [0x4e0850], eax
mov eax, dword [0x4e0850]
cmp eax, ebx
je 0x4b4ef8
cmp dword [0x4e0854], ebx
je 0x4b4ef8
push eax
call fcn.004ab2ea
push dword [0x4e0854]
mov esi, eax
call fcn.004ab2ea
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4b4ef8
test edi, edi
je 0x4b4ef8
call esi
test eax, eax
je 0x4b4eef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4b4eef
test byte [ebp - 0xc], 1
jne 0x4b4ef8
or dword [ebp + 0x10], 0x200000
jmp 0x4b4f31
mov eax, dword [0x4e0848]
cmp eax, ebx
je 0x4b4f31
push eax
call fcn.004ab2ea
pop ecx
test eax, eax
je 0x4b4f31
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4b4f31
mov eax, dword [0x4e084c]
cmp eax, ebx
je 0x4b4f31
push eax
call fcn.004ab2ea
pop ecx
test eax, eax
je 0x4b4f31
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4e0844]
call fcn.004ab2ea
pop ecx
test eax, eax
je 0x4b4f51
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4b4f53
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b652
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
and ebx, ebx
call fcn.0043b68e
sub ebx, ebx
sub ebx, 1
sub ebx, 0xc95cc84a
xor dword [esi], edi
or ebx, ebx
inc esi
add eax, ebx
cmp esi, ecx
jne fcn.0043b652
add eax, 0xbc1eafa4
add eax, 1
and eax, ebx
ret
Function at 0x43b653
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov ecx, dword [esp]
add esp, 4
mov edi, 0x25e5c5c0
sub edi, esi
sub edi, esi
call fcn.0043b68d
inc esi
sub esi, 0xb27585c1
inc edi
xor dword [edx], ecx
or edi, edi
inc edx
push esi
pop edi
add esi, edi
cmp edx, ebx
jne fcn.0043b653
add edi, edi
inc esi
sub esi, 0x202741c1
ret