joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406059
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004013c0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4060f4
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40b7fc]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x4060f4
cmp eax, 1
je 0x406115
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4060f4
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4060c1
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x4060f0
xor eax, eax
inc eax
jmp 0x406134
cmp edi, eax
jae 0x4060f8
xor eax, eax
jmp 0x406134
cmp eax, esi
jae 0x4060ff
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40b7fc]
jmp 0x406118
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4063c8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x40cd2c]
push edi
jae 0x40659d
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x40cd40]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40659d
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x406473
test dl, 2
jne 0x406473
test dl, 0x48
je 0x40643d
cmp byte [eax + 5], 0xa
je 0x40643d
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x406486
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40646e
mov dword [0x40b7f4], ecx
jmp 0x4065a4
cmp eax, 0x6d
jne 0x40647a
xor eax, eax
jmp 0x4065b1
push eax
call fcn.00404e20
pop ecx
jmp 0x4065ae
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x406598
test eax, eax
je 0x4064ad
cmp byte [ebx], 0xa
jne 0x4064ad
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4064b6
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x406592
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x406582
cmp al, 0xd
je 0x4064e8
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x406574
dec ecx
cmp dword [ebp - 8], ecx
jae 0x406502
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x4064fd
add dword [ebp - 8], 2
jmp 0x406556
mov dword [ebp - 8], eax
jmp 0x406570
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40652a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x406570
cmp dword [ebp - 0x10], 0
je 0x406570
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40654b
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x406556
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x406573
cmp ebx, dword [ebp + 0xc]
jne 0x40655b
cmp byte [ebp - 1], 0xa
jne 0x40655b
mov byte [ebx], 0xa
jmp 0x406573
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00403573
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x406574
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x4064cc
jmp 0x406592
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x406592
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x4065b1
and dword [0x40b7f4], 0
mov dword [0x40b7f0], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406a4a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406a77
test byte [esp + 8], 0x80
je 0x406a65
and eax, 0xfffffffe
jmp 0x406a68
or eax, 1
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x406a88
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404e20
pop ecx
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x407110
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x409e60
call fcn.00401804
mov eax, dword [0x40b040]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x4071b4
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.004013c0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x4071a1
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4071b4
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x4071cf
cmp byte [edi + 1], 0x3a
jne 0x4071cf
movzx eax, byte [edi]
push eax
call fcn.00407cdb
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x4071df
push edi
call fcn.00403914
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.004013ab
call fcn.0040183f
ret
Function at 0x4072e6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.004013c0
mov eax, dword [0x40b040]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x40cd2c]
mov dword [ebp - 4], eax
jae 0x407429
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x40cd40]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x407429
push 1
push esi
push ebx
call fcn.00403573
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x407433
push 2
push esi
push ebx
call fcn.00403573
add esp, 0xc
cmp eax, 0xffffffff
je 0x407433
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4073d3
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00405d40
push 0x8000
push ebx
call fcn.00407e00
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x407392
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004035ff
add esp, 0xc
cmp eax, 0xffffffff
je 0x4073b0
sub edi, eax
test edi, edi
jg 0x407387
jmp 0x4073c6
cmp dword [0x40b7f4], 5
jne 0x4073c3
mov dword [0x40b7f0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00407e00
pop ecx
pop ecx
jmp 0x407413
jge 0x407413
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00403573
push ebx
call fcn.0040500d
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x407413
mov dword [0x40b7f0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x40b7f4], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00403573
add esp, 0xc
mov eax, esi
pop edi
jmp 0x407436
mov dword [0x40b7f0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004013ab
leave
ret

Function at 0x407baa
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x407bd8
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x407bdd
cmp eax, 1
je 0x407bdd
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x407be1
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x40b040]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x407c57
push ebx
call fcn.00407baa
test eax, eax
pop ecx
jne 0x407c26
mov dword [0x40b7f4], 0xf
mov dword [0x40b7f0], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004013ab
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x407c69
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x407c19
inc eax
cmp eax, 0x104
ja 0x407c19
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x407ca0
cmp eax, dword [ebp + 0x10]
jg 0x407c84
mov eax, dword [ebp + 0x10]
push eax
call fcn.004039be
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x407cb4
mov dword [0x40b7f0], 0xc
jmp 0x407c19
cmp eax, dword [ebp + 0x10]
jle 0x407cb4
mov dword [0x40b7f0], 0x22
jmp 0x407c19
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.00402fa0
pop ecx
pop ecx
jmp 0x407c1b
Function at 0x408506
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x40851f
or eax, 0xffffffff
jmp 0x408580
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x40857c
push 0x3d
push esi
call fcn.00408706
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x40857c
cmp esi, eax
je 0x40857c
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x40b81c]
sete cl
cmp eax, dword [0x40b820]
mov dword [ebp - 8], ecx
jne 0x408562
mov edi, eax
call fcn.004084a5
mov dword [0x40b81c], eax
cmp eax, ebx
jne 0x4085bb
cmp dword [ebp + 0xc], ebx
je 0x408584
cmp dword [0x40b824], ebx
je 0x408584
call fcn.00408028
test eax, eax
je 0x4085bb
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x40858d
xor eax, eax
jmp 0x40857f
push 4
call fcn.004039be
cmp eax, ebx
pop ecx
mov dword [0x40b81c], eax
je 0x40857c
mov dword [eax], ebx
cmp dword [0x40b824], ebx
jne 0x4085bb
push 4
call fcn.004039be
cmp eax, ebx
pop ecx
mov dword [0x40b824], eax
je 0x40857c
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x40b81c]
call fcn.00408458
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x40861c
cmp dword [esi], ebx
je 0x40861c
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00403914
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4085ff
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x40865d
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4085f6
mov eax, edi
shl eax, 2
push eax
push dword [0x40b81c]
call fcn.004052ed
cmp eax, ebx
pop ecx
pop ecx
je 0x40865d
jmp 0x408658
cmp dword [ebp - 8], ebx
jne 0x4086c8
cmp edi, ebx
jge 0x40862b
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x40b81c]
call fcn.004052ed
cmp eax, ebx
pop ecx
pop ecx
je 0x40857c
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x40b81c], eax
cmp dword [ebp + 0xc], ebx
je 0x4086b2
push dword [ebp - 4]
call fcn.004031d0
inc eax
inc eax
push eax
call fcn.004039be
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4086b2
push dword [ebp - 4]
push esi
call fcn.00402fa0
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4086ab
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00403914
pop ecx
cmp dword [ebp - 8], ebx
je 0x4086c0
push dword [ebp - 4]
call fcn.00403914
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x40857f
push dword [ebp - 4]
call fcn.00403914
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x408589
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x403b9a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x403c2b
lea eax, [ebp - 0x104]
push eax
call fcn.00403d7b
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x403cf4
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x403d34
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x403d34
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x403cd9
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x403d34
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x403d29
push 0x3e8
call eax
test eax, eax
je 0x403d29
call 0x403d19
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x468b61
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x51e66c]
cmp eax, 0xffffffff
jne 0x468c6d
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0
mov dword [esp], 0xa29f00
call sub.msvcrt.dll_memset
mov dword [0xa29f00], 0x44
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0
mov dword [esp], 0xa29f44
call sub.msvcrt.dll_memset
mov dword [esp + 0x24], 0xa29f44
mov dword [esp + 0x20], 0xa29f00
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x8000000
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], str.cmd.exe__c_ver
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateProcessA]
call eax
sub esp, 0x28
test eax, eax
setne al
test al, al
je 0x468c63
mov eax, dword [0xa29f44]
mov dword [esp + 4], 0xffffffff
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
mov eax, dword [0xa29f44]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [0xa29f48]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [0x51e66c], 1
jmp 0x468c6d
mov dword [0x51e66c], 0
mov eax, dword [0x51e66c]
leave
ret
Function at 0x479c5a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00479856
test eax, eax
sete al
test al, al
je 0x479c86
mov eax, 0xfffffffe
mov edx, 0xffffffff
jmp 0x479d39
mov edx, dword [0x68f79c]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov edi, ecx
sub edi, eax
mov eax, edi
add eax, edx
mov dword [0xa1920c], eax
mov eax, dword [0xa1920c]
movzx eax, byte [eax + 0x70]
test al, al
je 0x479cbd
mov eax, 0xfffffffc
mov edx, 0xffffffff
jmp 0x479d39
mov eax, dword [0x68f798]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa19210], eax
mov edi, 0xa19218
mov eax, dword [0xa19210]
mov eax, dword [eax]
mov dword [esp + 4], 0xa1921c
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileSize]
call eax
sub esp, 8
mov dword [edi], eax
mov eax, dword [0xa19218]
mov edx, dword [0xa1921c]
mov ebx, eax
and bh, 0xff
mov esi, edx
and esi, 0
mov eax, ebx
xor eax, 0xffffffff
or eax, esi
test eax, eax
jne 0x479d2e
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
test eax, eax
setne al
test al, al
je 0x479d2e
mov eax, 0xfffffffd
mov edx, 0xffffffff
jmp 0x479d39
mov eax, dword [0xa19218]
mov edx, dword [0xa1921c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x47b6df
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x30
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00479856
test eax, eax
sete al
test al, al
je 0x47b71d
mov eax, 0xfffffffe
jmp 0x47b8d7
mov edx, dword [0x68f79c]
mov eax, dword [ebp + 8]
shl eax, 3
mov ecx, eax
shl ecx, 4
mov ebx, ecx
sub ebx, eax
mov eax, ebx
add eax, edx
mov dword [0xa19154], eax
mov eax, dword [0xa19154]
movzx eax, byte [eax + 0xa]
test al, al
jne 0x47b752
mov eax, 0xfffffffd
jmp 0x47b8d7
cmp dword [ebp - 0x14], 0
jns 0x47b762
mov eax, 0xfffffffc
jmp 0x47b8d7
mov eax, dword [ebp - 0xc]
mov edx, eax
xor edx, 0xffffffff
mov eax, dword [ebp - 0x10]
xor eax, 0xffffffff
or eax, edx
test eax, eax
je 0x47b7ac
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047b5a5
mov dword [0xa19158], eax
mov eax, dword [0xa19158]
test eax, eax
setne al
test al, al
je 0x47b7ac
mov eax, dword [0xa19158]
jmp 0x47b8d7
mov eax, dword [0x68f798]
mov edx, dword [ebp + 8]
shl edx, 2
add eax, edx
mov dword [0xa1915c], eax
jmp 0x47b8bd
cmp dword [ebp - 0x14], 0
jle 0x47b7dd
mov dword [0xa19160], 0xffffffff
add dword [ebp - 0x18], 1
adc dword [ebp - 0x14], 0xffffffff
jmp 0x47b7f3
mov eax, dword [ebp - 0x18]
mov dword [0xa19160], eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edx, dword [0xa19160]
mov eax, dword [0xa1915c]
mov eax, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xa19168
mov dword [esp + 8], edx
mov edx, dword [ebp + 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x47b85f
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [0xa19170], eax
mov eax, dword [0xa19170]
cmp eax, 5
je 0x47b851
mov eax, dword [0xa19170]
cmp eax, 0x21
jne 0x47b858
mov eax, 0xfffffff9
jmp 0x47b8d7
mov eax, 0xfffffff7
jmp 0x47b8d7
mov eax, dword [0xa19168]
mov edx, dword [0xa1916c]
add dword [ebp + 0x14], eax
mov esi, dword [0xa19154]
mov eax, dword [0xa19154]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
mov eax, dword [0xa19168]
mov edx, dword [0xa1916c]
add eax, ecx
adc edx, ebx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [0xa19160]
mov ecx, eax
mov ebx, 0
mov eax, dword [0xa19168]
mov edx, dword [0xa1916c]
mov esi, ebx
xor esi, edx
xor eax, ecx
or eax, esi
test eax, eax
je 0x47b8bd
mov eax, 0xffffffff
jmp 0x47b8d7
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
or eax, edx
test eax, eax
setne al
test al, al
jne 0x47b7c3
mov eax, 0
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x49278b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4927d5
mov dword [esp], 7
call fcn.00445ba4
mov eax, dword [ebp - 0x14]
jmp 0x492870
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
call eax
sub esp, 8
mov edx, eax
sub dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp edx, eax
setne al
test al, al
je 0x492831
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov dword [esp + 4], 1
mov dword [esp], 0
call fcn.004472be
mov dword [ebp - 0x14], eax
mov dword [esp], 0x33
call fcn.00445ba4
mov eax, dword [ebp - 0x14]
jmp 0x492870
mov dword [esp + 4], 1
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call fcn.004472be
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x18]
leave
ret
Function at 0x49adf0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 0xc]
mov dword [0xa3b8a0], eax
jmp fcn.0049a5e0