joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c670
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x30], ecx
cmp dword [ebp + 0x10], 0
jb 0x40c68b
cmp dword [ebp + 0x10], 0
jbe 0x40c692
cmp dword [ebp + 0x14], 0
jne 0x40c692
xor eax, eax
jmp 0x40c768
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x27c], 0
jne 0x40c6a5
xor eax, eax
jmp 0x40c768
mov ecx, dword [ebp - 0x30]
mov edx, dword [ecx + 0x27c]
mov dword [ebp - 8], edx
push 0x10
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.00402030
add esp, 0xc
mov dword [ebp - 0x18], 0xff010310
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x10]
add ecx, 0x10
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00401c10
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40c702
xor eax, eax
jmp 0x40c768
push 0x10
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00401ca0
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
add edx, 0x10
push edx
call fcn.00401ca0
add esp, 0xc
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
je 0x40c765
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00401c7f
add esp, 4
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40c770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
cmp dword [eax + 0x27c], 0
je 0x40c79d
mov ecx, dword [ebp - 0x28]
cmp dword [ecx + 0x284], 0
je 0x40c79d
mov edx, dword [ebp - 0x28]
cmp dword [edx + 0x288], 0
ja 0x40c7a1
xor eax, eax
jmp 0x40c81f
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x27c]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 0x284]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x288]
mov dword [ebp - 0xc], edx
push 0x10
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00402030
add esp, 0xc
mov dword [ebp - 0x1c], 0xff010310
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40c81a
xor eax, eax
jmp 0x40c81f
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x40c990
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x410290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x41a064]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x228], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x228]
call fcn.0040d1e0
mov ecx, dword [ebp - 0x228]
mov dword [ecx + 0x27c], eax
mov edx, dword [ebp - 0x228]
cmp dword [edx + 0x27c], 0
jne 0x4102da
xor eax, eax
jmp 0x41040a
mov dword [ebp - 8], 0x9c4000
mov eax, dword [ebp - 8]
push eax
call fcn.00401c10
add esp, 4
mov dword [ebp - 0x224], eax
mov ecx, dword [ebp - 0x224]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x41033f
mov edx, dword [ebp - 0x228]
mov eax, dword [edx + 0x27c]
push eax
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov ecx, dword [ebp - 0x228]
mov edx, dword [ecx + 0x27c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x228]
mov dword [eax + 0x27c], 0
xor eax, eax
jmp 0x41040a
mov ecx, dword [ebp - 0x228]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x284], edx
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x288], ecx
mov eax, dword [ebp - 0x228]
cdq
push edx
push eax
push str..pipePrintPreviewClientPipe
push 0x417d64
push 0x104
lea edx, [ebp - 0x218]
push edx
call fcn.00402005
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp - 0x228]
call fcn.0040d310
mov ecx, dword [ebp - 0x228]
mov dword [ecx + 0x280], eax
mov edx, dword [ebp - 0x228]
cmp dword [edx + 0x280], 0
jne 0x4103b5
xor eax, eax
jmp 0x41040a
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x220]
push eax
push 0
mov ecx, dword [ebp - 0x228]
push ecx
push 0x410260
push 0
push 0
call fcn.0040257f
add esp, 0x18
mov dword [ebp - 0x21c], eax
cmp dword [ebp - 0x21c], 0xffffffff
jne 0x4103f3
xor eax, eax
jmp 0x41040a
mov edx, dword [ebp - 0x228]
mov eax, dword [ebp - 0x21c]
mov dword [edx + 0x28c], eax
mov eax, 1
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00401c84
mov esp, ebp
pop ebp
ret 4
Function at 0x410830
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x24], ecx
cmp dword [ebp + 8], 0
jne 0x410846
xor eax, eax
jmp 0x41091c
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x410882
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 8]
jae 0x410919
push 0x224
call fcn.00401c10
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4108b1
mov ecx, dword [ebp - 0x20]
call fcn.00411020
mov dword [ebp - 0x28], eax
jmp 0x4108b8
mov dword [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4108cc
jmp 0x410919
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
push ecx
mov ecx, dword [ebp - 4]
call fcn.00410de0
lea edx, [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
push 0x4114b0
push 0
push 0
call fcn.0040257f
add esp, 0x18
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x410901
jmp 0x410919
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x24]
call fcn.004105b0
mov dword [ebp - 0xc], eax
jmp 0x410879
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x410b00
Capabilities:
Connect pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0x1388
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x410b6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x217
jne 0x410b42
jmp 0x410b77
cmp dword [ebp - 4], 0x218
je 0x410b50
mov eax, dword [ebp - 4]
jmp 0x410b79
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [ebp - 8]
sub ecx, 0x32
mov dword [ebp - 8], ecx
jne 0x410b6a
mov eax, 0x102
jmp 0x410b79
jmp 0x410b6e
jmp 0x410b77
cmp dword [ebp - 4], 0x218
je 0x410b17
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x40152a
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
lea eax, [ebp - 0x124]
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x120]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x10c]
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x124], 0x14
mov byte [ebp - 0x10c], 0
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringW]
movzx eax, word [ebp - 0x120]
sub esp, 0x14
leave
sub eax, 0x41
ret

Function at 0x401586
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040152a
test eax, eax
jne 0x401620
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x4020b6
sub eax, 0x401654
mov dword [esp], 0x401654
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x401620
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401420
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014a3
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401db9
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x4032e5
Capabilities:
Delete directory
Get common file path
Get file attributes
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
push esi
xor esi, esi
cmp dword [0x431af8], 0x594
push edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
jne 0x403325
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
mov eax, dword [0x4273c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4273cc]
mov dword [ebp - 0x24], eax
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
call fcn.004032de
mov eax, dword [0x4273d0]
mov ebx, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4273d4]
add ebx, 0x23f
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x18], 0x20
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, dword [ebp - 0x10]
shl eax, 4
cmp dword [0x431af8], 0xc
mov dword [ebp - 4], eax
jne 0x4033bb
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
xor eax, eax
mov word [ebp - 0x1c], ax
lea edi, [ebp - 0x1a]
stosw word es:[edi], ax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x834]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterW]
lea eax, [ebp - 0x34]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x431af8]
cmp eax, 0xfa9
jne 0x4033d7
mov dword [0x431094], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4033e4
mov dword [0x430a40], esi
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
lea eax, [ebx + edx]
shr edx, cl
mov dword [ebp - 0x14], eax
mov dword [0x431090], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x431af8], 0x213
mov dword [ebp - 0x14], edx
jne 0x40341e
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov eax, dword [ebp - 0x14]
add dword [ebp - 0xc], 0x64
sub dword [ebp - 0xc], eax
sub dword [ebp - 0xc], 0x64
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 4]
call fcn.004032d8
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov eax, edx
shr eax, cl
lea edi, [ebx + edx]
add ebx, 0x61c88647
add eax, dword [ebp - 0x24]
xor eax, edi
xor dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x10], eax
dec dword [ebp - 0x18]
jne 0x403361
cmp dword [0x431af8], 0xa6d
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov dword [edi], eax
pop ebx
jne 0x403487
push esi
push esi
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], edx
pop edi
pop esi
leave
ret 4
Function at 0x403490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x431af8]
mov ecx, dword [0x430a48]
sub esp, 0x944
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x403504
mov edi, ecx
mov ebx, eax
cmp dword [0x431af8], 0x959
jne 0x4034f8
push esi
lea eax, [ebp - 0x940]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x140]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x402d68
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push edi
call fcn.004032e5
add edi, 8
dec ebx
jne 0x4034b4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403816
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
push ebx
push esi
xor esi, esi
cmp dword [0x431af8], 0x400
push edi
jne 0x403868
push esi
push esi
call fcn.00403cab
push esi
push esi
call fcn.00403cab
push esi
push esi
push esi
call fcn.00404293
add esp, 0x14
mov dword [esp + 4], esi
mov dword [esp], esi
call fcn.00403253
fstp st(0)
push esi
call fcn.00404349
pop ecx
push esi
call fcn.004040aa
pop ecx
mov eax, dword [0x427a54]
mov dword [0x431af8], eax
mov eax, dword [0x427a2c]
mov dword [0x431afc], eax
call fcn.00403523
mov dword [esp + 0x10], esi
mov ebx, 0x2b259d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov dword [esp + 0x1c], esi
lea edi, [esp + 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
push esi
lea eax, [esp + 0x3c]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [esp + 0x10], ebx
jle 0x4038cf
cmp dword [esp + 0x18], 0x785074d5
jne 0x4038dd
inc dword [esp + 0x10]
cmp dword [esp + 0x10], 0x1c1b
jl 0x40388a
xor edi, edi
push esi
lea eax, [esp + 0x34]
push eax
push esi
push 0x402fb8
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
lea eax, [esp + 0x14]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetThreadSelectorEntry]
cmp edi, ebx
jle 0x40390e
cmp dword [esp + 0x18], 0x785074d5
jne 0x403917
inc edi
cmp edi, 0x11915
jl 0x4038df
mov eax, dword [0x430a48]
mov dword [0x43108c], eax
call eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x404cc0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4260f8]
jne 0x404cca
repz ret
jmp fcn.00408ae2
Function at 0x408805
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040631a
and dword [ebp - 4], 0
cmp dword [0x428300], 0
mov ebx, eax
jne 0x4088b6
push 0x401b58
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408967
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b4c
push edi
call esi
test eax, eax
je 0x408967
push eax
call fcn.004062a8
mov dword [esp], 0x401b3c
push edi
mov dword [0x428300], eax
call esi
push eax
call fcn.004062a8
mov dword [esp], 0x401b28
push edi
mov dword [0x428304], eax
call esi
push eax
call fcn.004062a8
mov dword [esp], 0x401b0c
push edi
mov dword [0x428308], eax
call esi
push eax
call fcn.004062a8
pop ecx
mov dword [0x428310], eax
test eax, eax
je 0x4088b6
push 0x401af4
push edi
call esi
push eax
call fcn.004062a8
pop ecx
mov dword [0x42830c], eax
mov eax, dword [0x42830c]
cmp eax, ebx
je 0x40890e
cmp dword [0x428310], ebx
je 0x40890e
push eax
call fcn.00406323
push dword [0x428310]
mov esi, eax
call fcn.00406323
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40890e
test edi, edi
je 0x40890e
call esi
test eax, eax
je 0x408905
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408905
test byte [ebp - 0xc], 1
jne 0x40890e
or dword [ebp + 0x10], 0x200000
jmp 0x408947
mov eax, dword [0x428304]
cmp eax, ebx
je 0x408947
push eax
call fcn.00406323
pop ecx
test eax, eax
je 0x408947
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408947
mov eax, dword [0x428308]
cmp eax, ebx
je 0x408947
push eax
call fcn.00406323
pop ecx
test eax, eax
je 0x408947
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428300]
call fcn.00406323
pop ecx
test eax, eax
je 0x408967
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408969
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5af590
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x131000]
push edi
or ebp, 0xffffffff
jmp 0x5af5b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5af5b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5af5a8
mov eax, 1
add ebx, ebx
jne 0x5af5cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5af5dc
jne 0x5af5fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5af5fb
dec eax
add ebx, ebx
jne 0x5af5e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5af5c0
add ebx, ebx
jne 0x5af5f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5af64d
xor ecx, ecx
sub eax, 3
jb 0x5af613
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5af682
sar eax, 1
mov ebp, eax
jmp 0x5af61e
add ebx, ebx
jne 0x5af61e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5af5ec
inc ecx
add ebx, ebx
jne 0x5af62c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5af5ec
add ebx, ebx
jne 0x5af639
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5af62e
jne 0x5af64a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5af62e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5af66c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5af65e
jmp 0x5af5ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5af66c
add edi, ecx
jmp 0x5af5ae
pop esi
mov edi, esi
mov ecx, 0x79bc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5af68a
cmp byte [edi], 0x16
jne 0x5af68a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5af68f
lea edi, [esi + 0x1ab000]
mov eax, dword [edi]
or eax, eax
je 0x5af6fe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1c85ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1c86b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5af6bc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1c86b4]
or eax, eax
je 0x5af6f8
mov dword [ebx], eax
add ebx, 4
jmp 0x5af6d9
call dword [esi + 0x1c86c4]
mov ebp, dword [esi + 0x1c86b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5af732
sub esp, 0xffffff80
jmp 0x4fbe98
Function at 0x401061
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push eax
push dword [0x438030]
mov esi, ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x4010c9
lea eax, [ebp - 0x20c]
push 0x208
push eax
mov ecx, esi
call fcn.004010ce
test eax, eax
je 0x4010c9
lea eax, [ebp - 0x20c]
push str.safemon_safemon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4010c9
push 1
pop eax
jmp 0x4010cb
xor eax, eax
pop esi
leave
ret

Function at 0x401123
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push str.Q360SafeMonClass
call dword [sym.imp.USER32.dll_FindWindowW]
push 4
mov esi, eax
pop eax
mov dword [ebp - 4], 1
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
neg esi
sbb esi, esi
push str.SOFTWARE360Safe_safemon
push reloc.OLEAUT32.dll_SysReAllocString
neg esi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp dword [ebp - 4], 0
je 0x40117d
test esi, esi
je 0x40117d
push 1
pop eax
jmp 0x40117f
xor eax, eax
pop esi
leave
ret 4

Function at 0x40120e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 4
mov dword [ebp - 4], 2
pop eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push str.update
push str.SOFTWARE360Safe_setting
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [ebp - 4]
cmp eax, 1
jb 0x401252
cmp eax, 3
jbe 0x401255
push 2
pop eax
leave
ret

Function at 0x401257
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
mov esi, ecx
call fcn.00401061
cmp dword [ebp + 8], eax
jne 0x401272
push 1
pop eax
jmp 0x4012c1
lea eax, [ebp - 0x208]
push 0x208
push eax
mov ecx, esi
call fcn.004010ce
test eax, eax
je 0x4012bf
lea eax, [ebp - 0x208]
push str.safemon_safemon.dll
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4012bf
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
call fcn.00406316
pop ecx
pop ecx
jmp 0x4012c1
xor eax, eax
pop esi
leave
ret 4