joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466260
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x466359
push dword fs:[eax]
mov dword fs:[eax], esp
mov ax, word [esi + 4]
mov word [ebx + 4], ax
mov ax, word [esi + 6]
mov word [ebx + 6], ax
mov ax, word [esi + 8]
mov word [ebx + 8], ax
mov ax, word [esi + 0xa]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xc]
call fcn.00469070
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x14]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1e]
mov word [ebx + 0x1e], ax
mov ax, word [esi + 0x20]
mov word [ebx + 0x22], ax
mov ax, word [esi + 0x22]
mov word [ebx + 0x24], ax
mov ax, word [esi + 0x24]
mov word [ebx + 0x26], ax
mov eax, dword [esi + 0x26]
mov dword [ebx + 0x28], eax
mov eax, dword [esi + 0x2a]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a3f0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00467424
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a2d4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00467498
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466360
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404aa0
ret
Function at 0x466368
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x466471
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebx + 4], 0
mov ax, word [esi + 4]
mov word [ebx + 6], ax
mov ax, word [esi + 6]
mov word [ebx + 8], ax
mov ax, word [esi + 8]
mov word [ebx + 0xa], ax
mov eax, dword [esi + 0xa]
call fcn.00469070
mov dword [ebx + 0xc], eax
mov eax, dword [esi + 0xe]
mov dword [ebx + 0x10], eax
mov eax, dword [esi + 0x12]
mov dword [ebx + 0x14], eax
mov eax, dword [esi + 0x16]
mov dword [ebx + 0x18], eax
mov ax, word [esi + 0x1a]
mov word [ebx + 0x1c], ax
mov ax, word [esi + 0x1c]
mov word [ebx + 0x20], ax
mov word [ebx + 0x22], 0
mov word [ebx + 0x24], 0
mov word [ebx + 0x26], 0
xor eax, eax
mov dword [ebx + 0x28], eax
xor eax, eax
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x30], 0
mov dword [ebx + 0x34], 0
cmp dword [ebp - 4], 0
je 0x466437
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a3f0
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00467424
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a2d4
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.00467498
jmp 0x466449
xor edx, edx
mov eax, ebx
call fcn.00467424
xor edx, edx
mov eax, ebx
call fcn.00467498
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x48], 0
mov byte [ebx + 0x4a], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466478
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404aa0
ret

Function at 0x46973c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x46979a
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 4]
call fcn.004698bc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 2
je 0x469782
lea eax, [ebp - 4]
call fcn.004698bc
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 5
jne 0x469784
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4697a1
lea eax, [ebp - 4]
call fcn.00404a7c
ret

Function at 0x4697a8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x46980c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0xe
lea eax, [ebp - 0x1a]
push eax
lea eax, [ebp - 4]
call fcn.004698bc
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040a8f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469813
lea eax, [ebp - 4]
call fcn.00404a7c
ret
Function at 0x469818
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x46987c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x469888
lea eax, [ebp - 4]
call fcn.004698bc
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.00469608
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x469883
lea eax, [ebp - 4]
call fcn.00404a7c
ret

Function at 0x46bcf4
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x124], ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x118], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x46be65
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46be40
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x111], 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x105
lea eax, [ebp - 0x111]
push eax
lea eax, [ebp - 0x118]
mov edx, ebx
call fcn.00404c64
lea eax, [ebp - 0x118]
mov edx, 0x46be7c
call fcn.00404d44
mov eax, dword [ebp - 0x118]
call fcn.00404f3c
push eax
call sub.kernel32.dll_GetVolumeInformationA
test eax, eax
je 0x46bdb2
lea eax, [ebp - 0x111]
call fcn.0040a6cc
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, esi
call fcn.00404b6c
jmp 0x46bdb9
mov eax, esi
call fcn.00404a7c
cmp bl, 0x61
jae 0x46bdda
lea edx, [ebp - 0x11c]
mov eax, dword [esi]
call fcn.0040e7d0
mov edx, dword [ebp - 0x11c]
mov eax, esi
call fcn.00404ad0
jmp 0x46bdf4
lea edx, [ebp - 0x120]
mov eax, dword [esi]
call fcn.0040e744
mov edx, dword [ebp - 0x120]
mov eax, esi
call fcn.00404ad0
lea eax, [ebp - 0x124]
push eax
mov eax, dword [esi]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 0x128], 0xb
lea edx, [ebp - 0x12c]
xor ecx, ecx
mov eax, 0x46be88
call fcn.0040ae0c
mov edx, dword [ebp - 0x124]
mov eax, esi
call fcn.00404ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46be47
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret

Function at 0x474b30
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov ecx, dword [edi + 0x170]
mov edx, ebx
mov eax, edi
call fcn.00474d64
mov esi, eax
mov dword [edi + 0x170], esi
and esi, 0xff
add dword [edi + 0x174], esi
imul esi, dword [edi + 0x174], 0x8088405
inc esi
mov dword [edi + 0x174], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x178]
mov eax, edi
call fcn.00474d64
mov dword [edi + 0x178], eax
pop edi
pop esi
pop ebx
ret

Function at 0x474ba4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov edi, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x474bc9
inc esi
mov eax, edi
call fcn.00474b88
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.00474b30
inc ebx
dec esi
jne 0x474bb3
pop edi
pop esi
pop ebx
ret
Function at 0x474c58
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x474ccd
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00474bd0
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.00474b88
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.00474b30
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x474c98
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x474cd4
lea eax, [ebp - 4]
call fcn.00404a7c
ret
Function at 0x475968
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x475b4c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x475b08
mov eax, dword [ebp - 4]
call fcn.00477658
cmp ebx, eax
jge 0x475b08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.00465758
mov edx, dword [0x465d00]
call fcn.00403e8c
mov esi, eax
mov eax, esi
call fcn.00467390
test al, al
je 0x475afe
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x475af2
xor eax, eax
push ebp
push 0x475aeb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004762ac
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041bb0c
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.004050c8
mov eax, dword [ebp - 8]
call fcn.00404f94
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov al, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00475eb0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
mov dl, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475b36
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x475aea
mov eax, dword [ebp - 4]
call fcn.00476330
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040a8f4
jmp 0x475b36
mov eax, dword [ebp - 8]
call fcn.00404a7c
jmp 0x475b36
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.00409cdc
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x417520]
call fcn.0040d94c
call fcn.00404470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475b53
lea eax, [ebp - 0x54]
call fcn.00404a7c
ret
Function at 0x479b4c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x479b79
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x479bf8
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.00470848
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x479bc6
mov cx, word [esp]
sub cx, si
jmp 0x479bc8
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x479baf
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x479bee
mov cx, word [esp]
sub cx, si
jmp 0x479bf0
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x479bd7
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x479c55
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00479820
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x479c40
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x479c55
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x479b56
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x47e940
Capabilities:
Get disk size

Disassembly:
push ebx
add esp, 0xffffffc4
mov ebx, eax
call fcn.0047e7b0
test al, al
je 0x47e96d
lea edx, [esp + 0x10]
mov eax, ebx
call fcn.0047e8a8
test al, al
jne 0x47e963
call fcn.0040f160
mov eax, dword [esp + 0x14]
imul dword [esp + 0x18]
jmp 0x47e99e
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push eax
mov eax, ebx
call fcn.00404f3c
push eax
call sub.kernel32.dll_GetDiskFreeSpaceA
test eax, eax
jne 0x47e997
call fcn.0040f160
mov eax, dword [esp]
imul dword [esp + 4]
add esp, 0x3c
pop ebx
ret

Function at 0x48467c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffed0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x1e0], 0
je 0x4846a0
mov eax, dword [ebx + 0x1e0]
call fcn.004692e4
test al, al
jne 0x4846b6
push esp
push 0x12d
call sub.kernel32.dll_GetTempPathA
mov edx, esi
mov eax, esp
call fcn.00469608
jmp 0x4846c3
mov eax, esi
mov edx, dword [ebx + 0x1e0]
call fcn.00404ad0
add esp, 0x130
pop esi
pop ebx
ret
Function at 0x484864
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x484876
add esp, 0xfffffff0
call fcn.00404008
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404f2c
xor eax, eax
push ebp
push 0x48492f
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, esi
call fcn.00403ca0
lea eax, [esi + 0x7c]
mov edx, dword [ebp - 4]
call fcn.00404ad0
mov byte [esi + 0xa0], 0
mov byte [esi + 0xa1], 1
lea eax, [esi + 0x1c]
xor ecx, ecx
mov edx, 0xc
call fcn.00403604
mov dword [esi + 0x1c], 0xc
xor eax, eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], 0xffffffff
push 0x400
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 8]
push eax
lea eax, [esi + 4]
push eax
call sub.kernel32.dll_CreatePipe
push 0x400
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x10]
push eax
lea eax, [esi + 0xc]
push eax
call sub.kernel32.dll_CreatePipe
push 0x400
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 0x18]
push eax
lea eax, [esi + 0x14]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484936
lea eax, [ebp - 4]
call fcn.00404a7c
ret

