joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fc60
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x48fc79
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x48fc85
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x48fc80
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x490a30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x10]
xor al, al
test edi, edi
je 0x490a6d
push esi
mov esi, dword [ebp + 8]
mov byte [edi], al
test esi, esi
je 0x490a6c
push ebx
mov ebx, dword [ebp + 0xc]
xor edx, edx
test ebx, ebx
jle 0x490a65
movzx ecx, byte [edx + esi]
movzx eax, al
xor ecx, eax
inc edx
mov al, byte [ecx + 0x526530]
cmp edx, ebx
jl 0x490a51
xor al, 0x55
mov byte [edi], al
mov al, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x490d40
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d0
mov eax, dword [0x567680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1d0], eax
cmp esi, 0x40
jbe 0x490db7
lea eax, [ebp - 0x1cc]
push eax
call fcn.00492c90
push esi
lea eax, [ebp - 0x1cc]
push edi
push eax
call fcn.00491030
push 0x20
push 0
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.00493230
xorps xmm0, xmm0
add esp, 0x20
movq qword [ebp - 0x24], xmm0
movq qword [ebp - 0x1c], xmm0
movq qword [ebp - 0x14], xmm0
movq qword [ebp - 0xc], xmm0
jmp 0x490de2
push esi
lea eax, [ebp - 0x44]
push edi
push eax
call fcn.004e9970
add esp, 0xc
cmp esi, 0x40
jae 0x490de2
mov eax, 0x40
sub eax, esi
push eax
lea eax, [ebp - 0x44]
add eax, esi
push 0
push eax
call fcn.004eaaf0
add esp, 0xc
xor ecx, ecx
jmp 0x490df0
mov al, byte [ebp + ecx - 0x44]
xor al, 0x36
mov byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 0x40
jl 0x490df0
lea eax, [ebp - 0x1cc]
push eax
call fcn.00492c90
push 0x40
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.00493370
push dword [ebp + 0x14]
lea eax, [ebp - 0x1cc]
push ebx
push eax
call fcn.00491030
push 0x20
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.00493230
add esp, 0x2c
xor ecx, ecx
pop edi
pop esi
pop ebx
mov al, byte [ebp + ecx - 0x44]
xor al, 0x5c
mov byte [ebp + ecx - 0xa4], al
inc ecx
cmp ecx, 0x40
jl 0x490e50
lea eax, [ebp - 0x1cc]
push eax
call fcn.00492c90
push 0x40
lea eax, [ebp - 0xa4]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.00493370
push 0x20
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x1cc]
push eax
call fcn.00493370
push dword [ebp + 0x1c]
lea eax, [ebp - 0x1cc]
push 0
push dword [ebp - 0x1d0]
push eax
call fcn.00493230
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x2c
call fcn.004e9514
mov esp, ebp
pop ebp
ret
Function at 0x491e90
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x100
call fcn.004e8060
mov ebx, dword [ebp + 0x10]
add esp, 4
mov esi, eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x80
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test edi, edi
jne 0x491f4c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x491f4c
cmp dword [ebp - 8], ebx
jbe 0x491efc
test esi, esi
je 0x491ef3
push esi
call fcn.004e8ec3
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
cmp eax, 0x80
jbe 0x491f2f
test esi, esi
je 0x491f16
push esi
call fcn.004e8ec3
mov eax, dword [ebp - 4]
add esp, 4
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e8060
add esp, 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov edi, eax
test esi, esi
je 0x491f59
push esi
call fcn.004e8ec3
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x491f70
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x567680]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov word [ebp - 0x24], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x84]
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push eax
movq qword [ebp - 0x22], xmm0
movq qword [ebp - 0x1a], xmm0
movq qword [ebp - 0x12], xmm0
mov dword [ebp - 0x84], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x492044
push 0x43
lea eax, [ebp - 0x67]
push 0
push eax
mov byte [ebp - 0x68], 0
call fcn.004eaaf0
push 0x44
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00491e90
add esp, 0x18
test al, al
je 0x492044
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.00491de0
mov ebx, eax
add esp, 8
cmp esi, ebx
je 0x492032
cmp dword [esi + 0x14], 8
jb 0x492017
push dword [esi]
call fcn.004e8c3e
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
push ebx
mov ecx, esi
mov word [esi], ax
call fcn.0041bb40
cmp dword [ebp - 0x6c], 8
pop ebx
jb 0x492044
push dword [ebp - 0x80]
call fcn.004e8c3e
add esp, 4
push edi
mov dword [edi], 0
call fcn.00492070
add esp, 4
test al, al
mov al, 1
jne 0x49205f
mov dword [edi], 0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004e9514
mov esp, ebp
pop ebp
ret
Function at 0x492070
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x567680]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x49209c
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9514
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x210]
push eax
mov dword [esi], 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x49208b
lea eax, [ebp - 0x210]
push 0x523904
push eax
call fcn.004efec9
add esp, 8
test eax, eax
je 0x4920d6
xor ecx, ecx
mov word [eax + 2], cx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0
lea eax, [ebp - 0x210]
push eax
mov dword [ebp - 0x214], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x49208b
mov eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.004e9514
mov esp, ebp
pop ebp
ret
Function at 0x496a80
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.004eaac0
mov eax, dword [0x567680]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x496ae5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x496ae5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.004ee1fd
add eax, 0x40
push eax
call fcn.004f035e
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e9514
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004f0299
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x496b74
call fcn.00496940
test eax, eax
jle 0x496b74
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e9514
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004e9514
add esp, 0x108
ret
Function at 0x4a8bd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.004eaac0
mov eax, dword [0x567680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
push edi
mov dword [ebp - 0x18], esi
lea ecx, [eax + 1]
jmp 0x4a8c00
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4a8c00
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push 0
push 0
sub eax, ecx
lea edi, [eax + 1]
push edi
push esi
push 8
push 0xfde9
mov dword [ebp - 0x20], 8
call ebx
mov esi, eax
test esi, esi
jg 0x4a8c78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ec
jne 0x4a8c5a
mov ecx, dword [ebp - 0x18]
push 0
push 0
push edi
push ecx
push 0
push 0xfde9
mov dword [ebp - 0x20], 0
call ebx
mov esi, eax
test esi, esi
jg 0x4a8c78
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x459
jne 0x4a8d0a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edx
push eax
jmp 0x4a8cf8
lea eax, [esi + esi]
call fcn.004ef940
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
mov eax, esp
push esi
push eax
push edi
push ecx
push edx
push 0xfde9
mov dword [ebp - 0x24], eax
call ebx
test eax, eax
je 0x4a8d0a
mov esi, dword [ebp - 0x1c]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4a8ca3
push 8
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
inc eax
push eax
push esi
push 0
push 0xfde9
call ebx
test eax, eax
je 0x4a8d0a
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x14]
push edx
push eax
call fcn.004ec0d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a8dae
call fcn.004f17ef
cmp dword [eax], 2
je 0x4a8cf0
call fcn.004f17ef
cmp dword [eax], 9
jne 0x4a8d02
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push ecx
push edx
call fcn.004ef41b
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a8dae
push 0xa9
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.004955f0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
push 0x531594
push eax
push 0x531590
push ecx
push str.fopen_
push 5
call fcn.004951d0
add esp, 0x2c
call fcn.004f17ef
cmp dword [eax], 2
jne 0x4a8d80
push 0xac
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.004955f0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9514
mov esp, ebp
pop ebp
ret
push 0xae
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.004955f0
add esp, 0x14
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9514
mov esp, ebp
pop ebp
ret
push 0x5666b0
call fcn.00493c50
mov edi, eax
add esp, 4
test edi, edi
jne 0x4a8de0
push esi
call fcn.004ec260
add esp, 4
xor eax, eax
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9514
mov esp, ebp
pop ebp
ret
push 0
push edi
call fcn.004936e0
push esi
push 1
push 0x6a
push edi
call fcn.00493a40
add esp, 0x18
mov eax, edi
lea esp, [ebp - 0x30]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e9514
mov esp, ebp
pop ebp
ret
Function at 0x4c7a70
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
push esi
push edi
mov edi, dword [esp + 0x18]
cmp ecx, dword [edi + 4]
jge 0x4c7a89
mov esi, edi
mov edi, eax
jmp 0x4c7a8b
mov esi, eax
mov eax, dword [esi + 4]
mov ebx, dword [esp + 0x10]
cmp eax, dword [ebx + 8]
jg 0x4c7a9b
mov eax, ebx
jmp 0x4c7aa5
push eax
push ebx
call fcn.00498cf0
add esp, 8
test eax, eax
jne 0x4c7aad
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [edi + 4], eax
jle 0x4c7ac9
mov edx, dword [esi]
mov ecx, dword [edi]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [edi + 4]
jl 0x4c7ab4
cmp eax, dword [esi + 4]
jge 0x4c7ae0
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x4c7ad0
mov eax, dword [esi + 4]
mov dword [ebx + 4], eax
test eax, eax
jle 0x4c7b01
mov ecx, dword [ebx]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x4c7afe
dec eax
test eax, eax
jg 0x4c7af0
mov dword [ebx + 4], eax
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x502e98
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x567680]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004f3569
mov dword [ebp - 0x14], eax
cmp dword [0x56c604], edi
jne 0x502f89
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x502f16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x503069
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x503069
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x503069
push eax
call ebx
push 0x5552a8
push esi
mov dword [0x56c604], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x56c608], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x5552cc
push esi
mov dword [0x56c60c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x56c614], eax
test eax, eax
je 0x502f86
push 0x5552e8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x56c610], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x502fae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x502fa1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x502fc3
push 4
pop eax
jmp 0x50306b
cmp dword [ebp - 0x14], edi
je 0x502fc3
push dword [0x56c604]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x502fa8
mov eax, dword [0x56c610]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x503021
cmp dword [0x56c614], esi
je 0x503021
push eax
call ebx
push dword [0x56c614]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x503021
test eax, eax
je 0x503021
call ecx
test eax, eax
je 0x503016
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x503016
test byte [ebp - 8], 1
jne 0x503021
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x503051
mov eax, dword [0x56c608]
cmp eax, esi
je 0x50304e
push eax
call ebx
test eax, eax
je 0x50304e
call eax
mov edi, eax
test edi, edi
je 0x50304e
mov eax, dword [0x56c60c]
cmp eax, esi
je 0x50304e
push eax
call ebx
test eax, eax
je 0x50304e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x56c604]
call ebx
test eax, eax
je 0x503069
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x50306b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e9514
leave
ret
Function at 0x5054de
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004f5ea5
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x505516
xor eax, eax
jmp 0x505542
cmp esi, dword [ebp - 4]
je 0x50553f
cmp dword [ebp + 0xc], 0
je 0x50553f
push dword [edi + 0x9c]
call fcn.005050ec
push dword [edi + 0x9c]
mov esi, eax
call fcn.004f3881
pop ecx
pop ecx
cmp esi, eax
je 0x505512
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x4099ec
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x409abf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409ad8
push ebx
push 0x409ae4
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409a6c
mov al, 0x6a
call fcn.00409648
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.004099c0
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409a75
call fcn.004099c0
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409ac6
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409b78
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
jmp 0x409c21
cmp dword [esi + 0x10], 0x1000
jne 0x409c0d
test byte [esi + 0x15], 1
jne 0x409c0d
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409bcc
cmp eax, 2
je 0x409bcc
cmp eax, 0x10
je 0x409bcc
cmp eax, 0x20
jne 0x409be1
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409be1
mov bl, 1
xor ebp, ebp
jmp 0x409bf2
mov eax, dword [esi]
add eax, ebp
call fcn.00409b70
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409be5
test bl, bl
je 0x409c0d
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409c2c
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409ba4
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x88a154
Capabilities:
Encode data using xor

