joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100012c0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x10011184]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 0x14], 0
je 0x10001301
push 0x1c
lea eax, [ebp - 0x254]
push eax
push fcn.100012c0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10001301
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 8], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], 0x224
push 0x220
push 0
lea edx, [ebp - 0x234]
push edx
call fcn.10004330
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
mov ecx, dword [ebp - 4]
push ecx
call sub.KERNEL32.dll_Module32First
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x10001386
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp - 8]
je 0x10001371
mov eax, dword [ebp - 0x21c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.100011d0
add esp, 0x10
lea ecx, [ebp - 0x238]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_Module32Next
mov dword [ebp - 0xc], eax
jmp 0x10001345
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100042b8
mov esp, ebp
pop ebp
ret
Function at 0x10003e80
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10003f05
lea ecx, [ebp - 0x10]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov dword [ebp - 0x20], 1
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
neg ecx
sbb ecx, ecx
and ecx, 2
mov dword [ebp - 0x14], ecx
push 0
push 0
push 0x10
lea edx, [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x10003f10
Capabilities:
Create thread
Enumerate process modules
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x10011184]
xor eax, ebp
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x250], ecx
push 0
mov eax, dword [ebp - 0x250]
push eax
call fcn.10004ed4
add esp, 8
cmp eax, 0xffffffff
jne 0x10003f46
xor eax, eax
jmp 0x100040ed
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp eax, dword [ebp + 8]
jne 0x10003f58
xor eax, eax
jmp 0x100040ed
mov dword [ebp - 0x24c], 0
mov dword [ebp - 0x240], 0
push 0x220
push 0
lea ecx, [ebp - 0x23c]
push ecx
call fcn.10004330
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x240], 0x224
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_Module32First
test eax, eax
je 0x10003fe6
mov edx, dword [ebp - 0x250]
push edx
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x10003fd2
mov dword [ebp - 0x24c], 1
jmp 0x10003fe6
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x10003fae
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x24c], 0
je 0x10004000
xor eax, eax
jmp 0x100040ed
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1000401e
xor eax, eax
jmp 0x100040ed
mov edx, dword [ebp - 0x250]
push edx
call fcn.10004dc0
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
push 4
push 0x1000
mov eax, dword [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x244], eax
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0x1000d93c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x248], eax
push 0x1000d94c
mov eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
push 0
push 0
mov ecx, dword [ebp - 0x244]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100040c8
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x100040ed
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100042b8
mov esp, ebp
pop ebp
ret 4

Function at 0x100042b8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10011184]
jne 0x100042c2
repz ret
jmp fcn.1000513a
Function at 0x10004e4b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x10004e7c
call fcn.1000803c
mov dword [eax], esi
call fcn.10008029
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.100081a9
add esp, 0x14
push 0x16
pop eax
jmp 0x10004ed1
test dword [ebp + 0xc], 0xfffffff9
jne 0x10004e58
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10004ea9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000804f
pop ecx
call fcn.10008029
mov eax, dword [eax]
jmp 0x10004ed1
test al, 0x10
jne 0x10004ecf
test al, 1
je 0x10004ecf
test byte [ebp + 0xc], 2
je 0x10004ecf
call fcn.1000803c
mov dword [eax], 5
call fcn.10008029
mov dword [eax], 0xd
jmp 0x10004ea0
xor eax, eax
pop esi
pop ebp
ret

