joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f2f0
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 0x45f321
mov ax, word [0x4d24bc]
mov word [ecx], ax
mov al, byte [0x4d24be]
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 0x45f387
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 0x45f360
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 [0x4e3f5c], 0
jne 0x45f424
push str.advapi32.dll
call fcn.0045ca70
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 4
mov dword [0x4e3f5c], eax
test eax, eax
je 0x45f3d7
push str.CryptAcquireContextA
push eax
call edi
mov ecx, eax
mov eax, dword [0x4e3f5c]
jmp 0x45f3d9
xor ecx, ecx
mov dword [0x4e3f50], ecx
test eax, eax
je 0x45f3f4
push str.CryptGenRandom
push eax
call edi
mov ecx, eax
mov eax, dword [0x4e3f5c]
jmp 0x45f3f6
xor ecx, ecx
mov dword [0x4e3f54], ecx
test eax, eax
je 0x45f418
push str.CryptReleaseContext
push eax
call edi
cmp dword [0x4e3f5c], 0
mov dword [0x4e3f58], eax
je 0x45f487
jmp 0x45f429
mov dword [0x4e3f58], 0
jmp 0x45f487
mov eax, dword [0x4e3f58]
mov ecx, dword [0x4e3f50]
test ecx, ecx
je 0x45f487
cmp dword [0x4e3f54], 0
je 0x45f487
test eax, eax
je 0x45f487
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x270]
push eax
call ecx
test eax, eax
je 0x45f487
lea eax, [ebp - 0x24]
push eax
push 0x20
push dword [ebp - 0x270]
call dword [0x4e3f54]
test eax, eax
je 0x45f479
lea eax, [ebp - 0x24]
push 0x20
push eax
call esi
add esp, 8
push 0
push dword [ebp - 0x270]
call dword [0x4e3f58]
push esi
call fcn.00461d40
add esp, 4
call fcn.0045f670
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00465655
mov esp, ebp
pop ebp
ret
Function at 0x45f510
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.00465655
mov esp, ebp
pop ebp
ret
Function at 0x45f9a0
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 0x45f9bf
mov dword [ebp + 0xc], 0
jmp 0x45f9f2
lea eax, [esi + 0x14]
push eax
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x45f9f2
call ebx
mov ebx, eax
cmp ebx, 0x3e5
je 0x45fa67
test ebx, ebx
je 0x45f9ec
cmp ebx, 0x217
jne 0x45fa27
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x10]
push edi
push 0x45f980
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x10]
call eax
add esp, 0xc
test eax, eax
je 0x45fa14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push esi
call fcn.0045f910
add esp, 8
test eax, eax
jne 0x45f9b0
call ebx
mov ebx, eax
push ebx
call fcn.0045cb30
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.0045df20
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 0x45fd60
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4e3f80], 0
jne 0x45fe52
push esi
push edi
push str.winspool.drv
call fcn.0045ca70
push str.spoolss.dll
mov esi, eax
call fcn.0045ca70
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
add esp, 8
test esi, esi
je 0x45fd9c
push str.EnumPrintersA
push esi
call edi
jmp 0x45fd9e
xor eax, eax
mov dword [0x4e3f60], eax
test esi, esi
je 0x45fdb1
push str.OpenPrinterA
push esi
call edi
jmp 0x45fdb3
xor eax, eax
mov dword [0x4e3f64], eax
test esi, esi
je 0x45fdc6
push str.ClosePrinter
push esi
call edi
jmp 0x45fdc8
xor eax, eax
mov dword [0x4e3f68], eax
test esi, esi
je 0x45fddb
push str.StartDocPrinterA
push esi
call edi
jmp 0x45fddd
xor eax, eax
mov dword [0x4e3f6c], eax
test esi, esi
je 0x45fdf0
push str.EndDocPrinter
push esi
call edi
jmp 0x45fdf2
xor eax, eax
mov dword [0x4e3f70], eax
test esi, esi
je 0x45fe05
push str.StartPagePrinter
push esi
call edi
jmp 0x45fe07
xor eax, eax
mov dword [0x4e3f74], eax
test esi, esi
je 0x45fe1a
push str.EndPagePrinter
push esi
call edi
jmp 0x45fe1c
xor eax, eax
mov dword [0x4e3f78], eax
test esi, esi
je 0x45fe3f
push str.WritePrinter
push esi
call edi
pop edi
mov dword [0x4e3f7c], eax
mov dword [0x4e3f80], 1
pop esi
ret
xor eax, eax
mov dword [0x4e3f80], 1
pop edi
mov dword [0x4e3f7c], eax
pop esi
ret
Function at 0x460590
Capabilities:
Link many functions at runtime

