joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a4a99
Capabilities:
Accept command line arguments

Disassembly:
push 0x68
mov eax, 0x636456
call fcn.004d66c3
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x60]
xor ebx, ebx
mov esi, ebx
call fcn.004aad00
mov dword [ebp - 4], ebx
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov byte [ebp - 4], 1
test edi, edi
jne 0x4a4ad0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push edi
lea ecx, [ebp - 0x60]
call fcn.004ab347
lea ecx, [ebp - 0x60]
call fcn.004a750e
cmp eax, 1
jne 0x4a4af0
call fcn.004a4a57
jmp 0x4a4c08
lea eax, [ebp - 0x28]
push 0x20
push eax
call fcn.004a559d
pop ecx
pop ecx
push 8
pop edi
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], edi
jb 0x4a4b0b
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x60]
call fcn.004ab603
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
mov bl, al
call fcn.00401ce8
test bl, bl
je 0x4a4c08
lea eax, [ebp - 0x58]
push 0x20
push eax
call fcn.004a559d
pop ecx
pop ecx
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], edi
jb 0x4a4b42
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x60]
call fcn.004aadd8
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], edi
jb 0x4a4b5a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004a72df
pop ecx
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], edi
jb 0x4a4b71
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x60]
call fcn.004ab3d2
lea ecx, [ebp - 0x28]
call fcn.00401ce8
lea ecx, [ebp - 0x40]
call fcn.00401ce8
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00401ce8
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
call fcn.004aae55
mov ebx, dword [ebp - 0x6c]
xor edx, edx
mov ecx, dword [ebp - 0x70]
mov eax, ebx
sub eax, ecx
mov dword [ebp - 0x64], edx
push 0x18
pop edi
cdq
idiv edi
mov dword [ebp - 0x74], edi
test eax, eax
je 0x4a4c08
xor edi, edi
lea eax, [edi + ecx]
cmp dword [eax + 0x10], 0
je 0x4a4be4
cmp dword [eax + 0x14], 8
jb 0x4a4bd1
mov eax, dword [eax]
push eax
call fcn.004a4990
mov esi, eax
pop ecx
test esi, esi
jne 0x4a4bfd
mov ebx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
push 0x18
pop eax
add edi, eax
inc dword [ebp - 0x64]
mov eax, ebx
sub eax, ecx
cdq
idiv dword [ebp - 0x74]
cmp dword [ebp - 0x64], eax
jb 0x4a4bc0
test esi, esi
je 0x4a4c08
mov eax, dword [esi]
lea ecx, [ebp - 0x60]
push ecx
mov ecx, esi
call dword [eax + 4]
lea ecx, [ebp - 0x70]
call fcn.0041f040
lea ecx, [ebp - 0x60]
call fcn.004aad44
call fcn.004d666d
ret
Function at 0x4a5704
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xc4
mov eax, 0x6365df
call fcn.004d66c3
mov edi, ecx
mov dword [ebp - 0xd0], edi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.004a6605
lea ecx, [edi + 8]
call fcn.004a6605
lea ecx, [edi + 0x10]
call fcn.004a6605
lea ecx, [edi + 0x18]
call fcn.004a6605
movzx eax, word [ebp + 0x24]
push 0xa
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4a586f
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4a586f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push esi
mov dword [ebp - 0xc8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
cmp dword [ebp - 0xc8], ebx
jne 0x4a578f
test edi, edi
je 0x4a586f
cmp dword [ebp + 0x1c], ebx
jbe 0x4a5829
lea eax, [ebp + 0xc]
mov dword [ebp - 0x48], ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], ebx
call fcn.004046a0
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 1
call fcn.004b321f
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004b3d72
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0xc4]
call fcn.004b355e
lea esi, [edi + 1]
mov byte [ebp - 4], 2
push esi
call fcn.004f748d
push esi
push ebx
push eax
mov dword [ebp - 0xcc], eax
call fcn.004eddc0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0xcc]
cmovae eax, dword [ebp - 0x40]
push eax
push edi
push esi
push dword [ebp - 0xc8]
call fcn.004b6c2e
add esp, 0x20
lea ecx, [ebp - 0x40]
call fcn.00405aa5
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], bl
call fcn.00405aa5
jmp 0x4a582b
mov esi, ebx
push edi
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
call fcn.00405b9e
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
lea eax, [ebp - 0x28]
push eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], ebx
call fcn.004046a0
mov ecx, dword [ebp - 0xd0]
call fcn.004a5881
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.00405aa5
lea ecx, [ebp + 0xc]
call fcn.00405aa5
mov al, bl
call fcn.004d666d
ret 0x20
Function at 0x4a73ae
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a73dd
push 2
pop eax
jmp 0x4a7465
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.004a719b
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.004eddc0
add esp, 0x14
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, 0x64ac28
mov dword [ebp - 0x3c], 5
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x4a745b
cmp dword [ebp + 0x10], 0
je 0x4a745b
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.00401ce8
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5d93
mov esp, ebp
pop ebp
ret

