joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b27d0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4b27e9
mov esi, edi
mov edi, eax
jmp 0x4b27eb
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4b27fb
mov eax, ebx
jmp 0x4b2805
push eax
push ebx
call fcn.00488860
add esp, 8
test eax, eax
jne 0x4b280d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4b2829
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4b2814
cmp eax, dword [esi + 4]
jge 0x4b2840
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4b2830
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4b2861
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4b285e
dec eax
test eax, eax
jg 0x4b2850
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x4c3460
Capabilities:
Query environment variable

Disassembly:
mov eax, 0xc
call fcn.004c6360
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
jne 0x4c347a
xor eax, eax
pop edi
add esp, 0xc
ret
push ebx
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x4c351e
push esi
mov esi, dword [esp + 0x20]
test esi, esi
je 0x4c34ea
mov ecx, dword [ebx + 8]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], esi
call fcn.00485160
add esp, 8
test eax, eax
jne 0x4c350b
mov ecx, 0x51b508
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4c34d4
test dl, dl
je 0x4c34d0
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4c34d4
add eax, 2
add ecx, 2
test dl, dl
jne 0x4c34b4
xor eax, eax
jmp 0x4c34d9
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4c34ea
push edi
call sub.MSVCR100.dll_getenv
add esp, 4
test eax, eax
jne 0x4c350e
mov eax, dword [ebx + 8]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], str.default
mov dword [esp + 0x18], edi
call fcn.00485160
add esp, 8
test eax, eax
je 0x4c3515
mov eax, dword [eax + 8]
pop esi
pop ebx
pop edi
add esp, 0xc
ret
pop esi
pop ebx
xor eax, eax
pop edi
add esp, 0xc
ret
push edi
call sub.MSVCR100.dll_getenv
add esp, 4
pop ebx
pop edi
add esp, 0xc
ret

Function at 0x4c6212
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54e864]
jne 0x4c621c
repz ret
jmp fcn.004c6cd6
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x203c]
mov eax, 0x203c
call fcn.0043f800
push 0xffffffffffffffff
push 0x447050
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp + 0x2038], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0x2048]
mov esi, dword [ebp + 0x2044]
mov ecx, dword [ebp + 0x2050]
mov edi, dword [ebp + 0x204c]
xor ebx, ebx
cmp edx, ebx
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ebx
je 0x401178
cmp edi, ebx
je 0x401178
cmp ecx, ebx
je 0x401178
movzx eax, word [edi]
cmp ax, 0x5c
je 0x40108a
cmp ax, 0x2f
jne 0x40108c
inc edi
inc edi
movzx eax, word [edi]
cmp ax, bx
jne 0x4010c9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 0x38]
push eax
push ebx
push ebx
push ecx
push edx
mov word [ebp + 0x38], bx
mov dword [ebp - 0x10], 0x2000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ecx, esi
jne 0x4010bf
lea eax, [ebp + 0x38]
jmp 0x40117f
mov eax, 0x44d7c4
jmp 0x40117f
mov dword [ebp + 0x34], 7
mov dword [ebp + 0x30], ebx
mov word [ebp + 0x20], bx
mov dword [ebp - 4], ebx
cmp ax, 0x5c
je 0x4010fe
cmp ax, 0x2f
je 0x4010fe
push eax
lea esi, [ebp + 0x1c]
call fcn.00401d67
mov esi, dword [ebp - 0x10]
inc edi
inc edi
movzx eax, word [edi]
cmp ax, bx
jne 0x4010da
jmp 0x401100
inc edi
inc edi
cmp dword [ebp + 0x34], 8
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], ebx
jae 0x40110f
lea eax, [ebp + 0x20]
lea ecx, [ebp - 0x14]
push ecx
push 0x20019
push ebx
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40116a
push dword [ebp - 0x18]
lea eax, [ebp]
push edi
push dword [ebp - 0x14]
push eax
call section..text
add esp, 0x10
mov byte [ebp - 4], 1
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp]
call fcn.00401c8a
push ebx
push 1
lea esi, [ebp]
call fcn.004022b6
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.004022b6
mov eax, dword [ebp - 0x10]
jmp 0x401186
mov eax, 0x44d7c0
mov ecx, esi
call fcn.00401c6e
jmp 0x40115a
mov eax, 0x44d7c0
mov ecx, esi
call fcn.00401c6e
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2038]
xor ecx, ebp
call fcn.0042d4ab
add ebp, 0x203c
leave
ret
Function at 0x4011a9
Capabilities:
Set registry value

