joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ca40
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4e3864], 0
push esi
push edi
jne 0x45ca9c
push str.secur32.dll
call fcn.0045cb80
push str.sspicli.dll
mov esi, eax
call fcn.0045cb80
add esp, 8
test esi, esi
je 0x45ca89
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4e3860], eax
mov dword [0x4e3864], 1
jmp 0x45caa1
xor eax, eax
mov dword [0x4e3864], 1
mov dword [0x4e3860], eax
jmp 0x45caa1
mov eax, dword [0x4e3860]
test eax, eax
je 0x45cafa
lea ecx, [ebp - 4]
mov dword [ebp - 4], 0
push ecx
push 0
push 8
call eax
push 1
push dword [ebp - 4]
call fcn.0040e450
add esp, 8
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
push 8
call dword [0x4e3860]
movzx esi, al
test al, al
je 0x45caed
push 0x40
push edi
call fcn.00466990
add esp, 8
test eax, eax
je 0x45caf6
mov byte [eax], 0
jmp 0x45caf6
push edi
call fcn.0040e430
add esp, 4
test esi, esi
jne 0x45cb42
mov esi, dword [sym.imp.ADVAPI32.dll_GetUserNameA]
lea eax, [ebp - 4]
push eax
push 0
mov dword [ebp - 4], 0
call esi
mov ecx, dword [ebp - 4]
test eax, eax
mov edx, 0x100
cmove ecx, edx
push 1
push ecx
mov dword [ebp - 4], ecx
call fcn.0040e450
add esp, 8
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call esi
mov esi, eax
test esi, esi
jne 0x45cb42
push edi
call fcn.0040e430
add esp, 4
xor eax, eax
test esi, esi
cmovne eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45cb80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x4e3870]
push esi
push edi
test ecx, ecx
jne 0x45cbc6
mov edi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
xor esi, esi
lea eax, [esi + esi*2]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
push 1
add esi, 0x200
push esi
push ecx
call fcn.0040e500
add esp, 0xc
mov dword [0x4e3870], eax
push esi
push eax
call edi
mov ecx, dword [0x4e3870]
cmp eax, esi
jge 0x45cb97
push 0
push dword [ebp + 8]
push 0x4d1b8c
push ecx
call fcn.0040dce0
add esp, 0x10
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov edi, eax
call fcn.0040e430
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x45f400
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x4e080c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x12c]
push edi
push 0x107
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [ebp - 0x12c]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x45f431
mov ax, word [0x4d252c]
mov word [ecx], ax
mov al, byte [0x4d252e]
mov byte [ecx + 2], al
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x45f497
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
nop
lea eax, [ebp - 0x26c]
push 0x140
push eax
call esi
add esp, 8
lea eax, [ebp - 0x26c]
push eax
push edi
call ebx
test eax, eax
jne 0x45f470
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push 4
push eax
call esi
add esp, 8
cmp dword [0x4e3f64], 0
jne 0x45f534
push str.advapi32.dll
call fcn.0045cb80
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x4e3f64], eax
test eax, eax
je 0x45f4e7
push str.CryptAcquireContextA
push eax
call edi
mov ecx, eax
mov eax, dword [0x4e3f64]
jmp 0x45f4e9
xor ecx, ecx
mov dword [0x4e3f58], ecx
test eax, eax
je 0x45f504
push str.CryptGenRandom
push eax
call edi
mov ecx, eax
mov eax, dword [0x4e3f64]
jmp 0x45f506
xor ecx, ecx
mov dword [0x4e3f5c], ecx
test eax, eax
je 0x45f528
push str.CryptReleaseContext
push eax
call edi
cmp dword [0x4e3f64], 0
mov dword [0x4e3f60], eax
je 0x45f597
jmp 0x45f539
mov dword [0x4e3f60], 0
jmp 0x45f597
mov eax, dword [0x4e3f60]
mov ecx, dword [0x4e3f58]
test ecx, ecx
je 0x45f597
cmp dword [0x4e3f5c], 0
je 0x45f597
test eax, eax
je 0x45f597
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call ecx
test eax, eax
je 0x45f597
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x270]
call dword [0x4e3f5c]
test eax, eax
je 0x45f589
lea eax, [ebp - 0x24]
push 0x20
push eax
call esi
add esp, 8
push 0
push dword [ebp - 0x270]
call dword [0x4e3f60]
push esi
call fcn.00461e60
add esp, 4
call fcn.0045f780
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00465775
mov esp, ebp
pop ebp
ret
Function at 0x45f620
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x4e080c]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0043a040
add esp, 8
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0043a040
add esp, 8
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push 4
push eax
call fcn.0043a040
add esp, 8
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push 4
push eax
call fcn.0043a040
add esp, 8
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
lea eax, [ebp - 0x54]
push 8
push eax
call fcn.0043a040
add esp, 8
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0043a040
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0043a040
add esp, 8
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0043a040
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
call fcn.00465775
mov esp, ebp
pop ebp
ret
Function at 0x45fab0
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov esi, dword [ebp + 8]
push edi
nop
cmp dword [ebp + 0xc], 0
je 0x45facf
mov dword [ebp + 0xc], 0
jmp 0x45fb02
lea eax, [esi + 0x14]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x45fb02
call ebx
mov ebx, eax
cmp ebx, 0x3e5
je 0x45fb77
test ebx, ebx
je 0x45fafc
cmp ebx, 0x217
jne 0x45fb37
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x10]
push edi
push 0x45fa90
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0xc
test eax, eax
je 0x45fb24
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
call fcn.0045fa20
add esp, 8
test eax, eax
jne 0x45fac0
call ebx
mov ebx, eax
push ebx
call fcn.0045cc40
push eax
push str.Error_while_listening_to_named_pipe:__s
call fcn.0040dda0
mov ecx, dword [esi + 0x2c]
add esp, 0xc
mov edi, eax
mov esi, dword [ecx]
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0
push dword [ebx + 0xc]
call fcn.0045e030
add esp, 4
push eax
mov eax, dword [esi]
push 1
push dword [ebx + 0x2c]
call eax
push edi
call fcn.0040e430
add esp, 0x1c
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x45fe70
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4e3f88], 0
jne 0x45ff62
push esi
push edi
push str.winspool.drv
call fcn.0045cb80
push str.spoolss.dll
mov esi, eax
call fcn.0045cb80
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 8
test esi, esi
je 0x45feac
push str.EnumPrintersA
push esi
call edi
jmp 0x45feae
xor eax, eax
mov dword [0x4e3f68], eax
test esi, esi
je 0x45fec1
push str.OpenPrinterA
push esi
call edi
jmp 0x45fec3
xor eax, eax
mov dword [0x4e3f6c], eax
test esi, esi
je 0x45fed6
push str.ClosePrinter
push esi
call edi
jmp 0x45fed8
xor eax, eax
mov dword [0x4e3f70], eax
test esi, esi
je 0x45feeb
push str.StartDocPrinterA
push esi
call edi
jmp 0x45feed
xor eax, eax
mov dword [0x4e3f74], eax
test esi, esi
je 0x45ff00
push str.EndDocPrinter
push esi
call edi
jmp 0x45ff02
xor eax, eax
mov dword [0x4e3f78], eax
test esi, esi
je 0x45ff15
push str.StartPagePrinter
push esi
call edi
jmp 0x45ff17
xor eax, eax
mov dword [0x4e3f7c], eax
test esi, esi
je 0x45ff2a
push str.EndPagePrinter
push esi
call edi
jmp 0x45ff2c
xor eax, eax
mov dword [0x4e3f80], eax
test esi, esi
je 0x45ff4f
push str.WritePrinter
push esi
call edi
pop edi
mov dword [0x4e3f84], eax
mov dword [0x4e3f88], 1
pop esi
ret
xor eax, eax
mov dword [0x4e3f88], 1
pop edi
mov dword [0x4e3f84], eax
pop esi
ret
Function at 0x4606b0
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4e3f98], 0
jne 0x4607dd
push esi
push str.advapi32.dll
mov dword [0x4e3f98], 1
call fcn.0045cb80
add esp, 4
mov dword [0x4e3fa0], eax
test eax, eax
je 0x4607d4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4e5344], eax
test eax, eax
je 0x4607d4
mov eax, dword [0x4e3fa0]
test eax, eax
je 0x460717
push str.SetSecurityInfo
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e3fa0]
jmp 0x460719
xor ecx, ecx
mov dword [0x4e5340], ecx
test ecx, ecx
je 0x4607d4
test eax, eax
je 0x46073c
push str.OpenProcessToken
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e3fa0]
jmp 0x46073e
xor ecx, ecx
mov dword [0x4e5354], ecx
test ecx, ecx
je 0x4607d4
test eax, eax
je 0x460761
push str.GetTokenInformation
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e3fa0]
jmp 0x460763
xor ecx, ecx
mov dword [0x4e5350], ecx
test ecx, ecx
je 0x4607d4
test eax, eax
je 0x460782
push 0x4d2824
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e3fa0]
jmp 0x460784
xor ecx, ecx
mov dword [0x4e534c], ecx
test ecx, ecx
je 0x4607d4
test eax, eax
je 0x4607a3
push 0x4d2844
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e3fa0]
jmp 0x4607a5
xor ecx, ecx
mov dword [0x4e5348], ecx
test ecx, ecx
je 0x4607d4
test eax, eax
je 0x4607bd
push str.SetEntriesInAclA
push eax
call esi
jmp 0x4607bf
xor eax, eax
mov dword [0x4e533c], eax
test eax, eax
je 0x4607d4
mov eax, 1
mov dword [0x4e3f9c], eax
pop esi
ret
xor eax, eax
mov dword [0x4e3f9c], eax
pop esi
ret
mov eax, dword [0x4e3f9c]
ret
Function at 0x4619f0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSessions
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x461a5e
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x461a16
sub eax, edx
push 1
lea eax, [eax + eax*2]
inc eax
push eax
call fcn.0040e450
mov esi, eax
push esi
push edi
call fcn.00461c40
add esp, 0x10
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push esi
call fcn.0040e430
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0045c110
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x461a90
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea edi, [eax + eax*2]
push 1
push edi
call fcn.0040e450
mov esi, dword [ebp + 8]
add esp, 8
mov ebx, eax
mov edx, dword [esi + 4]
push edi
push ebx
push edx
push dword [esi]
lea ecx, [edx + 1]
mov dword [esi + 4], ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x461ae1
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.004625a0
push ebx
call fcn.0040e430
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret
push ebx
call fcn.0040e430
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x461c40
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dl, byte [edi]
test dl, dl
je 0x461cc5
push esi
mov esi, dword [ebp + 0xc]
mov al, dl
cmp al, 0x20
je 0x461c89
cmp al, 0x5c
je 0x461c89
cmp al, 0x2a
je 0x461c89
cmp al, 0x3f
je 0x461c89
cmp al, 0x25
je 0x461c89
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x461c89
cmp al, 0x2e
jne 0x461c7a
test ebx, ebx
je 0x461c89
cmp al, 0x2e
movzx edx, dl
movzx ecx, al
cmovne edx, ecx
mov byte [esi], dl
jmp 0x461cae
mov byte [esi], 0x25
movzx eax, byte [edi]
shr eax, 4
movzx eax, byte [eax + str.0123456789ABCDEFUnable_to_create_registry_key_nHKEY_CURRENT_USER_s]
mov byte [esi + 1], al
add esi, 2
movzx eax, byte [edi]
and eax, 0xf
movzx eax, byte [eax + str.0123456789ABCDEFUnable_to_create_registry_key_nHKEY_CURRENT_USER_s]
mov byte [esi], al
mov dl, byte [edi + 1]
inc edi
inc esi
mov ebx, 1
mov al, dl
test dl, dl
jne 0x461c56
mov byte [esi], dl
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp + 0xc]
pop edi
mov byte [eax], bl
pop ebx
pop ebp
ret
Function at 0x461e60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x4e080c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
call fcn.004615b0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x461eeb
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
je 0x461ee3
nop dword [eax]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x461ee3
push eax
lea eax, [ebp - 0x404]
push eax
call ebx
add esp, 8
lea eax, [ebp - 0x408]
push 0
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push esi
call edi
test eax, eax
jne 0x461eb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00465775
mov esp, ebp
pop ebp
ret

