joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7e2310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.007ee145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7e23ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x7e238d
lea eax, [esp + 0x18]
push eax
jmp 0x7e2392
push 0x807720
call fcn.007edfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7e2360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7e1f40
push 4
push ecx
push eax
call fcn.007ee43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x7e3f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x7e3fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x7e3fcf
push ebx
push edi
push 0x807770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x7e3fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x807770
push esi
call ebx
test eax, eax
je 0x7e3fae
mov ebp, 3
cmp dword [0x807774], ebp
jne 0x7e3faa
push 0x3e8
call edi
push 0x807770
push esi
call ebx
test eax, eax
jne 0x7e3f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x7e3fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x7e3fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0x7e7e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x7fd8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x7e7ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.007e47a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x7e7e61
mov edx, dword [eax]
jmp 0x7e7e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.007e6050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x7e7ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x7e7ebf
cmp esi, edi
je 0x7e7ebf
mov ecx, esi
call fcn.007dfa00
push esi
call fcn.007ed1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.007e4990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x7e7ef5
mov eax, dword [eax]
jmp 0x7e7ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.007e3640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x7e7f25
mov eax, dword [eax]
jmp 0x7e7f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x7e7f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x7e7f76
cmp esi, edi
je 0x7e7f76
mov eax, dword [esi]
cmp eax, edi
je 0x7e7f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x7e7f6d
push eax
call fcn.007ed1c8
add esp, 4
push esi
call fcn.007ed1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7e7f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x7e7ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7e8035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.007e7e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x7e7fc5
mov edi, 0x8028b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7e8035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.007e7e00
add edi, 4
add esp, 0xc
cmp edi, 0x8028c0
jb 0x7e8000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x7e8070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.007ee082
mov esi, eax
add esp, 8
test esi, esi
je 0x7e8107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x7e8102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.007ed946
add esp, 8
test eax, eax
je 0x7e80e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x7e80e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.007ed946
add esp, 8
test eax, eax
jne 0x7e80c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x7e8102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x7e8f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7fd9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x7e9002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.007ecdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x7e9002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007e46e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.007ed20b
push 0x10
call fcn.007ed1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x7e8fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007d91c0
jmp 0x7e8fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.007e8b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x7e8ff0
mov ecx, edi
call fcn.007d92c0
push edi
call fcn.007ed1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x7e9021
inc ebx
cmp ebx, 0x20
jb 0x7e8f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7ea250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7fe808
push 0x7ee288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7ea329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7ea329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007ed1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x7ea329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x7ea329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x7ea32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.007ea351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7eb000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x7eb131
push esi
call fcn.007ee145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.007dd080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x7eb131
push 0
push ebp
call fcn.007dd3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.007dd260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x7eb08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.007dd2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x7eb121
push 0x803918
push edi
call fcn.007ec3f0
push eax
push ebx
push esi
call fcn.007eaf60
push 0x8038f8
push edi
call fcn.007ec3f0
push eax
push ebx
push esi
call fcn.007eaf60
push 0x8038d8
push edi
call fcn.007ec3f0
push eax
push ebx
push esi
call fcn.007eaf60
push 0x8038c0
push edi
call fcn.007ec3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.007eaf60
push 0x8038a0
push edi
call fcn.007ec3f0
push eax
push ebx
push esi
call fcn.007eaf60
push 0x803888
push edi
call fcn.007ec3f0
push eax
push ebx
push esi
call fcn.007eaf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7ec1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007ec140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007ec140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007ec140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007ec140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7ecbfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7ecc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7fe87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7ecc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7ecc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402ee7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x402ef6
pop dword [ebp - 0x2c]
mov eax, 0x857455ae
sub eax, 0x853426b8
sub dword [ebp - 0x2c], eax
push 0x40
push 0x1000
push 0x51bae
push 0
mov eax, 0xb8206f2a
sub eax, 0xb7dbbc7a
add eax, dword [ebp - 0x2c]
call dword [eax]
mov ecx, 0x4e39
xor ebx, ebx
add ebx, eax
mov esi, 0x6e69acc9
add esi, 0x91dee137
add esi, dword [ebp - 0x2c]
mov edx, 0xfb7d329e
add edx, 0x645a56d4
add dword [ebp - 0x28], ecx
mov edi, dword [esi]
xor edi, edx
mov dword [ebp - 0x14], 0xb801e111
mov dword [ebx], edi
sub dword [ebp - 0x10], edi
add ebx, 0x9192c2b6
add ebx, 0x6e6d3d4e
add esi, 0xe525ca13
add esi, 0x1ada35f1
loop 0x402f51
add eax, 0x59435042
sub eax, 0x5942248b
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x8422aca2
sub ecx, 0x83e2aca2
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x40419a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x40426b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4041ca
xor esi, esi
jmp 0x40426b
cmp eax, 3
je 0x4041db
push 0
push edi
call main
test eax, eax
jne 0x4041c3
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x404258
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x4041f4
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4041ed
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x404258
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call main
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40426a
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x404254
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x404245
xor esi, esi
inc esi
jmp 0x40426a
test esi, esi
jle 0x40426a
movzx esi, si
or esi, 0x80070000
jmp 0x40426a
xor esi, esi
jmp 0x40426a
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work138_s_srclibsdutildirutil.cpp
call fcn.004038f5
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
push esp
pop ebp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
push ebx
pop eax
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
push eax
pop esi
sub esi, dword [ebp - 8]
or esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
push esi
pop eax
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
or esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
push ebp
pop esp
pop ebp
ret