Disassembly:
push 0x34
mov eax, 0x446e8f
call fcn.00431dc6
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x3c], esi
je 0x4012c8
cmp eax, ebx
je 0x4012c8
cmp esi, ebx
je 0x4012c8
movzx eax, word [edi]
cmp ax, 0x5c
je 0x4011f3
cmp ax, 0x2f
jne 0x4011f5
inc edi
inc edi
movzx eax, word [edi]
cmp ax, bx
jne 0x401223
push esi
call fcn.0042de1b
pop ecx
lea eax, [eax + eax + 2]
push eax
push esi
push 1
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
neg eax
sbb eax, eax
inc eax
jmp 0x4012ca
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], bx
mov dword [ebp - 4], ebx
cmp ax, 0x5c
je 0x401255
cmp ax, 0x2f
je 0x401255
push eax
lea esi, [ebp - 0x2c]
call fcn.00401d67
inc edi
inc edi
movzx eax, word [edi]
cmp ax, bx
jne 0x401234
jmp 0x401257
inc edi
inc edi
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x40], ebx
jae 0x401269
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0x30]
push ecx
push ebx
push 0x20006
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4012bd
cmp dword [ebp - 0x30], ebx
je 0x4012a3
push dword [ebp - 0x3c]
push dword [ebp - 0x34]
push edi
push dword [ebp - 0x30]
call fcn.004011a9
add esp, 0x10
mov edi, eax
jmp 0x4012a5
xor edi, edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.004022b6
mov eax, edi
jmp 0x4012ca
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.004022b6
xor eax, eax
call fcn.00431e49
ret

Function at 0x40141d
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0x20
mov eax, 0x446f5a
call fcn.00431dc6
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40143f
xor eax, eax
inc eax
jmp 0x4014c9
push 0x5c
push edi
call fcn.0042d23b
pop ecx
mov ebx, eax
xor esi, esi
cmp ebx, esi
pop ecx
push 0x2f
je 0x401461
push ebx
call fcn.0042d23b
cmp eax, esi
pop ecx
pop ecx
je 0x40146b
jmp 0x401469
push edi
call fcn.0042d23b
pop ecx
pop ecx
mov ebx, eax
cmp ebx, esi
je 0x4014ba
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], esi
mov word [ebp - 0x28], si
sub ebx, edi
sar ebx, 1
push edi
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], esi
call fcn.00401cd1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x401499
lea eax, [ebp - 0x28]
push eax
call fcn.0040141d
test eax, eax
pop ecx
push esi
push 1
lea esi, [ebp - 0x2c]
jne 0x4014b3
call fcn.004022b6
xor eax, eax
jmp 0x4014c9
call fcn.004022b6
xor esi, esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call fcn.00431e49
ret
Function at 0x401591
Capabilities:
Get disk size

Disassembly:
push 0x4c
mov eax, 0x447d79
call fcn.00431dc6
mov esi, dword [edi + 8]
cmp dword [edi + 4], esi
jbe 0x4015aa
call fcn.0042eebc
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
jbe 0x4015b7
call fcn.0042eebc
cmp ebx, esi
je 0x4015d5
push ebx
push dword [edi + 8]
mov eax, esi
call fcn.00402899
pop ecx
pop ecx
push dword [edi + 8]
mov esi, eax
call fcn.004027dd
mov dword [edi + 8], esi
mov dword [ebp - 0x30], 0x43
xor ebx, ebx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], bx
push dword [ebp - 0x30]
lea esi, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00401d67
push 0x44d7c8
mov eax, esi
push eax
call fcn.00401cb3
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x401613
lea eax, [ebp - 0x28]
push ebx
push ebx
lea ecx, [ebp - 0x38]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x401709
cmp dword [ebp - 0x34], ebx
ja 0x401636
cmp dword [ebp - 0x38], ebx
jbe 0x401709
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
jbe 0x401643
call fcn.0042eebc
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x401650
call fcn.0042eebc
cmp esi, ebx
je 0x4016b6
cmp esi, dword [edi + 8]
jb 0x40165e
call fcn.0042eebc
cmp dword [esi + 0x18], 8
jb 0x401669
mov eax, dword [esi + 4]
jmp 0x40166c
lea eax, [esi + 4]
push 0
push 0
lea ecx, [ebp - 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4016ab
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x3c]
ja 0x4016a0
jb 0x401691
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x40]
ja 0x4016a0
cmp esi, dword [edi + 8]
jb 0x40169b
call fcn.0042eebc
add esi, 0x1c
jmp 0x401650
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x48]
jmp 0x401701
push esi
lea eax, [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x58]
jmp 0x401701
mov esi, dword [edi + 4]
test esi, esi
jne 0x4016c1
xor ebx, ebx
jmp 0x4016ce
mov eax, dword [edi + 0xc]
sub eax, esi
push 0x1c
cdq
pop ecx
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.0041aca5
cmp eax, ebx
jae 0x4016ec
lea eax, [ebp - 0x2c]
push eax
push 1
push dword [edi + 8]
call fcn.0040252d
mov dword [edi + 8], eax
jmp 0x401709
mov ebx, dword [edi + 8]
cmp esi, ebx
jbe 0x4016f8
call fcn.0042eebc
push ebx
lea eax, [ebp - 0x2c]
push edi
push eax
lea eax, [ebp - 0x50]
push eax
mov eax, edi
call fcn.00401f1a
inc dword [ebp - 0x30]
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.004022b6
cmp word [ebp - 0x30], 0x5a
jbe 0x4015dc
mov eax, edi
call fcn.0041aca5
neg eax
sbb eax, eax
neg eax
call fcn.00431e49
ret
Function at 0x40173a
Capabilities:
Get common file path

Disassembly:
push 0x854
mov eax, 0x448972
call fcn.00431dc6
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x85c], esi
mov dword [ebp - 0x860], ebx
mov dword [ebp - 0x854], ebx
mov dword [ebp - 0x850], ebx
mov dword [ebp - 0x84c], ebx
lea edi, [ebp - 0x858]
mov dword [ebp - 4], ebx
call fcn.00401591
cmp dword [ebp - 0x854], ebx
je 0x401797
mov eax, dword [ebp - 0x850]
sub eax, dword [ebp - 0x854]
push 0x1c
cdq
pop ecx
idiv ecx
cmp eax, ebx
jne 0x4017cb
mov eax, 0x44d7c0
mov ecx, esi
call fcn.00401c6e
mov eax, dword [ebp - 0x854]
cmp eax, ebx
je 0x4017c4
push dword [ebp - 0x850]
call fcn.004027dd
push dword [ebp - 0x854]
call fcn.0042d26b
pop ecx
mov eax, esi
jmp 0x401912
push 0x400
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x810]
lea ecx, [ebp - 0x82c]
mov word [ebp - 0x12], bx
call fcn.00401c6e
lea eax, [ebp - 0x82c]
push eax
mov byte [ebp - 4], 1
call fcn.004013ad
mov edi, dword [ebp - 0x854]
cmp edi, dword [ebp - 0x850]
pop ecx
jbe 0x401816
call fcn.0042eebc
mov esi, dword [ebp - 0x850]
cmp dword [ebp - 0x854], esi
jbe 0x401829
call fcn.0042eebc
cmp edi, esi
je 0x4018cd
cmp edi, dword [ebp - 0x850]
jb 0x40183e
call fcn.0042eebc
mov eax, edi
lea esi, [ebp - 0x848]
call fcn.00401c8a
mov eax, esi
push eax
mov byte [ebp - 4], 2
call fcn.004013ad
cmp dword [ebp - 0x814], 8
mov esi, dword [ebp - 0x828]
pop ecx
jae 0x40186d
lea esi, [ebp - 0x828]
push esi
call fcn.0042de1b
pop ecx
push eax
push esi
lea eax, [ebp - 0x848]
call fcn.0040217b
test eax, eax
jne 0x4018ac
push ebx
push 1
lea esi, [ebp - 0x848]
mov byte [ebp - 4], 1
call fcn.004022b6
cmp edi, dword [ebp - 0x850]
jb 0x4018a4
call fcn.0042eebc
add edi, 0x1c
jmp 0x401816
mov esi, dword [ebp - 0x85c]
lea eax, [ebp - 0x848]
call fcn.00401c8a
push ebx
push 1
lea esi, [ebp - 0x848]
call fcn.004022b6
jmp 0x4018dd
mov ecx, dword [ebp - 0x85c]
mov eax, 0x44d7c0
call fcn.00401c6e
push ebx
push 1
lea esi, [ebp - 0x82c]
call fcn.004022b6
mov eax, dword [ebp - 0x854]
cmp eax, ebx
je 0x40190c
push dword [ebp - 0x850]
call fcn.004027dd
push dword [ebp - 0x854]
call fcn.0042d26b
pop ecx
mov eax, dword [ebp - 0x85c]
call fcn.00431e49
ret

Function at 0x401a63
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0042d8b0
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x401acd
cmp dword [ebp - 0x7c], 6
jb 0x401acd
push str.SetThreadUILanguage
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401acd
push 0x12
call eax
jmp 0x401ad8
push 0x412
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.0042d4ab
add ebp, 0xa0
leave
ret
Function at 0x401aed
Capabilities:
Create process on windows

Disassembly:
push 0x24
mov eax, 0x446fb0
call fcn.00431dc6
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], edi
mov word [ebp - 0x28], di
cmp eax, edi
mov dword [ebp - 4], edi
je 0x401b20
lea esi, [ebp - 0x2c]
call fcn.0040210f
call fcn.00401b7a
test eax, eax
je 0x401b40
call fcn.00401bee
test eax, eax
jne 0x401b40
push str.__Admin
lea eax, [ebp - 0x2c]
push eax
call fcn.00401cb3
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x401b4c
lea eax, [ebp - 0x28]
push 5
push dword [ebp - 0x30]
push eax
push ebx
push str.runas
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
push edi
cmp eax, 0x20
push 1
lea esi, [ebp - 0x2c]
setg bl
call fcn.004022b6
mov eax, ebx
call fcn.00431e49
ret

Function at 0x401b7a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
lea eax, [ebp - 0x7c]
push 0
push eax
mov dword [ebp - 0x80], 0x11c
call fcn.0042d8b0
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
call esi
test eax, eax
jne 0x401bd1
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x401bd8
cmp dword [ebp - 0x7c], 6
sbb eax, eax
inc eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0042d4ab
add ebp, 0xa0
leave
ret

Function at 0x401bee
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
xor esi, esi
mov dword [ebp - 0x14], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x401c5e
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x401c4d
cmp dword [ebp - 0x14], ebx
je 0x401c55
xor esi, esi
inc esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d4ab
leave
ret
Function at 0x402fde
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3010
call fcn.0043f800
mov eax, dword [0x45b1d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x400
lea eax, [ebp - 0x804]
xor ebx, ebx
push eax
push ebx
mov word [ebp - 0x804], bx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x804]
mov word [ebp - 6], bx
call fcn.00402fb0
lea eax, [ebp - 0x100c]
push eax
push 0x2000
lea eax, [ebp - 0x3010]
push eax
mov dword [ebp - 0x100c], ebx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4030f4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [ebp - 0x100c]
shr esi, 2
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1008], ebx
je 0x4030f0
mov eax, dword [ebp - 0x1008]
mov eax, dword [ebp + eax*4 - 0x3010]
cmp eax, dword [ebp - 0x1010]
je 0x4030de
push eax
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x4030de
push 0x400
lea eax, [ebp - 0x1004]
push eax
push ebx
push edi
mov word [ebp - 0x1004], bx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea eax, [ebp - 0x1004]
mov word [ebp - 0x806], bx
call fcn.00402fb0
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.0042eecc
test eax, eax
pop ecx
pop ecx
je 0x403101
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 0x1008]
cmp dword [ebp - 0x1008], esi
jb 0x40306a
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042d4ab
leave
ret
xor eax, eax
inc eax
jmp 0x4030f2