Function at 0x462070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x4620ed
lea eax, [ebp - 4]
push eax
push 0
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4620ed
cmp dword [ebp + 8], 1
jne 0x4620ed
mov eax, dword [ebp - 4]
push esi
inc eax
push 1
push eax
call fcn.0040e450
add esp, 8
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 8]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4620dc
cmp dword [ebp + 8], 1
jne 0x4620dc
mov eax, dword [ebp - 4]
mov byte [esi + eax], 0
mov eax, esi
pop esi
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.0040e430
add esp, 4
xor eax, eax
pop esi
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x462100
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x4e080c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10c]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x105
push eax
push 0
push esi
call edi
test eax, eax
jne 0x462193
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop word [eax + eax]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x46216f
push dword [ebp - 0x110]
call fcn.00462100
add esp, 4
push dword [ebp - 0x110]
call ebx
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x105
lea eax, [ebp - 0x10c]
push eax
push 0
push esi
call edi
test eax, eax
je 0x462140
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00465775
mov esp, ebp
pop ebp
ret
Function at 0x4621d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4621e0
sub ecx, edx
mov edx, dword [ebp + 0x10]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4621f0
sub edx, esi
lea eax, [ecx + 5]
add eax, edx
push 1
lea eax, [eax + eax*2]
push eax
call fcn.0040e450
push dword [ebp + 0x10]
mov esi, eax
push dword [ebp + 0xc]
push edi
push esi
call fcn.00461bc0
add esp, 0x18
lea eax, [ebp - 4]
push eax
push str.SoftwareSimonTathamPuTTYSshHostKeys
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x462265
mov edx, dword [ebp + 0x14]
mov ecx, edx
lea edi, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x462240
sub ecx, edi
lea eax, [ecx + 1]
push eax
push edx
push 1
push 0
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0040e430
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x462500
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x46254c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x46253f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46253f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045cc40
push eax
push dword [ebp + 8]
push str.Unable_to_delete__s:__s
call fcn.004585d0
add esp, 0x10
mov eax, dword [ebp + 0x10]
mov dword [eax], 0xffffffff
xor eax, eax
pop ebp
ret
xor eax, eax
mov edx, 0x80
push 0
cmp ecx, 2
cmove eax, edx
push eax
xor eax, eax
cmp ecx, 2
setne al
xor edx, edx
add eax, 2
cmp ecx, 2
push eax
push 0
mov eax, 3
cmove eax, edx
mov edx, 0x40000000
push eax
mov eax, 0x80000000
cmove eax, edx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0x10]
mov edx, eax
xor eax, eax
cmp edx, 0xffffffff
setne al
mov dword [ecx], edx
pop ebp
ret
Function at 0x4628f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.004615b0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x462920
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x49b355
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049af3c

