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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51dfa6
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 0x403a0d
mov eax, dword [eax + 8]
jmp 0x403a10
add eax, 8
push eax
push str.CRunOnceTaskCmd_cmd___s
call fcn.00418900
xor edi, edi
push 0x206
lea eax, [esp + 0x10a]
push edi
push eax
mov word [esp + 0x110], di
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, di
jne 0x403a40
lea eax, [esp + 0xfc]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x403a61
mov ecx, dword [0x55edf8]
mov edx, dword [0x55edfc]
mov dword [eax], ecx
mov ecx, dword [0x55ee00]
mov dword [eax + 4], edx
mov edx, dword [0x55ee04]
mov dword [eax + 8], ecx
mov ecx, dword [0x55ee08]
mov dword [eax + 0xc], edx
mov edx, dword [0x55ee0c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0xfc]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [esp + 0x10], ebx
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, edi
mov dword [esp + 0x318], edi
jne 0x403af3
cmp ebx, edi
je 0x403aec
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403b9a
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xb
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edi
push str.RunOnceTask
mov byte [ecx + 4], 0
call fcn.00405220
call fcn.004084b0
add esp, 0x20
lea edx, [esp + 0x1c]
push edx
call fcn.0042a950
lea ecx, [esp + 0x1c]
mov byte [esp + 0x318], 1
call fcn.0042add0
lea esi, [esp + 0x1c]
call fcn.0042b2a0
test al, al
je 0x403b7a
push 1
lea edi, [esp + 0x30]
mov ecx, esi
call fcn.0042ab70
push 0xffffffffffffffff
push 0
mov eax, edi
lea ecx, [esp + 0x6c]
call fcn.004020b0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x50]
lea ecx, [esp + 0x88]
call fcn.004020b0
xor edi, edi
lea eax, [esp + 0x1c]
call fcn.0042a9c0
cmp ebx, edi
je 0x403b95
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
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
Function at 0x403bc0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51dfa6
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 0x403c0d
mov eax, dword [eax + 8]
jmp 0x403c10
add eax, 8
push eax
push str.CRunDateTaskCmd_cmd___s
call fcn.00418900
xor edi, edi
push 0x206
lea eax, [esp + 0x10a]
push edi
push eax
mov word [esp + 0x110], di
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, di
jne 0x403c40
lea eax, [esp + 0xfc]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
cmp cx, di
jne 0x403c61
mov ecx, dword [0x55ee10]
mov edx, dword [0x55ee14]
mov dword [eax], ecx
mov ecx, dword [0x55ee18]
mov dword [eax + 4], edx
mov edx, dword [0x55ee1c]
mov dword [eax + 8], ecx
mov ecx, dword [0x55ee20]
mov dword [eax + 0xc], edx
mov edx, dword [0x55ee24]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 0xfc]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
mov dword [esp + 0x10], ebx
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, edi
mov dword [esp + 0x318], edi
jne 0x403cf3
cmp ebx, edi
je 0x403cec
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x403d9a
push 1
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x38], esp
push 0xb
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], edi
push str.RunDateTask
mov byte [ecx + 4], 0
call fcn.00405220
call fcn.004084b0
add esp, 0x20
lea edx, [esp + 0x1c]
push edx
call fcn.0042a950
lea ecx, [esp + 0x1c]
mov byte [esp + 0x318], 1
call fcn.0042add0
lea esi, [esp + 0x1c]
call fcn.0042b2a0
test al, al
je 0x403d7a
push 1
lea edi, [esp + 0x30]
mov ecx, esi
call fcn.0042ab70
push 0xffffffffffffffff
push 0
mov eax, edi
lea ecx, [esp + 0x6c]
call fcn.004020b0
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x50]
lea ecx, [esp + 0x88]
call fcn.004020b0
xor edi, edi
lea eax, [esp + 0x1c]
call fcn.0042a9c0
cmp ebx, edi
je 0x403d95
push ebx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
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
Function at 0x409130
Capabilities:
Link many functions at runtime

