joyce8/EMBER2024-capa huggingface dataset:
Function at 0x460b34
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push 4
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
xor esi, esi
push dword [ebp + 0xc]
mov dword [ebp - 0x18], 0x7863513
call fcn.00460cce
add esp, 0x10
mov dword [ebp - 8], eax
push esi
push 0x80
push 3
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
cmp ebx, 0xffffffff
je 0x460c90
push edi
mov edi, dword [ebp + 0x18]
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], esi
call fcn.00460c9f
add esp, 0xc
lea eax, [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push eax
push dword [ebp - 4]
mov dword [ebp - 0x18], eax
push dword [ebp - 0xc]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x460c88
push esi
push esi
push esi
push dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x460c7c
mov ecx, dword [ebp - 4]
or ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x18], ecx
cmp esi, esi
jl 0x460c59
jg 0x460bf7
cmp ecx, esi
jbe 0x460c59
mov eax, dword [ebp + 0x10]
cdq
mov ecx, eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], edx
mov edi, esi
mov eax, esi
jmp 0x460c0c
mov ecx, dword [ebp - 0xc]
push edx
push ecx
push eax
push edi
call fcn.00460f00
mov ecx, dword [ebp - 8]
movzx eax, byte [eax + ecx]
push eax
movzx eax, byte [edi + ebx]
push eax
cmp dword [ebp + 0x14], esi
je 0x460c2e
call fcn.00460b17
jmp 0x460c33
call fcn.00460b04
mov edx, dword [ebp - 0x14]
mov byte [edi + ebx], al
mov eax, dword [ebp - 0x10]
add edi, 1
adc eax, esi
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp eax, esi
jl 0x460c0c
mov ecx, dword [ebp - 0x18]
jg 0x460c56
cmp edi, ecx
jb 0x460c09
mov edi, dword [ebp + 0x18]
test edi, edi
je 0x460c72
mov eax, dword [edi + 4]
test eax, eax
je 0x460c72
push dword [edi + 8]
push esi
push ecx
push ebx
call eax
add esp, 0x10
mov dword [edi + 0xc], eax
xor esi, esi
push ebx
inc esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 8]
call fcn.00440394
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x460cce
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push dword [ebp + 0xc]
call fcn.0043fd86
mov esi, eax
xor eax, eax
pop ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], eax
jle 0x460d0d
push ebx
mov ebx, dword [ebp + 8]
sub ebx, esi
lea ecx, [eax + esi]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov al, byte [edx + eax]
xor al, byte [ebx + ecx]
mov byte [ecx], al
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp + 0xc]
jl 0x460cee
pop ebx
mov eax, esi
pop esi
leave
ret
Function at 0x401100
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4162c4]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x401299
push 0x801
call fcn.004031b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x401299
mov ecx, esi
mov eax, edi
mov esi, ebp
call fcn.00401000
cmp byte [0x417d28], 0
mov dword [esp + 0x14], eax
jne 0x401189
mov esi, 0x417d28
call fcn.00402f30
test eax, eax
je 0x40116d
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
push str.printfab_monitor.log
push 0x104
push 0x417d28
call fcn.00402fa7
add esp, 0x10
mov eax, dword [0x417b14]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401264
push 0
push 0x80000080
push 4
push 0
push 3
push 0x40000000
push 0x417d28
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x417b14], eax
test eax, eax
je 0x401285
cmp eax, 0xffffffff
je 0x401260
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push str._n_nPrintFab_Monitor_1.15_logfile_started_at
mov ecx, 0x100
lea edi, [esp + 0x24]
call fcn.00401040
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011f7
push 0
sub eax, edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [0x417b14]
lea edx, [esp + 0x2c]
push edx
push eax
call ebx
push 0x100
lea edi, [esp + 0x24]
call fcn.004010a0
mov eax, edi
add esp, 4
lea edx, [eax + 1]
jmp 0x401230
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401230
push 0
sub eax, edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [0x417b14]
lea edx, [esp + 0x2c]
push edx
push eax
call ebx
mov ecx, dword [0x417b14]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [0x417b14]
test eax, eax
je 0x401285
cmp eax, 0xffffffff
je 0x401285
mov ecx, ebp
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401270
push 0
lea edx, [esp + 0x20]
push edx
sub ecx, esi
push ecx
push ebp
push eax
call ebx
push ebp
call fcn.0040313b
xor eax, eax
add esp, 4
cmp dword [esp + 0x14], eax
setge al
jmp 0x40129b
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402f98
add esp, 0x11c
ret
lea edx, [esp + 8]
mov ecx, dword [esp + 4]
jmp 0x401100
Function at 0x4012c0
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4162c4]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, edx
test esi, esi
je 0x401299
push 0x801
call fcn.004031b0
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x401299
mov ecx, esi
mov eax, edi
mov esi, ebp
call fcn.00401000
cmp byte [0x417d28], 0
mov dword [esp + 0x14], eax
jne 0x401189
mov esi, 0x417d28
call fcn.00402f30
test eax, eax
je 0x40116d
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
push str.printfab_monitor.log
push 0x104
push 0x417d28
call fcn.00402fa7
add esp, 0x10
mov eax, dword [0x417b14]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x401264
push 0
push 0x80000080
push 4
push 0
push 3
push 0x40000000
push 0x417d28
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x417b14], eax
test eax, eax
je 0x401285
cmp eax, 0xffffffff
je 0x401260
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push str._n_nPrintFab_Monitor_1.15_logfile_started_at
mov ecx, 0x100
lea edi, [esp + 0x24]
call fcn.00401040
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4011f7
push 0
sub eax, edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [0x417b14]
lea edx, [esp + 0x2c]
push edx
push eax
call ebx
push 0x100
lea edi, [esp + 0x24]
call fcn.004010a0
mov eax, edi
add esp, 4
lea edx, [eax + 1]
jmp 0x401230
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401230
push 0
sub eax, edx
lea ecx, [esp + 0x1c]
push ecx
push eax
mov eax, dword [0x417b14]
lea edx, [esp + 0x2c]
push edx
push eax
call ebx
mov ecx, dword [0x417b14]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov eax, dword [0x417b14]
test eax, eax
je 0x401285
cmp eax, 0xffffffff
je 0x401285
mov ecx, ebp
lea esi, [ecx + 1]
mov edi, edi
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x401270
push 0
lea edx, [esp + 0x20]
push edx
sub ecx, esi
push ecx
push ebp
push eax
call ebx
push ebp
call fcn.0040313b
xor eax, eax
add esp, 4
cmp dword [esp + 0x14], eax
setge al
jmp 0x40129b
xor eax, eax
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402f98
add esp, 0x11c
ret
lea edx, [esp + 8]
mov ecx, dword [esp + 4]
jmp 0x401100
Function at 0x401390
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x56c
mov eax, dword [0x4162c4]
xor eax, esp
mov dword [esp + 0x564], eax
push ebx
push ebp
push esi
push edi
push str._nPrintFabMonitor:_clean_up_temp_directory_n
call fcn.00403566
lea eax, [esp + 0x46c]
push eax
call fcn.00402dd0
lea ecx, [esp + 0x470]
push ecx
push str._hsprintfab_.
mov ecx, 0x104
lea ebx, [esp + 0x270]
call fcn.004012d0
add esp, 0x10
lea edx, [esp + 0x10]
push edx
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40140c
mov ecx, ebx
push ecx
push str._nPrintFabMonitor:_pattern_not_found:__s_n
call fcn.00403566
add esp, 8
mov eax, 1
jmp 0x40146d
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x401420
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x46c]
push eax
push str._hs_s
mov ecx, 0x104
lea ebx, [esp + 0x26c]
call fcn.004012d0
mov ecx, ebx
push ecx
push str._nPrintFabMonitor:_deleting__s_n
call fcn.00403566
add esp, 0x14
mov edx, ebx
push edx
call edi
lea eax, [esp + 0x10]
push eax
push esi
call ebp
test eax, eax
jne 0x401420
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
mov ecx, dword [esp + 0x574]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402f98
add esp, 0x56c
ret
Function at 0x401640
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x85c
mov eax, dword [0x4162c4]
xor eax, esp
mov dword [esp + 0x854], eax
push ebx
push ebp
push esi
push edi
push 0x208
lea eax, [esp + 0x24c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x104
lea ecx, [esp + 0x454]
push ecx
push 0x104
lea edx, [esp + 0x664]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x264]
push 0
push eax
call fcn.004032bf
add esp, 0x24
lea ecx, [esp + 0x450]
push ecx
lea edx, [esp + 0x65c]
push edx
push str._s_s
mov eax, 0x208
lea ebx, [esp + 0x254]
call fcn.00401330
add esp, 0xc
mov eax, ebx
push eax
push str.kill_all_monitor_processes:_executable_name_is__ws_r_n
call fcn.004012c0
add esp, 8
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea ecx, [esp + 0x18]
mov esi, eax
push ecx
push esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_Process32FirstW
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4017b5
mov edi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x401720
lea ecx, [esp + 0x248]
lea eax, [esp + 0x3c]
jmp 0x401730
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401756
test dx, dx
je 0x401752
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401756
add eax, 4
add ecx, 4
test dx, dx
jne 0x401730
xor eax, eax
jmp 0x40175b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x40179e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x20], eax
je 0x40179e
push str.found_r_n
call fcn.004012c0
mov edx, dword [esp + 0x24]
add esp, 4
push edx
push 0
push 1
call edi
mov esi, eax
test esi, esi
je 0x40179e
push str.opened_r_n
call fcn.004012c0
add esp, 4
push 9
push esi
call ebx
push esi
call ebp
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401720
push esi
call ebp
mov ecx, dword [esp + 0x864]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402f98
add esp, 0x85c
ret
Function at 0x402530
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x4162c4]
xor eax, esp
mov dword [esp + 0x414], eax
mov eax, dword [esp + 0x424]
push ebx
push ebp
mov ebp, dword [esp + 0x428]
push esi
push edi
push eax
mov eax, ebp
mov ebx, edx
mov dword [esp + 0x18], ecx
call fcn.00402700
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4026d6
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp + 0xac]
test esi, esi
je 0x40258f
mov eax, dword [esi]
test eax, eax
je 0x40258f
push eax
call edi
mov dword [esi], 0
lea esi, [ebp + 0xa8]
test esi, esi
je 0x4025a8
mov eax, dword [esi]
test eax, eax
je 0x4025a8
push eax
call edi
mov dword [esi], 0
mov edi, 0x1000
mov eax, dword [ebp + 0xb8]
push 0
lea edx, [esp + 0x20]
push edx
push 0x400
lea ecx, [esp + 0x2c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4025d4
or esi, 0xffffffff
jmp 0x4025e5
mov esi, dword [esp + 0x1c]
cmp esi, 0x400
jae 0x4025e5
mov byte [esp + esi + 0x20], 0
test esi, esi
jl 0x40260a
cmp esi, edi
jle 0x4025ef
mov esi, edi
push esi
lea edx, [esp + 0x24]
push edx
push ebx
call fcn.00408850
add esp, 0xc
add ebx, esi
sub edi, esi
jns 0x402606
xor edi, edi
test esi, esi
jge 0x4025ad
test edi, edi
jne 0x402614
mov byte [ebx - 1], 0
jmp 0x402617
mov byte [ebx], 0
mov ebx, dword [esp + 0x14]
mov edi, 0x1000
mov eax, dword [ebp + 0xc0]
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x400
lea edx, [esp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x402647
or esi, 0xffffffff
jmp 0x402658
mov esi, dword [esp + 0x14]
cmp esi, 0x400
jae 0x402658
mov byte [esp + esi + 0x20], 0
test esi, esi
jl 0x40267d
cmp esi, edi
jle 0x402662
mov esi, edi
push esi
lea eax, [esp + 0x24]
push eax
push ebx
call fcn.00408850
add esp, 0xc
add ebx, esi
sub edi, esi
jns 0x402679
xor edi, edi
test esi, esi
jge 0x402620
test edi, edi
jne 0x402687
mov byte [ebx - 1], 0
jmp 0x40268a
mov byte [ebx], 0
mov eax, dword [ebp + 0x98]
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40269f
push 0xffffffffffffffff
push eax
call esi
mov eax, dword [ebp + 0x44]
test eax, eax
je 0x4026ab
push 0xffffffffffffffff
push eax
call esi
mov eax, dword [ebp + 0x98]
test eax, eax
je 0x4026c9
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esp + 0x14]
test eax, eax
jne 0x4026cd
mov esi, dword [esp + 0x18]
mov ebx, ebp
call fcn.00402930
mov eax, esi
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00402f98
add esp, 0x41c
ret 8
Function at 0x402700
Capabilities:
Create pipe
Create process on windows
Create reverse shell
Set current directory

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, eax
cmp dword [esi + 0xe0], 0
push edi
je 0x402771
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
push 0
push 0
push eax
push str.create_pipe:_setting_exe_path_for_commandline1_to_
call fcn.004012c0
mov eax, dword [esi + 0xe0]
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0
push 0
push eax
call fcn.004012c0
add esp, 0x1c
push 0
push 0
push 0
push 0
push 0
push 0
push 0x414448
call fcn.004012c0
mov ecx, dword [esi + 0xe0]
add esp, 0x1c
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0x44
push 0
push esi
call fcn.0040a570
xor eax, eax
add esp, 0xc
mov dword [esi], 0x44
mov dword [esi + 0x44], eax
push 0x44
mov dword [esi + 0x48], eax
push eax
lea ebp, [esi + 0x54]
mov dword [esi + 0x4c], eax
push ebp
mov dword [esi + 0x50], eax
call fcn.0040a570
xor eax, eax
mov dword [ebp], 0x44
mov dword [esi + 0x98], eax
lea edi, [esi + 0x98]
mov dword [edi + 4], eax
add esp, 0xc
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
push 0
lea ebx, [esi + 0xd0]
mov dword [esi + 0xd4], eax
push ebx
lea eax, [esi + 0xc4]
lea ecx, [esi + 0xc0]
push eax
push ecx
mov dword [ebx], 0xc
mov dword [esi + 0xd8], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov edx, dword [esi + 0xc0]
push 0
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push ebx
lea eax, [esi + 0xac]
lea ecx, [esi + 0xa8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov eax, dword [esi + 0xac]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
push 0
push ebx
lea eax, [esi + 0xbc]
lea ecx, [esi + 0xb8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
mov ecx, dword [esi + 0xb8]
push 0
push 1
push ecx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edx, dword [esi + 0xa8]
mov ecx, dword [esi + 0xbc]
lea eax, [esi + 0xa8]
push edi
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc4]
lea ebx, [esi + 0xc4]
push ebp
mov dword [esi + 0x8c], edx
mov edx, dword [esi + 0xe0]
mov dword [esi + 0x94], eax
lea eax, [esi + 0xbc]
push edx
push 0
mov dword [esp + 0x24], eax
mov dword [esi + 0x90], ecx
push 0
mov eax, dword [esp + 0x30]
push 1
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4028e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0
push 0
push 0
push eax
push str.CreateProcess_failed___d__n
call fcn.004012c0
add esp, 0x1c
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push 0
push 1
push edx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40290c
mov eax, dword [ebx]
test eax, eax
je 0x40290c
push eax
call edi
mov dword [ebx], 0
mov esi, dword [esp + 0x14]
test esi, esi
je 0x402923
mov eax, dword [esi]
test eax, eax
je 0x402923
push eax
call edi
mov dword [esi], 0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 4
Function at 0x402ac0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x4162c4]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push 8
push str.SOFTWARE
push 0x413c60
mov dword [esp + 0x1c], 1
call fcn.00403ba9
add esp, 0xc
test eax, eax
jne 0x402b1c
push 0x200
push 0x413c60
lea eax, [esp + 0x20]
push 0x200
push eax
call fcn.00403af4
add esp, 0x10
jmp 0x402b37
push 0x413c60
push str.SOFTWAREZEDOnetPrintFab_1.x_s
mov ecx, 0x200
lea edi, [esp + 0x20]
call fcn.00401040
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push 0
lea edx, [esp + 0x24]
push edx
push 0x80000002
call esi
test eax, eax
je 0x402bb4
push 8
push str.SOFTWARE
push 0x413c60
call fcn.00403ba9
add esp, 0xc
mov ecx, 0x200
lea edi, [esp + 0x18]
test eax, eax
jne 0x402b86
push str._nPrintFabMonitor:_clean_up_temp_directory_n
push str.SOFTWAREWow6432Node_s
jmp 0x402b90
push 0x413c60
push str.SOFTWAREWow6432NodeZEDOnetPrintFab_1.x_s
call fcn.00401040
add esp, 8
lea eax, [esp + 0xc]
push eax
push 0x20019
push 0
lea ecx, [esp + 0x24]
push ecx
push 0x80000002
call esi
test eax, eax
jne 0x402c17
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push ebp
lea eax, [esp + 0x18]
push eax
push 0
push ebx
mov esi, 0x100
push ecx
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c0c
cmp dword [esp + 0x10], 1
jne 0x402c0c
cmp dword [esp + 0x14], esi
jae 0x402c0c
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00402f98
add esp, 0x210
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00402f98
add esp, 0x210
ret
Function at 0x402ca0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4162c4]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push 0x104
push eax
lea eax, [esp + 8]
push 0x104
push eax
call fcn.00403af4
lea eax, [esp + 0x10]
add esp, 0x10
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402ce0
sub eax, edx
cmp byte [esp + eax - 1], 0x5c
je 0x402d0c
push 0x104
push 0x4145ac
lea ecx, [esp + 8]
push 0x104
push ecx
call fcn.00402fa7
add esp, 0x10
push ebx
push esi
push edi
push 0x104
lea edx, [esp + 0x114]
push 0
push edx
call fcn.0040a570
lea eax, [esp + 0x18]
push 0x5c
push eax
call fcn.00403e30
mov esi, eax
add esp, 0x14
test esi, esi
je 0x402d90
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [esp + 0xc]
mov ecx, esi
sub ecx, edx
push ecx
mov eax, edx
push eax
lea ecx, [esp + 0x118]
push 0x104
push ecx
call fcn.00403af4
add esp, 0x10
push 0
lea edx, [esp + 0x114]
push edx
call edi
test eax, eax
jne 0x402d7e
call ebx
cmp eax, 0xb7
jne 0x402daa
push 0x5c
inc esi
push esi
call fcn.00403e30
mov esi, eax
add esp, 8
test esi, esi
jne 0x402d44
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00402f98
add esp, 0x20c
ret
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00402f98
add esp, 0x20c
ret