Function at 0x49b360
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049b0c6

Function at 0x4a530b
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a51df

Function at 0x4a7c19
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a75db
Function at 0x10010f8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001090
call fcn.010012e0
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001135
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001135
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100114d
cmp eax, 0x20b
je 0x100113a
mov dword [ebp - 0x1c], ebx
jmp 0x1001161
cmp dword [ecx + 0x84], 0xe
jbe 0x1001135
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100115b
cmp dword [ecx + 0x74], 0xe
jbe 0x1001135
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002014], 0xffffffff
or dword [0x1002018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100201c], eax
call fcn.010012dc
cmp dword [section..data], ebx
jne 0x10011bc
push fcn.010012dc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010012ca
push 0x1001064
push 0x1001060
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100105c
push 0x1001058
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1001252
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001226
cmp al, 0x22
jne 0x1001218
cmp byte [esi], 0x22
jne 0x100122f
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001239
cmp al, 0x20
jbe 0x100122b
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x100125d
movzx eax, word [ebp - 0x48]
jmp 0x1001260
cmp byte [esi], 0x20
jbe 0x100122f
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1001252
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100127d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10012b2
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001319
ret

Function at 0x841f84
Capabilities:
Encode data using xor

Disassembly:
jmp 0x841f8e
pushal
call 0x841f94
pop ebp
sub ebp, 0x10
sub ebp, 0x441f84
jmp 0x841faa
mov eax, 0x441f84
add eax, ebp
add eax, 0x4c
mov ecx, 0x608
mov edx, 0xf2f832cc
xor byte [eax], dl
inc eax
dec ecx
jne 0x841fc1
jmp 0x841fd4
inc edi
add dword [edi + 0x45], eax
invalid