Function at 0x4a74a2
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x6369a0
call fcn.004d668f
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.004af4b1
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004af4ca
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.004af4c6
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.004af4c1
call fcn.004d6658
ret 4
Function at 0x4ad7b6
Capabilities:
Check if file exists

Disassembly:
push 0x240
mov eax, 0x6378a6
call fcn.004d66c3
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.004ad2b7
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ad7e8
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x64b1f0
call fcn.00401cb6
push 0x64b1f4
mov ecx, esi
call fcn.00401cb6
push 0x63de0c
mov ecx, esi
call fcn.00401cb6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00401c58
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4ad83d
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4ad8ee
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.004eddc0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0x1c
lea eax, [ebp - 0x24c]
push eax
push 0x4ad189
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
neg eax
sbb eax, eax
and eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ad8ad
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00401cb6
push 0x63de0c
mov ecx, esi
call fcn.00401cb6
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00401c58
cmp dword [esi + 0x14], 8
jb 0x4ad8f6
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ad90e
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x64b1f0
call fcn.00401cb6
push 0x64b1f4
mov ecx, esi
call fcn.00401cb6
push 0x63de0c
mov ecx, esi
call fcn.00401cb6
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.004ad316
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004019be
lea ecx, [ebp - 0x248]
call fcn.00401ce8
lea ecx, [ebp - 0x230]
call fcn.00401ce8
call fcn.004d666d
ret
Function at 0x4ae8f5
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x637a69
call fcn.004d66c3
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4ae916
push dword [esi + 0x1c]
call fcn.00506785
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004ade73
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0050104a
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4ae99a
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004ade73
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004ade73
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00401ce8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401ce8
sub edi, 1
jns 0x4ae944
mov ecx, esi
call fcn.004ae7d4
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00401ce8
call fcn.004d666d
ret

Function at 0x4ae9b3
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x637a69
call fcn.004d66c3
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4ae9d4
push dword [esi + 0x1c]
call fcn.00506785
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004ade73
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0050104a
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4aea58
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004ade73
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004ade73
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00401ce8
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401ce8
sub edi, 1
jns 0x4aea02
mov ecx, esi
call fcn.004ae86b
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00401ce8
call fcn.004d666d
ret
Function at 0x4af214
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.004d6ea0
mov eax, dword [0x6c9614]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, 0x1000
mov dword [ebp - 0x1218], eax
push esi
xor ebx, ebx
lea eax, [ebp - 0x1210]
push ebx
push eax
call fcn.004eddc0
push 0x20a
lea eax, [ebp - 0x210]
mov dword [ebp - 0x1214], ebx
push ebx
push eax
call fcn.004eddc0
add esp, 0x18
lea eax, [ebp - 0x1214]
push eax
push esi
lea eax, [ebp - 0x1210]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4af2f9
push edi
mov edi, dword [ebp - 0x1214]
xor esi, esi
shr edi, 2
test edi, edi
je 0x4af2f8
push 0x208
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004eddc0
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp + esi*4 - 0x1210]
call fcn.004af434
add esp, 0x18
test eax, eax
je 0x4af2ea
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0050022f
push dword [ebp - 0x1218]
lea eax, [ebp - 0x210]
push eax
call fcn.004f01d1
add esp, 0x10
test eax, eax
jne 0x4af2f1
inc esi
cmp esi, edi
jb 0x4af28e
jmp 0x4af2f8
mov ebx, dword [ebp + esi*4 - 0x1210]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5d93
mov esp, ebp
pop ebp
ret

