joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407c70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x468fb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
call fcn.0045438d
mov edi, dword [esp + 0x34]
cmp edi, ebx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x20], ebx
mov dword [esi], 0x46f6fc
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
jne 0x407cc9
mov edi, 0x46f400
lea ecx, [esi + 0x18]
mov eax, edi
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
lea ebp, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x407ce0
sub eax, ebp
push eax
push edi
call fcn.00406020
mov ecx, dword [esp + 0x18]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 0x10

Function at 0x409990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4692bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x46f704
lea ecx, [esi + 0x30]
mov dword [esp + 0x1c], 3
call fcn.0043aee0
mov eax, dword [esi + 0x28]
mov ecx, dword [eax]
lea edi, [esi + 0x24]
push eax
push ecx
lea eax, [esp + 0x18]
push eax
mov ecx, edi
mov byte [esp + 0x28], 2
call fcn.004072a0
mov eax, dword [edi + 4]
push eax
call fcn.00452c81
xor ebx, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax]
add esp, 4
lea edi, [esi + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, edi
mov byte [esp + 0x28], 1
call fcn.00407710
mov eax, dword [edi + 4]
push eax
call fcn.00452c81
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov edi, dword [esi + 0x14]
add esp, 4
cmp edi, ebx
mov byte [esp + 0x1c], bl
je 0x409a54
lea edx, [edi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x409a54
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 4]
lea eax, [edi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x409a54
mov edx, dword [edi]
mov ecx, edi
call dword [edx + 8]
mov esi, dword [esi + 0xc]
cmp esi, ebx
mov dword [esp + 0x1c], 0xffffffff
je 0x409a89
lea eax, [esi + 4]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x409a89
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x409a89
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a680
Capabilities:
Access the windows event log

Disassembly:
sub esp, 0x14
lea eax, [esp + 4]
push eax
mov dword [esp + 0xc], 0x40a0d0
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov dword [esp + 8], str.FLEXnet_Licensing_Service
call dword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
test eax, eax
jne 0x40a6f5
push esi
push str.FLEXnet_Licensing_Service
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
mov dword [esp + 4], str.StartServiceCtrlDispatcher___failed
je 0x40a6ee
push 0
lea ecx, [esp + 8]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
xor eax, eax
pop esi
add esp, 0x14
ret
xor eax, eax
add esp, 0x14
ret

Function at 0x40a770
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub eax, 0
push ebx
je 0x40a790
dec eax
je 0x40a788
dec eax
jne 0x40a7de
mov ebx, dword [0x497aa8]
jmp 0x40a796
mov ebx, dword [0x497aa4]
jmp 0x40a796
mov ebx, dword [0x497aa0]
test ebx, ebx
je 0x40a7de
cmp ebx, 1
jne 0x40a7ae
call fcn.00402770
mov ecx, dword [esp + 0xc]
mov byte [ecx], al
mov al, bl
pop ebx
ret
cmp ebx, 0x41
jb 0x40a7de
cmp ebx, 0x5a
ja 0x40a7de
lea edx, [esp + 8]
mov dword [esp + 8], 0x5c3a41
push edx
mov byte [esp + 0xc], bl
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40a7de
mov eax, dword [esp + 0xc]
mov byte [eax], bl
mov al, 1
pop ebx
ret
xor al, al
pop ebx
ret

Function at 0x40b670
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x497a88
call esi
push 0x497a70
call esi
push 0
push 0
push 0
push 0x40b600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x40cab0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4695a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
mov dword [esp + 0x1c], 0x46f590
mov dword [esp + 0x28], 0x7ebacba2
mov dword [esp + 0x14], 0x46fa14
xor eax, eax
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x40]
mov word [esp + 8], ax
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0x46f9e4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 8]
push eax
mov byte [esp + 0x40], 2
call fcn.0040c7f0
mov edx, dword [esp + 0x24]
add esp, 8
push 0xd1e1863c
push 0x6ee71963
push 0xcdacd022
lea ecx, [esp + 0x28]
call dword [edx]
mov edx, dword [esi]
xor eax, 0xcb495fd8
mov ecx, eax
not ecx
xor ecx, eax
and ecx, 0x32884fd3
not eax
xor ecx, eax
xor ecx, 0xbb800d93
mov ecx, dword [edx + ecx*8 + 4]
mov edx, dword [esp + 0x44]
mov eax, dword [ecx]
push edx
lea edx, [esp + 8]
push edx
call dword [eax + 4]
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x40dd50
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
cmp esi, ebx
je 0x40dd94
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [esi + 0x10]
push 4
lea ecx, [esi + 0x10]
push 0x5b
push 0x1a
call dword [eax]
xor al, 0xd8
mov cl, al
not cl
xor cl, al
and cl, 0x2c
xor cl, al
xor cl, 0x8b
mov byte [edi], cl
mov esi, dword [esi]
inc edi
cmp esi, ebx
jne 0x40dd63
mov eax, dword [esp + 0x10]
mov dword [eax], edi
pop edi
pop esi
pop ebx
ret
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x18]
pop esi
mov dword [eax], edx
pop ebx
ret
Function at 0x42a470
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x46c958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [0x495f14]
xor eax, esp
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
push 4
xor ebp, ebp
push str._tmp
lea ecx, [esp + 0x3c]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebp
mov byte [esp + 0x40], 0
call fcn.00406020
push 0x104
mov dword [esp + 0x7c], ebp
call fcn.00451e9e
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
add esp, 4
mov esi, eax
push esi
push 0x104
call ebx
mov edi, eax
cmp edi, ebp
jne 0x42a4f9
push 3
push 0x470298
jmp 0x42a531
cmp edi, 0x104
jb 0x42a521
push esi
call fcn.0045417c
lea ebp, [edi + 1]
push ebp
call fcn.00451e9e
add esp, 8
mov esi, eax
push esi
push ebp
call ebx
mov edi, eax
cmp edi, ebp
jae 0x42a501
xor ebp, ebp
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x42a526
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x3c]
call fcn.00406020
push esi
call fcn.0045417c
add esp, 4
push 0x44fb20
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x58]
call fcn.004502c0
push 0x44fb20
mov bl, 1
push 0x47002c
lea ecx, [esp + 0x20]
mov byte [esp + 0x80], bl
call fcn.00450320
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 2
call fcn.004503d0
mov eax, dword [esp + 0x30]
mov esi, 0x10
cmp eax, esi
mov byte [esp + 0x78], bl
jb 0x42a59f
mov edx, dword [esp + 0x1c]
push edx
call fcn.00452c81
add esp, 4
mov edi, dword [esp + 0x10]
push edi
lea ecx, [esp + 0x54]
call fcn.0044fb30
cmp dword [esp + 0x68], esi
jb 0x42a5c0
mov eax, dword [esp + 0x54]
push eax
call fcn.00452c81
add esp, 4
cmp dword [esp + 0x4c], esi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebp
mov byte [esp + 0x54], 0
jb 0x42a5e4
mov ecx, dword [esp + 0x38]
push ecx
call fcn.00452c81
add esp, 4
mov ecx, dword [esp + 0x70]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x60]
pop ebx
xor ecx, esp
call fcn.00453275
add esp, 0x6c
ret
Function at 0x44c960
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
mov ecx, eax
or ecx, esi
or ecx, edx
test cl, 3
jne 0x44c990
shr edx, 2
test edx, edx
jbe 0x44c9a9
mov ecx, esi
sub ecx, eax
mov esi, dword [ecx + eax]
xor dword [eax], esi
add eax, 4
dec edx
jne 0x44c983
pop esi
ret
test edx, edx
jbe 0x44c9a9
mov ecx, esi
sub ecx, eax
mov esi, edx
lea ebx, [ebx]
mov dl, byte [eax + ecx]
xor byte [eax], dl
inc eax
dec esi
jne 0x44c9a0
pop esi
ret