Function at 0x4849a4
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbf4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x40c], ebx
mov edi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x484a51
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0
push ebx
call sub.kernel32.dll_PeekNamedPipe
cmp dword [ebp - 4], 0
jbe 0x484a38
cmp dword [ebp - 4], 0x400
jbe 0x4849f4
mov dword [ebp - 4], 0x400
push 0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x408]
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
push edi
lea eax, [ebp - 0x40c]
lea edx, [ebp - 0x408]
mov ecx, 0x400
call fcn.00404b6c
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 8]
mov edx, 1
call fcn.00404f9c
mov esi, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484a58
lea eax, [ebp - 0x40c]
call fcn.00404a7c
ret
Function at 0x484a64
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x484c7e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.00484c8c
mov byte [ebx + 0xa2], 0
lea eax, [ebx + 0x38]
xor ecx, ecx
mov edx, 0x44
call fcn.00403604
mov dword [ebx + 0x38], 0x44
cmp byte [ebx + 0xa1], 0
je 0x484ab4
mov word [ebx + 0x68], 0
jmp 0x484aba
mov word [ebx + 0x68], 0xa
mov dword [ebx + 0x64], 0x101
mov eax, dword [ebx + 4]
mov dword [ebx + 0x70], eax
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x74], eax
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x78], eax
lea eax, [ebx + 0x28]
push eax
lea eax, [ebx + 0x38]
push eax
push 0
push 0
push 0x20
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00404f3c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x484c49
mov byte [ebx + 0xa0], 1
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x2c]
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x484bb3
cmp byte [ebx + 0xa2], 0
je 0x484b43
push 0
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_TerminateProcess
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0xc]
mov eax, ebx
call fcn.004849a4
test eax, eax
jle 0x484b6f
cmp word [ebx + 0x82], 0
je 0x484b6f
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x84]
call dword [ebx + 0x80]
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.004849a4
test eax, eax
jle 0x484b9b
cmp word [ebx + 0x8a], 0
je 0x484b9b
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
cmp word [ebx + 0x92], 0
je 0x484bb3
mov edx, ebx
mov eax, dword [ebx + 0x94]
call dword [ebx + 0x90]
push 0xa
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x484b2f
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0xc]
mov eax, ebx
call fcn.004849a4
test eax, eax
jle 0x484bf5
cmp word [ebx + 0x82], 0
je 0x484bf5
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x84]
call dword [ebx + 0x80]
lea ecx, [ebp - 4]
mov edx, dword [ebx + 0x14]
mov eax, ebx
call fcn.004849a4
test eax, eax
jle 0x484c21
cmp word [ebx + 0x8a], 0
je 0x484c21
mov ecx, dword [ebp - 4]
mov edx, ebx
mov eax, dword [ebx + 0x8c]
call dword [ebx + 0x88]
mov eax, dword [ebx + 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebx + 0xa0], 0
cmp word [ebx + 0x9a], 0
je 0x484c49
mov edx, ebx
mov eax, dword [ebx + 0x9c]
call dword [ebx + 0x98]
mov eax, dword [ebx + 0xa4]
call fcn.00409e80
test al, al
je 0x484c63
mov eax, dword [ebx + 0xa4]
call fcn.0040a17c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484c85
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404aa0
ret
Function at 0x484c8c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
xor ecx, ecx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 0x114], ecx
mov dword [ebp - 0x118], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x484e72
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.00484820
test al, al
je 0x484e46
call fcn.00403640
fstp st(0)
lea eax, [ebp - 0x110]
mov edx, 0x104
call fcn.00407e60
lea eax, [ebp - 0x110]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x114]
lea eax, [ebp - 0x110]
call fcn.0040a8f4
push dword [ebp - 0x114]
call fcn.0040ba90
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x118]
mov eax, 0x484e88
call fcn.0040c738
push dword [ebp - 0x118]
push 0x484e9c
mov eax, dword [ebp - 4]
add eax, 0xa4
mov edx, 3
call fcn.00404dfc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
call fcn.00409eb4
mov eax, dword [ebp - 4]
push dword [eax + 0xa4]
call sub.kernel32.dll_GetTickCount_1
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x11c]
call fcn.00409974
push dword [ebp - 0x11c]
push 0x484ea8
mov eax, dword [ebp - 4]
add eax, 0xa4
mov edx, 3
call fcn.00404dfc
mov dl, 1
mov eax, dword [0x417b64]
call fcn.00403ca0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x484e2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx + 0x44]
mov al, byte [0x484eb0]
push eax
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x7c]
mov ecx, 0x484ebc
mov edx, 0x484ec8
call fcn.0040ef88
mov edx, dword [ebp - 0x120]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
call fcn.00409e80
test al, al
je 0x484e05
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xa4]
call fcn.0040a17c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xa4]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484e33
mov eax, dword [ebp - 0xc]
call fcn.00403cd0
ret
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x7c]
call fcn.00404ad0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x484e79
lea eax, [ebp - 0x120]
mov edx, 4
call fcn.00404aa0
ret