Function at 0x1000a4e3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100055a0
and dword [ebp - 4], 0
cmp dword [0x10012ed0], 0
mov ebx, eax
jne 0x1000a594
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000a645
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000a645
push eax
call fcn.1000552e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10012ed0], eax
call esi
push eax
call fcn.1000552e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10012ed4], eax
call esi
push eax
call fcn.1000552e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10012ed8], eax
call esi
push eax
call fcn.1000552e
pop ecx
mov dword [0x10012ee0], eax
test eax, eax
je 0x1000a594
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000552e
pop ecx
mov dword [0x10012edc], eax
mov eax, dword [0x10012edc]
cmp eax, ebx
je 0x1000a5ec
cmp dword [0x10012ee0], ebx
je 0x1000a5ec
push eax
call fcn.100055a9
push dword [0x10012ee0]
mov esi, eax
call fcn.100055a9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000a5ec
test edi, edi
je 0x1000a5ec
call esi
test eax, eax
je 0x1000a5e3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000a5e3
test byte [ebp - 0xc], 1
jne 0x1000a5ec
or dword [ebp + 0x10], 0x200000
jmp 0x1000a625
mov eax, dword [0x10012ed4]
cmp eax, ebx
je 0x1000a625
push eax
call fcn.100055a9
pop ecx
test eax, eax
je 0x1000a625
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000a625
mov eax, dword [0x10012ed8]
cmp eax, ebx
je 0x1000a625
push eax
call fcn.100055a9
pop ecx
test eax, eax
je 0x1000a625
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10012ed0]
call fcn.100055a9
pop ecx
test eax, eax
je 0x1000a645
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000a647
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4073e2
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x461134], 0
jne 0x407420
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4073f6
mov dword [ecx*4 + 0x461130], eax
inc ecx
cmp ecx, 0x100
jl 0x4073f1
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40744d
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x461130]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x40742e
not eax
pop ebp
ret 0xc

Function at 0x7d5a5c
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x7d5a62
pop ebp
sub ebp, 6
sub ebp, 0x3d5a5c
jmp 0x7d5ac0
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
mov al, byte [esp + 0x28]
cmp al, 1
je 0x7d5ad7
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x7d5ae0
mov eax, 0x3d5a5c
add eax, ebp
add eax, 0xaa
mov ecx, 0x5b8
mov edx, 0x3ae9c02e
xor byte [eax], dl
inc eax
dec ecx
jne 0x7d5af7
jmp 0x7d5b0a
movsd dword es:[edi], dword [esi]
jecxz 0x7d5ab2
cmpsd dword [esi], dword es:[edi]
adc ch, byte [esi]
scasd eax, dword es:[edi]
out dx, eax
salc
sub eax, 0x2e2696e3
xchg esp, eax
push es
fxch st(4)
sub eax, 0x22afa5e6
sub eax, 0x467e7eeb
adc dl, byte [eax]
and ebp, dword [esi]
inc esi
push cs
xor bl, byte [esi]
das
add cl, byte [edx]
inc esi
mov al, 0x19
dec ecx
xor eax, 0x2e2e2bc6
mov dword cs:[esi], 0x7b2e2e2e
movsd dword es:[edi], dword [esi]
ret 0xaba5
Function at 0x407699
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x517138]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004075d8
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00407ed0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4076e8
cmp dword [ebp - 0x1c], 5
jb 0x407700
jmp 0x4076fc
cmp dword [ebp - 0x10], 1
jne 0x407700
cmp dword [ebp - 0x1c], 4
ja 0x4076fc
jne 0x407700
cmp dword [ebp - 0x18], 0
jbe 0x407700
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x50b2ec
call fcn.0040748b
test eax, eax
jge 0x407721
mov byte [0x5196d4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004079a5
add ebp, 0x78
leave
ret

Function at 0x4079a5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x517138]
jne 0x4079af
repz ret
jmp fcn.0040b8fc
Function at 0x40ca7e
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x5172d0]
je 0x40ca99
inc edi
cmp edi, 0x17
jb 0x40ca8a
cmp edi, 0x17
jae 0x40cc19
push ebp
push 3
call fcn.00412cb4
cmp eax, 1
pop ecx
je 0x40cbe5
push 3
call fcn.00412cb4
test eax, eax
pop ecx
jne 0x40cacd
cmp dword [0x517104], 1
je 0x40cbe5
cmp ebx, 0xfc
je 0x40cc18
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x518d68
push ebp
call fcn.0040cfd5
add esp, 0xc
test eax, eax
je 0x40cb03
push esi
push esi
push esi
push esi
push esi
call fcn.00407af5
add esp, 0x14
push 0x104
mov esi, 0x518d81
push esi
push 0
mov byte [0x518e85], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40cb47
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040cfd5
add esp, 0xc
test eax, eax
je 0x40cb47
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00407af5
add esp, 0x14
push esi
call fcn.00407a60
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40cb8c
push esi
call fcn.00407a60
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x51907c
push 0x50c2ac
sub ecx, eax
push ecx
push eax
call fcn.00412132
add esp, 0x14
test eax, eax
je 0x40cb8c
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00407af5
add esp, 0x14
jmp 0x40cb8e
xor esi, esi
push 0x50c2a8
push ebx
push ebp
call fcn.004120c1
add esp, 0xc
test eax, eax
je 0x40cbae
push esi
push esi
push esi
push esi
push esi
call fcn.00407af5
add esp, 0x14
push dword [edi*8 + 0x5172d4]
push ebx
push ebp
call fcn.004120c1
add esp, 0xc
test eax, eax
je 0x40cbd0
push esi
push esi
push esi
push esi
push esi
call fcn.00407af5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00412af7
add esp, 0xc
jmp 0x40cc18
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40cc18
cmp ebp, 0xffffffff
je 0x40cc18
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x5172d4]
push dword [esi]
call fcn.00407a60
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x412af7
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040c59c
xor ebx, ebx
cmp dword [0x5193a4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x412bcd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x412cad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x412cad
push eax
call fcn.0040c52e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x5193a4], eax
call esi
push eax
call fcn.0040c52e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x5193a8], eax
call esi
push eax
call fcn.0040c52e
mov dword [0x5193ac], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00409104
test eax, eax
pop ecx
pop ecx
je 0x412b9b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407af5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x412bcd
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040c52e
cmp eax, ebx
pop ecx
mov dword [0x5193b4], eax
je 0x412bcd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040c52e
pop ecx
mov dword [0x5193b0], eax
mov eax, dword [0x5193b0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x412c52
cmp dword [0x5193b4], ecx
je 0x412c52
push eax
call fcn.0040c5a5
push dword [0x5193b4]
mov esi, eax
call fcn.0040c5a5
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x412c52
cmp edi, ebx
je 0x412c52
call esi
cmp eax, ebx
je 0x412c1f
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x412c1f
test byte [ebp - 0x18], 1
jne 0x412c52
lea eax, [ebp - 0x10]
push eax
call fcn.0040913b
test eax, eax
pop ecx
je 0x412c3a
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00407af5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x412c49
or dword [ebp + 0x10], 0x200000
jmp 0x412c8d
or dword [ebp + 0x10], 0x40000
jmp 0x412c8d
mov eax, dword [0x5193a8]
cmp eax, dword [ebp - 8]
je 0x412c8d
push eax
call fcn.0040c5a5
cmp eax, ebx
pop ecx
je 0x412c8d
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x412c8d
mov eax, dword [0x5193ac]
cmp eax, dword [ebp - 8]
je 0x412c8d
push eax
call fcn.0040c5a5
cmp eax, ebx
pop ecx
je 0x412c8d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5193a4]
call fcn.0040c5a5
cmp eax, ebx
pop ecx
je 0x412cad
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x412caf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x417420
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret
Function at 0x5064a0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x5064d2
xor eax, eax
jmp 0x50656a
mov dword [ebp - 8], 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5064fc
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x50656a
mov dword [ebp - 0x10], 0
cmp dword [ebp - 8], 0
jbe 0x50655b
push 0
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
xor eax, 0xacbe322b
mov dword [ebp - 0x10], eax
push 1
push 0
push 0xfffffffffffffffc
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x14]
push edx
push 4
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 8]
sub edx, 4
mov dword [ebp - 8], edx
jmp 0x506503
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x506a60
Capabilities:
Create directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a543
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x517138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call fcn.00418cf0
mov word [ebp - 0x224], 0
push 0x208
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.00407ed0
add esp, 0xc
mov dword [ebp - 0x228], 0
push 0x104
lea ecx, [ebp - 0x224]
push ecx
push str._TEMP_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x228], eax
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x260]
call fcn.00404a80
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.00404a50
mov byte [ebp - 4], 1
lea eax, [ebp - 0x244]
push eax
call fcn.00506700
add esp, 4
push 0x50e704
lea ecx, [ebp - 0x260]
call fcn.00404b80
lea ecx, [ebp - 0x244]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00404b60
lea edx, [ebp - 0x260]
push edx
mov ecx, dword [ebp + 8]
call fcn.00404b20
push 0
lea ecx, [ebp - 0x260]
call fcn.00404bc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x244]
call fcn.00404b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x260]
call fcn.00404b00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004079a5
mov esp, ebp
pop ebp
ret
Function at 0x507290
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x517138]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
jne 0x5072b1
xor al, al
jmp 0x507321
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x5072c7
xor al, al
jmp 0x507321
mov dword [ebp - 0x240], 0x22c
lea eax, [ebp - 0x240]
push eax
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x507314
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x507300
mov byte [ebp - 1], 1
jmp 0x507314
lea ecx, [ebp - 0x240]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x5072e5
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004079a5
mov esp, ebp
pop ebp
ret