Function at 0x4503f0
Capabilities:
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d920
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
push edi
mov edi, dword [esp + 0x70]
lea eax, [esp + 0x28]
push eax
mov ecx, edi
call fcn.0044fc10
mov ecx, dword [eax + 0x18]
mov ebx, 0x10
cmp ecx, ebx
jb 0x45042c
mov eax, dword [eax + 4]
jmp 0x45042f
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp dword [esp + 0x40], ebx
jb 0x45044b
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.00452c81
add esp, 4
cmp esi, 0xffffffff
jne 0x450496
push 0x1f
xor ebx, ebx
push str.boost::filesystem::is_directory
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.00406020
mov dword [esp + 0x68], ebx
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x50]
call fcn.00451a00
push eax
mov byte [esp + 0x6c], 1
call fcn.0044faf0
mov ecx, dword [esp + 0x60]
mov eax, esi
pop edi
shr eax, 4
pop esi
and eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x60
ret
Function at 0x450600
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d990
push eax
mov dword fs:[0], esp
sub esp, 0x70
push esi
push edi
mov edi, dword [esp + 0x88]
cmp dword [edi + 0x18], 0x10
lea esi, [edi + 4]
jb 0x45062e
mov eax, dword [esi]
jmp 0x450630
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x450678
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45073b
cmp eax, 0x57
je 0x45073b
cmp eax, 0x15
je 0x45073b
cmp eax, 3
je 0x45073b
cmp eax, 0x7b
je 0x45073b
cmp eax, 0x35
je 0x45073b
push edi
call fcn.004503f0
add esp, 4
test al, al
mov eax, dword [edi + 0x18]
je 0x4506da
cmp eax, 0x10
jb 0x45068f
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x450728
push str.boost::filesystem::remove
lea ecx, [esp + 0xc]
call fcn.004065d0
mov dword [esp + 0x80], 0
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x4c]
call fcn.00451a00
push eax
mov byte [esp + 0x84], 1
call fcn.0044faf0
cmp eax, 0x10
jb 0x4506e1
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x450728
push str.boost::filesystem::remove
lea ecx, [esp + 0x28]
call fcn.004065d0
mov dword [esp + 0x80], 2
call sub.KERNEL32.dll_GetLastError
push eax
push edi
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x68]
call fcn.00451a00
push eax
mov byte [esp + 0x84], 3
call fcn.0044faf0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x70]
mov dword fs:[0], ecx
add esp, 0x7c
ret
mov ecx, dword [esp + 0x78]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x7c
ret

