joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa4d000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xa4d131
push esi
call fcn.00a50145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00a3f080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xa4d131
push 0
push ebp
call fcn.00a3f3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00a3f260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xa4d08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00a3f2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xa4d121
push 0xa65918
push edi
call fcn.00a4e3f0
push eax
push ebx
push esi
call fcn.00a4cf60
push 0xa658f8
push edi
call fcn.00a4e3f0
push eax
push ebx
push esi
call fcn.00a4cf60
push 0xa658d8
push edi
call fcn.00a4e3f0
push eax
push ebx
push esi
call fcn.00a4cf60
push 0xa658c0
push edi
call fcn.00a4e3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00a4cf60
push 0xa658a0
push edi
call fcn.00a4e3f0
push eax
push ebx
push esi
call fcn.00a4cf60
push 0xa65888
push edi
call fcn.00a4e3f0
push eax
push ebx
push esi
call fcn.00a4cf60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xa4e1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00a4e140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00a4e140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00a4e140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00a4e140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xa4ebfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xa4ec50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xa6087c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xa4ec43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xa4ec52
xor eax, eax
pop esi
leave
ret 4
Function at 0x402c98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40500c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d10
xor eax, eax
push ebp
push 0x402d09
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x40500c]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40500c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403430
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x406034], 0
je 0x403491
cmp word [0x406208], 0xd7b2
jne 0x403459
cmp dword [0x406210], 0
jbe 0x403459
mov eax, 0x406204
call dword [0x406220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x405744
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4034b8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x405018], 0
jne 0x4034ad
push 0
push 0x40573c
push 0x405744
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x403920
Capabilities:
Extract resource via kernel32 functions
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff7f0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403604
mov eax, dword [ebp - 8]
call fcn.00403604
xor eax, eax
push ebp
push 0x403a5d
push dword fs:[eax]
mov dword fs:[eax], esp
push ebx
mov eax, dword [ebp - 4]
call fcn.00403614
push eax
mov eax, dword [0x4087e0]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x403a42
push ebx
mov eax, dword [0x4087e0]
push eax
call sub.kernel32.dll_SizeofResource
mov esi, eax
test esi, esi
je 0x403a42
push ebx
mov eax, dword [0x4087e0]
push eax
call sub.kernel32.dll_LoadResource
test eax, eax
je 0x403a42
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0xc], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 8]
call fcn.00403614
mov ebx, eax
push ebx
call sub.kernel32.dll_CreateFileA
mov edi, eax
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
call sub.kernel32.dll_CreateFileA
mov ebx, eax
push 0
lea eax, [ebp - 0x10]
push eax
push esi
mov eax, dword [ebp - 0xc]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push 0
push 0
push esi
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push edi
call sub.kernel32.dll_ReadFile
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x810]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
cmp dword [ebp - 0x10], 0x400
jae 0x4039fe
push edi
call sub.kernel32.dll_CloseHandle
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a64
lea eax, [ebp - 8]
mov edx, 2
call fcn.004035d4
ret
Function at 0x4040ac
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov eax, 0x403a94
call fcn.00403830
xor eax, eax
push ebp
push 0x4040e1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4041f0
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4040eb
xor eax, eax
push ebp
push 0x40410d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x40420c
call sub.kernel32.dll_DeleteFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x404117
xor eax, eax
push ebp
push 0x4041a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x404238
mov ecx, 0x404248
mov eax, 0x40427c
call fcn.00403920
mov edx, 0x404238
mov ecx, 0x40428c
mov eax, 0x4042b0
call fcn.00403920
mov edx, 0x404238
mov ecx, 0x4042c0
mov eax, 0x4042e8
call fcn.00403920
mov edx, 0x404238
mov ecx, 0x4042f8
mov eax, 0x404318
call fcn.00403920
mov edx, 0x404238
mov ecx, 0x404328
mov eax, 0x40434c
call fcn.00403920
mov edx, 0x404238
mov ecx, 0x40435c
mov eax, 0x404384
call fcn.00403920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4041b1
push 1
push 0
push 0
push 0x40420c
push 0x40438c
push 0
call sub.shell32.dll_ShellExecuteA
push 0
push 0
push 0
push 0x404394
push 0x40438c
push 0
call sub.shell32.dll_ShellExecuteA
push 0
call sub.kernel32.dll_ExitProcess_1
pop edi
pop esi
pop ebx
call fcn.004034bc
add byte [eax], al
inc ebx
cmp bl, byte [edi + edx*2 + 0x69]
outsb dx, byte [esi]
outsd dx, dword fs:[esi]
ja 0x40426d
pop esp
inc ebp
insd dword es:[edi], dx
popal
imul ebp, dword [ecx + eax*2 + 0x63], 0x65766974
pop eax
insd dword es:[edi], dx
jae 0x404274
add byte [ebx + 0x3a], al
pop esp
push edi
imul ebp, dword [esi + 0x64], 0x5c73776f
dec ecx
arpl word [ebp + 0x20], sp
inc ebx
jne 0x404280
and byte gs:[0x6f6d5320], ch
imul esp, dword [ebp + 0x20], 0x53
outsd dx, dword [esi]
insd dword es:[edi], dx
and byte gs:[edi + 0x65], dl
insd dword es:[edi], dx
jo 0x404268
add byte [eax], al
add byte [ecx + eax*2 + 0x54], al
inc ecx
add byte [eax], al
add byte [eax], al
and byte [edi + 0x65], dl
insd dword es:[edi], dx
insd dword es:[edi], dx
jo 0x4042a4
add byte [eax], al
add bh, bh
invalid
add byte [eax], al
add byte [eax], al
add byte [bx + si], al
add bh, bh
invalid
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0xd35469
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x613a1630
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4330c0
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x4604475d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x1fb65897
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4047e0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
add eax, 0xa0
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
pop esi
je 0x40480b
cmp eax, 0xb7
jne 0x404820
push str.____Exiting_by_mutext_check_n
call fcn.00405140
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop ebp
ret