Function at 0x4af434
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push esi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test esi, esi
je 0x4af461
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x4af63f
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x118
xor ebx, ebx
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push ebx
push eax
call fcn.004eddc0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x11c]
push eax
call fcn.004af5f4
mov eax, dword [ebp - 0x11c]
add esp, 0xc
cmp eax, 5
jne 0x4af6be
cmp dword [ebp - 0x118], ebx
jbe 0x4af704
cmp dword [ebp - 0x118], 1
setne bl
inc ebx
jmp 0x4af704
cmp eax, 6
jne 0x4af6e9
cmp byte [ebp - 6], 1
jne 0x4af6e4
mov eax, dword [ebp - 0x118]
sub eax, ebx
je 0x4af6e0
sub eax, 1
je 0x4af6dc
push 7
jmp 0x4af6e6
push 5
jmp 0x4af6e6
push 3
jmp 0x4af6e6
push 4
pop ebx
jmp 0x4af704
push 0xa
pop ecx
cmp eax, ecx
jne 0x4af701
cmp dword [ebp - 0x114], 0x55f0
sbb ebx, ebx
add ebx, 9
jmp 0x4af704
cmova ebx, ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004d5d93
mov esp, ebp
pop ebp
ret
Function at 0x4af93e
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6c9614]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x1a
push eax
push ebx
call fcn.004afdf6
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x4af975
sub ecx, edx
sar ecx, 1
je 0x4af9ec
push 0x63de0c
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00507499
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00507499
push 0x63de0c
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00507499
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4af9de
lea eax, [ebp - 0x20c]
push eax
call fcn.004b21b3
pop ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00401f68
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004d5d93
mov esp, ebp
pop ebp
ret 8
Function at 0x4af9ff
Capabilities:
Check if file exists

