joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f547c
Capabilities:
Check os version

Disassembly:
push ebx
add esp, 0xfffffeec
mov ebx, esp
push 1
push 0
push 0
push 0xa
call fcn.004f5970
add esp, 0x10
mov dword [0x5c6bc4], eax
push 1
push 0
push 3
push 6
call fcn.004f5970
add esp, 0x10
mov dword [0x5c6bc8], eax
push 1
push 0
push 2
push 6
call fcn.004f5970
add esp, 0x10
mov dword [0x5c6bcc], eax
push 1
push 0
push 1
push 6
call fcn.004f5970
add esp, 0x10
mov dword [0x5c6bd0], eax
push 1
push 0
push 0
push 6
call fcn.004f5970
add esp, 0x10
mov dword [0x5c6bd4], eax
push 1
push 3
push 2
push 5
call fcn.004f5970
add esp, 0x10
test eax, eax
jne 0x4f551a
push 1
push 2
push 2
push 5
call fcn.004f5970
add esp, 0x10
test eax, eax
jne 0x4f551a
xor eax, eax
jmp 0x4f551f
mov eax, 1
mov dword [0x5c6bd8], eax
push 1
push 0
push 0
push 5
call fcn.004f5970
add esp, 0x10
mov dword [0x5c6bdc], eax
mov dword [ebx], 0x114
push ebx
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x4f55e1
cmp dword [ebx + 0x10], 1
je 0x4f555d
xor edx, edx
mov dword [0x5c6be4], edx
jmp 0x4f5597
cmp dword [ebx + 4], 4
jne 0x4f5575
cmp dword [ebx + 8], 0xa
jae 0x4f5575
mov dword [0x5c6be4], 5
jmp 0x4f5597
cmp dword [ebx + 4], 4
jne 0x4f558d
cmp dword [ebx + 8], 0xa
jne 0x4f558d
mov dword [0x5c6be4], 8
jmp 0x4f5597
mov dword [0x5c6be4], 9
cmp dword [ebx + 0x10], 2
je 0x4f55a7
xor ecx, ecx
mov dword [0x5c6be0], ecx
jmp 0x4f55e1
cmp dword [ebx + 4], 3
jne 0x4f55bf
cmp dword [ebx + 8], 0x33
jne 0x4f55bf
mov dword [0x5c6be0], 3
jmp 0x4f55e1
cmp dword [ebx + 4], 4
jne 0x4f55d7
cmp dword [ebx + 8], 0
jne 0x4f55d7
mov dword [0x5c6be0], 4
jmp 0x4f55e1
mov dword [0x5c6be0], 5
push str.ntdll.dll
call sub.KERNEL32.DLL_GetModuleHandleW
test eax, eax
je 0x4f5608
push str.wine_get_version
push eax
call sub.KERNEL32.DLL_GetProcAddress
test eax, eax
je 0x4f5608
mov dword [0x5c6be8], 1
cmp dword [0x5c6bdc], 0
je 0x4f561b
mov dword [0x5c6be0], 5
mov dword [0x5c6bc0], 1
add esp, 0x114
pop ebx
ret

