joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ca3e0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x6185db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
push edi
mov esi, ecx
push 0x8c509c
lea ecx, [esp + 0xc]
call fcn.005be1c0
mov edi, dword [esp + 0x128]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push edi
mov ecx, esi
mov dword [esp + 0x12c], 0
call fcn.005c9b90
mov edx, dword [esp + 0x12c]
push edi
push edx
lea eax, [esp + 0x1c]
push 0x6cb438
push eax
call fcn.00401aa0
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea edx, [esp + 0x14]
push 0x6c9484
push edx
call fcn.005e1a80
mov esi, eax
add esp, 8
test esi, esi
jne 0x5ca4a3
mov eax, dword [esp + 0xc]
push eax
call fcn.005bd360
lea ecx, [esp + 0x18]
push ecx
push str.r3dFS:_unable_to_open__s_for_writing_n
call fcn.005bb3d0
add esp, 0xc
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call fcn.005bd1e0
xor al, al
jmp 0x5ca4da
mov edx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
push esi
push edx
push 1
push edi
call fcn.005e26df
push esi
call fcn.005e1340
push edi
call fcn.005bd360
add esp, 0x18
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call fcn.005bd1e0
mov al, 1
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret 8

Function at 0x5cc790
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x61875b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
mov ebx, ecx
push 0x8c509c
lea ecx, [esp + 0xc]
call fcn.005be1c0
push 0
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
mov dword [esp + 0x120], 0
call fcn.005c94e0
lea ecx, [esp + 0xc]
push 0x6cb8c4
push ecx
call fcn.005e1a80
mov esi, eax
add esp, 8
test esi, esi
jne 0x5cc82d
lea edx, [esp + 0xc]
push edx
push str.r3dFS:_there_is_no_volume_file__s_n
call fcn.005bb3d0
add esp, 8
lea ecx, [esp + 8]
mov dword [esp + 0x118], 0xffffffff
call fcn.005bd1e0
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
mov dword fs:[0], ecx
add esp, 0x114
ret
push ebp
push edi
push 2
push 0
push esi
call fcn.005e6d47
push esi
call fcn.005e6f81
push 0
push 0
push esi
mov edi, eax
call fcn.005e6d47
lea eax, [edi + 1]
push 1
push eax
call fcn.005bd340
push esi
push 1
mov ebp, eax
push edi
push ebp
call fcn.005e72f7
push esi
call fcn.005e1340
add esp, 0x38
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
lea ecx, [ebx + 0x104]
call fcn.005cc490
push ebp
mov bl, al
call fcn.005bd360
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x120], 0xffffffff
call fcn.005bd1e0
mov ecx, dword [esp + 0x118]
pop edi
pop ebp
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret
Function at 0x5d48f0
Capabilities:
Enumerate process modules

Disassembly:
sub esp, 0x224
push esi
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d4911
xor eax, eax
pop esi
add esp, 0x224
ret
push edi
lea eax, [esp + 8]
push eax
push esi
mov dword [esp + 0x10], 0x224
xor edi, edi
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x5d496b
jmp 0x5d4930
lea ecx, [esp + 0x28]
push str..exe
push ecx
call fcn.005d6050
add esp, 8
test eax, eax
jne 0x5d4967
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x5d4930
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret
mov edi, dword [esp + 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
add esp, 0x224
ret

Function at 0x5d6830
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x618938
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jb 0x5d6903
push ebx
push ebp
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
lea ebx, [eax + 1]
mov dword [esp + 0x24], ebp
mov eax, SysReAllocString
test ebx, ebx
js 0x5d687e
shr eax, 1
test ebx, eax
je 0x5d6878
add eax, eax
push eax
lea ecx, [esp + 0x14]
call fcn.005d6710
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edi, dword [esp + 0x10]
push eax
push ecx
push edi
call fcn.005d66d0
mov eax, dword [esi + 4]
lea edx, [eax + eax*2]
lea eax, [edi + edx*8]
add esp, 0xc
cmp eax, ebp
je 0x5d68cb
mov ecx, dword [esp + 0x2c]
movq xmm0, qword [ecx]
movq qword [eax], xmm0
movq xmm0, qword [ecx + 8]
movq qword [eax + 8], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
push 1
mov dword [esi], edi
push 1
mov dword [esi + 4], ebx
push eax
mov dword [esi + 8], ecx
mov dword [esp + 0x30], 0xffffffff
call fcn.005bd2c0
add esp, 0xc
pop edi
pop ebp
pop ebx
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret 4
mov ecx, dword [esi]
lea edx, [eax + eax*2]
lea ecx, [ecx + edx*8]
inc eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x5d6933
mov eax, dword [esp + 0x20]
movq xmm0, qword [eax]
movq qword [ecx], xmm0
movq xmm0, qword [eax + 8]
movq qword [ecx + 8], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ecx + 0x10], xmm0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x5dbae0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x5dbb14
mov cl, byte [edx]
test cl, cl
je 0x5dbb14
mov eax, 0x811c9dc5
movsx ecx, cl
or ecx, 0x20
xor ecx, eax
imul ecx, ecx, 0x1000193
inc edx
mov eax, ecx
mov cl, byte [edx]
test cl, cl
jne 0x5dbaf3
xor eax, 0x2a
imul eax, eax, 0x1000193
ret
xor eax, eax
ret
Function at 0x5e0eb7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6fadcc]
jne 0x5e0ec1
repz ret
jmp fcn.005eacc3

