joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403210
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51f128
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
lea esi, [ecx + 4]
mov edi, 8
cmp dword [esi + 0x18], edi
jb 0x403259
mov eax, dword [esi + 4]
jmp 0x40325c
lea eax, [esi + 4]
push eax
push str.RunHPCmd::RunCommand_cmd___s
call fcn.00419b30
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0040d2f0
sub esp, 0x10
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x84], ebx
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004054a0
lea esi, [esp + 0x3c]
call fcn.0040e240
add esp, 0x1c
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x4032b9
lea eax, [esp + 0x24]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x68], 2
jne 0x403339
cmp esi, ebx
je 0x4032fa
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], edi
jb 0x40330d
mov edx, dword [esp + 0x24]
push edx
call fcn.0042eca7
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x403332
mov eax, dword [esp + 0x40]
push eax
call fcn.0042eca7
add esp, 4
xor eax, eax
jmp 0x4033bd
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov edi, 0x55fd30
mov byte [ecx + 4], bl
call fcn.004054a0
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00428dd0
cmp esi, ebx
je 0x40337f
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 8
jb 0x403393
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042eca7
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x4033b8
mov edx, dword [esp + 0x40]
push edx
call fcn.0042eca7
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042eb95
mov esp, ebp
pop ebp
ret
Function at 0x4033e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51f128
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
lea esi, [ecx + 4]
mov edi, 8
cmp dword [esi + 0x18], edi
jb 0x403429
mov eax, dword [esi + 4]
jmp 0x40342c
lea eax, [esi + 4]
push eax
push str.RunDHangCmd::RunCommand_cmd___s
call fcn.00419b30
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0040d2f0
sub esp, 0x10
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x84], ebx
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004054a0
lea esi, [esp + 0x3c]
call fcn.0040e240
add esp, 0x1c
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x403489
lea eax, [esp + 0x24]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x68], 2
jne 0x403509
cmp esi, ebx
je 0x4034ca
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], edi
jb 0x4034dd
mov edx, dword [esp + 0x24]
push edx
call fcn.0042eca7
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x403502
mov eax, dword [esp + 0x40]
push eax
call fcn.0042eca7
add esp, 4
xor eax, eax
jmp 0x40358d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov edi, 0x55fd30
mov byte [ecx + 4], bl
call fcn.004054a0
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00428dd0
cmp esi, ebx
je 0x40354f
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 8
jb 0x403563
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042eca7
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x403588
mov edx, dword [esp + 0x40]
push edx
call fcn.0042eca7
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042eb95
mov esp, ebp
pop ebp
ret
Function at 0x4035b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51f128
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
lea esi, [ecx + 4]
mov edi, 8
cmp dword [esi + 0x18], edi
jb 0x4035f9
mov eax, dword [esi + 4]
jmp 0x4035fc
lea eax, [esi + 4]
push eax
push str.RunDHCmd::RunCommand_cmd___s
call fcn.00419b30
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0040d2f0
sub esp, 0x10
xor ebx, ebx
mov ecx, esp
mov dword [esp + 0x84], ebx
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov byte [ecx + 4], bl
call fcn.004054a0
lea esi, [esp + 0x3c]
call fcn.0040e240
add esp, 0x1c
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x403659
lea eax, [esp + 0x24]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
mov dword [esp + 0x1c], eax
cmp eax, ebx
mov byte [esp + 0x68], 2
jne 0x4036d9
cmp esi, ebx
je 0x40369a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], edi
jb 0x4036ad
mov edx, dword [esp + 0x24]
push edx
call fcn.0042eca7
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x4036d2
mov eax, dword [esp + 0x40]
push eax
call fcn.0042eca7
add esp, 4
xor eax, eax
jmp 0x40375d
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x60]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push edx
mov edi, 0x55fd30
mov byte [ecx + 4], bl
call fcn.004054a0
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00428dd0
cmp esi, ebx
je 0x40371f
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 8
jb 0x403733
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042eca7
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x403758
mov edx, dword [esp + 0x40]
push edx
call fcn.0042eca7
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.0042eb95
mov esp, ebp
pop ebp
ret
Function at 0x403a30
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51fbab
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov eax, ecx
cmp dword [eax + 0x1c], 8
jb 0x403a7d
mov eax, dword [eax + 8]
jmp 0x403a80
add eax, 8
push eax
push str.CRunCloudTaskCmd_cmd___s
call fcn.00419b30
xor ebx, ebx
push 0x206
lea eax, [esp + 0x112]
push ebx
push eax
mov word [esp + 0x118], bx
call fcn.00435740
add esp, 0x14
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SmartCloud]
mov word [esp + eax + 0x104], cx
add eax, 2
cmp cx, bx
jne 0x403ab0
lea edi, [esp + 0x104]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x403ad1
mov ecx, 6
mov esi, 0x55fe6c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x104]
push ecx
push 1
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edx, edx
cmp eax, 0xb7
setne dl
mov eax, edx
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x320], ebx
jne 0x403b3c
cmp esi, ebx
je 0x403b35
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403bbd
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xc
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.RunCloudTask
mov byte [ecx + 4], bl
call fcn.004053d0
call fcn.00408680
add esp, 0x20
lea eax, [esp + 0x1c]
push eax
call fcn.0042bd70
lea ecx, [esp + 0xfc]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
push 0x42be50
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x100], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x1c]
call fcn.0042bde0
cmp esi, ebx
je 0x403bb8
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.0042eb95
mov esp, ebp
pop ebp
ret
Function at 0x403bf0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51fb66
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov eax, ecx
cmp dword [eax + 0x1c], 8
jb 0x403c3d
mov eax, dword [eax + 8]
jmp 0x403c40
add eax, 8
push eax
push str.CRunOnceTaskCmd_cmd___s
call fcn.00419b30
xor ebx, ebx
push 0x206
lea eax, [esp + 0x112]
push ebx
push eax
mov word [esp + 0x118], bx
call fcn.00435740
add esp, 0x14
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SmartCloud]
mov word [esp + eax + 0x104], cx
add eax, 2
cmp cx, bx
jne 0x403c70
lea eax, [esp + 0x104]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x403c91
mov ecx, dword [0x55fe3c]
mov edx, dword [0x55fe40]
mov dword [eax], ecx
mov ecx, dword [0x55fe44]
mov dword [eax + 4], edx
mov edx, dword [0x55fe48]
mov dword [eax + 8], ecx
mov ecx, dword [0x55fe4c]
mov dword [eax + 0xc], edx
mov edx, dword [0x55fe50]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x104]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x320], ebx
jne 0x403d23
cmp edi, ebx
je 0x403d1c
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403dd6
call fcn.004024a0
test al, al
je 0x403d31
call fcn.00402500
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xb
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.RunOnceTask
mov byte [ecx + 4], bl
call fcn.004053d0
call fcn.00408680
add esp, 0x20
lea edx, [esp + 0x1c]
push edx
call fcn.0042bd70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x320], 1
call fcn.0042c790
lea esi, [esp + 0x1c]
call fcn.0042cc70
test al, al
je 0x403db6
push 1
mov eax, esi
push eax
lea ecx, [esp + 0x34]
call fcn.0042bf60
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x34]
lea ecx, [esp + 0x70]
call fcn.004020b0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x54]
lea ecx, [esp + 0x90]
call fcn.004020b0
lea eax, [esp + 0x1c]
call fcn.0042bde0
cmp edi, ebx
je 0x403dd1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.0042eb95
mov esp, ebp
pop ebp
ret
Function at 0x403e00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51fb66
mov eax, dword fs:[0]
push eax
sub esp, 0x308
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x300], eax
push ebx
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x318]
mov dword fs:[0], eax
mov eax, ecx
cmp dword [eax + 0x1c], 8
jb 0x403e4d
mov eax, dword [eax + 8]
jmp 0x403e50
add eax, 8
push eax
push str.CRunDateTaskCmd_cmd___s
call fcn.00419b30
xor ebx, ebx
push 0x206
lea eax, [esp + 0x112]
push ebx
push eax
mov word [esp + 0x118], bx
call fcn.00435740
add esp, 0x14
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SmartCloud]
mov word [esp + eax + 0x104], cx
add eax, 2
cmp cx, bx
jne 0x403e80
lea eax, [esp + 0x104]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x403ea1
mov ecx, dword [0x55fe54]
mov edx, dword [0x55fe58]
mov dword [eax], ecx
mov ecx, dword [0x55fe5c]
mov dword [eax + 4], edx
mov edx, dword [0x55fe60]
mov dword [eax + 8], ecx
mov ecx, dword [0x55fe64]
mov dword [eax + 0xc], edx
mov edx, dword [0x55fe68]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0x104]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [esp + 0x10], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, ecx
mov dword [esp + 0x14], eax
cmp eax, ebx
mov dword [esp + 0x320], ebx
jne 0x403f33
cmp edi, ebx
je 0x403f2c
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403fd8
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xb
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push str.RunDateTask
mov byte [ecx + 4], bl
call fcn.004053d0
call fcn.00408680
add esp, 0x20
lea edx, [esp + 0x1c]
push edx
call fcn.0042bd70
lea ecx, [esp + 0x1c]
mov byte [esp + 0x320], 1
call fcn.0042c790
lea esi, [esp + 0x1c]
call fcn.0042cc70
test al, al
je 0x403fb8
push 1
mov eax, esi
push eax
lea ecx, [esp + 0x34]
call fcn.0042bf60
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x34]
lea ecx, [esp + 0x70]
call fcn.004020b0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x54]
lea ecx, [esp + 0x90]
call fcn.004020b0
lea eax, [esp + 0x1c]
call fcn.0042bde0
cmp edi, ebx
je 0x403fd3
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [esp + 0x318]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x300]
xor ecx, esp
call fcn.0042eb95
mov esp, ebp
pop ebp
ret
Function at 0x409330
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x51e878
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32
mov dword [0x57792c], eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.IsWow64Process
push edi
call esi
push str.Wow64DisableWow64FsRedirection
push edi
mov dword [esp + 0x18], eax
call esi
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [esp + 0x1c], eax
call esi
lea edi, [esp + 0x10]
mov dword [esp + 0x18], eax
call fcn.0040bd90
test al, al
je 0x40941b
push str.WOW64FSRedirHolder_true
call fcn.004198d0
add esp, 4
push str.kernel32
call ebx
mov edi, eax
push str.IsWow64Process
push edi
call esi
push str.Wow64DisableWow64FsRedirection
push edi
mov dword [esp + 0x24], eax
call esi
push str.Wow64RevertWow64FsRedirection
push edi
mov dword [esp + 0x28], eax
call esi
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4093ee
lea ecx, [esp + 0x28]
push ecx
call eax
mov dword [esp + 0x34], 0
call fcn.00404590
push eax
call fcn.00401230
mov dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x20], 0
je 0x409433
mov edx, dword [esp + 0x28]
push edx
call dword [esp + 0x28]
jmp 0x409433
push str.WOW64FSRedirHolder_false
call fcn.004198d0
add esp, 4
call fcn.00404590
push eax
call fcn.00401230
mov ecx, dword [esp + 0x44]
lea ebx, [esp + 0x3c]
call fcn.004023c0
xor eax, eax
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x28
ret 0x10