Function at 0x403106
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x447ce9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1030
call fcn.0043f800
mov eax, dword [0x45b1d4]
xor eax, esp
mov dword [esp + 0x102c], eax
push esi
push edi
mov eax, dword [0x45b1d4]
xor eax, esp
push eax
lea eax, [esp + 0x1040]
mov dword fs:[0], eax
lea eax, [esp + 0x34]
push eax
push 0x800
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
and word [esp + 0x1032], 0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x18]
call fcn.00401c6e
and dword [esp + 0x1048], 0
lea esi, [esp + 0xc]
lea ecx, [esp + 0x18]
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x5c
je 0x4031b1
lea esi, [esp + 0xc]
lea ecx, [esp + 0x18]
call fcn.00401df6
call fcn.00401f9e
cmp word [eax], 0x2f
je 0x4031b1
lea eax, [esp + 0x18]
call fcn.00401e15
lea eax, [esp + 0x18]
push eax
call fcn.004013ad
cmp dword [esp + 0x30], 0
pop ecx
jne 0x4031f7
xor edi, edi
push 0
push 1
lea esi, [esp + 0x20]
call fcn.004022b6
mov eax, edi
mov ecx, dword [esp + 0x1040]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x102c]
xor ecx, esp
call fcn.0042d4ab
mov esp, ebp
pop ebp
ret
push str.locate.info
lea eax, [esp + 0x1c]
push eax
call fcn.00401cb3
cmp dword [esp + 0x30], 8
mov eax, dword [esp + 0x1c]
jae 0x403215
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor edi, edi
test eax, eax
je 0x4031c5
inc edi
jmp 0x4031c5
Function at 0x403438
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44928c
mov eax, dword fs:[0]
push eax
mov eax, 0x106c
call fcn.0043f800
mov eax, dword [0x45b1d4]
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
push str.Dtd_Kr
push str.softwarejulegamepath
lea eax, [ebp - 0x105c]
mov esi, ecx
push getpeername
push eax
mov dword [ebp - 0x1034], esi
call section..text
add esp, 0x10
push 0xffffffffffffffff
xor edi, edi
push esi
xor ebx, ebx
mov dword [ebp - 4], edi
call fcn.00402089
or dword [ebp - 4], 0xffffffff
push edi
inc ebx
push ebx
lea esi, [ebp - 0x105c]
call fcn.004022b6
mov esi, dword [ebp - 0x1034]
push ebx
mov ecx, esi
call fcn.00403266
test eax, eax
pop ecx
je 0x4034cb
mov eax, ebx
jmp 0x40361f
push ebx
push 0x1c
lea eax, [ebp - 0x1030]
push eax
push edi
mov word [ebp - 0x30], di
mov word [ebp - 0x1030], di
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x10
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x30]
push eax
mov word [ebp - 0x32], di
call fcn.0042d3dc
add esp, 0xc
push edi
push edi
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x30]
push eax
mov word [ebp - 0x2a], di
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x40354b
cmp dword [ebp - 0x103c], edi
ja 0x40352f
cmp dword [ebp - 0x1040], 0x40000000
jb 0x40354b
lea eax, [ebp - 0x1030]
call fcn.0040210f
push edi
mov ecx, esi
call fcn.00403266
test eax, eax
pop ecx
jne 0x4034c4
push esi
call fcn.00405d63
lea ecx, [ebp - 0x1078]
call fcn.0040173a
push 0xffffffffffffffff
mov dword [ebp - 4], ebx
push esi
xor ebx, ebx
call fcn.00402089
or dword [ebp - 4], 0xffffffff
push edi
inc ebx
push ebx
lea esi, [ebp - 0x1078]
call fcn.004022b6
mov esi, dword [ebp - 0x1034]
push edi
mov ecx, esi
call fcn.00403266
test eax, eax
pop ecx
jne 0x4034c4
push esi
call fcn.00405d63
push esi
call fcn.004014cf
pop ecx
push edi
mov ecx, esi
call fcn.00403266
test eax, eax
pop ecx
jne 0x4034c4
push ebx
push 0x1c
lea eax, [ebp - 0x1030]
push eax
push edi
mov word [ebp - 0x1030], di
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x1030]
mov word [ebp - 0x32], di
call fcn.0040210f
push edi
mov ecx, esi
call fcn.00403266
test eax, eax
pop ecx
jne 0x4034c4
lea eax, [ebp - 0x1030]
push eax
push 0x800
mov word [ebp - 0x1030], di
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x1030]
mov word [ebp - 0x32], di
call fcn.0040210f
push edi
mov ecx, esi
call fcn.00403266
neg eax
sbb eax, eax
pop ecx
neg eax
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.0042d4ab
leave
ret