joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454b84
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x454c3a
movzx eax, word [esi]
test ax, ax
je 0x454c3a
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x454bc4
cmp ax, 0x5c
jne 0x454bc6
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x454bb8
cmp edi, esi
je 0x454c0d
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00482478
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x454c4a
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.00454b84
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.00479211
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.0047ccd0
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e895
mov esp, ebp
pop ebp
ret
call fcn.0042ed49
int3

Function at 0x45520f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x45528b
cmp dword [edi + 4], 0xffffffff
jne 0x45528b
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x49cb40
push esi
call fcn.0047ccd0
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x45525d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x45525d
mov eax, 0x2000000
jmp 0x455290
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045772a
add esp, 0x10
test eax, eax
jne 0x45527b
mov eax, dword [ebp - 4]
jmp 0x455290
push eax
call fcn.00457e32
mov dword [edi], eax
mov eax, dword [0x4cbfe8]
pop ecx
jmp 0x455290
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x457837
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x45786b
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x457866
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x457892
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x45787b
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004747d0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x457a13
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x457ad2
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a4ad8]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a4ad8]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a4ad8]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a4ad8]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a4ad8]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a4ad8]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a4ad8]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a4ad8]
sub edi, 1
jne 0x457a2b
pop edi
test esi, esi
je 0x457aee
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4a4ad8]
inc edx
sub esi, 1
jne 0x457ad6
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x460fdc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x461000
cmp dword [esi + 8], edi
jge 0x460ff8
push esi
call fcn.0045f27d
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x461029
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x46100c
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x461046
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x461034
xor eax, eax
jmp 0x46103c
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x46102b
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x46107b
push str.zlib_corrupt
call fcn.0045f138
add esp, 4
jmp 0x4610b8
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x46108b
push str.read_past_buffer
jmp 0x461071
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x4610a2
push edi
push esi
call fcn.0045f147
pop ecx
pop ecx
test eax, eax
je 0x4610b8
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004747d0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4693ea
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x497eab
call fcn.0042e911
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.00436a12
push eax
lea ecx, [ebp - 0x94]
call fcn.00434b8f
xor edi, edi
mov dword [ebp - 4], edi
call fcn.00436a18
mov ecx, eax
call fcn.0043536f
test al, al
je 0x4694d8
push ebx
lea ecx, [ebp - 0x94]
call fcn.00434dcc
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
lea ecx, [ebp - 0x94]
call fcn.00435215
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46947b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00434cca
jmp 0x4695b9
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x469467
push esi
mov dword [ebp - 0x2c8], edi
call fcn.0042f29a
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x4695a4
push edi
call fcn.0042e9b9
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00434cca
jmp 0x4695b7
call fcn.00436a18
push eax
lea ecx, [ebp - 0x94]
call fcn.00434daf
call fcn.00436b44
test al, al
je 0x4694f9
call fcn.00436a1e
jmp 0x469510
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.00435215
push eax
call fcn.00455297
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x469467
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.00454cd8
add esp, 0x14
test eax, eax
jne 0x469467
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x469467
push esi
call fcn.0042f29a
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.00455657
add esp, 0x18
test eax, eax
je 0x469594
cmp eax, 0x600
je 0x469594
push edi
call fcn.0042e9b9
pop ecx
call fcn.00436b44
test al, al
jne 0x4694c4
push ebx
call fcn.00454b32
jmp 0x4694c3
call fcn.00436b44
test al, al
jne 0x4695a4
push ebx
call fcn.00454b32
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00434cca
test edi, edi
jne 0x46962b
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x469627
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x469627
push esi
mov dword [ebp - 0x2d0], edi
call fcn.0042f29a
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x469623
push edi
call fcn.0042e9b9
pop ecx
xor edi, edi
test edi, edi
jne 0x46962b
xor eax, eax
jmp 0x469646
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0046964e
push 1
push edi
mov esi, eax
call fcn.0042e887
pop ecx
pop ecx
mov eax, esi
call fcn.0042e8bb
ret 4
Function at 0x46f48e
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 8]
call fcn.00479233
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042f29a
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x46f518
push ebx
push edi
push dword [ebp + 8]
push esi
call fcn.00479211
mov eax, dword [ebp - 4]
xor ebx, ebx
pop ecx
inc ebx
xor edi, edi
pop ecx
test eax, eax
js 0x46f50d
push 0x5c
pop ecx
cmp word [esi + edi*2], cx
jne 0x46f504
xor eax, eax
push esi
mov word [esi + edi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46f4fa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x46f50b
mov eax, dword [ebp - 4]
push 0x5c
pop ecx
mov word [esi + edi*2], cx
inc edi
cmp edi, eax
jle 0x46f4d7
jmp 0x46f50d
xor ebx, ebx
push esi
call fcn.0042e9b9
pop ecx
pop edi
mov eax, ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x46f51d
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00479233
pop ecx
test eax, eax
je 0x46f5d4
push ebx
push edi
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [ebp - 0x200]
push str.Program_FilesInternet_Exploreriexplore.exe
push eax
call fcn.00479211
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0047ccd0
push 0x3c
xor edi, edi
lea eax, [ebp - 0x248]
push edi
push eax
call fcn.00475710
add esp, 0x1c
mov dword [ebp - 0x244], 0x200
xor ebx, ebx
mov dword [ebp - 0x234], esi
inc ebx
mov eax, str.open
mov dword [ebp - 0x23c], eax
push ebx
push edi
push edi
push esi
push eax
push edi
mov dword [ebp - 0x22c], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x46f5d0
push edi
push edi
lea ecx, [ebp - 0x20c]
push edi
push ecx
call fcn.0046f6f2
add esp, 0x10
pop edi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042e895
mov esp, ebp
pop ebp
ret
Function at 0x46f6f2
Capabilities:
Create process on windows

Disassembly:
push 0x88
mov eax, 0x498301
call fcn.0042e911
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x94]
mov edi, dword [ebp + 0xc]
push 0x44
pop ebx
push ebx
push 0
push eax
call fcn.00475710
push 0x10
lea eax, [ebp - 0x50]
mov dword [ebp - 0x94], ebx
push 0
push eax
call fcn.00475710
add esp, 0x18
xor edx, edx
xor eax, eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
push 7
pop ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
mov word [ebp - 0x40], ax
or ebx, 0xffffffff
mov byte [ebp - 4], 1
test edi, edi
je 0x46f7d0
cmp word [edi], dx
jne 0x46f761
mov eax, edx
jmp 0x46f768
push edi
call fcn.00479233
pop ecx
push eax
push edi
lea ecx, [ebp - 0x40]
call fcn.0040252a
cmp dword [ebp - 0x30], 0
je 0x46f7d0
mov edi, 0x49cb98
push edi
call fcn.00479233
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.0040252a
xor edi, edi
cmp word [esi], di
jne 0x46f799
mov eax, edi
jmp 0x46f7a0
push esi
call fcn.00479233
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00424573
mov esi, 0x49cb9c
push esi
call fcn.00479233
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00424573
push ebx
push edi
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004244d4
jmp 0x46f7ec
xor edi, edi
cmp word [esi], di
jne 0x46f7db
mov eax, edi
jmp 0x46f7e2
push esi
call fcn.00479233
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040252a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.CreateRunProcess__s_
call fcn.00473708
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
pop ecx
cmovae eax, dword [ebp - 0x28]
pop ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x94]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x46f830
mov esi, edi
jmp 0x46f85b
cmp byte [ebp + 0x10], 0
je 0x46f848
cmp dword [ebp + 0x14], 0
cmovg ebx, dword [ebp + 0x14]
push ebx
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x4c]
call esi
xor esi, esi
inc esi
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.004023d7
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.004023d7
mov eax, esi
call fcn.0042e8bb
ret
Function at 0x46f98b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
xor edi, edi
push str.EXPLORER.EXE
mov esi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
call fcn.00470430
pop ecx
push eax
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x46fabe
lea eax, [ebp - 0xc]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46fabe
lea eax, [ebp - 4]
inc esi
push eax
push esi
push esi
push edi
push 0xf01ff
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x46fabc
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x46fa3f
push str.WTSGetActiveConsoleSessionId
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46fa38
call eax
push 4
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x46fa38
xor esi, esi
jmp 0x46fabe
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0x44
pop edi
push edi
lea eax, [ebp - 0x64]
push 0
push eax
call fcn.00475710
push 0x10
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.00475710
add esp, 0x18
mov dword [ebp - 0x64], edi
xor edi, edi
mov dword [ebp - 0x5c], str.WinSta0Default
mov dword [ebp - 0x38], esi
mov dword [ebp - 8], edi
push 5
pop eax
push edi
push dword [ebp - 4]
mov word [ebp - 0x34], ax
lea eax, [ebp - 8]
push eax
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x46fabc
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x64]
push eax
push edi
push dword [ebp - 8]
push 0x430
push edi
push edi
push edi
push dword [ebp + 8]
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x46fabc
cmp dword [ebp - 8], edi
je 0x46fabe
push dword [ebp - 8]
call sub.USERENV.dll_DestroyEnvironmentBlock
jmp 0x46fabe
mov esi, edi
mov eax, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x46fad3
cmp eax, 0xffffffff
je 0x46fad3
push eax
call edi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x46fae2
cmp eax, 0xffffffff
je 0x46fae2
push eax
call edi
test ebx, ebx
jne 0x46fae9
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46fe0b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.00475710
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x1a
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401f2f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042e895
mov esp, ebp
pop ebp
ret