Disassembly:
jmp 0x88a15e
pushal
call 0x88a164
pop ebp
sub ebp, 0x10
sub ebp, 0x48a154
mov al, byte [esp + 0x28]
cmp al, 1
je 0x88a188
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x88a191
mov eax, 0x48a154
add eax, ebp
add eax, 0x63
mov ecx, 0x601
mov edx, 0xd478bc2a
xor byte [eax], dl
inc eax
dec ecx
jne 0x88a1a8
jmp 0x88a1bb
mov eax, dword [0x16a3a1e7]
sub ch, byte [edx]
sub ch, byte [ebx + 0x2a2ad2eb]
sub ch, byte [ecx]
out 0x92, eax
sub ch, byte cs:[edx]
sub dl, byte [eax + 0x2a2a2a02]
invalid
Function at 0x401f80
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 8]
mov dword [ebp - 0x34], esp
mov dword [ebp - 0x44], 0x4bd9f0
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], 0x4be7c4
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x38], 0x402119
mov dword [esp], edx
call fcn.00414b70
mov ecx, dword [0x4d001c]
mov dword [ebp - 0xc], ecx
xor ecx, ecx
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edx, dword [ebp - 0x60]
lea ecx, [ebp - 0x1c]
sub esp, 8
mov dword [ebp - 0x24], ecx
test edx, edx
je 0x402101
mov dword [esp], edx
call sub.msvcrt.dll_wcslen
add eax, eax
mov edx, eax
mov dword [ebp - 0x64], eax
sar edx, 1
cmp edx, 7
mov dword [ebp - 0x28], edx
ja 0x4020b0
cmp edx, 1
mov eax, dword [ebp - 0x24]
je 0x4020f3
test edx, edx
jne 0x4020d2
xor ecx, ecx
mov dword [ebp - 0x20], edx
mov word [eax + edx*2], cx
mov dword [esp + 4], 0x4c8618
mov dword [esp], 0xc8
call fcn.004bcde0
test eax, eax
mov dword [ebp - 0x60], eax
je 0x40207f
lea eax, [ebp - 0x24]
mov dword [esp + 0x10], 7
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x401f60
mov dword [esp], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x58], 1
call fcn.00408f40
sub esp, 0x14
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x1c]
cmp edx, ecx
je 0x402091
mov dword [esp], edx
call fcn.004bcd30
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.00414c00
mov ecx, dword [ebp - 0xc]
xor ecx, dword [0x4d001c]
mov eax, dword [ebp - 0x60]
jne 0x402114
leave
ret
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x24]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.004a8d10
mov edx, dword [ebp - 0x28]
sub esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x64]
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x60]
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
jmp 0x402023
mov ecx, dword [ebp - 0x60]
movzx ecx, word [ecx]
mov word [eax], cx
jmp 0x402023
mov dword [esp], 0x4c32fc
mov dword [ebp - 0x58], 0xffffffff
call fcn.004b4b80
call fcn.00404810
add ebp, 8
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x64], ecx
mov dword [esp + 4], 0x4c8618
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call fcn.004bcd40
mov ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x1c]
cmp ecx, edx
je 0x402147
mov dword [esp], ecx
call fcn.004bcd30
mov eax, dword [ebp - 0x64]
mov dword [esp], eax
mov dword [ebp - 0x58], 0xffffffff
call fcn.00414f00
lea esi, [esi]