Disassembly:
push 0xffffffffffffffff
push 0x51cd98
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x569338]
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 [0x57692c], 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.0040bb90
test al, al
je 0x40921b
push str.WOW64FSRedirHolder_true
call fcn.00418680
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 0x4091ee
lea ecx, [esp + 0x28]
push ecx
call eax
mov dword [esp + 0x34], 0
call fcn.00404360
push eax
call fcn.00401230
mov dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x20], 0
je 0x409233
mov edx, dword [esp + 0x28]
push edx
call dword [esp + 0x28]
jmp 0x409233
push str.WOW64FSRedirHolder_false
call fcn.00418680
add esp, 4
call fcn.00404360
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 0x40a230
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 0x40a247
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a278
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40a274
cmp esi, eax
jae 0x40a278
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40a264
cmp esi, eax
jb 0x40a27e
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 0x40bbf0
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 0x40bd69
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 0x40bc3a
sub ecx, 2
jne 0x40bc3d
add eax, 2
jmp 0x40bc3d
add eax, 3
add eax, 1
cmp dword [ebx], eax
jge 0x40bc50
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 0x40bcfe
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 + 0x560128]
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 + 0x560128]
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 + 0x560128]
add ecx, 1
mov byte [ecx], al
and edi, 0x3f
movzx eax, byte [edi + 0x560128]
add ecx, 1
mov byte [ecx], al
add esi, 1
add ecx, 1
sub edx, 1
jne 0x40bc86
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
cmp edx, edi
jge 0x40bd5d
movzx eax, byte [esi]
lea ebp, [edx + 1]
cmp ebp, edi
jge 0x40bd12
movzx esi, byte [esi + 1]
jmp 0x40bd14
xor esi, esi
mov edx, eax
sar edx, 2
and edx, 0x3f
mov dl, byte [edx + 0x560128]
mov byte [ecx], dl
mov edx, esi
sar edx, 4
shl eax, 4
add edx, eax
and edx, 0x3f
mov al, byte [edx + 0x560128]
add ecx, 1
mov byte [ecx], al
add ecx, 1
cmp ebp, edi
jge 0x40bd51
and esi, 0xf
mov dl, byte [esi*4 + 0x560128]
mov byte [ecx], dl
jmp 0x40bd54
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 0x40bd70
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 0x40bd80
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.0042c308
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 0x40bdb5
xor edi, edi
test ebp, ebp
mov byte [esp + 0xf], 1
jl 0x40be1d
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40bdfc
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x40bdf6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40be17
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x40bdd6
pop ebx
push esi
call fcn.0042d60c
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.0042d60c
movzx eax, byte [esp + 0x13]
add esp, 4
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x40c1e0
Capabilities:
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x51be06
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x268], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x569338]
xor eax, esp
push eax
lea eax, [esp + 0x280]
mov dword fs:[0], eax
xor ebx, ebx
cmp edx, ebx
je 0x40c3a5
mov eax, edx
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea esi, [eax + 2]
jmp 0x40c240
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c240
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x1c]
call fcn.004021f0
mov edi, esi
mov dword [esp + 0x288], ebx
call fcn.0040cd20
push 0x228
lea eax, [esp + 0x54]
push ebx
push eax
mov dword [esp + 0x58], ebx
call fcn.00433df0
add esp, 0xc
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x40c2a3
cmp dword [esp + 0x2c], 8
jb 0x40c3a5
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x40c39d
lea edx, [esp + 0x4c]
push edx
push ebp
mov dword [esp + 0x54], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40c386
mov edi, edi
lea eax, [esp + 0x70]
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
lea edx, [eax + 2]
jmp 0x40c2e0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40c2e0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x74]
push eax
lea esi, [esp + 0x38]
call fcn.004021f0
mov edi, esi
mov byte [esp + 0x288], 1
call fcn.0040cd20
mov eax, dword [esp + 0x18]
mov esi, 8
cmp dword [esp + 0x2c], esi
jae 0x40c320
lea eax, [esp + 0x18]
mov edi, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x34]
call fcn.00404930
test eax, eax
je 0x40c365
mov byte [esp + 0x288], bl
cmp dword [esp + 0x48], esi
jb 0x40c350
mov ecx, dword [esp + 0x34]
push ecx
call fcn.0042d197
add esp, 4
lea edx, [esp + 0x4c]
push edx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c2c0
jmp 0x40c38b
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 0x40c3a7
mov esi, 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x2c], esi
jb 0x40c3a5
mov eax, dword [esp + 0x18]
push eax
call fcn.0042d197
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.0042d085
add esp, 0x278
ret
Function at 0x40d910
Capabilities:
Access peb ldr_data
Hash data with md5

Disassembly:
push 0xffffffffffffffff
push 0x51cd53
mov eax, dword fs:[0]
push eax
sub esp, 0x90
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
push edi
mov eax, dword [0x569338]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0xa4], ebx
cmp dword [esp + 0xc4], 0x10
mov eax, dword [esp + 0xb0]
mov byte [esp + 0x94], bl
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x2c], 0x67452301
mov dword [esp + 0x30], 0xefcdab89
mov dword [esp + 0x34], 0x98badcfe
mov dword [esp + 0x38], 0x10325476
jae 0x40d99d
lea eax, [esp + 0xb0]
push eax
mov eax, dword [esp + 0xc4]
lea ecx, [esp + 0x30]
call fcn.00410a90
lea edi, [esp + 0x10]
lea eax, [esp + 0x2c]
call fcn.00411500
push esi
mov ecx, eax
mov byte [esp + 0xa8], 1
call fcn.0040c9d0
add esp, 4
cmp dword [esp + 0x28], 0x10
jb 0x40d9e2
mov eax, dword [esp + 0x14]
push eax
call fcn.0042d197
add esp, 4
cmp dword [esp + 0xc4], 0x10
mov dword [esp + 0x28], 0xf
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
jb 0x40da0c
mov ecx, dword [esp + 0xb0]
push ecx
call fcn.0042d197
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0042d085
add esp, 0x9c
ret
Function at 0x410100
Capabilities:
Check os version

Disassembly:
sub esp, 0x124
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x218]
xor ebp, ebp
cmp dword [esi + 0x214], edi
jbe 0x41012f
call fcn.0042d45a
mov ebx, dword [esi + 0x214]
cmp ebx, dword [esi + 0x218]
jbe 0x410142
call fcn.0042d45a
cmp ebx, edi
je 0x41015d
push ebx
mov ebx, dword [esi + 0x218]
mov eax, edi
call fcn.004108c0
add esp, 4
mov dword [esi + 0x218], eax
push 0x114
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00433df0
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x18], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0x24], 2
jne 0x410193
push esi
call fcn.0040f9c0
jmp 0x4101aa
xor edi, edi
test ebp, ebp
jne 0x4101aa
mov ecx, esi
call fcn.0040fd20
add edi, 1
cmp edi, 0xa
mov ebp, eax
jl 0x410195
mov eax, dword [esi + 0x214]
test eax, eax
je 0x4101cd
mov esi, dword [esi + 0x218]
sub esi, eax
mov eax, 0x4bda12f7
imul esi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042d085
add esp, 0x124
ret
Function at 0x4101f0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, eax
add esi, 0x210
push edi
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
mov dword [esp + 0x14], esi
jbe 0x410210
call fcn.0042d45a
mov ebp, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [esp + 0x1c], edi
mov edi, dword [esi + 8]
cmp dword [esi + 4], edi
jbe 0x410227
call fcn.0042d45a
test esi, esi
je 0x41022f
cmp esi, esi
je 0x410234
call fcn.0042d45a
cmp dword [esp + 0x1c], edi
je 0x410349
mov ebx, dword [esp + 0x24]
add ebx, 0xa8
push ebx
call ebp
push 0x5607c8
call ebp
test esi, esi
jne 0x41025b
call fcn.0042d45a
mov edi, dword [esp + 0x1c]
cmp edi, dword [esi + 8]
jb 0x410269
call fcn.0042d45a
add edi, 0xa8
push edi
call ebp
push 0x5607c8
call ebp
mov esi, dword [esp + 0x24]
add esi, 0x28
push esi
call ebp
push 0x5607c8
call ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [eax + 8]
jb 0x41029c
call fcn.0042d45a
mov eax, dword [esp + 0x1c]
add eax, 0x28
push eax
call ebp
push 0x5607c8
call ebp
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
cmp edx, dword [eax + 8]
jb 0x4102bf
call fcn.0042d45a
mov ecx, edi
mov eax, ebx
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4102e3
test dl, dl
je 0x4102df
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4102e3
add eax, 2
add ecx, 2
test dl, dl
jne 0x4102c3
xor eax, eax
jmp 0x4102e8
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
mov edi, dword [esp + 0x1c]
jne 0x41032c
mov eax, dword [esp + 0x14]
cmp edi, dword [eax + 8]
jb 0x4102fe
call fcn.0042d45a
lea ecx, [edi + 0x28]
mov eax, esi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x410323
test dl, dl
je 0x41031f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x410323
add eax, 2
add ecx, 2
test dl, dl
jne 0x410303
xor eax, eax
jmp 0x410328
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x410376
mov eax, dword [esp + 0x14]
cmp edi, dword [eax + 8]
jb 0x41033a
call fcn.0042d45a
mov esi, dword [esp + 0x14]
add edi, 0x1b0
jmp 0x410216
mov edi, dword [esp + 0x24]
lea eax, [edi + 0xa8]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x410356
sub eax, edx
je 0x410376
mov eax, edi
call fcn.004103b0
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret 4
Function at 0x410a00
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0x5607cc
call ebx
test eax, eax
mov dword [esi], eax
jne 0x410a16
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryW
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x410a6d
pop edi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
mov eax, 1
pop ebx
ret

Function at 0x411a80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push eax
xor ebx, ebx
push 0x64
push ebx
mov dword [esp + 0x18], ebx
call sub.NETAPI32.dll_NetWkstaGetInfo
test eax, eax
jne 0x411abb
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 0xc]
mov edi, dword [eax + 0x10]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
movzx eax, si
movzx ecx, di
pop edi
shl eax, 0x10
pop esi
or eax, ecx
pop ebx
pop ecx
ret
push 2
push ebx
push 0x5607cc
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebx
je 0x411b1a
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, ebx
je 0x411b13
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x411b13
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
cmp esi, ebx
je 0x411b13
push 0x560950
lea edx, [esi + 6]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x411b13
cmp word [esi + 2], bx
jbe 0x411b13
mov ebx, dword [esi + 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x414260
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x42c
mov eax, dword [0x569338]
xor eax, esp
mov dword [esp + 0x428], eax
mov eax, dword [esp + 0x430]
push ebp
lea ecx, [esp + 4]
push ecx
xor ebp, ebp
push 9
push ebp
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4142c4
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x428]
xor ecx, esp
call fcn.0042d085
add esp, 0x42c
ret 4
push esi
push 0x206
lea edx, [esp + 0x26]
push ebp
push edx
mov word [esp + 0x2c], bp
call fcn.00433df0
mov ecx, dword [esp + 0x14]
add esp, 0xc
push 0x104
lea eax, [esp + 0x24]
push eax
push ebp
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4143c0
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ebx, [esi + 1]
jmp 0x414310
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41439e
push 0x206
lea edx, [esp + 0x236]
push ebp
push edx
mov dword [esp + 0x28], 0x104
mov word [esp + 0x23c], bp
call fcn.00433df0
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
push str.DisplayName
push eax
mov dword [esp + 0x3c], ebx
call edi
test eax, eax
jne 0x414393
mov ecx, dword [esp + 0x20]
push ecx
lea edx, [esp + 0x234]
push edx
call fcn.0042d19c
add esp, 8
test eax, eax
je 0x414393
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x2c]
push ecx
add esi, ebx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x414310
pop edi
pop ebx
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x430]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
xor ecx, esp
call fcn.0042d085
add esp, 0x42c
ret 4