joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43014c]
jne 0x401a7a
repz ret
jmp fcn.0040251b

Function at 0x40b00e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43014c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040408b
and dword [ebp - 0x14], 0
cmp dword [0x432cf8], 0
mov dword [ebp - 0x18], eax
jne 0x40b0c1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b169
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b169
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x432cf8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x432cfc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x432d00], eax
call edi
push eax
call esi
mov dword [0x432d08], eax
test eax, eax
je 0x40b0c1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x432d04], eax
mov eax, dword [0x432d04]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b11a
cmp dword [0x432d08], ecx
je 0x40b11a
push eax
call esi
push dword [0x432d08]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b11a
test ebx, ebx
je 0x40b11a
call edi
test eax, eax
je 0x40b111
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b111
test byte [ebp - 8], 1
jne 0x40b11a
or dword [ebp + 0x10], 0x200000
jmp 0x40b14d
mov eax, dword [0x432cfc]
cmp eax, dword [ebp - 0x18]
je 0x40b14d
push eax
call esi
test eax, eax
je 0x40b14d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b14d
mov eax, dword [0x432d00]
cmp eax, dword [ebp - 0x18]
je 0x40b14d
push eax
call esi
test eax, eax
je 0x40b14d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x432cf8]
call esi
test eax, eax
je 0x40b169
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b16b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401a70
leave
ret
Function at 0x421e50
Capabilities:
Get geographical location

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jle 0x421ede
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_IsBadStringPtrA]
cmp dword [esp + 0x18], 0x2d
jne 0x421e9c
push 0
push str.tabukojugacefofehevugijumapo_lezegiyoritatureguhikihubumuw_xaxeharufutogokurulumifadasovac_vubecifuwibugawiculedodov_cezotoburosuhipijavor
call edi
push str.fidodekodinifobuyox
push str.mayuretubayazihexe
push str.fetodidibamonasuyifiluhib
push str.vizuzecizeyasufuhizosusi
call ebx
push 0
call ebp
call fcn.00421da0
mov ecx, dword [esp + 0x14]
xor byte [esi + ecx], al
cmp dword [esp + 0x18], 0xf
jne 0x421ed4
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push str.lavenoxatorav
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCalendarInfoA]
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
inc esi
cmp esi, dword [esp + 0x18]
jl 0x421e72
pop edi
pop ebp
pop ebx
cmp dword [esp + 0xc], 0x2d
pop esi
jne 0x421efa
mov dword [0x433a08], 0xa62e7790
mov dword [0x433a0c], 0xffffffff
ret
Function at 0x4222a0
Capabilities:
Access the windows event log
Set file attributes

Disassembly:
mov eax, dword [0x4339fc]
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
mov ebp, 0x1519a5
lea esp, [esp]
mov dword [0x433664], 0x8e46a7b8
cmp eax, 0x3dc
jne 0x4222ea
push 0
push str.gajaracuvegipozatoxesom
call esi
push str.kimezufiyutodojaxejuweg
push 0
push 0
call edi
mov eax, dword [0x4339fc]
dec ebp
jne 0x4222c0
mov edi, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
xor esi, esi
mov ebp, 0xec58acac
lea ebx, [ebx]
cmp eax, 0x997
jne 0x422312
push 0
push 0
call edi
mov eax, dword [0x4339fc]
cmp esi, 0x846373
jne 0x422329
mov eax, dword [0x431ad0]
add eax, 0xa231
mov dword [0x4339fc], eax
cmp eax, 0x141
jne 0x422340
mov dword [0x433238], ebp
mov dword [0x43323c], 0xffffffff
inc esi
cmp esi, 0x123c962
jl 0x422300
call fcn.00421f40
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
Function at 0x401090
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.IsWow64Process
push esi
call edi
push str.Wow64DisableWow64FsRedirection
push esi
mov dword [esp + 0x10], eax
call edi
push str.Wow64RevertWow64FsRedirection
push esi
mov dword [esp + 0x14], eax
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4010db
lea ecx, [esp + 0x14]
push ecx
call eax
mov edx, dword [esp + 0x1c]
push edx
push 0
push str.UpOnlineDate
push str.Setting
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp dword [esp + 0xc], 0
mov esi, eax
je 0x401104
mov eax, dword [esp + 0x14]
push eax
call dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret

Function at 0x401110
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
push esi
push edi
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.IsWow64Process
push esi
call edi
push str.Wow64DisableWow64FsRedirection
push esi
mov dword [esp + 0x10], eax
call edi
push str.Wow64RevertWow64FsRedirection
push esi
mov dword [esp + 0x14], eax
call edi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40115b
lea ecx, [esp + 0x14]
push ecx
call eax
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push 0x104
push eax
mov eax, dword [esp + 0x28]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp dword [esp + 0xc], 0
mov esi, eax
je 0x401191
mov ecx, dword [esp + 0x14]
push ecx
call dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
add esp, 0x10
ret
Function at 0x401230
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x51c086
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x240], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x569338]
xor eax, esp
push eax
lea eax, [esp + 0x258]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x268]
mov ecx, 0xe
mov esi, str.identifierBegin:abcdefghijklmnopqrstuvwxyz:identifierEnd
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
push 0x104
lea eax, [esp + 0x50]
push eax
push 0
movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x4c]
push 0x5c
push ecx
call fcn.0042d094
lea edx, [esp + 0x54]
mov esi, eax
push 0x2e
push edx
add esi, 2
call fcn.0042d094
add esp, 0x10
test esi, esi
mov edi, eax
je 0x4012df
test edi, edi
je 0x4012df
push 0x208
lea ebx, [ebp + 0x104]
push 0
push ebx
call fcn.00433df0
sub edi, esi
sar edi, 1
push edi
push esi
push ebx
call fcn.0042d0c4
add esp, 0x18
lea eax, [esp + 0x4c]
push 0x5c
push eax
call fcn.0042d094
mov word [eax + 2], 0
lea eax, [esp + 0x54]
add esp, 8
lea edx, [eax + 2]
jmp 0x401300
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401300
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x50]
lea edi, [ebp + 0x30c]
push ecx
mov esi, edi
call fcn.004021f0
push edi
mov ebx, str.SCSvcInfo.ini
lea esi, [esp + 0x34]
call fcn.00401c90
add esp, 4
push 0xffffffffffffffff
add ebp, 0x328
push 0
mov ecx, ebp
mov dword [esp + 0x268], 0
call fcn.004020b0
mov esi, 8
mov dword [esp + 0x260], 0xffffffff
cmp dword [esp + 0x48], esi
jb 0x401373
mov edx, dword [esp + 0x34]
push edx
call fcn.0042d197
add esp, 4
cmp dword [ebp + 0x18], esi
jb 0x40137d
mov eax, dword [ebp + 4]
jmp 0x401380
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4013c7
push edi
mov ebx, str.SCOverlayInfo.ini
lea esi, [esp + 0x18]
call fcn.00401c90
add esp, 4
push 0xffffffffffffffff
push 0
mov ecx, ebp
mov dword [esp + 0x268], 1
call fcn.004020b0
cmp dword [esp + 0x2c], 8
jb 0x4013c7
mov eax, dword [esp + 0x18]
push eax
call fcn.0042d197
add esp, 4
cmp dword [edi + 0x18], 8
jb 0x4013d2
mov edi, dword [edi + 4]
jmp 0x4013d5
add edi, 4
push edi
push str.m_strConfigPath_path___s
call fcn.00418680
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x258]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x240]
xor ecx, esp
call fcn.0042d085
add esp, 0x250
ret 4
Function at 0x4014d0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x210
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x324], 8
mov esi, edx
mov dword [esp + 0x10], ebx
jb 0x401503
mov eax, dword [edi + 0x310]
jmp 0x401509
lea eax, [edi + 0x310]
push str.SCSvcInfo.ini
push eax
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.0042d101
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
je 0x40155e
lea eax, [esp + 0x14]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401547
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
jmp 0x4015dc
cmp dword [edi + 0x324], 8
jb 0x40156f
mov edi, dword [edi + 0x310]
jmp 0x401575
add edi, 0x310
push str.SCOverlayInfo.ini
push edi
lea eax, [esp + 0x1c]
push str._s_s
push eax
call fcn.0042d101
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
call ebp
test eax, eax
lea eax, [esp + 0x14]
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], ebx
mov word [esi + 4], bx
lea edx, [eax + 2]
je 0x4015c7
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4015b0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x18]
push edx
jmp 0x4015dc
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4015c7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004021f0
mov ecx, dword [esp + 0x21c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042d085
add esp, 0x210
ret

Function at 0x401c90
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x51bfc8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push edi
mov eax, dword [0x569338]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x38]
xor edi, edi
push 0xffffffffffffffff
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], edi
mov word [esp + 0x18], di
call fcn.004020b0
mov eax, ebx
mov dword [esp + 0x30], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401ce4
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [esp + 0x14]
call fcn.00401d70
push 0xffffffffffffffff
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push edi
mov ecx, esi
mov word [esi + 4], di
call fcn.004020b0
cmp dword [esp + 0x24], 8
jb 0x401d2a
mov eax, dword [esp + 0x10]
push eax
call fcn.0042d197
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x2c
ret
Function at 0x402fe0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51d588
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x569338]
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 0x403029
mov eax, dword [esi + 4]
jmp 0x40302c
lea eax, [esi + 4]
push eax
push str.RunHPCmd::RunCommand_cmd___s
call fcn.00418900
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0040cae0
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.004052f0
lea esi, [esp + 0x3c]
call fcn.0040d910
add esp, 0x1c
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x403089
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 0x403109
cmp esi, ebx
je 0x4030ca
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], edi
jb 0x4030dd
mov edx, dword [esp + 0x24]
push edx
call fcn.0042d197
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x403102
mov eax, dword [esp + 0x40]
push eax
call fcn.0042d197
add esp, 4
xor eax, eax
jmp 0x40318d
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, 0x55ed30
mov byte [ecx + 4], bl
call fcn.004052f0
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00427a50
cmp esi, ebx
je 0x40314f
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 8
jb 0x403163
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042d197
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x403188
mov edx, dword [esp + 0x40]
push edx
call fcn.0042d197
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.0042d085
mov esp, ebp
pop ebp
ret
Function at 0x4031b0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51d588
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x569338]
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 0x4031f9
mov eax, dword [esi + 4]
jmp 0x4031fc
lea eax, [esi + 4]
push eax
push str.RunDHangCmd::RunCommand_cmd___s
call fcn.00418900
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0040cae0
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.004052f0
lea esi, [esp + 0x3c]
call fcn.0040d910
add esp, 0x1c
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x403259
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 0x4032d9
cmp esi, ebx
je 0x40329a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], edi
jb 0x4032ad
mov edx, dword [esp + 0x24]
push edx
call fcn.0042d197
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x4032d2
mov eax, dword [esp + 0x40]
push eax
call fcn.0042d197
add esp, 4
xor eax, eax
jmp 0x40335d
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, 0x55ed30
mov byte [ecx + 4], bl
call fcn.004052f0
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00427a50
cmp esi, ebx
je 0x40331f
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 8
jb 0x403333
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042d197
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x403358
mov edx, dword [esp + 0x40]
push edx
call fcn.0042d197
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.0042d085
mov esp, ebp
pop ebp
ret
Function at 0x403380
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51d588
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
mov eax, dword [0x569338]
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 0x4033c9
mov eax, dword [esi + 4]
jmp 0x4033cc
lea eax, [esi + 4]
push eax
push str.RunDHCmd::RunCommand_cmd___s
call fcn.00418900
lea eax, [esp + 0x44]
push eax
mov ecx, esi
call fcn.0040cae0
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.004052f0
lea esi, [esp + 0x3c]
call fcn.0040d910
add esp, 0x1c
cmp dword [esp + 0x38], edi
mov eax, dword [esp + 0x24]
jae 0x403429
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 0x4034a9
cmp esi, ebx
je 0x40346a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], edi
jb 0x40347d
mov edx, dword [esp + 0x24]
push edx
call fcn.0042d197
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x4034a2
mov eax, dword [esp + 0x40]
push eax
call fcn.0042d197
add esp, 4
xor eax, eax
jmp 0x40352d
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, 0x55ed30
mov byte [ecx + 4], bl
call fcn.004052f0
lea eax, [esp + 0x30]
push eax
mov ecx, edi
call fcn.00427a50
cmp esi, ebx
je 0x4034ef
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x38], 8
jb 0x403503
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0042d197
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
jb 0x403528
mov edx, dword [esp + 0x40]
push edx
call fcn.0042d197
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.0042d085
mov esp, ebp
pop ebp
ret
Function at 0x403800
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51dfeb
mov eax, dword fs:[0]
push eax
sub esp, 0x300
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x2f8], eax
push ebx
push esi
push edi
mov eax, dword [0x569338]
xor eax, esp
push eax
lea eax, [esp + 0x310]
mov dword fs:[0], eax
mov eax, ecx
cmp dword [eax + 0x1c], 8
jb 0x40384d
mov eax, dword [eax + 8]
jmp 0x403850
add eax, 8
push eax
push str.CRunCloudTaskCmd_cmd___s
call fcn.00418900
xor ebx, ebx
push 0x206
lea eax, [esp + 0x10a]
push ebx
push eax
mov word [esp + 0x110], bx
call fcn.00433df0
add esp, 0x14
xor eax, eax
lea ecx, [ecx]
movzx ecx, word [eax + str.SmartCloud]
mov word [esp + eax + 0xfc], cx
add eax, 2
cmp cx, bx
jne 0x403880
lea edi, [esp + 0xfc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
cmp ax, bx
jne 0x4038a1
mov ecx, 6
mov esi, 0x55ee28
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0xfc]
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 + 0x318], ebx
jne 0x40390c
cmp esi, ebx
je 0x403905
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40398d
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.00405220
call fcn.004084b0
add esp, 0x20
lea eax, [esp + 0x1c]
push eax
call fcn.0042a950
lea ecx, [esp + 0xf4]
push ecx
push ebx
lea edx, [esp + 0x24]
push edx
push 0x42aa30
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
push eax
mov dword [esp + 0xf8], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 0x1c]
call fcn.0042a9c0
cmp esi, ebx
je 0x403988
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 + 0x310]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2f8]
xor ecx, esp
call fcn.0042d085
mov esp, ebp
pop ebp
ret