Function at 0x5e10de
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5e110f
call fcn.005e84a6
mov dword [eax], esi
call fcn.005e8493
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005e2281
add esp, 0x14
push 0x16
pop eax
jmp 0x5e1164
test dword [ebp + 0xc], 0xfffffff9
jne 0x5e10eb
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5e113c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005e84b9
pop ecx
call fcn.005e8493
mov eax, dword [eax]
jmp 0x5e1164
test al, 0x10
jne 0x5e1162
test al, 1
je 0x5e1162
test byte [ebp + 0xc], 2
je 0x5e1162
call fcn.005e84a6
mov dword [eax], 5
call fcn.005e8493
mov dword [eax], 0xd
jmp 0x5e1133
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5f6da4
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.005eae3b
and dword [ebp - 4], 0
cmp dword [0x8e0c98], 0
mov ebx, eax
jne 0x5f6e55
push 0x6b29a0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5f6f06
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6b2994
push edi
call esi
test eax, eax
je 0x5f6f06
push eax
call fcn.005eadc9
mov dword [esp], 0x6b2984
push edi
mov dword [0x8e0c98], eax
call esi
push eax
call fcn.005eadc9
mov dword [esp], 0x6b2970
push edi
mov dword [0x8e0c9c], eax
call esi
push eax
call fcn.005eadc9
mov dword [esp], 0x6b2954
push edi
mov dword [0x8e0ca0], eax
call esi
push eax
call fcn.005eadc9
pop ecx
mov dword [0x8e0ca8], eax
test eax, eax
je 0x5f6e55
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.005eadc9
pop ecx
mov dword [0x8e0ca4], eax
mov eax, dword [0x8e0ca4]
cmp eax, ebx
je 0x5f6ead
cmp dword [0x8e0ca8], ebx
je 0x5f6ead
push eax
call fcn.005eae44
push dword [0x8e0ca8]
mov esi, eax
call fcn.005eae44
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5f6ead
test edi, edi
je 0x5f6ead
call esi
test eax, eax
je 0x5f6ea4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5f6ea4
test byte [ebp - 0xc], 1
jne 0x5f6ead
or dword [ebp + 0x10], 0x200000
jmp 0x5f6ee6
mov eax, dword [0x8e0c9c]
cmp eax, ebx
je 0x5f6ee6
push eax
call fcn.005eae44
pop ecx
test eax, eax
je 0x5f6ee6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x5f6ee6
mov eax, dword [0x8e0ca0]
cmp eax, ebx
je 0x5f6ee6
push eax
call fcn.005eae44
pop ecx
test eax, eax
je 0x5f6ee6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x8e0c98]
call fcn.005eae44
pop ecx
test eax, eax
je 0x5f6f06
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5f6f08
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x603b80
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x618b50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x64
lea eax, [ebp - 0x28]
push eax
push 1
push 0
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
call fcn.00411420
push 0
lea ecx, [ebp - 0x24]
push ecx
lea edx, [ebp - 0x10]
push edx
call sub.gdiplus.dll_GdiplusStartup
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 0x5c], eax
push 1
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x34], eax
push 0
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x48], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 0x5c]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x30]
push edx
push 0
push 0
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x58]
call fcn.00411540
mov dword [ebp - 4], 0
lea edx, [ebp - 0x70]
push edx
push 0x6bd520
call fcn.00603a90
add esp, 8
push 0
lea eax, [ebp - 0x70]
push eax
push 0x6bd538
lea ecx, [ebp - 0x58]
call fcn.00603d10
push 0
lea ecx, [ebp - 0x70]
push ecx
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x58]
call fcn.004114c0
push 0
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x44]
call fcn.00603d40
mov byte [ebp - 4], 1
push 0
lea ecx, [ebp - 0x70]
push ecx
push str.survey.info
lea ecx, [ebp - 0x44]
call fcn.00603d10
mov edx, dword [ebp - 0x60]
push edx
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [ebp - 0x5c]
push ecx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x44]
call fcn.00411530
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00411530
mov edx, dword [ebp - 0x10]
push edx
call fcn.00604970
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x6044c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xdd
mov dword [ebp - 8], 0
jmp 0x6044e2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 7
jge 0x604521
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x50efdffd]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x60451c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x6044d9
mov eax, dword [ebp - 0xc]
mov byte [eax + 7], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x604540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x1b
mov dword [ebp - 8], 0
jmp 0x604562
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xa
jge 0x6045a1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x45d8504a]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x60459c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x604559
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xa], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x6045c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xfd
mov dword [ebp - 8], 0
jmp 0x6045e2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 9
jge 0x604621
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x41d48c26]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x60461c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x6045d9
mov eax, dword [ebp - 0xc]
mov byte [eax + 9], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x604640
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 6
mov dword [ebp - 8], 0
jmp 0x604662
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xb
jge 0x6046a1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x5c2284f6]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x60469c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x604659
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xb], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x6046c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
jmp 0x6046e2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xd
jge 0x604721
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x32b15ddb]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x60471c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x6046d9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xd], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x604740
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xae
mov dword [ebp - 8], 0
jmp 0x604762
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xb
jge 0x6047a1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x5875c20c]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x60479c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x604759
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xb], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x6047c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xb7
mov dword [ebp - 8], 0
jmp 0x6047e2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x3f
jge 0x604821
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x698ea31e]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x60481c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x6047d9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x3f], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x604840
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xe3
mov dword [ebp - 8], 0
jmp 0x604862
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0x13
jge 0x6048a1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x5f880699]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x60489c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x604859
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x13], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x6048f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0xce
mov dword [ebp - 8], 0
jmp 0x604912
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 5
jge 0x604951
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x31ae3858]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x60494c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x604909
mov eax, dword [ebp - 0xc]
mov byte [eax + 5], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x6052f0
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
xor edi, edi
test ebx, ebx
je 0x60536b
mov ebp, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push edi
push edi
call ebp
push ebx
mov esi, eax
call fcn.00602892
add eax, esi
add esp, 4
lea eax, [eax + eax + 2]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
jne 0x605327
pop edi
pop esi
pop ebp
ret
push esi
push edi
call ebp
mov ebp, eax
cmp word [edi + ebp*2 - 2], 0x5c
je 0x60533e
mov word [edi + ebp*2], 0x5c
add ebp, 1
push ebx
xor esi, esi
call fcn.00602892
add esp, 4
test eax, eax
jbe 0x60536b
lea ebp, [edi + ebp*2]
mov cx, word [ebx + esi*2]
mov word [ebp], cx
push ebx
add esi, 1
add ebp, 2
call fcn.00602892
add esp, 4
cmp esi, eax
jb 0x605350
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x6064a0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
xor esi, esi
cmp dword [0x8e13d0], esi
mov dword [esp + 8], esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 0x24
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x18], 0x2a
jne 0x606536
push 3
push 0x20
push 3
push 1
push 3
push 2
push esi
push esi
call sub.ntdll.dll_VerSetConditionMask
push edx
push eax
call sub.ntdll.dll_VerSetConditionMask
push edx
push eax
call sub.ntdll.dll_VerSetConditionMask
push edx
push eax
push 0x23
push 0x8e13d0
mov dword [0x8e13d0], 0x11c
mov dword [0x8e13d4], 6
mov dword [0x8e13d8], 1
mov word [0x8e14e4], si
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
neg eax
sbb eax, eax
add eax, 1
mov dword [0x6fc314], eax
jmp 0x60653b
mov eax, dword [0x6fc314]
cmp eax, esi
je 0x60654a
pop esi
mov eax, 1
pop ebp
add esp, 0x14
ret
cmp ebp, esi
je 0x60666a
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push esi
push esi
push esi
push ebp
call ebx
mov edi, eax
test edi, edi
je 0x606668
lea eax, [edi + edi]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
test eax, eax
mov dword [esp + 0x10], eax
je 0x606668
push 0
mov ecx, eax
push ecx
push edi
push ebp
call ebx
cmp edi, eax
jbe 0x606668
mov ebp, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ebx, ebx
jmp 0x6065a0
mov eax, dword [esp + ebx*4 + 0x18]
cmp eax, 0x26
jne 0x60661f
push 0
push 0
push str._ProgramW6432_
call ebp
mov edi, eax
test edi, edi
je 0x606668
lea edx, [edi + edi + 2]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x606668
push edi
push esi
push str._ProgramW6432_
call ebp
cmp edi, eax
jne 0x606668
push esi
push str._ProgramW6432_
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x606606
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push 0x69bd38
push 0x26
jmp 0x606625
cmp word [esi + edi*2 - 4], 0x5c
je 0x606633
push 0x6be0e8
add edi, 1
push edi
push esi
call fcn.006062f0
jmp 0x606633
push 0x69bd38
push eax
call fcn.00606390
mov esi, eax
add esp, 8
test esi, esi
je 0x606668
push esi
call fcn.00602892
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
call fcn.00608d19
add esp, 0x10
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x14], eax
jne 0x606668
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
add ebx, 1
xor esi, esi
cmp ebx, 3
jl 0x6065a0
pop edi
pop ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0x14
ret

Function at 0x606a10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push eax
mov eax, dword [esp + 0xc]
call fcn.006068a0
mov esi, eax
add esp, 4
test esi, esi
je 0x606a52
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x606a34
test al, 0x50
je 0x606a52
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x606a47
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
pop esi
ret
mov eax, esi
pop esi
ret