joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d7e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0
push 0
push eax
mov esi, ecx
call fcn.00464750
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x41d979
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41d979
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp esi, 2
jne 0x41d8d0
lea eax, [ebp - 0x20c]
test eax, eax
je 0x41d967
cmp word [ebp - 0x20c], 0x5a
jne 0x41d967
cmp word [ebp - 0x20a], 0x68
jne 0x41d967
cmp word [ebp - 0x208], 0x75
jne 0x41d967
cmp word [ebp - 0x206], 0x44
jne 0x41d967
cmp word [ebp - 0x204], 0x6f
jne 0x41d967
cmp word [ebp - 0x202], 0x6e
jne 0x41d967
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
cmp esi, 6
jne 0x41d90b
push 0
push 0
push 0x61
push 0x44
push 0x73
push 0x70
push 0x69
lea edx, [esi + 0x42]
lea ecx, [ebp - 0x20c]
call fcn.0041d750
add esp, 0x1c
test al, al
jne 0x41d8ba
push 0
push 0
push 0x72
push 0x6f
push 0x77
push 0x53
push 0x52
lea edx, [esi + 0x42]
jmp 0x41d951
cmp esi, 1
jne 0x41d923
push 0
push 0
push 0x72
push 0x54
push 0x43
push 0x50
push 0x51
lea edx, [esi + 0x50]
jmp 0x41d951
cmp esi, 3
jne 0x41d93b
push 0
push 0
push 0x61
push 0x72
push 0x74
push 0x65
push 0x78
lea edx, [esi + 0x68]
jmp 0x41d951
cmp esi, 5
jne 0x41d967
push 0x65
push 0x66
push 0x61
push 0x53
push 0x35
push 0x34
push 0x33
lea edx, [esi + 0x2d]
lea ecx, [ebp - 0x20c]
call fcn.0041d750
add esp, 0x1c
test al, al
jne 0x41d8ba
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x41d853
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret

Function at 0x41d9a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0
push 0
push eax
call fcn.00464750
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x41da3b
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41da3b
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0x65
push 0x66
push 0x61
push 0x53
push 0x35
push 0x34
push 0x33
mov edx, 0x32
lea ecx, [ebp - 0x20c]
call fcn.0041d750
add esp, 0x1c
test al, al
jne 0x41da54
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x41da08
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x41da70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0
push 0
push eax
call fcn.00464750
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x41db0b
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41db0b
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0
push 0
push 0x61
push 0x72
push 0x74
push 0x65
push 0x78
mov edx, 0x6b
lea ecx, [ebp - 0x20c]
call fcn.0041d750
add esp, 0x1c
test al, al
jne 0x41db24
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x41dad8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x41e7c0
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push 0
push 0x410
mov edi, edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x208
mov esi, eax
call fcn.0045df11
xor eax, eax
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00464750
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
push 0x104
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_GetProcessImageFileNameW]
cmp word [ebp - 0x210], 0
jne 0x41e845
xor eax, eax
jmp 0x41e85f
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41e850
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
mov ecx, edi
push eax
call fcn.0041c1a0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x41e880
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6800
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x50f770]
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 edi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea eax, [ebp - 0x50]
push eax
push 0x20
mov dword [ebp - 0x54], 0
call ebx
mov esi, dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push eax
call esi
lea eax, [ebp - 0x4c]
push eax
push 0x20
call ebx
push eax
call esi
test eax, eax
je 0x41e91f
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x41e91f
mov eax, dword [ebp - 0x18]
push 0
push 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0
push esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, eax
mov dword [ebp - 0x34], 7
xor eax, eax
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
push str.ZwQueryInformationProcess
push str.ntdll.dll
mov dword [ebp - 4], eax
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
push 0
push 0x400
mov dword [ebp - 0x4c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x41e974
or ebx, 0xffffffff
jmp 0x41e98f
push 0
push 0x18
lea eax, [ebp - 0x30]
push eax
push 0
push esi
call dword [ebp - 0x4c]
test eax, eax
push esi
cmove ebx, dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ebp - 0x48]
mov ecx, ebx
call fcn.0041e7c0
lea eax, [ebp - 0x4c]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41e9f5
mov esi, dword [ebp - 0x4c]
lea eax, [ebp - 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x41e9f5
mov eax, dword [ebp - 0x18]
push 0
push 0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
push 0
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x28]
push eax
push 0
push esi
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x1c], 4
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
lea edx, [ebp - 0x48]
mov byte [ebp - 4], 1
mov ecx, edi
call fcn.0041e270
cmp dword [ebp - 0x34], 8
jb 0x41ea28
push dword [ebp - 0x48]
call fcn.0045e6ac
add esp, 4
mov eax, edi
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.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x423720
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d6f1a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0045e302
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4237c6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.00460f3d
push 0x50d80c
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.00464ebb
push edi
push esi
call fcn.0045e1d5
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret 4
Function at 0x424220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7068
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x50f770]
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 edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x18], edi
test edx, edx
je 0x4243d3
mov esi, 0x8000ffff
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
push 0x20019
push 0
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4243b5
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 0
push edi
push 0
push 0x5017b4
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4243ba
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
call fcn.0045df11
mov edi, eax
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
push 0
push edi
call fcn.00464750
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
push edi
push dword [ebp - 0x18]
push 0
push 0x5017b4
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4243aa
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 4
jne 0x424339
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
call fcn.00464750
push 0xa
push 0x28
lea eax, [ebp - 0x68]
push eax
push dword [edi]
call fcn.00461b64
add esp, 0x1c
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.0041b6c0
push edi
xor esi, esi
call fcn.0045f289
add esp, 4
jmp 0x4243ba
cmp eax, 1
je 0x4243a0
cmp eax, 2
je 0x4243a0
cmp eax, 7
je 0x4243a0
cmp dword [ebp - 0x70], 0
jbe 0x4243aa
push 0x501fc4
mov ecx, ebx
call fcn.0041b6c0
xor esi, esi
cmp dword [ebp - 0x70], esi
jbe 0x4243a8
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
movzx eax, byte [esi + edi]
push eax
push 0x501fcc
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.00424400
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.0041a0e0
inc esi
cmp esi, dword [ebp - 0x70]
jb 0x424361
push edi
xor esi, esi
call fcn.0045f289
add esp, 4
jmp 0x4243ba
push edi
mov ecx, ebx
call fcn.0041b6c0
xor esi, esi
push edi
call fcn.0045f289
add esp, 4
jmp 0x4243ba
mov esi, 0x80070005
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x4243cf
push eax
mov dword [ebp - 0x6c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x4243d8
mov eax, 0x80004003
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.0045e6b1
mov esp, ebp
pop ebp
ret

Function at 0x4249d0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
mov dword [ecx + 0x1384], 0xffffffff
lea edi, [ecx + 8]
mov dword [ecx + 4], edx
mov esi, 1
lea ecx, [ecx]
mov eax, edx
lea edi, [edi + 4]
shr eax, 0x1e
xor eax, edx
imul edx, eax, 0x6c078965
add edx, esi
inc esi
mov dword [edi - 4], edx
cmp esi, 0x270
jl 0x4249f0
pop edi
mov dword [ecx], 0x270
mov eax, ecx
pop esi
pop ebp
ret 0xc
Function at 0x424a20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
push esi
push edi
dec ecx
nop
xor eax, eax
xor esi, esi
mov dword [ebp - 4], eax
test ecx, ecx
je 0x424b0c
nop
mov ecx, dword [ebx + 4]
dec ecx
shl esi, cl
add esi, esi
mov dword [ebp - 8], esi
jmp 0x424a50
mov edi, dword [ebx]
mov eax, dword [edi]
cmp eax, 0x270
jne 0x424a9c
lea eax, [edi + 8]
mov esi, 0x270
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
dec esi
jne 0x424a63
jmp 0x424aaa
cmp eax, 0x4e0
jb 0x424aaa
mov ecx, edi
call fcn.00424be0
mov eax, dword [edi]
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
cmp eax, dword [ebx + 8]
ja 0x424a50
mov esi, dword [ebp - 8]
mov ecx, dword [ebx + 4]
or esi, eax
mov eax, dword [ebp - 4]
dec ecx
shl eax, cl
mov ecx, dword [ebp + 8]
add eax, eax
or eax, dword [ebx + 8]
dec ecx
mov dword [ebp - 4], eax
cmp eax, ecx
jb 0x424a40
xor edx, edx
div dword [ebp + 8]
mov ecx, eax
mov edi, edx
xor edx, edx
mov eax, esi
div dword [ebp + 8]
cmp eax, ecx
jb 0x424b2c
mov ecx, dword [ebp + 8]
dec ecx
cmp edi, ecx
jne 0x424a30
mov eax, esi
xor edx, edx
div dword [ebp + 8]
pop edi
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x424b40
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
mov edi, edi
mov ecx, dword [edi + 4]
dec ecx
shl ebx, cl
add ebx, ebx
jmp 0x424b60
mov esi, dword [edi]
mov eax, dword [esi]
cmp eax, 0x270
jne 0x424b74
mov ecx, esi
call fcn.00424ca0
jmp 0x424b82
cmp eax, 0x4e0
jb 0x424b82
mov ecx, esi
call fcn.00424be0
mov eax, dword [esi]
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov ecx, edx
shr ecx, 0x12
xor ecx, edx
cmp ecx, dword [edi + 8]
ja 0x424b60
mov eax, dword [ebp - 4]
or ebx, ecx
add eax, dword [edi + 4]
mov dword [ebp - 4], eax
cmp eax, 0x20
jb 0x424b50
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x424be0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
mov ebx, ecx
mov ecx, 0xe3
push esi
push edi
lea edi, [ebx + 0x9c4]
mov edx, dword [edi + 4]
lea edi, [edi + 4]
xor edx, dword [edi - 4]
and edx, 0x7fffffff
xor edx, dword [edi - 4]
mov eax, edx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr edx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x630]
xor eax, edx
mov dword [edi - 0x9c4], eax
dec ecx
jne 0x424bf0
lea esi, [ebx + 0xd50]
mov edi, 0x18c
mov ecx, dword [esi]
lea esi, [esi + 4]
xor ecx, dword [esi]
and ecx, 0x7fffffff
xor ecx, dword [esi - 4]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi - 0xd50]
xor eax, ecx
mov dword [esi - 0x9c4], eax
dec edi
jne 0x424c30
mov ecx, dword [ebx + 0x1380]
xor ecx, dword [ebx + 4]
and ecx, 0x7fffffff
xor ecx, dword [ebx + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx + 0x9c0], eax
mov dword [ebx], edi
pop edi
pop esi
pop ebx
ret

