joyce8/EMBER2024-capa huggingface dataset:
Function at 0x504c20
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
call fcn.00504ac0
test eax, eax
jne 0x504c3c
xor eax, eax
jmp 0x504dca
push 0x4f0
call fcn.0053ce93
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
push 0x4f0
push 0
mov ecx, dword [ebp - 4]
push ecx
call fcn.0053e230
add esp, 0xc
mov edx, dword [ebp - 8]
add edx, 0x218
push edx
mov eax, dword [ebp - 4]
add eax, 0x20
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp dword [ebp + 0x28], 0
je 0x504c96
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp - 4]
add edx, 0xe0
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 8], ecx
mov edx, dword [ebp + 0x10]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x14]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x14], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov edx, dword [ebp - 4]
movsd xmm0, qword [ebp + 0x1c]
movsd qword [edx + 0x18], xmm0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x9020]
mov dword [eax + 0x4ec], edx
mov eax, dword [ebp + 0x24]
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x60
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov edx, dword [ebp - 8]
add edx, 0x2258
push edx
mov eax, dword [ebp - 4]
add eax, 0x1e0
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov ecx, dword [ebp - 8]
add ecx, 0x1258
push ecx
push 0x104
mov edx, dword [ebp - 4]
add edx, 0x2e0
push edx
call fcn.0041f950
mov eax, dword [ebp - 8]
cmp dword [eax + 0x9020], 0x7ee
jne 0x504d6f
mov ecx, dword [ebp - 4]
add ecx, 0x2e0
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x504d6f
mov edx, dword [ebp - 4]
add edx, 0x2e0
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
mov eax, dword [ebp - 8]
add eax, 0x81ec
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x2e0
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov edx, dword [ebp - 8]
cmp dword [edx + 0x9020], 0x7ee
je 0x504d8d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x9020], 0x7ec
jne 0x504daa
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x7f8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x208]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x504dc5
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x7f8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x208]
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
mov esp, ebp
pop ebp
ret 0x24
Function at 0x5056c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578299
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x5bd250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
add eax, 0x125c
push eax
lea ecx, [ebp - 0x18]
call fcn.004fe220
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x18]
call fcn.004ff450
push eax
call fcn.0041b5c0
add esp, 8
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push str.ck_W
mov edx, dword [ebp - 0x38]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 9
mov ecx, dword [ebp - 0x14]
call fcn.00505550
mov ecx, dword [ebp - 0x14]
call fcn.00505520
test eax, eax
je 0x5058b3
lea ecx, [ebp - 0x18]
call fcn.004ff450
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x10]
call fcn.004fe220
mov byte [ebp - 4], 1
push str..zip
lea ecx, [ebp - 0x10]
call fcn.004fffe0
test eax, eax
je 0x5057e7
push str..rar
lea ecx, [ebp - 0x10]
call fcn.004fffe0
test eax, eax
je 0x5057e7
push 0x57ef90
lea ecx, [ebp - 0x10]
call fcn.004fffe0
test eax, eax
je 0x5057e7
push str..tar
lea ecx, [ebp - 0x10]
call fcn.004fffe0
test eax, eax
je 0x5057e7
push 0x57efa4
lea ecx, [ebp - 0x10]
call fcn.004fffe0
test eax, eax
je 0x5057e7
push 0x57efac
lea ecx, [ebp - 0x10]
call fcn.004fffe0
test eax, eax
je 0x5057e7
push str..bz2
lea ecx, [ebp - 0x10]
call fcn.004fffe0
test eax, eax
jne 0x5057ec
jmp 0x5058a7
push ecx
mov ecx, esp
mov dword [ebp - 0x28], esp
lea edx, [ebp - 0x18]
push edx
call fcn.004fe0e0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
push ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
call fcn.00505e90
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 3
push 0x3c
push 0
lea edx, [ebp - 0x7c]
push edx
call fcn.0053e230
add esp, 0xc
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x74], 0
lea ecx, [ebp - 0x1c]
call fcn.004ff450
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x18]
call fcn.004ff450
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x14]
add eax, 0x85f0
push eax
call fcn.0053ea71
add esp, 4
test eax, eax
jbe 0x505874
mov ecx, dword [ebp - 0x14]
add ecx, 0x85f0
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x78], 0x40
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push 0x493e0
mov eax, dword [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.004feb20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.004feb20
push 0x57f140
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 0x10
mov ecx, dword [ebp - 0x14]
call fcn.00505550
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004feb20
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x50a960
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578941
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x5bd250]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
push 0x294
call fcn.0053ce93
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 0
je 0x50a9b2
mov ecx, dword [ebp - 0x14]
call fcn.0050da20
mov dword [ebp - 0x18], eax
jmp 0x50a9b9
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x50a9da
jmp 0x50aa15
push 0
push 0
push 0
push 0
push 0
push 0
push 0x90020000
push str.Hao123
push 0
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx + 4]
call fcn.004c45eb
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], 5
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x50aa30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x599bbc
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.00413b10
add esp, 0xc
test eax, eax
je 0x50aa75
cmp dword [ebp - 4], 1
jne 0x50aa75
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call fcn.0041a090
add esp, 4
xor eax, eax
jmp 0x50aa7a
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x510b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2208
call fcn.0053fec0
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2208], ecx
lea eax, [ebp - 0x2204]
push eax
mov ecx, 0x5c18b0
call fcn.0050e7b0
mov ecx, eax
call fcn.004f8f20
movzx ecx, al
test ecx, ecx
je 0x510bc6
push 5
push 0
push 0
lea edx, [ebp - 0x2204]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret 0xc