Function at 0x507b40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x517138]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x220], ecx
call fcn.004dd7e0
mov dword [ebp - 4], 0x50da6c
mov dword [ebp - 0xc], str.InstallDir
mov dword [ebp - 0x21c], 0x100
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x507bda
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x507bd4
lea ecx, [ebp - 0x218]
push ecx
push 0x50dab4
mov edx, dword [ebp + 8]
push edx
call fcn.00406a30
add esp, 0xc
jmp 0x507bd8
xor eax, eax
jmp 0x507be8
jmp 0x507bde
xor eax, eax
jmp 0x507be8
call fcn.004db400
mov eax, 1
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004079a5
mov esp, ebp
pop ebp
ret 4
Function at 0x509c90
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50a921
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x517138]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004a0f50
call fcn.00504ba0
mov dword [0x519670], 1
call fcn.004434f0
mov dword [ebp - 0x14], 0x75a9
call fcn.004bd7e0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x30]
call fcn.00404ac0
mov byte [ebp - 4], 1
call fcn.00471330
mov dword [0x519690], 1
call fcn.00455be0
mov ecx, dword [ebp - 0x14]
mov dword [0x51968c], ecx
call fcn.00490450
lea edx, [ebp - 0x30]
push edx
mov ecx, 0x5196ac
call fcn.00404b20
call fcn.004cf080
call fcn.0045b4d0
call fcn.00504ba0
cmp dword [0x519640], 0
jne 0x509dcd
push 0xed8
call fcn.00407dd1
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x509d63
mov ecx, dword [ebp - 0x38]
call fcn.00507a40
mov dword [ebp - 0x44], eax
jmp 0x509d6a
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [0x519640], ecx
call fcn.00478cd0
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [0x519640]
add ecx, 8
call fcn.00404b20
call fcn.004aa640
push 0x50d4d4
mov ecx, dword [0x519640]
add ecx, 0x24
call fcn.00404b40
call fcn.004ab5d0
mov eax, dword [0x519640]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x54], ecx
call fcn.00459a30
mov ecx, dword [0x519640]
call fcn.005087b0
call fcn.00473260
call fcn.0047c630
call fcn.00504ba0
call fcn.00509050
test eax, eax
jne 0x509e46
cmp dword [0x519640], 0
je 0x509e38
mov ecx, dword [0x519640]
call fcn.00507860
call fcn.004a3030
mov edx, dword [0x519640]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x509e1d
push 1
mov ecx, dword [ebp - 0x3c]
call fcn.00406f10
mov dword [ebp - 0x48], eax
jmp 0x509e24
mov dword [ebp - 0x48], 0
call fcn.004d3960
mov dword [0x519640], 0
call fcn.0043be60
push 0
call fcn.004092eb
call fcn.004c6a00
jmp 0x509e50
call fcn.00509320
call fcn.00471330
call fcn.00481690
call fcn.00504ba0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00404b00
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00404b00
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004079a5
mov esp, ebp
pop ebp
ret