Function at 0x424ca0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea eax, [ecx + 8]
mov esi, 0x270
lea esp, [esp]
mov edx, dword [eax - 4]
lea eax, [eax + 4]
xor edx, dword [eax - 4]
and edx, 0x7fffffff
xor edx, dword [eax - 8]
mov ecx, edx
and cl, 1
movzx ecx, cl
neg ecx
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [eax + 0x62c]
xor ecx, edx
mov dword [eax + 0x9b8], ecx
dec esi
jne 0x424cb0
pop esi
ret
Function at 0x424dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x514bbc]
mov dword [ebp - 0x214], 0
push esi
mov esi, ecx
push edi
test al, 1
jne 0x424e1b
or eax, 1
mov dword [0x514bd4], 7
mov dword [0x514bbc], eax
xor eax, eax
push 0x4d7e70
mov dword [0x514bd0], 0
mov word [0x514bc0], ax
call fcn.0045eec0
add esp, 4
cmp dword [0x514bd0], 0
jne 0x424f00
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00464750
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp word [ebp - 0x210], 0
jne 0x424e66
xor ecx, ecx
jmp 0x424e7f
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x424e70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, 0x514bc0
push eax
call fcn.0041c1a0
mov edx, 0x514bc0
lea ecx, [ebp - 0x22c]
call fcn.00424cf0
mov edi, eax
cmp edi, 0x514bc0
je 0x424ee9
cmp dword [0x514bd4], 8
jb 0x424ec2
push dword [0x514bc0]
call fcn.0045e6ac
add esp, 4
xor eax, eax
mov dword [0x514bd4], 7
push edi
mov ecx, 0x514bc0
mov dword [0x514bd0], 0
mov word [0x514bc0], ax
call fcn.0041b450
cmp dword [ebp - 0x218], 8
jb 0x424f00
push dword [ebp - 0x22c]
call fcn.0045e6ac
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x514bc0
mov word [esi], ax
call fcn.0041be00
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret

Function at 0x424f40
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push esi
mov esi, ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424f76
test al, 0x10
jne 0x424f76
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x424f78
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x424f96
test al, 0x10
je 0x424f96
mov eax, 1
ret
xor eax, eax
ret
Function at 0x424fa0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
test ebx, ebx
je 0x4250bd
mov edx, ebx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x424fb4
sub edx, ecx
sar edx, 1
je 0x4250bd
cmp word [ebx + 2], 0x3a
jne 0x4250bd
cmp word [ebx + 4], 0x5c
jne 0x4250bd
push esi
mov esi, ebx
push edi
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x424fe6
sub esi, ecx
mov edx, 2
sar esi, 1
xor ecx, ecx
lea eax, [esi + 4]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045df11
add esp, 4
lea ecx, [esi + 1]
mov edi, eax
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpynW]
push edi
call ebx
cmp word [edi + esi*2 - 2], 0x5c
lea eax, [edi + esi*2]
je 0x425036
push 2
push 0x501874
push eax
call ebx
lea eax, [edi + 6]
mov dword [ebp - 4], 1
push 0x5c
push eax
call fcn.00461c6f
mov esi, eax
add esp, 8
test esi, esi
je 0x4250aa
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
push edi
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42506c
test al, 0x10
jne 0x425075
push 0
push edi
call ebx
test eax, eax
je 0x4250a3
mov eax, 0x5c
push eax
mov word [esi], ax
lea eax, [esi + 2]
push eax
call fcn.00461c6f
mov esi, eax
add esp, 8
test esi, esi
jne 0x425057
push edi
call fcn.0045f289
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
push edi
call fcn.0045f289
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4250d0
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x214], 0
push 0x208
push eax
mov word [ebp - 0x210], ax
mov esi, ecx
lea eax, [ebp - 0x20e]
push eax
call fcn.00464750
add esp, 0xc
lea eax, [ebp - 0x210]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x210], ax
jne 0x42514e
xor ecx, ecx
jmp 0x425166
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x425157
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, esi
push eax
call fcn.0041c1a0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret
Function at 0x4259e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d71d8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x50f770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [0x514a74], 0
je 0x425b0c
mov eax, dword [0x514bd8]
test eax, eax
je 0x425b0c
push 2
lea ecx, [ebp - 0x14]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x425a49
call fcn.00425e30
call fcn.0041cf90
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x425a65
push 0x80004005
call fcn.00420b70
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1a]
push edi
push esi
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x14]
push str.__d___02d:_02d:_02d._03d__s__s_r_n
push eax
call fcn.00420790
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
add esp, 0x24
mov eax, dword [esi - 0xc]
push 0
push ecx
add eax, eax
push eax
push esi
push dword [0x514bd8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x425ad6
call fcn.00425e30
push dword [0x514bd8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x425aeb
call fcn.00425e30
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x425b0c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045e6b1
mov esp, ebp
pop ebp
ret