Function at 0x450750
Capabilities:
Move file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46d9b0
push eax
mov dword fs:[0], esp
sub esp, 0x38
push esi
push edi
mov edi, dword [esp + 0x54]
mov ecx, dword [edi + 0x18]
mov eax, 0x10
cmp ecx, eax
jb 0x45077f
mov ecx, dword [edi + 4]
jmp 0x450782
lea ecx, [edi + 4]
mov esi, dword [esp + 0x50]
cmp dword [esi + 0x18], eax
jb 0x450790
mov eax, dword [esi + 4]
jmp 0x450793
lea eax, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x4507e8
push 0x19
push str.boost::filesystem::rename
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], eax
mov byte [esp + 0x14], al
call fcn.00406020
mov dword [esp + 0x48], 0
call sub.KERNEL32.dll_GetLastError
push eax
push edi
push esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x34]
call fcn.00451b40
push eax
mov byte [esp + 0x4c], 1
call fcn.0044faf0
mov ecx, dword [esp + 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x450c90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46da6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x450dd3
push 1
push 2
lea ecx, [ebp - 0xb0]
call fcn.00450ba0
lea eax, [ebp - 0xb0]
push str.2AC1A572DB6944B0A65C38C4140AF2F4
push eax
mov dword [ebp - 4], 0
call fcn.004266c0
mov esi, eax
add esp, 8
test esi, esi
je 0x450d01
mov ecx, dword [esi]
mov eax, dword [ecx + 4]
add eax, esi
mov edx, dword [eax + 0x10]
and edx, 0xfffff9ff
or edx, 0x800
push edi
mov dword [eax + 0x10], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, esi
call fcn.004508c0
mov ecx, eax
call fcn.00450a30
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0xb0]
call fcn.00450c70
mov ecx, dword [eax + 0x18]
mov ebx, 0x10
cmp ecx, ebx
jb 0x450d49
mov eax, dword [eax + 4]
jmp 0x450d4c
add eax, 4
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], esi
jb 0x450d6d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00452c81
add esp, 4
push 0xffffffffffffffff
push esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x450da7
mov byte [ebp - 4], 1
call dword [ebp + 8]
push 1
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], 0xffffffff
call fcn.00450800
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x64], 0x470044
call fcn.004526bb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x451020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46da98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
mov eax, dword [0x495f14]
xor eax, esp
push ebx
push esi
xor ebx, ebx
push edi
mov edi, dword [esp + 0x44]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov ecx, dword [esp + 0x48]
push ebx
push ebx
lea eax, [esp + 0x14]
push eax
push 0x400
push ecx
push ebx
push 0x1300
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, dword [esp + 0xc]
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451090
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00427750
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x451178
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x30]
cmp ebp, 0x10
mov eax, ebx
jae 0x4510cf
lea eax, [esp + 0x1c]
cmp byte [eax + ecx - 1], 0xa
je 0x4510ec
cmp ebp, 0x10
mov eax, ebx
jae 0x4510e1
lea eax, [esp + 0x1c]
cmp byte [eax + ecx - 1], 0xd
jne 0x451175
lea edi, [ecx - 1]
or esi, 0xffffffff
cmp ecx, edi
jae 0x45110b
lea ecx, [esp + 0x18]
call fcn.00451ea3
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
mov eax, ecx
sub eax, edi
cmp eax, 0xffffffff
jae 0x45111a
mov esi, eax
test esi, esi
jbe 0x451169
cmp ebp, 0x10
mov edx, ebx
jae 0x4511c8
lea edx, [esp + 0x1c]
mov ecx, edx
sub eax, esi
add edx, edi
push eax
add edx, esi
push edx
add ecx, edi
push ecx
call fcn.00453b80
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
sub eax, esi
add esp, 0xc
cmp ecx, 0x10
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jae 0x451159
lea ecx, [esp + 0x1c]
mov byte [ecx + eax], 0
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
test ecx, ecx
mov edi, dword [esp + 0x14]
jne 0x4510c4
xor ebx, ebx
pop ebp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1c]
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], ebx
push eax
mov ecx, edi
mov byte [edi + 4], 0
call fcn.00405f30
cmp dword [esp + 0x2c], 0x10
jb 0x4511a9
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00452c81
add esp, 4
mov ecx, dword [esp + 0x34]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x28]
pop ebx
xor ecx, esp
call fcn.00453275
add esp, 0x34
ret
mov ecx, ebx
jmp 0x45112b
Function at 0x451e00
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
je 0x451e76
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x451e76
mov dl, byte [ecx]
cmp dl, 0xbc
push ebx
push esi
jne 0x451e47
cmp byte [ecx + 1], 0xbd
jne 0x451e47
lea edx, [ecx + 2]
mov esi, edi
sub esi, edx
mov bl, byte [edx]
mov byte [esi + edx], bl
inc edx
test bl, bl
jne 0x451e27
lea eax, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x451e34
pop esi
sub ecx, eax
pop ebx
mov byte [ecx + edi - 4], dl
mov eax, edi
pop edi
ret
xor dl, 0x23
mov byte [edi], dl
mov al, byte [ecx]
xor esi, esi
test al, al
je 0x451e6c
mov edx, edi
sub edx, ecx
mov al, byte [ecx + 1]
mov bl, byte [edx + ecx]
inc esi
inc ecx
dec al
xor al, bl
mov byte [edx + ecx], al
cmp byte [ecx], 0
jne 0x451e58
mov byte [esi + edi], 0
pop esi
pop ebx
mov eax, edi
pop edi
ret
xor eax, eax
pop edi
ret