Disassembly:
cmp dword [0x4e3f90], 0
jne 0x4606bd
push esi
push str.advapi32.dll
mov dword [0x4e3f90], 1
call fcn.0045ca70
add esp, 4
mov dword [0x4e3f98], eax
test eax, eax
je 0x4606b4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetSecurityInfo
push eax
call esi
mov dword [0x4e533c], eax
test eax, eax
je 0x4606b4
mov eax, dword [0x4e3f98]
test eax, eax
je 0x4605f7
push str.SetSecurityInfo
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e3f98]
jmp 0x4605f9
xor ecx, ecx
mov dword [0x4e5338], ecx
test ecx, ecx
je 0x4606b4
test eax, eax
je 0x46061c
push str.OpenProcessToken
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e3f98]
jmp 0x46061e
xor ecx, ecx
mov dword [0x4e534c], ecx
test ecx, ecx
je 0x4606b4
test eax, eax
je 0x460641
push str.GetTokenInformation
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e3f98]
jmp 0x460643
xor ecx, ecx
mov dword [0x4e5348], ecx
test ecx, ecx
je 0x4606b4
test eax, eax
je 0x460662
push 0x4d27b4
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e3f98]
jmp 0x460664
xor ecx, ecx
mov dword [0x4e5344], ecx
test ecx, ecx
je 0x4606b4
test eax, eax
je 0x460683
push 0x4d27d4
push eax
call esi
mov ecx, eax
mov eax, dword [0x4e3f98]
jmp 0x460685
xor ecx, ecx
mov dword [0x4e5340], ecx
test ecx, ecx
je 0x4606b4
test eax, eax
je 0x46069d
push str.SetEntriesInAclA
push eax
call esi
jmp 0x46069f
xor eax, eax
mov dword [0x4e5334], eax
test eax, eax
je 0x4606b4
mov eax, 1
mov dword [0x4e3f94], eax
pop esi
ret
xor eax, eax
mov dword [0x4e3f94], eax
pop esi
ret
mov eax, dword [0x4e3f94]
ret
Function at 0x4618d0
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 0x46193e
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 0x4618f6
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.00461b20
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.0045c000
add esp, 4
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x461970
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 0x4619c1
push dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.00462480
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 0x461b20
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 0x461ba5
push esi
mov esi, dword [ebp + 0xc]
mov al, dl
cmp al, 0x20
je 0x461b69
cmp al, 0x5c
je 0x461b69
cmp al, 0x2a
je 0x461b69
cmp al, 0x3f
je 0x461b69
cmp al, 0x25
je 0x461b69
lea ecx, [eax - 0x20]
cmp cl, 0x5e
ja 0x461b69
cmp al, 0x2e
jne 0x461b5a
test ebx, ebx
je 0x461b69
cmp al, 0x2e
movzx edx, dl
movzx ecx, al
cmovne edx, ecx
mov byte [esi], dl
jmp 0x461b8e
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 0x461b36
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 0x461d40
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.00461490
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x461dcb
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 0x461dc3
nop dword [eax]
mov eax, dword [ebp - 0x408]
test eax, eax
je 0x461dc3
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 0x461d90
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.00465655
mov esp, ebp
pop ebp
ret

Function at 0x461f50
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 0x461fcd
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 0x461fcd
cmp dword [ebp + 8], 1
jne 0x461fcd
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 0x461fbc
cmp dword [ebp + 8], 1
jne 0x461fbc
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 0x461fe0
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 0x462073
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 0x46204f
push dword [ebp - 0x110]
call fcn.00461fe0
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 0x462020
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00465655
mov esp, ebp
pop ebp
ret
Function at 0x4620b0
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 0x4620c0
sub ecx, edx
mov edx, dword [ebp + 0x10]
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x4620d0
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.00461aa0
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 0x462145
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 0x462120
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 0x4623e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x46242c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x46241f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x46241f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045cb30
push eax
push dword [ebp + 8]
push str.Unable_to_delete__s:__s
call fcn.004584d0
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 0x4627d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
call fcn.00461490
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x462800
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 0x49b242
Capabilities:
Read file on windows

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

Function at 0x49b24d
Capabilities:
Read file on windows

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

Function at 0x4a51fb
Capabilities:
Print debug messages

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

Function at 0x4a7b09
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a74cb
Function at 0x4043f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x42b014]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor ebx, ebx
mov dword [esp + 0xc], eax
push 0x208
mov dword [esp + 0xa0], ebx
mov dword [esp + 0xb0], ebx
mov dword [esp + 0xb4], 7
call fcn.00407f97
mov esi, eax
mov dword [esp], 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x5c
push esi
call fcn.00409197
pop ecx
pop ecx
test eax, eax
jne 0x40446b
mov edi, ebx
jmp 0x404477
add eax, 2
push eax
call fcn.0040d5a9
pop ecx
mov edi, eax
push esi
call fcn.00407fa0
pop ecx
push edi
lea ecx, [esp + 0xa0]
call fcn.00405088
lea ecx, [esp + 0x84]
call fcn.00403f95
mov eax, 0x7ffffffe
sub eax, dword [esp + 0x94]
cmp eax, 1
jb 0x404659
cmp dword [esp + 0x98], 8
lea eax, [esp + 0x84]
push 1
cmovae eax, dword [esp + 0x88]
push ecx
push dword [esp + 0x9c]
push eax
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0xcc]
call fcn.00405a38
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0xb8]
call fcn.00405494
push eax
lea ecx, [esp + 0xd0]
call fcn.00406d04
lea ecx, [esp + 0xb4]
call fcn.00406f71
push 0x44
pop esi
push esi
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.00409850
xor eax, eax
mov dword [esp + 0x2c], esi
lea edi, [esp + 0x1c]
mov dword [esp + 0x78], ebx
stosd dword es:[edi], eax
lea ecx, [esp + 0x78]
add esp, 0xc
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x80], 7
stosd dword es:[edi], eax
push 0x427c6c
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov ax, word [ebp + 0x14]
xor edi, edi
inc edi
mov word [esp + 0x54], ax
mov dword [esp + 0x50], edi
call fcn.00405088
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x70]
call fcn.00405494
push 2
push 0x427c70
lea ecx, [esp + 0x74]
call fcn.004054b1
mov edx, dword [esp + 0xc]
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x404587
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x74]
call fcn.004054b1
cmp dword [esp + 0x80], 8
lea eax, [esp + 0x6c]
cmovae eax, dword [esp + 0x6c]
push eax
call fcn.0040d5a9
cmp dword [esp + 0x9c], 8
mov esi, eax
pop ecx
lea ecx, [esp + 0x84]
cmovae ecx, dword [esp + 0x84]
push ecx
call fcn.0040d5a9
pop ecx
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
push ebx
push ebx
push edi
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x4045fa
or ebx, 0xffffffff
jmp 0x404613
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push 0x1388
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_WaitForInputIdle]
lea ecx, [esp + 0x6c]
call fcn.00406f71
lea ecx, [esp + 0xcc]
call fcn.00406f71
lea ecx, [esp + 0x84]
call fcn.00406f71
lea ecx, [esp + 0x9c]
call fcn.00406f71
mov ecx, dword [esp + 0xe4]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00407bb5
mov esp, ebp
pop ebp
ret 0x10
call fcn.00401d1c
int3
Function at 0x40891a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x408959
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x408959
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x408959
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x408959
cmp dword [ecx + 0x74], 0xe
jbe 0x408959
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41b990
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b9bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b9bd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40913d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
call fcn.00408fe4
mov edi, dword [ebp + 8]
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0042827b
push edi
call fcn.00428413
add esp, 0x10
cmp eax, 0xffffffff
jne 0x409174
push edi
call fcn.00427d60
pop ecx
test eax, eax
je 0x409174
push ebx
push ebx
jmp 0x4091ee
push 2
push ebx
push edi
call fcn.0042827b
push edi
call fcn.00427d55
push 0
cdq
push 0
push edi
mov ebx, eax
mov dword [ebp + 8], edx
call fcn.0042827b
mov edx, dword [ebp + 8]
mov ecx, ebx
and ecx, edx
add esp, 0x1c
cmp ecx, 0xffffffff
jne 0x4091a8
push 0
push 0
jmp 0x4091ee
xor ecx, ecx
cmp edx, ecx
ja 0x4091ec
cmp ebx, 0xffffffff
jae 0x4091ec
mov eax, ebx
or eax, edx
jne 0x4091bf
push ecx
push ecx
push 0xd
jmp 0x4091f0
lea eax, [ebx + 1]
push eax
call fcn.0040b5c0
push edi
push ebx
push 1
push eax
mov dword [esi + 0x50], eax
call fcn.00429ba4
add esp, 0x14
cmp eax, ebx
jne 0x4091a2
mov eax, dword [esi + 0x50]
mov ecx, esi
mov byte [ebx + eax], 0
call fcn.0040934d
jmp 0x4091f9
push ecx
push ecx
push 5
push esi
call fcn.004092ab
add esp, 0x10
mov eax, dword [esi + 0x38]
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x40dc5f
Capabilities:
Create thread

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.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x42dd28
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042db9e
Function at 0x406be4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov edx, eax
push esi
mov esi, dword [ebp + 8]
and ecx, 0xfffffffc
jbe 0x406c28
rol eax, 5
xor eax, dword [edx + esi]
add edx, 4
imul eax, eax, 0x9e3779b9
rol eax, 5
xor eax, 4
imul eax, eax, 0x9e3779b9
cmp edx, ecx
jb 0x406bf7
jmp 0x406c28
movsx ecx, byte [edx + esi]
rol eax, 5
xor eax, ecx
imul eax, eax, 0x9e3779b9
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x406c18
pop esi
pop ebp
ret

Function at 0x407660
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 1
lea esi, [ebx - 1]
push 0x2000
not esi
push ebx
and esi, 0xf0deafff
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
jne 0x407695
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp esi, dword [ebp - 0x18]
jb 0x4076bf
lea eax, [esi + ebx]
cmp eax, dword [ebp - 0x18]
jb 0x4076bf
test edi, edi
je 0x40768c
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x40768c
test edi, edi
je 0x4076c7
mov eax, edi
jmp 0x40768e
push 1
push 0x2000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x40768e
int3