Function at 0x404990
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push dword [esi + 0x48]
call fcn.00401140
mov edi, eax
test edi, edi
je 0x4049c2
push str.RSAPrivKey
push edi
call fcn.00401120
test eax, eax
jne 0x4049c8
push str.____error_load_value:_RSAPrivKey_n
call fcn.00405140
add esp, 4
pop edi
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [eax + 0x10]
push str.LockedExt
push edi
mov dword [esi + 0x2cc], eax
call fcn.00401120
test eax, eax
jne 0x4049f3
push str.____error_load_value:_LockedExt_n
call fcn.00405140
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
ret
mov eax, dword [eax + 0x10]
push 0
push 0
mov dword [esi + 0x2d0], eax
lea eax, [esi + 0xad4]
push eax
mov dword [eax], 0x800
lea eax, [esi + 0x2d4]
push eax
push 1
push 0
push dword [esi + 0x2cc]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x404a3c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____CryptStringToBinaryA___error__code:__d_n
call fcn.00405140
add esp, 8
pop edi
mov eax, 1
pop esi
pop ebp
ret
Function at 0x404a70
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3f4
mov eax, dword [0x420040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3f4], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 0x3f0]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
jne 0x404ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____Error_call_CommandLineToArgvW__code:__d_n
call fcn.00405140
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406952
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, 1
cmp dword [ebp - 0x3f0], ebx
jle 0x404bc3
push edi
lea edi, [eax + 4]
push esi
nop
push 0x3e8
lea eax, [ebp - 0x3ec]
push 0
push eax
call fcn.00407b00
mov ecx, dword [edi]
add esp, 0xc
movzx eax, word [ecx]
cmp eax, 0x2d
je 0x404b09
cmp eax, 0x2f
jne 0x404bb0
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ecx + 2]
push eax
call fcn.00402c90
add esp, 8
lea edx, [ebp - 0x3ec]
mov eax, str.TARGET
mov esi, 0xa
nop dword [eax]
mov ecx, dword [edx]
cmp ecx, dword [eax]
jne 0x404b8a
add edx, 4
add eax, 4
sub esi, 4
jae 0x404b30
mov cx, word [edx]
cmp cx, word [eax]
jne 0x404b8a
mov eax, dword [edi + 4]
add edi, 4
mov esi, dword [ebp - 0x3f4]
inc ebx
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [eax]
lea ecx, [ecx + 1]
mov byte [esi + ecx + 0xc0], al
mov eax, dword [edi]
cmp word [eax + ecx*2], 0
lea eax, [eax + ecx*2]
jne 0x404b60
cmp byte [esi + ecx + 0xc0], 0x5c
je 0x404b8a
mov byte [esi + ecx + 0xc1], 0x5c
inc ebx
add edi, 4
cmp ebx, dword [ebp - 0x3f0]
jl 0x404ae0
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406952
mov esp, ebp
pop ebp
ret
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406952
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.00406952
mov esp, ebp
pop ebp
ret
Function at 0x4050c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x420040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
lea edi, [esi + 0x28]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x80
push 4
push 0
push 1
push 4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40511f
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push dword [ebp + 0x10]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406952
mov esp, ebp
pop ebp
ret

Function at 0x4051a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x420040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0xc0], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x80
push 4
push 0
push 1
push 4
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
mov dword [ebp - 0xbc], 0
cmp ebx, 0xffffffff
je 0x405285
push 0x28
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
push 0x28
lea eax, [ebp - 0x2c]
push eax
push 0
push 0
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0xb8]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0xbc]
push 0
push eax
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
lea eax, [ebp - 0xb8]
push eax
push ebx
call esi
push 0
lea eax, [ebp - 0xbc]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0xc0]
push ebx
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xbc]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00406952
mov esp, ebp
pop ebp
ret
Function at 0x4052b0
Capabilities:
Terminate process

Disassembly:
push esi
push 0xda0
call fcn.0040b238
push 0xda0
mov esi, eax
push 0
push esi
call fcn.00407b00
call fcn.00402b10
push 0
push esi
call fcn.00402b30
push esi
call fcn.00405090
push esi
call fcn.00404830
add esp, 0x20
test eax, eax
jne 0x4052ff
push str.____Init_error___config_signature_not_found._n
call fcn.00405140
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.00404880
push esi
call fcn.00404a70
add esp, 8
test eax, eax
jne 0x405327
push str.____Error_parsing_commandline_arguments___exiting_n
call fcn.00405140
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.004047e0
push esi
call fcn.00404990
add esp, 8
test eax, eax
jne 0x40534f
push str.____Error_parsing_and_loading_config___exiting._n
call fcn.00405140
add esp, 4
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push esi
call fcn.00405780
push str.___JSON_config_loaded_successfully_n
call fcn.00405140
push esi
call fcn.00404be0
push esi
call fcn.00402660
push str.___All_task_done___unlocker_exiting._n
call fcn.00405140
add esp, 0x14
xor eax, eax
pop esi
ret

Function at 0x4056c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x420040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x48]
push edi
mov edi, dword [ebp + 0xc]
push 0x44
push 0
push eax
call fcn.00407b00
lea eax, [ebp - 0x48]
push eax
push 0
push esi
call fcn.00405c40
add esp, 0x18
test eax, eax
je 0x40576f
push dword [ebp + 0x10]
lea eax, [ebp - 0x48]
push eax
call fcn.00405d70
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x44]
add esp, 8
push eax
push dword [ebp - 0x3c]
call esi
cmp dword [ebp - 0x44], 0x103
jne 0x405733
push 0xffffffffffffffff
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x3c]
call esi
push dword [ebp - 0x38]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
call esi
push dword [ebp - 0x3c]
call esi
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.00405d70
add esp, 8
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x28]
call esi
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.00405620
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00406952
mov esp, ebp
pop ebp
ret
Function at 0x405c40
Capabilities:
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x420040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x44
push 0
push ebx
call fcn.00405500
push 0x44
call fcn.00405450
mov esi, dword [sym.imp.KERNEL32.dll_CreatePipe]
add esp, 0x10
mov dword [ebp - 0x10], 0
xor ecx, ecx
mov dword [ebp - 0x14], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x20], 0xc
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], eax
mov dword [eax], 0x44
mov dword [eax + 0x2c], 1
mov word [eax + 0x30], cx
lea eax, [ebp - 0x20]
push ecx
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call esi
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call esi
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0xc]
or dword [ecx + 0x2c], 0x100
mov dword [ecx + 0x40], eax
lea eax, [ebx + 0xc]
push eax
push ecx
push 0
push 0
push 4
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x40], eax
call esi
push dword [ebp - 0xc]
call esi
test edi, edi
je 0x405d46
push dword [ebx + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x405d44
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebx + 0x20], eax
jmp 0x405d46
xor edi, edi
push dword [ebp - 0x24]
call fcn.004054a0
mov ecx, dword [ebp - 4]
add esp, 4
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00406952
mov esp, ebp
pop ebp
ret

Function at 0x405d70
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x800
mov esi, eax
xor edi, edi
xor ebx, ebx
call fcn.00405450
add esp, 4
mov dword [ebp - 4], eax
test ebx, ebx
je 0x405d9b
test edi, edi
jne 0x405de8
mov edi, dword [ebp + 8]
push 0x800
push eax
lea eax, [edi + 0x24]
push eax
push dword [edi + 0x1c]
call fcn.00405e10
push 0x800
push dword [ebp - 4]
lea ecx, [edi + 0x30]
mov ebx, eax
push ecx
push dword [edi + 0x20]
call fcn.00405e10
add esp, 0x20
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [ebp + 0xc]
ja 0x405de5
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
jmp 0x405d93
mov eax, dword [ebp - 4]
push eax
call fcn.004054a0
add esp, 4
test ebx, ebx
je 0x405e05
test edi, edi
je 0x405e05
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e10
Capabilities:
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x420040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
nop word [eax + eax]
push 0
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0
push 0
push 0
push eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x405e6e
call ebx
mov esi, 1
jmp 0x405ed0
cmp dword [ebp - 8], 0
je 0x405ee1
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x405e96
call ebx
mov esi, 1
jmp 0x405ed0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x405ed0
mov ecx, dword [edi + 4]
cmp ecx, 0x1400000
ja 0x405ed0
add eax, ecx
push eax
push dword [edi]
call fcn.004053c0
push dword [ebp - 0xc]
mov ecx, eax
mov eax, dword [edi + 4]
push dword [ebp - 0x10]
add eax, ecx
mov dword [edi], ecx
push eax
call fcn.004054c0
mov ecx, dword [ebp - 0xc]
add esp, 0x14
add dword [edi + 4], ecx
cmp dword [ebp - 8], 0
je 0x405ee1
mov eax, dword [ebp - 0x14]
test esi, esi
je 0x405e40
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406952
mov esp, ebp
pop ebp
ret

Function at 0x405f40
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x420040]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push ecx
push 0
push 1
push 0
push dword [edx + 4]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x405f9c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.____CryptDecrypt_error__code:__d_n
call fcn.00405140
add esp, 8
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406952
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [esi], eax
xor ecx, ebp
mov eax, 1
pop esi
call fcn.00406952
mov esp, ebp
pop ebp
ret