Function at 0x470430
Capabilities:
Enumerate processes

Disassembly:
push 0x260
mov eax, 0x498424
call fcn.0042e911
mov eax, dword [ebp + 8]
test eax, eax
je 0x47052c
push eax
lea ecx, [ebp - 0x40]
call fcn.00401f2f
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00470f33
mov edi, 0x22c
lea eax, [ebp - 0x26c]
push edi
push ebx
push eax
call fcn.00475710
add esp, 0x10
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x47051d
lea eax, [ebp - 0x26c]
mov dword [ebp - 0x26c], edi
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x470512
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
cmp word [ebp - 0x248], ax
jne 0x4704bc
mov eax, ebx
jmp 0x4704c9
lea eax, [ebp - 0x248]
push eax
call fcn.00479233
pop ecx
push eax
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040252a
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00470f33
pop ecx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004281b3
test eax, eax
je 0x470532
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.004023d7
lea eax, [ebp - 0x26c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x47049f
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004023d7
mov eax, esi
call fcn.0042e8bb
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x264]
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.004023d7
jmp 0x47051f

Function at 0x47054c
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0x210], edi
call fcn.00475710
add esp, 0xc
lea eax, [ebp - 0x20c]
push edi
push 0x26
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401f2f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.0042e895
mov esp, ebp
pop ebp
ret
Function at 0x4707cf
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push 0x208
push 0
push eax
call fcn.00475710
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401f2f
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042e895
mov esp, ebp
pop ebp
ret