Function at 0x405e50
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x5d]
push ebx
mov edx, dword [ebp + 0x10]
push esi
test ebx, ebx
fist dword [edi + 0x7d]
invalid
mov ebx, 0x387f0001
jbe 0x405ec0
or al, 0x83
shr byte [ebp + 0x4589f8d1], 0x10
int3
pop es
sub edx, dword [ebp + 0x152eeb56]
and byte [edx], ah
inc eax
add byte [ecx + 1], bh
add esp, 8
cmp ebx, ecx
in al, 7
jle 0x405f02
lea edi, [eax + 0x4478dff]
mov dword [ebp + 0xc], ecx
out 0x8b, eax
push eax
pop eax
dec esi
Function at 0x40cbc7
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get number of processors

Disassembly:
mov eax, 0x41a2f8
call fcn.00413724
push ecx
push ecx
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], 8
mov dword [esi], 0x41b69c
mov dword [ebp - 4], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], 1
mov dword [esi + 0x14], 0x41b754
push 4
mov ebx, 0x41b68c
pop eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], eax
mov dword [esi + 0x28], ebx
lea ecx, [esi + 0x3c]
push eax
mov byte [ebp - 4], 2
call fcn.00403291
mov dword [esi + 0x3c], 0x41b804
push 4
mov dword [esi + 0x54], edi
pop eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x50], ebx
lea edi, [esi + 0x64]
push eax
mov ecx, edi
mov byte [ebp - 4], al
call fcn.00403291
mov dword [edi], 0x41b80c
lea edi, [esi + 0x78]
mov byte [ebp - 4], 5
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 6
call fcn.0040c1be
lea edi, [esi + 0xa0]
mov byte [ebp - 4], 7
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 8
call fcn.0040c1be
lea edi, [esi + 0xc8]
mov byte [ebp - 4], 9
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xa
call fcn.0040c1be
mov byte [ebp - 4], 0xb
lea edi, [esi + 0xf0]
mov ecx, edi
mov dword [ebp - 0x14], edi
call fcn.0040b761
lea ecx, [edi + 0x14]
mov byte [ebp - 4], 0xc
call fcn.0040c1be
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 0xd
call fcn.0040c1be
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x412ff0
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call fcn.0041468e
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x413018
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x413027
mov eax, 1
ret 4