Function at 0x4fc0ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
push 0
push 0
call sub.KERNEL32.DLL_GetSystemDirectoryW
mov ebx, eax
test ebx, ebx
je 0x4fc10e
test esi, esi
je 0x4fc0d2
push esi
call fcn.004fc018
pop ecx
inc eax
add ebx, eax
mov eax, ebx
add eax, eax
push eax
call fcn.004aa5dc
pop ecx
mov edi, eax
push ebx
push edi
call sub.KERNEL32.DLL_GetSystemDirectoryW
test esi, esi
je 0x4fc108
mov eax, ebx
dec eax
push eax
push 0x5c8a00
push edi
call fcn.004fc064
add esp, 0xc
dec ebx
push ebx
push esi
push edi
call fcn.004fc064
add esp, 0xc
mov eax, edi
jmp 0x4fc115
push esi
call fcn.004fc030
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4fe338
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x4ff658
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4ff674
call fcn.00500b1c
pop ebx
pop ebp
ret
test byte [ebp + 0xc], 2
je 0x4ff68f
test bl, 1
je 0x4ff68f
mov dword [0x5cb678], 5
or eax, 0xffffffff
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4ff85b
mov eax, dword [0x5ca660]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4ff868
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4ff895
je 0x4ff8a7
sub ecx, 0x100
je 0x4ff8b5
sub ecx, 0x100
je 0x4ff8bc
sub ecx, 0x100
je 0x4ff8ae
jmp 0x4ff8c3
sub ecx, 0x600
je 0x4ff8bc
sub ecx, 0x100
je 0x4ff8a7
jmp 0x4ff8c3
mov edi, 1
jmp 0x4ff8c8
mov edi, 2
jmp 0x4ff8c8
mov edi, 4
jmp 0x4ff8c8
mov edi, 5
jmp 0x4ff8c8
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4ff8ef
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5ca0d8]
test al, 0x80
je 0x4ff8e8
mov ebx, 0x80
jmp 0x4ff901
mov ebx, 1
jmp 0x4ff901
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4ff901
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4ff913
je 0x4ff91c
dec eax
je 0x4ff925
jmp 0x4ff92e
mov dword [ebp - 4], CreateStatusWindowA
jmp 0x4ff93d
mov dword [ebp - 4], 0x40000000
jmp 0x4ff93d
mov dword [ebp - 4], 0xc0000000
jmp 0x4ff93d
push 1
call fcn.00500ab8
pop ecx
mov ebx, eax
jmp 0x4ffa2d
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4ff959
sub eax, 0x10
je 0x4ff960
sub eax, 0x10
je 0x4ff969
sub eax, 0x10
je 0x4ff972
jmp 0x4ff972
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4ff979
mov dword [ebp - 8], 1
jmp 0x4ff979
mov dword [ebp - 8], 2
jmp 0x4ff979
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x4ff9e6
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4ff9db
test byte [ebp + 0xd], 1
je 0x4ff9d6
mov ebx, 0x50
jmp 0x4ff9db
mov ebx, 2
push ebx
call fcn.00500ab8
pop ecx
mov ebx, eax
jmp 0x4ffa2d
mov edi, esi
push edi
call fcn.004ff7ac
pop ecx
test eax, eax
je 0x4ff9fa
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4ffa06
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.005007fc
add esp, 8
mov ebx, eax
inc eax
jne 0x4ffa2d
push 4
call fcn.00500ab8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4ffbd4
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
test byte [ebp + 0xd], 0xc0
jne 0x4ffbf3
mov eax, dword [0x5ca660]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x4ffc00
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x4ffc2d
je 0x4ffc3f
sub ecx, 0x100
je 0x4ffc4d
sub ecx, 0x100
je 0x4ffc54
sub ecx, 0x100
je 0x4ffc46
jmp 0x4ffc5b
sub ecx, 0x600
je 0x4ffc54
sub ecx, 0x100
je 0x4ffc3f
jmp 0x4ffc5b
mov edi, 1
jmp 0x4ffc60
mov edi, 2
jmp 0x4ffc60
mov edi, 4
jmp 0x4ffc60
mov edi, 5
jmp 0x4ffc60
mov edi, 3
test byte [ebp + 0xd], 1
je 0x4ffc87
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x5ca0d8]
test al, 0x80
je 0x4ffc80
mov ebx, 0x80
jmp 0x4ffc99
mov ebx, 1
jmp 0x4ffc99
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov ebx, eax
cmp eax, 0xffffffff
jne 0x4ffc99
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x4ffcab
je 0x4ffcb4
dec eax
je 0x4ffcbd
jmp 0x4ffcc6
mov dword [ebp - 4], CreateStatusWindowA
jmp 0x4ffcd5
mov dword [ebp - 4], 0x40000000
jmp 0x4ffcd5
mov dword [ebp - 4], 0xc0000000
jmp 0x4ffcd5
push 1
call fcn.00500ab8
pop ecx
mov ebx, eax
jmp 0x4ffdc5
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x4ffcf1
sub eax, 0x10
je 0x4ffcf8
sub eax, 0x10
je 0x4ffd01
sub eax, 0x10
je 0x4ffd0a
jmp 0x4ffd0a
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x4ffd11
mov dword [ebp - 8], 1
jmp 0x4ffd11
mov dword [ebp - 8], 2
jmp 0x4ffd11
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileW
mov esi, eax
cmp eax, 0xffffffff
jne 0x4ffd7e
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x4ffd73
test byte [ebp + 0xd], 1
je 0x4ffd6e
mov ebx, 0x50
jmp 0x4ffd73
mov ebx, 2
push ebx
call fcn.00500ab8
pop ecx
mov ebx, eax
jmp 0x4ffdc5
mov edi, esi
push edi
call fcn.004ff7ac
pop ecx
test eax, eax
je 0x4ffd92
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x4ffd9e
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.005007fc
add esp, 8
mov ebx, eax
inc eax
jne 0x4ffdc5
push 4
call fcn.00500ab8
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505378
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x5053da
call fcn.00505328
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.004fe810
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.004fe810
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x505440
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x5cb680], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x50551a
cmp dword [0x5cb67c], 0
jne 0x50551a
cmp dword [0x5cb874], 0
je 0x5054d4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00505228
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5054ba
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00505228
add esp, 8
mov ebx, eax
test eax, eax
jne 0x5054ba
lea ebx, [ebp - 0x84]
jmp 0x5054bb
inc ebx
call fcn.005053fc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x505555
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x5cb684
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.004fe810
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x5cb687
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x505555
cmp dword [0x5cb67c], 0
je 0x505534
cmp dword [0x5cb67c], 0xffffffff
je 0x505555
push esi
call dword [0x5cb67c]
pop ecx
mov eax, dword [0x5cb680]
test eax, eax
je 0x505555
cmp dword [0x5cb680], 0xffffffff
je 0x505555
cmp byte [eax], 0
je 0x505555
push esi
push eax
call fcn.00505378
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x505e50
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x5ce2a0], 0
jne 0x505ed1
cmp dword [0x5ce2c0], 0
jne 0x505e80
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x5ce2c0], eax
test eax, eax
jne 0x505e80
push str.GetEnvironmentStrings_failed
call fcn.0050556c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x5ce2c0]
jmp 0x505e94
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004fe810
pop ecx
mov edi, eax
test eax, eax
jne 0x505e8c
lea edi, [ebp + 1]
push edi
call fcn.004a8e80
pop ecx
mov ebx, eax
mov dword [0x5ce2a4], ebx
test ebx, ebx
jne 0x505ebe
xor eax, eax
jmp 0x505f94
push edi
mov edx, dword [0x5ce2c0]
push edx
push ebx
call fcn.004fe66c
add esp, 0xc
jmp 0x505ef1
xor esi, esi
mov ebx, dword [0x5ce2a0]
jmp 0x505eeb
push eax
call fcn.004fe810
pop ecx
test eax, eax
jne 0x505ee7
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x505edb
lea ebx, [esi + 4]
push 4
mov dword [0x5ce2a8], ebx
inc ebx
push ebx
call fcn.004a9990
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x505f14
xor eax, eax
jmp 0x505f94
cmp dword [0x5ce2a0], 0
jne 0x505f45
xor esi, esi
mov ebx, dword [0x5ce2a4]
mov eax, dword [esp]
mov ebp, eax
jmp 0x505f36
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004fe810
pop ecx
mov edi, eax
test eax, eax
jne 0x505f2c
jmp 0x505f76
xor esi, esi
mov ebx, dword [0x5ce2a0]
mov eax, dword [esp]
mov edi, eax
jmp 0x505f70
push eax
call fcn.004fe810
pop ecx
test eax, eax
je 0x505f65
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x505f69
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x505f54
mov eax, dword [0x5ce2a0]
test eax, eax
je 0x505f86
push eax
call fcn.004a91c0
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x5ce2a0], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x402e90
Capabilities:
Check os version

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x402f3a
push 0x94
mov edi, 1
call fcn.00447451
mov esi, eax
add esp, 4
test esi, esi
je 0x402faf
push 0x94
push 0
push esi
call fcn.00447520
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x402ef7
push esi
mov edi, 5
call fcn.00447374
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x402fa6
cmp dword [esi + 8], 0
jne 0x402f19
push esi
mov edi, 6
call fcn.00447374
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 5
jne 0x402fa6
cmp dword [esi + 8], edi
jne 0x402fa6
push esi
mov edi, 7
call fcn.00447374
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp al, 4
jae 0x402f43
pop edi
xor eax, eax
pop esi
ret
push 0x94
mov edi, 2
call fcn.00447451
mov esi, eax
add esp, 4
test esi, esi
je 0x402faf
push 0x94
push 0
push esi
call fcn.00447520
add esp, 0xc
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x402fa6
cmp dword [esi + 8], 0xa
jne 0x402f99
push esi
mov edi, 3
call fcn.00447374
add esp, 4
mov eax, edi
pop edi
pop esi
ret
cmp eax, 4
jne 0x402fa6
cmp dword [esi + 8], 0x5a
jne 0x402fa6
mov edi, eax
push esi
call fcn.00447374
add esp, 4
mov eax, edi
pop edi
pop esi
ret