Disassembly:
push 0xc58
mov eax, 0x637bb9
call fcn.004d66c3
mov dword [ebp - 0xc5c], ecx
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 8]
xor edi, edi
push 0x208
push edi
push eax
mov dword [ebp - 0xc60], esi
call fcn.004eddc0
push 0x208
lea eax, [ebp - 0x830]
push edi
push eax
call fcn.004eddc0
push 0x208
lea eax, [ebp - 0x420]
push edi
push eax
call fcn.004eddc0
push 0x208
lea eax, [ebp - 0xa38]
push edi
push eax
call fcn.004eddc0
push 0x208
lea eax, [ebp - 0x218]
push edi
push eax
call fcn.004eddc0
push 0x208
lea eax, [ebp - 0x628]
push edi
push eax
call fcn.004eddc0
xor eax, eax
mov dword [ebp - 0xc48], edi
add esp, 0x48
mov dword [ebp - 0xc44], 7
mov word [ebp - 0xc58], ax
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0xc40]
push edi
push 0x1a
push eax
push edi
mov dword [ebp - 4], edi
call fcn.004afdf6
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004fe3d8
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.004f051e
add esp, 0x14
test eax, eax
jne 0x4afaf6
push esi
jmp 0x4afc43
xor ecx, ecx
mov esi, 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.004fe3d8
push str.Local
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.00507499
add esp, 0x18
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
mov esi, edi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
cmovne esi, ecx
push 0x104
push eax
call fcn.004fe3d8
push str.LocalLow
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.00507499
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov ecx, edi
push 1
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc64], ecx
push 0x104
push eax
call fcn.004fe3d8
push str.Roaming
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.00507499
add esp, 0x18
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
push 1
pop eax
cmovne edi, eax
test esi, esi
je 0x4afc3d
cmp dword [ebp - 0xc64], 0
je 0x4afc3d
test edi, edi
je 0x4afc3d
push dword [ebp - 0xc60]
lea eax, [ebp - 0x420]
push eax
push 0x6b2870
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.004af495
add esp, 0x14
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4afc29
lea eax, [ebp - 0x628]
push eax
call fcn.004b21b3
pop ecx
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00401f68
jmp 0x4afc55
push dword [ebp - 0xc60]
mov ecx, dword [ebp - 0xc5c]
lea eax, [ebp - 0xc58]
push eax
call fcn.004af93e
lea eax, [ebp - 0xc58]
mov ecx, ebx
push eax
call fcn.00403c58
lea ecx, [ebp - 0xc58]
call fcn.00401ce8
mov eax, ebx
call fcn.004d666d
ret 8
Function at 0x4b1d59
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 eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4b1d6b
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x4b1db0
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], 0
pop esi
pop ebx
ret

Function at 0x4b1e24
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 0x4b1e2d
pop esi
ret

Function at 0x4b2048
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 0x4b205f
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x4b21b3
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor edx, edx
push 2
pop ebx
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, ebx
cmp ax, dx
jne 0x4b21c5
sub edi, ecx
xor ecx, ecx
sar edi, 1
lea esi, [edi + 1]
mov eax, esi
mul ebx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d68e8
lea ecx, [edi*2 + 2]
mov ebx, eax
push ecx
push 0
push ebx
call fcn.004eddc0
push dword [ebp + 8]
push esi
push ebx
call fcn.004fe3d8
add esp, 0x1c
mov byte [ebp - 1], 1
xor esi, esi
test edi, edi
js 0x4b224a
push 0x5c
pop eax
cmp word [ebx + esi*2], ax
jne 0x4b223f
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4b2238
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4b2246
push 0x5c
pop eax
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jle 0x4b2215
jmp 0x4b224a
mov byte [ebp - 1], 0
push ebx
call fcn.004d609d
mov al, byte [ebp - 1]
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b225b
Capabilities:
Get disk information

Disassembly:
push 0x3c
mov eax, 0x637faf
call fcn.004d66c3
mov edi, dword [ebp + 8]
xor ebx, ebx
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ecx
mov word [ebp - 0x28], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ecx
mov word [ebp - 0x40], ax
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 1
test eax, eax
je 0x4b233d
movzx eax, word [eax]
lea ecx, [ebp - 0x40]
push eax
call fcn.004b218c
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4b233d
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d68e8
push esi
mov ebx, eax
push 0
push ebx
call fcn.004030f2
add esp, 0x10
push ebx
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4b2336
and dword [ebp - 0x44], 0
mov esi, ebx
movzx eax, word [ebx]
cmp dword [ebp - 0x2c], 8
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push 2
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.005072e0
add esp, 0xc
test eax, eax
je 0x4b232b
movzx eax, word [esi]
add esi, 2
test ax, ax
jne 0x4b2316
movzx eax, word [esi]
test ax, ax
je 0x4b2336
jmp 0x4b22f4
push dword [ebp - 0x44]
lea ecx, [ebp - 0x28]
call fcn.004b218c
push ebx
call fcn.004d609d
pop ecx
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.00403c58
lea ecx, [ebp - 0x40]
call fcn.00401ce8
lea ecx, [ebp - 0x28]
call fcn.00401ce8
mov eax, edi
call fcn.004d666d
ret