Function at 0x408953
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ebx
mov edi, edi
and edx, edx
call fcn.00408974
add edx, edi
xor dword [eax], ebx
inc eax
or edi, edi
cmp eax, ecx
jne fcn.00408953
add edx, edx
ret
Function at 0x401220
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
imul ebx
sbb eax, 0xb9
imul eax
and esi, 0x95
or esi, 0xf9
dec ebx
sbb eax, 0x20
add esi, 0x20
neg eax
rcl ebx, 7
mov eax, 0x92
imul eax
add esi, 0x51
rcr esi, 0x35
imul edx
or eax, 0xcc
rcl edi, 0x48
rol eax, 0x81
neg esi
or esi, 0x47
inc esi
sub edx, 0x99
add eax, 0x69
imul eax
inc esi
rcl eax, 0x10
dec edx
sub esi, 0x34
dec eax
neg esi
rcl edi, 0xf7
or eax, 0xe9
imul ebx
sbb ebx, 0x3d
inc ebx
not esi
imul edi
bswap esi
inc edx
rcr edx, 0x40
rcl esi, 0xdf
rcr edx, 0xca
rcr edi, 0x49
rcr esi, 0xac
or esi, 0x5c
and esi, 0x69
mov esi, 0xba
dec eax
mov eax, 0xbf
ror edx, 0xa9
xor ecx, ecx
xor edi, edi
not edi
neg eax
imul edx
or edx, 0x43
imul edx
rcl edx, 0x7a
mov ebx, 0xbc
dec edi
bswap edx
imul edx
rol edx, 0xc8
neg eax
dec edx
or ebx, 0xa7
rcl edx, 0xb5
and ebx, 0x6c
and edi, 0x97
neg ebx
ror edi, 0xe9
dec esi
sub esi, 0x44
or esi, 0xd7
imul edx
or eax, 0xfe
dec ebx
rcr esi, 0xab
sbb esi, 0x7c
bswap edx
imul edx
rcl ebx, 0xd7
sbb edx, 0xa2
neg edx
neg edi
mov edi, 0xf2
add ebx, 0x70
bswap edi
rcl esi, 0xbc
ror esi, 0xf0
neg eax
dec edi
imul esi
or edi, 0x2c
rcl edi, 0xb2
bswap eax
bswap eax
mov esi, 0xf0
add esi, 0xec
imul edi
neg eax
or ebx, 0x1d
mov ecx, dword [ebp + 0xc]
add ebx, 0x11
sbb esi, 0x6f
rcl esi, 0x64
add ebx, 0x5f
rcr edx, 0x2d
bswap esi
rcr edi, 0x3b
rcl eax, 0xf0
sub edi, 0x30
rol edi, 0x9b
dec ebx
inc esi
neg eax
neg edi
not ebx
bswap eax
or esi, 0x85
rol eax, 0x2b
or eax, 0xf4
and ebx, 0x32
not eax
rol eax, 0x4f
imul ebx
inc edi
mov eax, 4
inc esi
not edx
not esi
and edi, 0xb8
rcr ebx, 0xf5
dec edi
and edi, 0xa0
sbb edi, 0x68
ror ebx, 0x76
imul esi
not esi
imul edi
inc ebx
mov edx, 0x75
rol edx, 0x28
not ebx
not ebx
dec esi
rol eax, 0x5f
neg esi
not esi
dec edi
rcl edi, 0x43
inc edx
dec edx
mov edi, dword [ebp + 8]
mov ebx, ebx
xor esi, eax
mov esi, eax
not byte [edi]
mov eax, esi
xor eax, eax
mov esi, esi
xor eax, eax
mov ebx, eax
mov eax, eax
mov ebx, ebx
xor esi, eax
mov eax, esi
add byte [edi], 0x79
xor esi, esi
xor esi, esi
mov esi, esi
mov esi, eax
xor esi, esi
mov esi, esi
xor eax, esi
mov ebx, eax
xor ebx, esi
sub byte [edi], 0x30
mov ebx, ebx
mov ebx, ebx
xor eax, eax
xor ebx, ebx
xor esi, eax
mov ebx, ebx
mov esi, ebx
mov esi, esi
mov ebx, ebx
imul byte [edi]
inc edi
loop 0x4013d5
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404f75
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x466000]
jne 0x404f7f
repz ret
jmp fcn.00407310