Function at 0x453ebd
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00453760
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x453f58
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x497e80]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x453f58
cmp eax, 1
je 0x453f79
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x453f58
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x453f25
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x453f54
xor eax, eax
inc eax
jmp 0x453f98
cmp edi, eax
jae 0x453f5c
xor eax, eax
jmp 0x453f98
cmp eax, esi
jae 0x453f63
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x497e80]
jmp 0x453f7c
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x454518
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x18
push 0x486900
call fcn.00456f00
mov edi, 0x94
mov eax, edi
call fcn.00453760
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x497e80], ecx
mov eax, dword [esi + 4]
mov dword [0x497e8c], eax
mov edx, dword [esi + 8]
mov dword [0x497e90], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x497e84], esi
cmp ecx, 2
je 0x454578
or esi, 0x8000
mov dword [0x497e84], esi
shl eax, 8
add eax, edx
mov dword [0x497e88], eax
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x4545b1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4545b1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4545c9
cmp eax, 0x20b
je 0x4545b6
mov dword [ebp - 0x1c], edi
jmp 0x4545dd
cmp dword [ecx + 0x84], 0xe
jbe 0x4545b1
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4545d7
cmp dword [ecx + 0x74], 0xe
jbe 0x4545b1
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.00458316
pop ecx
test eax, eax
jne 0x4545f1
push 0x1c
call fcn.004544f4
pop ecx
call fcn.00457bba
test eax, eax
jne 0x454602
push 0x10
call fcn.004544f4
pop ecx
call fcn.0045ba4f
mov dword [ebp - 4], edi
call fcn.0045b851
test eax, eax
jge 0x45461b
push 0x1b
call fcn.004544cf
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x499644], eax
call fcn.0045b72f
mov dword [0x497ce4], eax
call fcn.0045b68d
test eax, eax
jge 0x454641
push 8
call fcn.004544cf
pop ecx
call fcn.0045b45a
test eax, eax
jge 0x454652
push 9
call fcn.004544cf
pop ecx
push 1
call fcn.00457f68
pop ecx
mov dword [ebp - 0x24], eax
cmp eax, edi
je 0x454668
push eax
call fcn.004544cf
pop ecx
mov eax, dword [0x497ea0]
mov dword [0x497ea4], eax
push eax
push dword [0x497e98]
push dword [0x497e94]
call fcn.0040a680
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], edi
jne 0x454697
push esi
call fcn.00458095
call fcn.004580b7
jmp 0x4546c9
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x34]
call fcn.00456f3b
ret
Function at 0x457fd2
Capabilities:
Terminate process

Disassembly:
push 8
push 0x487218
call fcn.00456f00
push 8
call fcn.0045639e
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x497ec0], esi
jne 0x458006
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x497ebc], esi
mov al, byte [ebp + 0x10]
mov byte [0x497eb8], al
cmp dword [ebp + 0xc], edi
jne 0x458050
cmp dword [0x49962c], edi
je 0x458040
mov eax, dword [0x499628]
sub eax, 4
mov dword [0x499628], eax
cmp eax, dword [0x49962c]
jb 0x458040
mov eax, dword [eax]
cmp eax, edi
je 0x458021
call eax
jmp 0x458021
push 0x4950a0
mov eax, 0x495098
call fcn.00457f50
pop ecx
push 0x4950ac
mov eax, 0x4950a4
call fcn.00457f50
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x458081
cmp dword [ebp + 0x10], edi
jne 0x45808f
mov dword [0x497ec0], esi
push dword [ebp + 8]
call fcn.00457f0e
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x45808e
push 8
call fcn.004562e9
pop ecx
ret
call fcn.00456f3b
ret