Function at 0x512470
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 4]
call fcn.0050ee10
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x5125d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x214], ecx
mov ecx, dword [ebp - 0x214]
add ecx, 0x280
call fcn.00500830
movzx eax, al
test eax, eax
jne 0x51266a
xor ecx, ecx
mov word [ebp - 0x210], cx
push 0x208
push 0
lea edx, [ebp - 0x20e]
push edx
call fcn.0053e230
add esp, 0xc
mov ecx, dword [ebp - 0x214]
add ecx, 0x280
call fcn.004ff450
push eax
push 0x104
lea eax, [ebp - 0x210]
push eax
call fcn.0041f950
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push 5
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5167f0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], 0
jg 0x516806
xor eax, eax
jmp 0x516933
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x58], 0
mov edx, dword [ebp - 4]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push SysReAllocString
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x48], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x50], eax
mov edx, dword [ebp - 4]
add edx, 0x18
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0xc], 0
jmp 0x516892
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jge 0x516917
push 8
call fcn.0053ce93
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x516912
lea eax, [ebp - 0x1c]
push eax
push 4
mov ecx, dword [ebp - 8]
push ecx
push 0x516f90
push 0
push 0
call fcn.00543c9a
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x516900
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov dword [ecx + 4], edx
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
call fcn.00518bf0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x516912
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.0053ce3a
add esp, 4
jmp 0x516889
mov ecx, dword [ebp - 4]
add ecx, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 4]
mov dword [edx + 0x5c], 1
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x516a30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x5c], 0
jne 0x516a47
jmp 0x516bc6
mov ecx, dword [ebp - 4]
call fcn.00516eb0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x5c], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x7530
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
add eax, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0xc], 0
jmp 0x516a9a
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
call fcn.00518e10
cmp dword [ebp - 0xc], eax
jge 0x516b0c
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
call fcn.00517c40
mov eax, dword [eax]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x516b0a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [ebp - 0x10], 0x103
jne 0x516af8
push 0
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.0053ce3a
add esp, 4
jmp 0x516a91
mov ecx, dword [ebp - 4]
call fcn.00518910
mov ecx, dword [ebp - 4]
add ecx, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edx, dword [ebp - 4]
add edx, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 4]
add ecx, 0xc
call fcn.00518950
mov eax, dword [ebp - 4]
add eax, 0x30
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x48], 0
je 0x516b66
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 4]
cmp dword [edx + 0x4c], 0
je 0x516b86
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov dword [edx + 0x4c], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x50], 0
je 0x516ba6
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0x50], 0
mov ecx, dword [ebp - 4]
add ecx, 0x18
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
cmp dword [ebp - 0x18], 0
jne 0x516bc6
mov edx, dword [ebp - 4]
add edx, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov esp, ebp
pop ebp
ret
Function at 0x56d428
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5bd250]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0054c180
mov dword [ebp - 0x14], eax
cmp dword [0x5c2ad8], esi
jne 0x56d51b
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x56d4a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x56d5fb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x56d5fb
push 0x58905c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x56d5fb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x5c2ad8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x5c2adc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x5c2ae0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c2ae8], eax
test eax, eax
je 0x56d518
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x5c2ae4], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x56d540
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x56d533
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x56d555
push 4
pop eax
jmp 0x56d5fd
cmp dword [ebp - 0x14], esi
je 0x56d555
push dword [0x5c2ad8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x56d53a
mov eax, dword [0x5c2ae4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x56d5b3
cmp dword [0x5c2ae8], edi
je 0x56d5b3
push eax
call ebx
push dword [0x5c2ae8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x56d5b3
test eax, eax
je 0x56d5b3
call ecx
test eax, eax
je 0x56d5a8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x56d5a8
test byte [ebp - 8], 1
jne 0x56d5b3
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x56d5e3
mov eax, dword [0x5c2adc]
cmp eax, edi
je 0x56d5e0
push eax
call ebx
test eax, eax
je 0x56d5e0
call eax
mov esi, eax
test esi, esi
je 0x56d5e0
mov eax, dword [0x5c2ae0]
cmp eax, edi
je 0x56d5e0
push eax
call ebx
test eax, eax
je 0x56d5e0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x5c2ad8]
call ebx
test eax, eax
je 0x56d5fb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x56d5fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0053f9bc
mov esp, ebp
pop ebp
ret
Function at 0x401957
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test ecx, ecx
je 0x401989
test dl, 3
je 0x401986
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
sub ecx, 1
jne 0x40196d
mov dword [ebp - 4], edx
lea eax, [edx + ecx]
mov dword [ebp + 0xc], eax
cmp ecx, 0xc
jb 0x401a55
sub eax, 0xc
mov dword [ebp + 8], eax
xor ebx, dword [edx]
mov edx, dword [edx + 4]
mov eax, edx
shr eax, 8
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov esi, dword [edi + ecx*4 + 0x1800]
xor esi, dword [edi + eax*4 + 0x1400]
mov eax, edx
shr eax, 0x18
xor esi, dword [edi + eax*4 + 0x1000]
movzx eax, dl
mov edx, dword [ebp - 4]
xor esi, dword [edi + eax*4 + 0x1c00]
mov eax, ebx
mov edx, dword [edx + 8]
shr eax, 8
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
mov ecx, dword [edi + ecx*4 + 0x2800]
xor ecx, dword [edi + eax*4 + 0x2400]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x800]
mov eax, edx
shr eax, 0x10
movzx eax, al
xor ecx, dword [edi + eax*4 + 0x400]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [edi + eax*4 + 0x2000]
movzx eax, bl
xor ecx, dword [edi + eax*4 + 0x2c00]
movzx eax, dl
shr edx, 0x18
xor ecx, dword [edi + eax*4 + 0xc00]
xor ecx, dword [edi + edx*4]
mov edx, dword [ebp - 4]
xor ecx, esi
add edx, 0xc
mov ebx, ecx
mov dword [ebp - 4], edx
cmp edx, dword [ebp + 8]
jbe 0x40199e
mov ecx, dword [ebp + 0xc]
xor esi, esi
and dword [ebp + 8], esi
sub ecx, edx
cmp edx, dword [ebp + 0xc]
cmova ecx, dword [ebp + 8]
test ecx, ecx
je 0x401a7e
movzx eax, byte [edx]
xor eax, ebx
shr ebx, 8
movzx eax, al
xor ebx, dword [edi + eax*4]
inc edx
inc esi
cmp esi, ecx
jb 0x401a6a
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402025
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
shr edi, 2
xor ebx, ebx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
mov ecx, ebx
add eax, 3
mov dword [esi], eax
add esi, 0x10
test edi, edi
je 0x40205c
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [esi + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x40204f
mov edx, dword [esi + edi*4 - 4]
imul eax, edi, 0xc
add eax, 0x70
add eax, esi
mov dword [ebp + 8], eax
test ebx, ebx
jne 0x4020ca
movzx eax, dl
mov ebx, dword [ebp - 4]
push 0x1b
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
mov eax, edx
shr eax, 0x10
movzx eax, al
shr edx, 8
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
xor edx, ebx
add ebx, ebx
or edx, ecx
test ebx, 0x100
pop eax
cmovne ebx, eax
mov dword [ebp - 4], ebx
mov ebx, edi
jmp 0x402117
cmp ebx, 4
jne 0x40211a
cmp edi, 6
jbe 0x40211a
mov eax, edx
shr eax, 0x10
movzx eax, al
movzx ecx, byte [eax + str.cw]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or ecx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + str.cw]
or ecx, eax
movzx eax, dl
shl ecx, 8
movzx edx, byte [eax + str.cw]
or edx, ecx
mov eax, dword [ebp + 8]
xor edx, dword [esi]
dec ebx
mov dword [esi + edi*4], edx
add esi, 4
cmp esi, eax
jne 0x40206b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x402df3
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x452094]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x402e3c
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402e3c
push 0xc00
call eax
test eax, eax
jne 0x402ed7
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x402ed7
cmp eax, 0x104
ja 0x402ed7
push 0x5c
pop ecx
cmp word [ebp + eax*2 - 0x2d6], cx
je 0x402e73
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
cmp byte [str.userenv], 0
push esi
mov esi, str.userenv
je 0x402ed6
push ebx
push edi
lea edi, [ebp - 0x2d4]
push 0x6c
lea edi, [edi + eax*2]
pop ebx
mov ecx, edi
jmp 0x402e9d
movzx eax, al
mov word [ecx], ax
add ecx, 2
mov al, byte [esi]
inc esi
test al, al
jne 0x402e94
push 0x2e
pop eax
push 0x64
mov word [ecx], ax
pop eax
mov word [ecx + 2], ax
xor eax, eax
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov word [ecx + 4], bx
mov word [ecx + 6], bx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
cmp byte [esi], 0
jne 0x402e90
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0043540e
mov esp, ebp
pop ebp
ret