Function at 0x470937
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc28
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0xc]
push 0x208
mov dword [ebp - 0xc24], eax
lea eax, [ebp - 0x20c]
push ebx
push eax
mov dword [ebp - 0xc28], ebx
mov dword [ebp - 0xc18], ebx
call fcn.00475710
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
jmp 0x470a31
lea eax, [ebp - 0xc18]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x470a23
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0xc1c], 0x104
push eax
call fcn.00475710
add esp, 0xc
mov dword [ebp - 0xc20], 1
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0
push str.DisplayName
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x470a17
push dword [ebp - 0xc24]
lea eax, [ebp - 0x414]
push eax
call fcn.004769e3
pop ecx
pop ecx
test eax, eax
jne 0x470a5f
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x470991
push 0x4997e4
mov ecx, esi
call fcn.00401f2f
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042e895
mov esp, ebp
pop ebp
ret
push 0x800
lea eax, [ebp - 0xc14]
push 0
push eax
call fcn.00475710
add esp, 0xc
mov dword [ebp - 0xc1c], 0x400
lea eax, [ebp - 0xc1c]
push eax
lea eax, [ebp - 0xc14]
push eax
lea eax, [ebp - 0xc20]
push eax
push 0
push str.UninstallString
push dword [ebp - 0xc18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc14]
push eax
jmp 0x470a45

Function at 0x470d9e
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.00475710
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 0xa
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
pop esi
call fcn.0042e895
mov esp, ebp
pop ebp
ret
Function at 0x470df5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x4c4290]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.00475710
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
pop esi
jb 0x470e4b
cmp dword [ebp - 0x118], 2
jb 0x470e4b
xor eax, eax
inc eax
jmp 0x470e55
cmp dword [ebp - 0x11c], 0xa
sbb eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e895
mov esp, ebp
pop ebp
ret

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

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

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

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x471215
pop esi
ret

Function at 0x471340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x471357
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8