Function at 0x402fc0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
lea eax, [esp + 0x28]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
cmp byte [esp + 0x28], 0
mov edi, dword [ebp + 0x10]
mov dword [edi], 0
lea esi, [esp + 0x28]
je 0x403089
mov ebx, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x40300f
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x403065
movsx ecx, byte [esi]
push ecx
call fcn.0044734d
add esp, 4
cmp eax, 0x41
je 0x403065
movsx edx, byte [esi]
push edx
call fcn.0044734d
mov ecx, dword [edi]
mov edx, dword [ebp + 8]
add esp, 4
mov byte [edx + ecx], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [edi]
shrd ecx, edx, 0x14
shr edx, 0x14
mov dword [ebx + eax*8], ecx
mov dword [ebx + eax*8 + 4], edx
add dword [edi], 1
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403070
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x402ff7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403980
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x460fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
lea ecx, [esp + 8]
call fcn.0042c39b
push 0
push 0
push 0
push str.DISPLAY
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateICA]
push eax
lea ecx, [esp + 0xc]
call fcn.0042c89b
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push eax
call edi
mov ecx, dword [esp + 0x10]
push 0x5a
push ecx
mov esi, eax
call edi
cmp esi, 0x60
mov edi, eax
jne 0x403a0f
cmp edi, esi
jne 0x403a3c
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042c8ff
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
cmp esi, 0x78
jne 0x403a3c
cmp edi, esi
jne 0x403a3c
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042c8ff
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0042c8ff
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x403a60
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x460fc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push esi
sub esp, 0xc
lea eax, [esp + 0x278]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov dword [esp + 0x274], 0
call fcn.004224b0
lea ecx, [esp + 0x24]
push ecx
call fcn.004035a0
mov eax, dword [eax + 4]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x18]
call fcn.004222c0
mov edx, dword [esp + 0x270]
push edx
lea eax, [esp + 0x6c]
push 0x1f4
push eax
call fcn.0044715f
push 0x44
lea ecx, [esp + 0x34]
push 0
push ecx
call fcn.00447520
mov dx, word [esp + 0x290]
add esp, 0x18
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0x20
push 1
push 0
mov word [esp + 0x70], dx
push 0
lea edx, [esp + 0x88]
push edx
push 0
mov dword [esp + 0x4c], 0x44
mov dword [esp + 0x78], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x403b70
push eax
push str.Error
push str.Create_process_failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x26c]
mov dword [esp + 0x264], 0xffffffff
call fcn.004222c0
mov eax, 0xbeb95
mov ecx, dword [esp + 0x25c]
mov dword fs:[0], ecx
pop esi
add esp, 0x264
ret
mov eax, dword [esp + 8]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 8]
lea ecx, [esp + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esp + 4]
lea ecx, [esp + 0x26c]
mov dword [esp + 0x264], 0xffffffff
call fcn.004222c0
mov ecx, dword [esp + 0x25c]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x264
ret
Function at 0x403bc0
Capabilities:
Create directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x460fe8
push eax
mov dword fs:[0], esp
sub esp, 0x708
push ebx
mov eax, dword [esp + 0x720]
push eax
lea ecx, [esp + 0x51c]
push 0x1f4
push ecx
call fcn.0044715f
lea edx, [esp + 0x524]
push edx
lea eax, [esp + 0x334]
push 0x1f4
push eax
call fcn.0044715f
lea eax, [esp + 0x33c]
add esp, 0x18
lea edx, [eax + 1]
xor ebx, ebx
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403c20
sub eax, edx
cmp eax, 4
jge 0x403c5d
lea ecx, [esp + 0x71c]
mov dword [esp + 0x714], 0xffffffff
call fcn.004222c0
pop ebx
mov ecx, dword [esp + 0x708]
mov dword fs:[0], ecx
add esp, 0x714
ret
mov cx, word [esp + 0x324]
mov dl, byte [esp + 0x326]
push ebp
push esi
push 0x469780
lea eax, [esp + 0x10]
push 0x12c
push eax
mov word [esp + 0x144], cx
mov byte [esp + 0x146], dl
mov byte [esp + 0x147], bl
xor esi, esi
call fcn.0044715f
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
add esp, 0xc
cmp byte [esp + 0x32f], bl
je 0x403d14
push edi
lea edi, [esp + 0x333]
mov al, byte [edi]
cmp al, 0x5c
jne 0x403d05
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x140]
push 0x1f4
push edx
mov byte [esp + esi + 0x1c], bl
call fcn.004471c4
add esp, 0xc
push ebx
lea eax, [esp + 0x140]
push eax
call ebp
push 0x469a68
lea ecx, [esp + 0x140]
push 0x1f4
push ecx
call fcn.004471c4
add esp, 0xc
xor esi, esi
mov byte [esp + 0x10], bl
jmp 0x403d0c
mov byte [esp + esi + 0x10], al
add esi, 1
add edi, 1
cmp byte [edi], bl
jne 0x403cb4
pop edi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x13c]
push 0x1f4
push eax
mov byte [esp + esi + 0x18], bl
call fcn.004471c4
add esp, 0xc
push ebx
lea ecx, [esp + 0x13c]
push ecx
call ebp
lea ecx, [esp + 0x724]
mov dword [esp + 0x71c], 0xffffffff
call fcn.004222c0
mov ecx, dword [esp + 0x714]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x714
ret
Function at 0x403da0
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x461008
push eax
mov dword fs:[0], esp
sub esp, 0x904
mov eax, dword [esp + 0x918]
push eax
lea ecx, [esp + 0x714]
push 0x1f4
push ecx
call fcn.0044715f
push 0x469cb4
lea edx, [esp + 0x720]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.00447ca9
add esp, 0x18
test eax, eax
jne 0x403f9f
mov ecx, dword [esp]
push ecx
lea edx, [esp + 0xc]
push 0x1e0
push edx
call fcn.00447a5e
mov eax, dword [esp + 0xc]
push eax
call fcn.00447a2f
add esp, 0x10
test eax, eax
jne 0x403f93
push ebx
push ebp
push esi
lea esi, [esp + 0x14]
sub esi, 2
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x10]
push edi
xor ebx, ebx
jmp 0x403e44
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
jmp 0x403e50
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403e50
sub eax, edx
mov byte [esi + eax], bl
mov edi, 0x469780
lea esi, [esp + 0x18]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403f66
cmp byte [esp + 0x18], 0x5b
jne 0x403e91
lea eax, [esp + 0x18]
push eax
call fcn.004032f0
add esp, 4
mov ebp, eax
jmp 0x403f66
cmp byte [esp + 0x19], 0x22
mov esi, 1
je 0x403eaa
lea ecx, [ecx]
add esi, 1
cmp byte [esp + esi + 0x18], 0x22
jne 0x403ea0
lea ecx, [esi - 1]
push ecx
lea edx, [esp + 0x1d]
push edx
lea eax, [esp + 0x408]
push eax
call fcn.004475a0
lea eax, [esp + 0x24]
add esp, 0xc
mov byte [esp + esi + 0x3ff], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403ed1
sub eax, edx
sub eax, esi
sub eax, 4
push eax
lea ecx, [esp + esi + 0x1f]
push ecx
lea edx, [esp + 0x214]
push edx
call fcn.004475a0
lea eax, [esp + 0x24]
add esp, 0xc
lea ecx, [eax + 1]
mov edi, edi
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x403f00
sub eax, ecx
sub eax, esi
mov byte [esp + eax + 0x208], bl
lea eax, [esp + 0x20c]
push eax
push 0x469cb0
lea ecx, [esp + 0x5fc]
push 0x12c
push ecx
call fcn.004479f4
lea eax, [esp + 0x21c]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x403f40
sub eax, ecx
push eax
lea edx, [esp + 0x5f8]
push edx
push 1
push ebx
lea eax, [esp + 0x410]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push 0x1e0
push edx
call fcn.00447a5e
mov eax, dword [esp + 0x1c]
push eax
call fcn.00447a2f
add esp, 0x10
test eax, eax
je 0x403e40
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp]
push ecx
call fcn.00447978
add esp, 4
lea ecx, [esp + 0x914]
mov dword [esp + 0x90c], 0xffffffff
call fcn.004222c0
mov ecx, dword [esp + 0x904]
mov dword fs:[0], ecx
add esp, 0x910
ret
Function at 0x404ae0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4611c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov dword [esp + 4], 0
sub esp, 0xc
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x3c], 1
call fcn.004224b0
lea ecx, [esp + 0x18]
push ecx
call fcn.00403690
add esp, 0x10
push 0x4934e8
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.00422940
sub esp, 0xc
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004224b0
lea eax, [esp + 0x24]
push eax
call fcn.00403750
add esp, 0x10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call fcn.00422940
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.004222c0
sub esp, 0xc
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.004224b0
mov esi, dword [esp + 0x40]
push esi
call fcn.004042f0
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 1
call fcn.004222c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call fcn.004222c0
mov ecx, dword [esp + 0x24]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret