joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e65d8
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.00405254
xor eax, eax
push ebp
push 0x4e66d8
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.004e83a0
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
xor eax, eax
mov dword [ebx + 0x30], eax
cmp dword [ebp - 4], 0
je 0x4e669e
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a560
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004e6dd4
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a424
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004e6e48
jmp 0x4e66b0
xor edx, edx
mov eax, ebx
call fcn.004e6dd4
xor edx, edx
mov eax, ebx
call fcn.004e6e48
xor eax, eax
mov dword [ebx + 0x3c], eax
mov byte [ebx + 0x40], 0
mov byte [ebx + 0x42], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e66df
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404dd8
ret

Function at 0x4e89b4
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.00405254
xor eax, eax
push ebp
push 0x4e8a18
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.004e8ac8
push eax
call sub.kernel32.dll_GetVolumeInformationA
mov edx, ebx
lea eax, [ebp - 0x1a]
call fcn.0040aa5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8a1f
lea eax, [ebp - 4]
call fcn.00404db4
ret

Function at 0x4e8a24
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.00405254
xor eax, eax
push ebp
push 0x4e8a88
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x104]
push eax
push 0
push 0x4e8a94
lea eax, [ebp - 4]
call fcn.004e8ac8
push eax
call sub.kernel32.dll_GetTempFileNameA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004e8888
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8a8f
lea eax, [ebp - 4]
call fcn.00404db4
ret
Function at 0x4ee590
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 + 0x174]
mov edx, ebx
mov eax, edi
call fcn.004ee7b4
mov esi, eax
mov dword [edi + 0x174], esi
and esi, 0xff
add dword [edi + 0x178], esi
imul esi, dword [edi + 0x178], 0x8088405
inc esi
mov dword [edi + 0x178], esi
mov edx, esi
shr edx, 0x18
mov ecx, dword [edi + 0x17c]
mov eax, edi
call fcn.004ee7b4
mov dword [edi + 0x17c], eax
pop edi
pop esi
pop ebx
ret

Function at 0x4ee604
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 0x4ee629
inc esi
mov eax, edi
call fcn.004ee5e8
xor byte [ebx], al
mov dl, byte [ebx]
mov eax, edi
call fcn.004ee590
inc ebx
dec esi
jne 0x4ee613
pop edi
pop esi
pop ebx
ret

Function at 0x4ee6b8
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.00405254
xor eax, eax
push ebp
push 0x4ee72d
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004ee630
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004ee5e8
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004ee590
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4ee6f8
mov bl, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ee734
lea eax, [ebp - 4]
call fcn.00404db4
ret
Function at 0x4f3088
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
add esi, 0xfffffbf4
mov eax, dword [ebp + 8]
mov word [eax - 0x1a7c], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0x1a74], 0
jne 0x4f30de
cmp dword [eax - 0x1a78], 0
jne 0x4f30de
mov eax, dword [ebp + 8]
mov word [eax - 0x1a7c], 1
mov eax, dword [ebp + 8]
mov dword [eax - 0x1a78], 0x10000
mov dword [eax - 0x1a74], 0
mov dword [ebp - 8], 0x7fff
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov edx, dword [esi]
mov ecx, dword [edx + 0xbac]
mov word [ecx + eax*2], 0
mov eax, ecx
mov edx, 0xfffe
xor ecx, ecx
call fcn.004082d4
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
mov ax, word [eax*8 + 0x538dae]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a82], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
mov ax, word [eax*8 + 0x538dac]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a84], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
movzx eax, word [eax*8 + 0x538db0]
mov edx, dword [ebp + 8]
mov dword [edx - 0x1a88], eax
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
mov ax, word [eax*8 + 0x538db2]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a8a], ax
mov eax, dword [esi]
mov eax, dword [eax + 0x1b0]
cmp eax, 2
jg 0x4f318e
mov eax, dword [esi]
mov eax, dword [eax + 0x27c]
or word [eax + 8], 4
jmp 0x4f31a0
cmp eax, 8
jl 0x4f31a0
mov eax, dword [esi]
mov eax, dword [eax + 0x27c]
or word [eax + 8], 2
mov eax, dword [ebp + 8]
mov word [eax - 0x1112], 0
mov eax, dword [ebp + 8]
mov dword [eax - 0x1120], 0
mov dword [eax - 0x111c], 0
mov bx, 0x8000
mov eax, dword [ebp + 8]
lea edi, [eax - 0x420]
mov eax, dword [esi]
mov edx, dword [eax + 0xba4]
mov ecx, ebx
mov eax, dword [edi + 4]
call dword [edi]
mov edx, dword [ebp + 8]
mov word [edx - 0x1a7a], ax
mov eax, dword [ebp + 8]
cmp word [eax - 0x1a7a], 0
je 0x4f3204
mov eax, dword [ebp + 8]
cmp word [eax - 0x1a7a], 0xffff
jne 0x4f321c
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a7f], 1
mov eax, dword [ebp + 8]
mov word [eax - 0x1a7a], 0
jmp 0x4f3280
mov eax, dword [ebp + 8]
mov byte [eax - 0x1a7f], 0
mov eax, dword [ebp + 8]
cmp word [eax - 0x1a7a], 0x106
jae 0x4f323e
mov eax, dword [ebp + 8]
push eax
call fcn.004f2ed4
pop ecx
mov eax, dword [ebp + 8]
mov word [eax - 0x1a8c], 0
xor ebx, ebx
movzx eax, bx
mov edx, dword [esi]
mov edx, dword [edx + 0xba4]
movzx eax, byte [edx + eax]
mov edx, dword [ebp + 8]
mov dx, word [edx - 0x1a8c]
shl edx, 5
xor ax, dx
and ax, 0x7fff
mov edx, dword [ebp + 8]
mov word [edx - 0x1a8c], ax
inc ebx
cmp bx, 2
jne 0x4f324c
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x4f82ec
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffed0
mov esi, edx
mov ebx, eax
cmp dword [ebx + 0x1d0], 0
je 0x4f8310
mov eax, dword [ebx + 0x1d0]
call fcn.004e8584
test al, al
jne 0x4f8326
push esp
push 0x12d
call sub.kernel32.dll_GetTempPathA
mov edx, esi
mov eax, esp
call fcn.004e8888
jmp 0x4f8333
mov eax, esi
mov edx, dword [ebx + 0x1d0]
call fcn.00404e08
add esp, 0x130
pop esi
pop ebx
ret

Function at 0x4f8580
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffea0
mov esi, edx
mov ebx, eax
push esi
push 0x160
lea eax, [esp + 8]
push eax
push 0
push ebx
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
jne 0x4f85a8
or eax, 0xffffffff
jmp 0x4f85ac
mov eax, dword [esp + 4]
add esp, 0x160
pop esi
pop ebx
ret
Function at 0x4ff1f0
Capabilities:
Get disk information
Get file system object information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x184], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ff43e
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x44148c]
call fcn.00442970
mov esi, eax
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov edx, 0x10
mov eax, esi
call fcn.0044c490
mov edx, 0x10
mov eax, esi
call fcn.0044c46c
xor edx, edx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x5c]
xor edx, edx
mov eax, esi
call fcn.00442e6c
xor edx, edx
mov eax, esi
call fcn.0044cbf8
mov edx, 0x4ff454
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x378]
call fcn.0045a3cc
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00486df4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00486e14
mov bl, 0x41
lea eax, [ebp - 0x170]
mov edx, ebx
call fcn.00404f94
mov edx, dword [ebp - 0x170]
lea eax, [ebp - 8]
mov ecx, 0x4ff478
call fcn.004050b8
mov eax, dword [ebp - 8]
call fcn.00405264
push eax
call sub.kernel32.dll_GetDriveTypeA
mov edi, eax
test edi, edi
je 0x4ff3f3
cmp edi, 1
je 0x4ff3f3
push 0x301
push 0x160
lea eax, [ebp - 0x16c]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00405264
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x4ff3f3
mov eax, esi
call fcn.00442d44
mov eax, dword [eax + 0x14]
mov edx, 0x80000005
call fcn.0042af9c
lea edx, [ebp - 0x180]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 0x180]
push eax
mov eax, esi
call fcn.00442d44
pop edx
call fcn.0042b634
push 3
push 0
push 0
push 0x10
push 0x10
mov eax, dword [ebp - 0x16c]
push eax
push 0
push 0
mov eax, esi
call fcn.00442d44
call fcn.0042bb34
push eax
call sub.user32.dll_DrawIconEx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00486ca4
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x184]
lea edx, [ebp - 0x160]
mov ecx, 0x104
call fcn.0040501c
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0xc]
call fcn.00486744
mov eax, dword [esi + 0x168]
call fcn.0042db58
push eax
mov eax, dword [esi + 0x168]
call fcn.0042db58
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x378]
pop ecx
call fcn.00459ea4
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 0xc]
call fcn.004868fc
cmp edi, 3
jne 0x4ff3f3
mov eax, dword [ebp - 4]
cmp byte [eax + 0x37c], 0
je 0x4ff3f3
mov cl, 1
mov edx, 3
mov eax, dword [ebp - 0xc]
call fcn.0048688c
inc ebx
cmp bl, 0x5b
jne 0x4ff2a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x22c]
call fcn.00486ff0
mov eax, esi
call fcn.00403fc4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ff445
lea eax, [ebp - 0x184]
call fcn.00404db4
lea eax, [ebp - 0x170]
call fcn.00404db4
lea eax, [ebp - 8]
call fcn.00404db4
ret
Function at 0x4ffe4c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405254
xor eax, eax
push ebp
push 0x4fff87
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404db4
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00405264
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x4fff64
mov eax, ebx
call fcn.004027c8
mov esi, eax
push esi
push ebx
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.00405264
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4fff98
push esi
call sub.version.dll_VerQueryValueA
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x4fff9c
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4fff5b
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x10]
movzx eax, word [eax + 2]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x4fffc0
call fcn.0040afd8
push 0x4fffd4
push dword [ebp - 0x18]
push 0x4ffff0
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov edx, 4
call fcn.0040512c
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.00405264
push eax
push esi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4fff5b
mov eax, edi
mov edx, dword [ebp - 0x20]
call fcn.00404fa4
mov edx, ebx
mov eax, esi
call fcn.004027e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fff8e
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404dd8
lea eax, [ebp - 4]
call fcn.00404db4
ret
Function at 0x509c78
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00405254
xor eax, eax
push ebp
push 0x509e4a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405264
push eax
push 0
mov eax, esi
call fcn.00453524
push eax
call sub.shell32.dll_ShellExecuteA
mov ebx, eax
mov eax, ebx
cmp eax, 0x20
ja case.0x509cd1.0
mov al, byte [eax + 0x509cd8]
jmp dword [eax*4 + 0x509cf9]
lea eax, [ebp - 8]
mov edx, 0x509e60
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x509e9c
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x509ec8
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x509ef4
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x509f40
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x509f94
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x509fd0
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x50a038
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x50a05c
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x50a0b0
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x50a0fc
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x50a14c
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x50a19c
call fcn.00404e4c
jmp 0x509e10
lea eax, [ebp - 8]
mov edx, 0x50a1c4
call fcn.00404e4c
cmp ebx, 0x21
jge 0x509e2f
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00405264
mov edx, eax
mov ecx, 0x50a1e4
mov eax, esi
call fcn.00531048
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x509e51
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404dd8
ret

Function at 0x50a3e0
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffd8
mov ebx, edx
mov eax, dword [0x53969c]
cmp dword [eax], 2
jne 0x50a45a
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x50a45a
lea eax, [esp + 0xc]
push eax
push 0x50a470
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
cmp eax, 1
sbb eax, eax
inc eax
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
mov edx, 0x10
xor ecx, ecx
mov dword [esp + 4], ecx
test al, al
je 0x50a45a
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x28
pop ebx
ret
Function at 0x527768
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
mov esi, ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x527974
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [edi + 0x414]
cmp byte [eax + 0x210], 0
jne 0x5277b0
inc dword [edi + 0xbec]
mov bl, 1
jmp 0x527959
mov eax, dword [edi + 0x410]
cmp byte [eax + 0x210], 0
je 0x527800
lea edx, [ebp - 0x30]
mov eax, esi
call fcn.0040a560
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.00409580
mov eax, dword [ebp - 0x2c]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebp + 8]
call fcn.0040a560
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.00409580
mov edx, dword [ebp - 0x34]
pop eax
call fcn.004051b0
je 0x527800
xor ebx, ebx
jmp 0x527959
cmp dword [ebp - 4], 0
jne 0x527813
inc dword [edi + 0xbec]
mov bl, 1
jmp 0x527959
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, esi
call fcn.00405264
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x527959
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
call fcn.00405264
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x527953
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x52794a
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x527941
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x527938
push 0
push 0
push 0
push 4
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x52792f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
call fcn.004095ec
mov ecx, eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
sub eax, dword [ebp - 0x20]
sbb edx, dword [ebp - 0x1c]
add eax, dword [edi + 0xbf8]
adc edx, dword [edi + 0xbfc]
mov dword [edi + 0xbf8], eax
mov dword [edi + 0xbfc], edx
mov ebx, ecx
test cl, cl
je 0x527926
mov eax, dword [ebp - 4]
add dword [edi + 0xbe8], eax
inc dword [edi + 0xbec]
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52797b
lea eax, [ebp - 0x38]
mov edx, 4
call fcn.00404dd8
ret
Function at 0x527abc
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe9c
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 0x164]
mov edx, dword [0x4088b8]
call fcn.004057ec
xor eax, eax
push ebp
push 0x527c09
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
cmp dword [ebp - 4], 0
je 0x527bea
mov eax, dword [ebx + 0x414]
cmp byte [eax + 0x210], 0
je 0x527bea
xor esi, esi
mov eax, dword [ebx + 0x418]
cmp byte [eax + 0x210], 0
je 0x527b4a
lea ecx, [ebp - 0x164]
mov edx, 0x3f
mov eax, edi
call fcn.0040a244
test eax, eax
jne 0x527b3a
mov esi, dword [ebp - 0x164]
lea eax, [ebp - 0x164]
call fcn.0040a2b8
jmp 0x527be4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, edi
call fcn.00405264
push eax
call sub.kernel32.dll_CreateFileA_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x527be4
push 0
push 0
push 0
push 2
push 0
push ebx
call sub.kernel32.dll_CreateFileMappingA
mov edi, eax
test edi, edi
je 0x527bde
push 0
push 0
push 0
push 4
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x527bd8
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
test edx, edx
jns 0x527baa
add edx, 3
sar edx, 2
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0x80
jle 0x527bc0
mov dword [ebp - 0xc], 0x80
mov edx, dword [ebp - 0xc]
test edx, edx
jbe 0x527bcf
add esi, dword [eax]
add eax, 4
dec edx
jne 0x527bc7
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
push edi
call sub.kernel32.dll_CloseHandle_1
push ebx
call sub.kernel32.dll_CloseHandle_1
and esi, 0x7fffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x527c10
lea eax, [ebp - 0x164]
mov edx, dword [0x4088b8]
call fcn.004058bc
ret

Function at 0x5282c8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x5283a8
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
dec ecx
je 0x528361
dec ecx
jne 0x5283a3
cmp eax, 4
jg 0x528308
mov eax, 4
jmp 0x5283ab
cmp eax, 5
jne 0x52831b
test edx, edx
jne 0x52831b
mov eax, 5
jmp 0x5283ab
cmp eax, 5
jne 0x52832c
cmp edx, 1
jne 0x52832c
mov eax, 6
jmp 0x5283ab
cmp eax, 5
jne 0x52833d
cmp edx, 2
jne 0x52833d
mov eax, 7
jmp 0x5283ab
cmp eax, 6
jne 0x52834d
test edx, edx
jne 0x52834d
mov eax, 8
jmp 0x5283ab
cmp eax, 6
jne 0x52835c
dec edx
jne 0x52835c
mov eax, 9
jmp 0x5283ab
or eax, 0xffffffff
jmp 0x5283ab
cmp eax, 4
jne 0x52836e
test edx, edx
jne 0x52836e
xor eax, eax
jmp 0x5283ab
cmp eax, 4
jne 0x52838d
cmp edx, 0xa
jne 0x52838d
cmp byte [esp + 0x15], 0x41
jne 0x528386
mov eax, 2
jmp 0x5283ab
mov eax, 1
jmp 0x5283ab
cmp eax, 4
jne 0x52839e
cmp edx, 0x5a
jne 0x52839e
mov eax, 3
jmp 0x5283ab
or eax, 0xffffffff
jmp 0x5283ab
or eax, 0xffffffff
jmp 0x5283ab
or eax, 0xffffffff
add esp, 0x94
ret
Function at 0x52c858
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff88
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00405254
lea ebx, [ebp - 0x24]
xor eax, eax
push ebp
push 0x52c939
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.00403400
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x41
mov word [ebp - 0x38], si
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00405264
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x52c921
jmp 0x52c8e3
cmp dword [ebx + 4], 0x12
jne 0x52c8d7
mov eax, dword [ebx + 8]
call fcn.00404d18
push ebx
call sub.user32.dll_TranslateMessage
push ebx
call sub.user32.dll_DispatchMessageA
push 1
push 0
push 0
push 0
push ebx
call sub.user32.dll_PeekMessageA
test eax, eax
jne 0x52c8c9
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_GetExitCodeProcess
cmp dword [ebp - 8], 0x103
je 0x52c8e3
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle_1
mov bl, 1
jmp 0x52c923
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52c940
lea eax, [ebp - 4]
call fcn.00404db4
ret
Function at 0x52e8f0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffafc
push ebx
xor ecx, ecx
mov dword [ebp - 0x504], ecx
mov dword [ebp - 0x3f8], ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x52e9b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x3f4], 0x104
mov eax, dword [0x53969c]
cmp dword [eax], 2
je 0x52e952
lea eax, [ebp - 0x3f4]
push eax
lea eax, [ebp - 0x4fd]
push eax
call sub.advapi32.dll_GetUserNameA
lea edx, [ebp - 0x3f8]
lea eax, [ebp - 0x4fd]
call fcn.0040aa5c
jmp 0x52e973
push ebp
lea eax, [ebp - 0x3f8]
call fcn.0052e304
pop ecx
cmp dword [ebp - 0x3f8], 0
jne 0x52e973
lea eax, [ebp - 0x3f8]
call fcn.0052e5cc
push ebp
lea edx, [ebp - 0x504]
mov eax, dword [ebp - 0x3f8]
call fcn.0052e0ac
pop ecx
mov edx, dword [ebp - 0x504]
mov eax, ebx
call fcn.00404e08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x52e9be
lea eax, [ebp - 0x504]
call fcn.00404db4
lea eax, [ebp - 0x3f8]
call fcn.00404db4
ret