joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492840
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a69ee
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x78], 0
test ebx, ebx
je 0x492971
cmp dword [ebx], 0x3c
jne 0x492971
test byte [ebx + 4], 0xc
jne 0x49299b
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x492971
cmp word [eax], 0
je 0x492971
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x492971
cmp word [eax], 0
je 0x492971
push eax
lea ecx, [ebp - 0x28]
call fcn.00401960
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push str..exe
push eax
mov dword [ebp - 0x78], 1
call fcn.00495b30
add esp, 8
test al, al
je 0x492914
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push str.open
push dword [ebx + 0xc]
call esi
add esp, 8
test eax, eax
je 0x49290e
push str.runas
push dword [ebx + 0xc]
call esi
add esp, 8
test eax, eax
jne 0x492914
mov byte [ebp - 0x71], 1
jmp 0x492918
mov byte [ebp - 0x71], 0
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x49295b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x492951
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x492951
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
cmp byte [ebp - 0x71], 0
mov eax, dword [ebx + 0x10]
push eax
je 0x49298f
call fcn.00493280
add esp, 4
test eax, eax
jne 0x49299b
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
call fcn.00493690
add esp, 4
test eax, eax
je 0x492971
mov esi, dword [ebx + 0x14]
lea ecx, [ebp - 0x28]
mov edi, dword [ebx + 0x10]
push str.kSafeRunProcess
call fcn.00401960
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
lea ecx, [ebp - 0x70]
call fcn.004911d0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 3
cmp edx, 8
jb 0x492a03
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4929f9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4929f9
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
push 2
lea ecx, [ebp - 0x7c]
call fcn.004983e0
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea ecx, [ebp - 0x7c]
mov esi, eax
call fcn.00498480
cmp dword [ebp - 0x60], 0
mov dword [ebp - 4], 4
je 0x492a35
push 1
lea ecx, [ebp - 0x70]
call fcn.00494e90
lea ecx, [ebp - 0x40]
call fcn.00401bf0
lea ecx, [ebp - 0x58]
call fcn.00401bf0
lea ecx, [ebp - 0x70]
call fcn.00401bf0
mov eax, esi
jmp 0x492973
Function at 0x495900
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x30]
push dword [ebp + 0x2c]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
pop ebp
ret

