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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55aafe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00406970
mov dword [edi], eax
lea esi, [edi + 0x10]
mov dword [ebp - 4], 0
mov ecx, esi
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00406970
mov dword [esi], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0xf
mov byte [edi + 0x1c], 0
lea eax, [edi + 0x38]
mov byte [ebp - 4], 2
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 8], 0
mov eax, edi
mov dword [edi + 0xc], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x18], 0
mov byte [edi + 0x50], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x45f430
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x24], 0
jne 0x45f4ca
push str.dwmapi.dll
call fcn.004368c0
add esp, 4
mov dword [esi + 0x20], eax
test eax, eax
je 0x45f4c6
push str.DwmInvalidateIconicBitmaps
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmSetIconicThumbnail
push dword [esi + 0x20]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmSetIconicLivePreviewBitmap
push dword [esi + 0x20]
mov dword [esi + 8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmSetWindowAttribute
push dword [esi + 0x20]
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmGetWindowAttribute
push dword [esi + 0x20]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmExtendFrameIntoClientArea
push dword [esi + 0x20]
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DwmDefWindowProc
push dword [esi + 0x20]
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esi + 0x1c], eax
mov byte [esi + 0x24], 1
pop esi
ret
Function at 0x465600
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5555a0
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 8
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0xc], 0
call fcn.00406909
mov edi, eax
add esp, 4
test edi, edi
je 0x4656b2
xorps xmm0, xmm0
movq qword [edi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004656ca
mov dword [edi + 4], eax
add esp, 4
mov dword [esi + 0x30], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x30], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x469a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x557a59
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x18], 0
mov ecx, esi
push eax
push 0x569908
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], esi
mov word [esi], ax
call fcn.00408740
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
push 0
push 0
push 0x5707ac
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
js 0x469b46
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x469b46
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x469b25
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00408740
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x46c840
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
push edi
mov esi, ecx
lea edi, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46c850
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 8
Function at 0x46ead0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bd70
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], 0
mov dword [edi], 0x5740fc
test eax, eax
je 0x46ec33
push 0
push 1
push 0
push eax
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
push 0x1388
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x46eb50
push 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0xffffffffffffffff
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 0x2c]
mov esi, dword [eax]
cmp esi, eax
je 0x46ebf7
mov ebx, dword [esi + 8]
mov dword [ebp - 0x18], ebx
cmp dword [ebx + 4], 0
je 0x46ebe1
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov eax, dword [ebp - 0x10]
test al, 1
je 0x46eb94
and eax, 0xfffffffe
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x10], eax
call fcn.0048d350
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test al, 2
je 0x46ebb4
and eax, 0xfffffffd
lea ecx, [ebp - 0xc8]
mov dword [ebp - 0x10], eax
call fcn.0048d350
push dword [ebx]
mov ecx, dword [ebx + 4]
call fcn.0046ecb0
mov ebx, dword [ebx + 4]
mov eax, dword [ebx + 0x10]
mov edi, dword [eax + 4]
mov ecx, edi
call dword [0x5677a4]
lea ecx, [ebx + 0x10]
call edi
mov ebx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov dword [ebx + 4], 0
push 8
push ebx
call fcn.004097e6
mov esi, dword [esi]
add esp, 8
cmp esi, dword [edi + 0x2c]
jne 0x46eb66
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [edi + 0x28]
test ebx, ebx
je 0x46ec1a
mov eax, dword [ebx]
push 1
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5677a4]
mov ecx, ebx
call esi
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [edi + 4], 0
je 0x46ec33
lea eax, [edi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, dword [edi + 0x34]
lea ecx, [edi + 0x34]
push eax
mov dword [ebp - 4], 0
push dword [eax]
lea eax, [ebp - 0x14]
push eax
call fcn.0046e3a0
push 0x14
push dword [edi + 0x34]
call fcn.004097e6
mov eax, dword [edi + 0x2c]
add esp, 8
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [edi + 0x2c]
mov dword [eax + 4], eax
mov dword [edi + 0x30], 0
mov eax, dword [edi + 0x2c]
cmp ecx, eax
je 0x46ec8a
mov esi, dword [ecx]
push 0xc
push ecx
call fcn.004097e6
mov eax, dword [edi + 0x2c]
add esp, 8
mov ecx, esi
cmp esi, eax
jne 0x46ec74
push 0xc
push eax
call fcn.004097e6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ed70
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bd90
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], 0
call fcn.004493b0
test al, al
je 0x46ede6
push 0x1388
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x46edd2
cmp dword [ebp - 0x14], 0x103
jne 0x46ede6
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push 0xffffffffffffffff
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esi + 0x24]
test edi, edi
je 0x46ee08
mov ecx, edi
call fcn.0046f0b0
push 0x20
push edi
call fcn.004097e6
add esp, 8
mov dword [esi + 0x24], 0
xor edi, edi
mov eax, dword [esi + 0x30]
mov dword [ebp - 4], 0
test eax, eax
je 0x46ee29
push eax
call fcn.004097f9
mov dword [esi + 0x30], 0
add esp, 4
mov edi, dword [esi + 0x24]
test edi, edi
je 0x46ee3f
mov ecx, edi
call fcn.0046f0b0
push 0x20
push edi
call fcn.004097e6
add esp, 8
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], 1
test eax, eax
je 0x46ee70
cmp eax, 0xffffffff
je 0x46ee70
call fcn.00411f30
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46ee69
call fcn.004013a0
mov dword [esi + 0x1c], 0
mov eax, dword [esi + 0x18]
mov dword [ebp - 4], 2
test eax, eax
je 0x46eea1
cmp eax, 0xffffffff
je 0x46eea1
call fcn.00411f30
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46ee9a
call fcn.004013a0
mov dword [esi + 0x18], 0
mov eax, dword [esi + 0x14]
mov dword [ebp - 4], 3
test eax, eax
je 0x46eed2
cmp eax, 0xffffffff
je 0x46eed2
call fcn.00411f30
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46eecb
call fcn.004013a0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], 4
test eax, eax
je 0x46ef03
cmp eax, 0xffffffff
je 0x46ef03
call fcn.00411f30
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x46eefc
call fcn.004013a0
mov dword [esi + 0x10], 0
mov ecx, esi
call fcn.00449200
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x4706a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55bf56
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x30]
mov byte [edi], 0
mov dword [edi + 4], 0
mov ecx, esi
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov byte [edi + 0x2c], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00406970
mov dword [esi], eax
lea esi, [edi + 0x54]
mov dword [edi + 0x50], 0
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00406970
mov dword [esi], eax
lea eax, [edi + 0x38]
mov byte [ebp - 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [edi + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x472a30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55c16c
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5c7cec]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x38]
mov ecx, esi
mov dword [esi], 0
mov dword [ebp - 0x14], esi
mov dword [esi + 4], 0
call fcn.00406970
mov dword [esi], eax
xor eax, eax
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 7
mov dword [ebp - 4], 0
mov word [edi + 0x40], ax
xor ecx, ecx
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], 7
mov word [edi + 0x58], cx
mov dword [edi + 0x80], ecx
mov dword [edi + 0x84], 7
mov word [edi + 0x70], ax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
lea eax, [edi + 0x14]
push eax
mov byte [ebp - 4], 3
mov dword [edi + 4], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x2c], ecx
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], ecx
mov dword [edi], ecx
mov byte [edi + 0xc], cl
mov byte [edi + 0x88], cl
mov dword [edi + 0x8c], ecx
mov dword [edi + 0x90], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x472b19
mov edx, esi
lea ecx, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x472b00
sub edx, ecx
lea ecx, [edi + 0x40]
sar edx, 1
push edx
push esi
call fcn.00408740
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x472b3e
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x472b25
sub edx, ecx
lea ecx, [edi + 0x58]
sar edx, 1
push edx
push esi
call fcn.00408740
call fcn.00472630
cmp eax, 0x68
jl 0x472b7d
push 0x569a5c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
je 0x472b7d
push str.GetNamedPipeServerProcessId
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNamedPipeClientProcessId
push esi
mov dword [edi + 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0x90], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4735c0
Capabilities:
Read pipe
Write pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
push esi
mov dword [ebp - 0x14], eax
xor esi, esi
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
test ebx, ebx
je 0x4736ff
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x47365f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x4736ea
push dword [ebp + 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x4736ea
push esi
push 0x190000
push 3
push esi
push 3
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4736ea
push edi
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 3
jne 0x4736de
cmp dword [ebp + 0x24], esi
je 0x4736aa
mov ebx, dword [ebp - 8]
mov ebx, dword [ebx + 0x8c]
test ebx, ebx
je 0x4736aa
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push edi
mov ecx, ebx
call dword [0x5677a4]
call ebx
test eax, eax
je 0x4736aa
mov eax, dword [ebp - 8]
test eax, eax
je 0x4736aa
cmp eax, dword [ebp + 0x24]
je 0x4736aa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 8], eax
jne 0x4736de
push 0
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 2
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x4736de
push 0
push dword [ebp - 0x10]
push dword [ebp + 0x18]
push dword [ebp - 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_TransactNamedPipe]
mov esi, eax
cmp edi, 0xffffffff
je 0x4736ea
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040154f
mov esp, ebp
pop ebp
ret 0x20
Function at 0x473c30
Capabilities:
Check if file exists
Check mutex on windows
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push 0x5cd774
push 0x208
call fcn.0041e02e
mov esi, eax
add esp, 8
test esi, esi
je 0x473dfe
push edi
push 0x208
push 0
push esi
call fcn.005290f0
push 0x20a
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.005290f0
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.005290f0
add esp, 0x24
mov dword [ebp - 0x420], 0
lea eax, [ebp - 0x210]
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push 0x105
push eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x420]
push eax
push 0x105
lea eax, [ebp - 0x41c]
push eax
push 0x569bac
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x473d32
mov edi, dword [ebp - 0x420]
xor ecx, ecx
nop dword [eax]
cmp ecx, 0x103
je 0x473d2c
mov eax, 0xcccccccd
mul edi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub edi, eax
mov ax, word [edi*2 + str.0123456789]
mov edi, edx
mov word [esi + ecx*2], ax
inc ecx
test edi, edi
jne 0x473d00
xor eax, eax
mov word [esi + ecx*2], ax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x10
jge 0x473d6f
push str.GlobalARM_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x473ddb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.thsnYaVieBoda
push 0x104
push esi
call fcn.0043d120
mov edi, str..pipe32B6B37A_4A7D_4e00_95F2_6F0BF3DE3E00
mov edx, 0x104
mov ecx, ebx
sub edi, ebx
nop dword [eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x473d9e
movzx eax, word [edi + ecx]
test ax, ax
je 0x473d9e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x473d80
test edx, edx
lea eax, [ecx - 2]
pop edi
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x473dfe
push esi
push 0x104
push ebx
call fcn.0043d120
test eax, eax
js 0x473dfe
push esi
call fcn.0041e6ef
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x473d5f
cmp dword [ebp + 0xc], 0
jne 0x473d5f
push str.TsnIorcAeBoda
jmp 0x473d64
mov ecx, dword [ebp - 4]
mov eax, 8
pop esi
xor ecx, ebp
pop ebx
call fcn.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x473e20
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
push esi
push 0x190000
push 3
push esi
push esi
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x473e74
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0xd
pop esi
cmove eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret
push 0
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 3
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x473ea8
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x473ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 0xd
test esi, esi
cmove esi, eax
jmp 0x473f50
cmp dword [ebp + 0x10], esi
je 0x473f50
push edi
mov dword [ebp - 0xc], esi
xor edi, edi
nop
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 4
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x473f18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, 0xd
test esi, esi
cmove esi, eax
cmp esi, 0xe8
jne 0x473f23
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x473ed0
jmp 0x473f23
cmp dword [ebp - 8], 4
je 0x473f27
mov esi, 0xd
test esi, esi
jne 0x473f4f
mov ecx, dword [ebp + 0xc]
xor edx, edx
mov eax, dword [ebp - 0xc]
inc ecx
cmp eax, ecx
mov dword [ebp - 8], eax
push edx
lea eax, [ebp - 0x10]
mov esi, 0xd
push eax
push 4
lea eax, [ebp - 8]
cmove esi, edx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040154f
mov esp, ebp
pop ebp
ret
Function at 0x47ba70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55cad6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x5c7cec]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x430], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.005290f0
add esp, 0xc
mov dword [ebp - 0x420], 0
push 0x60
push 0
push edi
mov byte [ebp - 4], 1
call fcn.0047ebd0
mov esi, eax
mov dword [ebp - 0x428], esi
test esi, esi
jne 0x47bb2e
push 2
push eax
push edi
call fcn.0047ebd0
mov esi, eax
mov dword [ebp - 0x428], eax
test esi, esi
jne 0x47bb2e
call fcn.004791b0
mov edi, eax
jmp 0x47bc45
push dword [ebp - 0x424]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x47bb4c
call fcn.004791b0
jmp 0x47bc38
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x47bb6a
call fcn.004791b0
jmp 0x47bc38
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x42c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x47bb8b
mov edi, 0x8007000e
jmp 0x47bc3a
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x47bc7e
jb 0x47bba9
cmp eax, 0xffffffff
ja 0x47bc7e
cmp eax, 0x400
jbe 0x47bbbe
push eax
lea ecx, [ebp - 0x420]
call fcn.00479030
jmp 0x47bbe4
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
jmp 0x47bbe4
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x47bbfb
mov edi, 0x8007000e
jmp 0x47bc3a
push edi
push dword [ebp - 0x420]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x47bc1b
call fcn.004791b0
jmp 0x47bc38
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.0047b8d0
mov edi, eax
test esi, esi
je 0x47bc45
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x47bc5e
lea ecx, [ebp - 0x420]
call fcn.0047a230
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040154f
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.004791f0
int3