Function at 0x40a430
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a447
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a478
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40a474
cmp esi, eax
jae 0x40a478
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40a464
cmp esi, eax
jb 0x40a47e
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x40bdf0
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
mov esi, eax
je 0x40bf69
lea ecx, [edi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov edx, ecx
lea ecx, [edi*8]
sub ecx, edx
sub ecx, 2
je 0x40be3a
sub ecx, 2
jne 0x40be3d
add eax, 2
jmp 0x40be3d
add eax, 3
add eax, 1
cmp dword [ebx], eax
jge 0x40be50
pop edi
mov dword [ebx], eax
pop esi
mov eax, 0xfffffff0
pop ebx
pop ecx
ret
mov ecx, dword [esp + 0x18]
mov eax, 0x55555556
imul edi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [eax + eax*2]
xor edx, edx
test eax, eax
push ebp
jle 0x40befe
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
add edx, 1
lea eax, [edx + edx*2]
mov dword [esp + 0x10], eax
movzx eax, byte [esi]
movzx ebp, byte [esi + 1]
mov ebx, eax
sar ebx, 2
add esi, 1
movzx edi, byte [esi + 1]
and ebx, 0x3f
mov bl, byte [ebx + 0x561168]
mov byte [ecx], bl
add esi, 1
shl eax, 4
mov ebx, ebp
sar ebx, 4
add ebx, eax
and ebx, 0x3f
movzx eax, byte [ebx + 0x561168]
mov byte [ecx + 1], al
add ecx, 1
mov eax, edi
sar eax, 6
lea eax, [eax + ebp*4]
and eax, 0x3f
movzx eax, byte [eax + 0x561168]
add ecx, 1
mov byte [ecx], al
and edi, 0x3f
movzx eax, byte [edi + 0x561168]
add ecx, 1
mov byte [ecx], al
add esi, 1
add ecx, 1
sub edx, 1
jne 0x40be86
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp edx, edi
jge 0x40bf5d
movzx eax, byte [esi]
lea ebp, [edx + 1]
cmp ebp, edi
jge 0x40bf12
movzx esi, byte [esi + 1]
jmp 0x40bf14
xor esi, esi
mov edx, eax
sar edx, 2
and edx, 0x3f
mov dl, byte [edx + 0x561168]
mov byte [ecx], dl
mov edx, esi
sar edx, 4
shl eax, 4
add edx, eax
and edx, 0x3f
mov al, byte [edx + 0x561168]
add ecx, 1
mov byte [ecx], al
add ecx, 1
cmp ebp, edi
jge 0x40bf51
and esi, 0xf
mov dl, byte [esi*4 + 0x561168]
mov byte [ecx], dl
jmp 0x40bf54
mov byte [ecx], 0x3d
add ecx, 1
mov byte [ecx], 0x3d
add ecx, 1
mov eax, ecx
sub eax, dword [esp + 0x1c]
pop ebp
mov dword [ebx], eax
mov byte [ecx], 0
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40c5d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ecx
push ebp
push esi
push edi
mov edi, eax
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c5e0
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0042de18
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40c615
xor edi, edi
test ebp, ebp
mov byte [esp + 0xf], 1
jl 0x40c67d
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40c65c
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x40c656
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40c677
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x40c636
pop ebx
push esi
call fcn.0042f33e
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
mov byte [esp + 0x13], 0
pop ebx
push esi
call fcn.0042f33e
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x40ca40
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x51d7a6
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x56a338]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56a338]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor ebx, ebx
cmp edx, ebx
je 0x40cc09
mov eax, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea esi, [eax + 2]
jmp 0x40caa0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40caa0
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x1c]
call fcn.004021f0
mov eax, esi
push eax
mov dword [esp + 0x28c], ebx
call fcn.0040d530
add esp, 4
push 0x228
lea ecx, [esp + 0x54]
push ebx
push ecx
mov dword [esp + 0x58], ebx
call fcn.00435740
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40cafc
cmp dword [esp + 0x2c], 8
jmp 0x40cbfa
lea eax, [esp + 0x4c]
push eax
push ebp
mov dword [esp + 0x54], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40cbea
jmp 0x40cb20
lea eax, [esp + 0x70]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
lea edx, [eax + 2]
jmp 0x40cb40
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40cb40
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x74]
push ecx
lea esi, [esp + 0x38]
call fcn.004021f0
mov edx, esi
push edx
mov byte [esp + 0x28c], 1
call fcn.0040d530
mov eax, dword [esp + 0x1c]
mov esi, 8
add esp, 4
cmp dword [esp + 0x2c], esi
jae 0x40cb84
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x34]
call fcn.00404b00
test eax, eax
je 0x40cbc9
mov byte [esp + 0x288], bl
cmp dword [esp + 0x48], esi
jb 0x40cbb4
mov eax, dword [esp + 0x34]
push eax
call fcn.0042eca7
add esp, 4
lea ecx, [esp + 0x4c]
push ecx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40cb20
jmp 0x40cbef
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x54]
lea ecx, [esp + 0x30]
call fcn.004022c0
lea ecx, [esp + 0x14]
call fcn.004022c0
mov eax, esi
jmp 0x40cc0b
mov esi, 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], esi
jb 0x40cc09
mov edx, dword [esp + 0x18]
push edx
call fcn.0042eca7
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x280]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x268]
xor ecx, esp
call fcn.0042eb95
add esp, 0x278
ret