Function at 0x495930
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret
Function at 0x4972e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push ecx
lea eax, [ebp - 0x1c]
push eax
call fcn.00412c70
add esp, 8
cmp dword [ebp - 0xc], 0
je 0x497323
cmp dword [ebp - 8], 8
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x497323
test al, 0x10
je 0x497323
mov bl, 1
jmp 0x497325
xor bl, bl
lea ecx, [ebp - 0x1c]
call fcn.00401bf0
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049901c
mov esp, ebp
pop ebp
ret
Function at 0x497550
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 8
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x497722
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x3f0
jne 0x497722
push edi
mov ecx, esi
call fcn.00498160
mov edi, eax
cmp edi, 0xffffffff
je 0x497719
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0xffffffff
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x497705
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
test edi, edi
je 0x4976fb
test eax, eax
je 0x4976fb
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x497606
call ebx
cmp eax, 0x7a
jne 0x4976fb
push dword [ebp - 4]
call fcn.0049904d
add esp, 4
mov ebx, eax
lea eax, [ebp - 4]
mov dword [ebp - 0x18], ebx
push eax
push dword [ebp - 4]
push ebx
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4976f2
mov eax, dword [ebx]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4976f2
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4976f2
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x497678
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4976fb
push dword [ebp - 4]
call fcn.0049904d
add esp, 4
mov dword [ebp - 8], eax
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
push eax
push 1
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x4976df
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4976df
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x4976df
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
push dword [ebp - 0x18]
cmp eax, 1
sete bl
call fcn.00499056
push dword [ebp - 8]
call fcn.00499056
add esp, 8
test bl, bl
jne 0x497705
jmp 0x4976fb
push ebx
call fcn.00499056
push dword [ebp - 8]
call fcn.00499056
add esp, 8
jmp 0x4976fb
push ebx
call fcn.00499056
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_ImpersonateLoggedOnUser]
mov byte [esi], 1
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov eax, dword [ebp - 0xc]
cmp eax, 0xffffffff
je 0x497719
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x497b50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49b5a7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 0
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
push 0x208
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 1
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
jne 0x497c17
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x497c25
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x497c25
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00498050
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
Function at 0x497c50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a71f2
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x232]
xor ebx, ebx
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x238], ebx
call fcn.00497550
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x4d6d48], bl
jne 0x497d11
xor eax, eax
mov dword [ebp - 0x230], ebx
push str.Support_GetWinSpecialFoldersFromReg
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
call fcn.00498050
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 1
mov ebx, 1
push eax
mov dword [ebp - 0x238], ebx
call fcn.0048ab70
add esp, 4
mov byte [ebp - 0x231], 0
test al, al
je 0x497d18
mov byte [ebp - 0x231], 1
mov dword [ebp - 4], 0
test bl, 1
je 0x497d66
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x497d66
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x497d5c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x497d5c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.0049900e
add esp, 8
cmp byte [ebp - 0x231], 0
lea eax, [ebp - 0x218]
je 0x497d8e
push 0xa
push 0xffffffffffffffff
push 0
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.00497750
add esp, 0x18
jmp 0x497d9c
push 0
push dword [ebp + 0xc]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [ebp - 0x218]
push eax
call fcn.00498050
cmp byte [ebp - 0x232], 0
je 0x497dd2
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
Function at 0x498160
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a7230
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x248]
mov dword [ebp - 0x244], 0xffffffff
push eax
mov dword [ebp - 0x248], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x498376
cmp dword [ebp - 0x248], 0xffffffff
je 0x498376
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x25c], esi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], ebx
push ebx
push 2
mov dword [ebp - 4], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x240], eax
cmp eax, 0xffffffff
je 0x498339
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 0x23c], 0x22c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4982ad
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov edi, edi
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call esi
add esp, 8
test eax, eax
jne 0x49828b
cmp edi, ebx
je 0x49826c
mov eax, dword [ebp - 0x234]
mov dword [edi], eax
add edi, 4
mov dword [ebp - 0x258], edi
jmp 0x49828b
lea eax, [ebp - 0x234]
push eax
push edi
lea ecx, [ebp - 0x25c]
call fcn.00401e60
mov ebx, dword [ebp - 0x254]
mov edi, dword [ebp - 0x258]
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x240]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x498240
mov esi, dword [ebp - 0x25c]
mov dword [ebp - 0x24c], esi
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
je 0x498339
lea ecx, [ecx]
lea eax, [ebp - 0x240]
mov dword [ebp - 0x240], 0xffffffff
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x498324
mov eax, dword [ebp - 0x240]
cmp eax, dword [ebp - 0x248]
jne 0x498324
push dword [esi]
push 0
push 0x100400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x250], eax
test eax, eax
je 0x498324
lea ecx, [ebp - 0x244]
push ecx
push 0xf
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push dword [ebp - 0x250]
test eax, eax
jne 0x49832d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esi, 4
cmp esi, edi
jne 0x4982c0
jmp 0x498333
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x24c]
mov edi, dword [ebp - 0x244]
test esi, esi
je 0x498372
sub ebx, esi
mov eax, esi
and ebx, 0xfffffffc
cmp ebx, 0x1000
jb 0x498368
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x498368
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ebx
push esi
call fcn.0049900e
add esp, 8
mov eax, edi
jmp 0x49837c
mov eax, dword [ebp - 0x244]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049901c
mov esp, ebp
pop ebp
ret
Function at 0x4986c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push str.LdpLookupEx__r_n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop ebp
jmp fcn.004986e0
Function at 0x40277e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 0x10]
mov byte [ebp - 9], al
mov dword [esp + 4], 0x4182b9
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4027b2
mov dword [ebp - 0x30], 0
jmp 0x4028d2
mov dword [ebp - 0x14], 0xbec0100f
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 4
lea eax, [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x4027ec
mov dword [esp], str.ERROR:_could_not_write_magic_n
call sub.msvcrt.dll_printf
cmp byte [ebp - 9], 0
jne 0x40282c
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.004131ec
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402538
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00406054
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00405c8e
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp + 8]
add eax, 0x28
mov dword [esp], eax
call fcn.00413328
cmp eax, dword [ebp - 0x2c]
jbe 0x4028c0
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.004131ec
mov dword [esp + 8], str.addr
mov dword [esp + 4], str.type
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00405ee6
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
add eax, 0x28
mov dword [esp], eax
call fcn.00413068
mov eax, dword [eax]
mov dword [esp + 8], eax
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402210
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00406054
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00405c8e
lea eax, [ebp - 0x2c]
inc dword [eax]
jmp 0x402833
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebp - 0x30], 1
mov eax, dword [ebp - 0x30]
leave
ret
Function at 0x402974
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [ebp + 0x10]
mov byte [ebp - 9], al
mov dword [esp + 4], 0x4182ed
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fopen
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x402ad6
mov dword [ebp - 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 4
lea eax, [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_fread
cmp dword [ebp - 0x14], 0xbec0100f
jne 0x402ad6
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004133bc
test eax, eax
jne 0x402ac2
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.004133cc
test eax, eax
jne 0x402ac2
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.004131ec
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00406208
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x402a32
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00405c8e
jmp 0x402ac2
mov dword [esp + 0xc], 0x10
lea eax, [ebp - 0x48]
mov dword [esp + 8], eax
mov dword [esp + 4], str.type
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00405f16
test al, al
je 0x402ab2
lea eax, [ebp - 0x48]
mov dword [esp + 4], str.addr
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x402a83
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004024de
jmp 0x402ab2
cmp byte [ebp - 9], 0
jne 0x402ab2
lea eax, [ebp - 0x48]
mov dword [esp + 4], str.window
mov dword [esp], eax
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x402ab2
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004026a4
lea eax, [ebp - 0x28]
mov dword [esp], eax
call fcn.00405c8e
jmp 0x4029d6
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402d3e
mov dword [ebp - 0x4c], 1
jmp 0x402add
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x4c]
leave
ret
Function at 0x406054
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413304
cmp eax, dword [ebp - 8]
jbe 0x4061d8
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413310
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov byte [ebp - 9], al
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413310
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
movzx dx, byte [ebp - 9]
mov eax, dword [ebp - 0x10]
lea eax, [edx + eax]
inc eax
mov word [ebp - 0x12], ax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 2
lea eax, [ebp - 0x12]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x4060f6
mov dword [esp], str.ERROR:_could_not_write_msg_header_n
call sub.msvcrt.dll_printf
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 1
lea eax, [ebp - 9]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x406129
mov dword [esp], str.ERROR:_could_not_write_keyLen_n
call sub.msvcrt.dll_printf
cmp byte [ebp - 9], 0
je 0x406175
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413310
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
movzx eax, byte [ebp - 9]
mov dword [esp + 4], eax
mov eax, dword [edx]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x406175
mov dword [esp], str.ERROR:_could_not_write_msg_key_n
call sub.msvcrt.dll_printf
cmp dword [ebp - 0x10], 0
je 0x4061c1
mov eax, dword [ebp - 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00413310
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [edx + 8]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x4061c1
mov dword [esp], str.ERROR:_could_not_write_msg_value_n
call sub.msvcrt.dll_printf
movzx eax, word [ebp - 0x12]
add eax, dword [ebp - 4]
add eax, 2
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
inc dword [eax]
jmp 0x406068
mov word [ebp - 0x12], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 2
lea eax, [ebp - 0x12]
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp - 4]
add eax, 2
leave
ret
Function at 0x409510
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0x200
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x40959b
lea eax, [ebp - 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x41a140
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x418bd5
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
test eax, eax
jne 0x40959b
mov dword [ebp - 0xc], 0x41a140
jmp 0x409621
mov dword [esp + 4], 0x200
mov dword [esp], 0x41a140
call 0x40c3d0
sub esp, 8
mov dword [esp + 8], 0x200
mov dword [esp + 4], str.AppData
mov dword [esp], 0x41a140
call sub.msvcrt.dll_strncat
mov dword [esp], 0x41a140
call fcn.0040c300
sub esp, 4
cmp eax, 0xffffffff
jne 0x40961a
mov dword [esp + 4], 0
mov dword [esp], 0x41a140
call fcn.0040c3e0
sub esp, 8
test eax, eax
jne 0x40961a
mov dword [esp + 4], 0x41a140
mov dword [esp], str.couldnt_make_directory__s_n
call sub.msvcrt.dll_printf
mov dword [ebp - 0xc], 0
jmp 0x409621
mov dword [ebp - 0xc], 0x41a140
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x40bf50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x40bf65
invalid

Function at 0x40c060
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lahf
adc esi, eax
inc ebp
mov al, byte [0xa145c633]
mov byte cs:[ebp - 0x5e], 0x35

Function at 0x40c350
Capabilities:
Inspect section memory permissions

Disassembly:
ror byte [ebp - 0x73747ffc], 0xc7
add al, 1
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]

Function at 0x40c360
Capabilities:
Inspect section memory permissions

Disassembly:
ror byte [ebp - 0x73747ffc], 0xc7
add al, 1
add byte [eax], al
mov edx, dword [edi + eax*8 + 0x108]
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]

Function at 0x40c370
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
invalid

Function at 0x40c390
Capabilities:
Inspect section memory permissions

Disassembly:
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
adc byte gs:[eax], al
add byte [eax], al
invalid

Function at 0x40c3a0
Capabilities:
Inspect section memory permissions

Disassembly:
or byte gs:[eax], al
add byte [eax], al
inc eax
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
adc byte gs:[eax], al
add byte [eax], al
invalid