Function at 0x402dd0
Capabilities:
Create directory
Get common file path

Disassembly:
cmp byte [0x417c20], 0
jne 0x402dfe
push ebx
push 0x417c20
mov ebx, str.TempDir
call fcn.00402ac0
add esp, 4
pop ebx
test eax, eax
jne 0x402dfe
push 0x417c20
call fcn.00402ca0
add esp, 4
push 0
push 0x2000000
push 3
push 0
push 3
push 0x40000000
push 0x417c20
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
je 0x402e30
cmp eax, 0xffffffff
je 0x402e30
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402ebf
push 0x417c20
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x402e60
push str.get_temp_directory_failed_n
call fcn.00403c69
add eax, 0x40
push eax
call fcn.00403eee
add esp, 8
mov eax, 1
ret
mov eax, 0x417c20
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402e68
sub eax, edx
cmp byte [eax + 0x417c1f], 0x5c
je 0x402e96
push 0x104
push 0x4145ac
push 0x104
push 0x417c20
call fcn.00402fa7
add esp, 0x10
push 0x104
push str.ZEDOnet
push 0x104
push 0x417c20
call fcn.00402fa7
add esp, 0x10
push 0
push 0x417c20
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 4]
push 0x104
push 0x417c20
push 0x104
push eax
call fcn.00403af4
add esp, 0x10
xor eax, eax
ret

Function at 0x402f98
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4162c4]
jne 0x402fa2
repz ret
jmp fcn.004041bb
Function at 0x40e659
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x40e67f
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x40e67a
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x40e664
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x40e66c
cmp edx, ebx
jne 0x40e7ba
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x40e63b
add eax, dword [eax + 4]
jmp 0x40e628
mov dword [ebp + 0xc], ebx
jmp 0x40e68a
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x40e6a2
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40e6c0
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x40e71e
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x40e705
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x40e70e
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x40e718
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x40e6fa
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x40e684
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40e76b
dec eax
je 0x40e762
sub eax, 3
je 0x40e759
mov dword [ebp - 4], 0x40
jmp 0x40e788
mov dword [ebp - 4], 4
jmp 0x40e76e
mov dword [ebp - 4], 0x20
jmp 0x40e76e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40e7ba
invalid
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40e73a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040dfcb
jne 0x40e779
mov edx, 0x1475ff23
push 1
push esi
call edi
mov eax, esi
jmp 0x40e7c6
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret