joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa08f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xa1d9fb
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 0xa09002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00a0cdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xa09002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00a046e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00a0d20b
push 0x10
call fcn.00a0d1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xa08fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.009f91c0
jmp 0xa08fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00a08b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xa08ff0
mov ecx, edi
call fcn.009f92c0
push edi
call fcn.00a0d1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xa09021
inc ebx
cmp ebx, 0x20
jb 0xa08f3e
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 0xa0a250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xa1e808
push 0xa0e288
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 0xa0a329
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 0xa0a329
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.00a0d1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xa0a329
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 0xa0a329
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 0xa0a32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00a0a351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xa0ad20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa0ad58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xa0ad60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xa0ad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xa0ad94
push eax
push esi
call fcn.00a0d20b
add esp, 8
pop esi
ret 0x10

Function at 0xa0ada0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa0ae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xa0ae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xa23320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a0cdff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xa0adda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xa0ae30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xa0aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xa0aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xa23320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00a0cdff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xa0aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xa0ae6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xa0b000
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 0xa0b131
push esi
call fcn.00a0e145
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.009fd080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa0b131
push 0
push ebp
call fcn.009fd3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.009fd260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa0b08b
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.009fd2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa0b121
push 0xa23918
push edi
call fcn.00a0c3f0
push eax
push ebx
push esi
call fcn.00a0af60
push 0xa238f8
push edi
call fcn.00a0c3f0
push eax
push ebx
push esi
call fcn.00a0af60
push 0xa238d8
push edi
call fcn.00a0c3f0
push eax
push ebx
push esi
call fcn.00a0af60
push 0xa238c0
push edi
call fcn.00a0c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a0af60
push 0xa238a0
push edi
call fcn.00a0c3f0
push eax
push ebx
push esi
call fcn.00a0af60
push 0xa23888
push edi
call fcn.00a0c3f0
push eax
push ebx
push esi
call fcn.00a0af60
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 0xa0c1b0
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.00a0c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a0c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a0c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a0c140
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 0xa0cbfa
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 0xa0cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa1e87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa0cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa0cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x1002109f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10034570], 0
push esi
push edi
jne 0x10021015
call fcn.10020f81
test eax, eax
je 0x1002105a
mov eax, dword [0x10034570]
cmp eax, 1
jne 0x10021036
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1002105a
jmp 0x1002109c
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1002109c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1002105e
xor eax, eax
jmp 0x1002109c
mov eax, dword [esi]
push dword [0x10034570]
call edi
mov edi, eax
test edi, edi
je 0x10021080
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1002109c
lea edi, [esi + 0xff0]
push esi
push dword [0x10034570]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x10021086
mov eax, esi
pop edi
pop esi
ret
jmp 0x10021001

Function at 0x1002140c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10033f20]
jne 0x10021416
repz ret
jmp fcn.10021c9a
Function at 0x40288f
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, str.Connection:_keep_alive_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:12.0__like_Gecko_r_nAccept:__
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4028bc
push ebx
call fcn.0040a91f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 1
push 1
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 8]
call fcn.00402a42
mov ebx, eax
test ebx, ebx
je 0x402923
push ebx
call fcn.0040a91f
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x402933
push ebx
call fcn.0040a91f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x402943
push ebx
call fcn.0040a91f
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x402953
push ebx
call fcn.0040a91f
add esp, 4
push 0x41725d
push dword [ebp - 8]
call fcn.00401010
add esp, 8
cmp eax, 0
jne 0x402976
mov eax, 0x41725d
jmp 0x4029da
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0
push 0
push dword [ebp - 0x10]
mov eax, 0x417421
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.noteshare_id
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00403a7f
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4029c2
push ebx
call fcn.0040a91f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4029d2
push ebx
call fcn.0040a91f
add esp, 4
mov eax, dword [ebp - 0x1c]
jmp 0x4029da
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4029eb
push ebx
call fcn.0040a91f
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4029fb
push ebx
call fcn.0040a91f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x404472
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov eax, str.Connection:_keep_alive_r_nUser_Agent:_Mozilla_5.0__Windows_NT_10.0__WOW64__Trident_7.0__rv:12.0__like_Gecko_r_nAccept:__
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40449f
push ebx
call fcn.0040a91f
add esp, 4
pop eax
mov dword [ebp - 4], eax
push 1
push 1
mov dword [ebp - 0xc], 0
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x10], 0
push 0
lea eax, [ebp - 0x10]
push eax
push 1
push 0x418ef4
mov dword [ebp - 0x14], 0
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push dword [ebp + 8]
call fcn.00402a42
mov ebx, eax
test ebx, ebx
je 0x404500
push ebx
call fcn.0040a91f
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404510
push ebx
call fcn.0040a91f
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404520
push ebx
call fcn.0040a91f
add esp, 4
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push 1
push 1
mov eax, 0x417421
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, str.Location:
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call fcn.00403a7f
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x404567
push ebx
call fcn.0040a91f
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x404577
push ebx
call fcn.0040a91f
add esp, 4
mov eax, dword [ebp - 0x18]
jmp 0x40457f
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x404590
push ebx
call fcn.0040a91f
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4045a0
push ebx
call fcn.0040a91f
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40af80
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x40afe9
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.0040ad10
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x40b2d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x40b362
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x40b354
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x40b34c
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x40b315
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret

Function at 0x40b720
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x40b761.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x40b761.2
jmp dword [eax*4 + 0x40b7ec]
mov word [esp + 0x48], di
jmp 0x40b79a
mov word [esp + 0x48], 2
jmp 0x40b79a
mov word [esp + 0x48], 3
jmp 0x40b79a
mov word [esp + 0x48], 4
jmp 0x40b79a
mov word [esp + 0x48], 7
jmp 0x40b79a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x40b7e4
cmp dword [esp + 0x70], edi
je 0x40b7d0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x40d9c0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x140
push ebx
mov ebx, dword [esp + 0x154]
push ebp
push esi
mov esi, dword [ebx]
push edi
mov edi, dword [esp + 0x154]
xor ebp, ebp
test edi, edi
je 0x40da40
push edi
call dword [0x4194f8]
add esp, 4
test eax, eax
jbe 0x40da40
test esi, esi
je 0x40d9fe
cmp esi, 0xffffffff
je 0x40d9fe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebx], esi
je 0x40da82
mov eax, dword [esp + 0x15c]
test eax, eax
je 0x40da2c
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
je 0x40da40
jmp 0x40da3b
mov edx, dword [esp + 0x158]
mov eax, dword [esp + 0x10]
test edx, eax
je 0x40da40
mov ebp, 1
test esi, esi
je 0x40da82
cmp esi, 0xffffffff
je 0x40da82
test ebp, ebp
jne 0x40dab9
mov eax, dword [esp + 0x15c]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x10]
push eax
push esi
je 0x40da8f
call edi
test eax, eax
je 0x40da82
mov ecx, dword [esp + 0x10]
and ecx, 0x10
cmp cl, 0x10
jne 0x40dab9
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x40da6a
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x140
ret
call edi
test eax, eax
je 0x40da82
mov ebx, dword [esp + 0x158]
test dword [esp + 0x10], ebx
jne 0x40dab9
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
jne 0x40da9c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
lea edx, [esp + 0x3c]
push edx
call dword [0x4194f8]
inc eax
push eax
call fcn.0040ad10
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
Function at 0x2e003e83
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x2e003e92
pop dword [ebp - 0x18]
mov eax, 0x8de0bc73
sub eax, 0x5fe07de1
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x1412fce6
add dword [ebp - 0x28], 0x3a3f4865
mov dword [ebp - 0x24], 0x1951e0
add dword [ebp - 0x24], 0x3219fa65
mov dword [ebp - 0x20], 0xd3802a67
sub dword [ebp - 0x20], 0x8733e639
mov dword [ebp - 0x1c], 0x78ff24
sub dword [ebp - 0x1c], 0x78ff24
lea eax, [ebp - 0x28]
push eax
mov eax, 0xbad02f9c
add eax, 0x7332f12c
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0xfe397485
add dword [ebp - 0x28], 0x7638f4d1
mov dword [ebp - 0x24], 0xb62b2e5f
add dword [ebp - 0x24], 0x8b413316
mov dword [ebp - 0x20], 0xae2a239c
sub dword [ebp - 0x20], 0x4abab730
mov dword [ebp - 0x1c], 0x4a5d0ba0
add dword [ebp - 0x1c], 0xb5a2f460
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xb9385571
sub eax, 0x8b3534b5
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x437c2
push 0
call eax
mov ecx, 0xf2c2c98c
sub ecx, 0xf2c277d7
xor ebx, ebx
add ebx, eax
mov esi, 0x2e056e00
add esi, dword [ebp - 0x18]
mov edx, 0x1dea7033
mov edi, dword [esi]
sub dword [ebp - 4], esi
add edi, edx
xor dword [ebp - 4], 0xcbbb2cd2
mov dword [ebx], edi
xor dword [ebp - 0x14], edi
add ebx, 0x3971e7fd
add ebx, 0xc68e1807
add esi, 4
loop 0x2e003faa
add eax, 0x139a7
mov ebx, eax
add eax, 5
mov ecx, 0x2e000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x2e013ece
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e03021f
call fcn.2e00153c
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
mov dword [ebp - 4], ebx
call fcn.2e014c10
test ax, ax
je 0x2e013f76
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e013f76
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f6d
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e003e83
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e013f60
push esi
mov ecx, edi
call fcn.2e010c49
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e003e83
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e001586
ret