joyce8/EMBER2024-capa huggingface dataset:
Function at 0x498230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8403
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x5211e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x8c], 0
mov dword [ebx], 0
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
push 0x201
push dword [0x5227e8]
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00498180
mov edi, dword [ebp - 0x8c]
test eax, eax
jne 0x498411
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.004b2d00
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push 0
push 0x4fe7f8
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x498411
mov eax, dword [ebp - 0x7c]
cmp eax, 1
je 0x498305
cmp eax, 2
jne 0x498411
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x498326
test cl, 1
jne 0x498411
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x49832c
jmp 0x498411
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x498411
call fcn.00406540
mov ecx, eax
test ecx, ecx
je 0x49843c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x78]
call fcn.004964e0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0
push eax
lea eax, [ebp - 0x20]
push 0x4fe800
push eax
call fcn.00498830
mov esi, dword [ebp - 0x78]
push 0x2a
push esi
call fcn.00496a70
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x7c], eax
jne 0x4983f5
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x498396
sub edx, ecx
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x80]
sar edx, 1
push edx
push eax
call fcn.00498450
push dword [0x5227f0]
lea eax, [ebp - 0x74]
push dword [0x5227ec]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4983d2
mov dword [ebx], 1
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4983ee
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, 1
jmp 0x498413
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x498411
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
xor esi, esi
test edi, edi
je 0x49841e
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d327
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405ce0
int3
Function at 0x498530
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8438
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5211e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x5227e8]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00498180
test eax, eax
je 0x498658
mov esi, dword [ebp - 0x18]
mov edi, dword [0x5227e8]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x498603
cmp dword [esi], 0
je 0x4985f6
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4985c3
mov eax, 1
jmp 0x498624
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4985fc
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x498624
cmp dword [esi + 4], 0
jne 0x498603
mov eax, 1
jmp 0x498624
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x49864e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x498636
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x49865b
xor ebx, ebx
jmp 0x4986ff
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x4986ff
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4986b8
mov ecx, dword [ebx]
test ecx, ecx
je 0x49871e
push ecx
push eax
call fcn.004c073d
add esp, 8
test eax, eax
je 0x4986b8
mov edx, dword [edi]
test edx, edx
je 0x4986b8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x498690
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x4986c3
lea eax, [edx + 0xd]
jmp 0x4986f8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4986d0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x4fe7f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x49870a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00405ce0
int3
Function at 0x499d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x499d91
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x499d5f
cmp eax, 2
jne 0x499d7b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x499d8b
test ecx, ecx
je 0x499d86
test cl, 1
jne 0x499d7b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x499d8b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x49b210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx]
test ecx, ecx
je 0x49b21f
pop ebp
jmp fcn.0049bfa0
xor eax, eax
pop ebp
ret 0xc
Function at 0x49c2a0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8893
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x5211e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x49c345
cmp word [esi], di
je 0x49c345
test eax, eax
je 0x49c301
cmp word [eax], di
je 0x49c301
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x49c345
jmp 0x49c340
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004b2d00
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x49c345
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x49c3bc
mov eax, dword [ebx + 0x24]
test eax, eax
js 0x49c3a7
lea esi, [ebx + 0x34]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x49c375
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test eax, eax
js 0x49c396
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x49c3dc
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 2
test esi, esi
je 0x49c3a7
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x49c3bc
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d327
mov esp, ebp
pop ebp
ret 0x30
call fcn.004147b0
int3

Function at 0x49ce80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x49ce95
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x49cea0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x49d8fb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4d3b2a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004d37ea
Function at 0x4dbb20
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5211e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 0x10], 0
jne 0x4dbd05
test edi, edi
je 0x4dbd05
mov ecx, dword [esi + 0x20]
mov eax, 0x532ae21d
sub ecx, dword [esi + 0x1c]
imul ecx
sar edx, 8
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebx, eax
jae 0x4dbd05
imul eax, ebx, 0x314
mov ebx, dword [esi + 0x1c]
mov ebx, dword [eax + ebx]
test byte [ebx + 0x26], 0x10
jne 0x4dbd05
mov eax, dword [ebp + 0x10]
cmp dword [ebx + 0x18], eax
ja 0x4dbd05
mov esi, dword [esi + 0xc]
mov edx, dword [ebx + 0x2a]
movzx eax, word [edx + esi + 0x1c]
movzx ecx, word [edx + esi + 0x1a]
add eax, edx
add ecx, eax
lea eax, [esi + 0x1e]
add eax, ecx
movzx ecx, word [ebx + 0xa]
mov dword [ebp - 8], eax
test cx, cx
jne 0x4dbd1a
mov esi, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0xc], ecx
test esi, esi
je 0x4dbc0d
test eax, eax
je 0x4dbbd9
cmp ecx, esi
jb 0x4dbbd9
push esi
push eax
push edi
call fcn.004b2f80
add esp, 0xc
jmp 0x4dbc0d
push ecx
push 0
push edi
call fcn.004b2d00
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x4dbbf8
call fcn.004b6f07
mov dword [eax], 0x16
jmp 0x4dbc08
cmp dword [ebp - 0xc], esi
jae 0x4dbc0d
call fcn.004b6f07
mov dword [eax], 0x22
call fcn.004b6e2e
mov edx, dword [ebx + 0x14]
test edx, edx
je 0x4dbcfe
or eax, 0xffffffff
cmp edx, 8
jb 0x4dbcd6
mov esi, edx
shr esi, 3
nop dword [eax]
movzx ecx, byte [edi]
sub edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50b4e0]
movzx ecx, byte [edi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50b4e0]
movzx ecx, byte [edi + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50b4e0]
movzx ecx, byte [edi + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50b4e0]
movzx ecx, byte [edi + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50b4e0]
movzx ecx, byte [edi + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50b4e0]
movzx ecx, byte [edi + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50b4e0]
movzx ecx, byte [edi + 7]
add edi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50b4e0]
sub esi, 1
jne 0x4dbc30
test edx, edx
je 0x4dbcfa
nop word [eax + eax]
movzx ecx, byte [edi]
lea edi, [edi + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50b4e0]
sub edx, 1
jne 0x4dbce0
not eax
jmp 0x4dbd00
xor eax, eax
cmp eax, dword [ebx + 0x10]
je 0x4dbd46
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d327
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, 8
jne 0x4dbd05
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push dword [ebp + 0x10]
push edi
push dword [ebx + 0x14]
push eax
call fcn.004dea00
add esp, 0x14
test eax, eax
je 0x4dbd05
mov eax, dword [ebp - 8]
cmp eax, dword [ebx + 0x10]
jne 0x4dbd05
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d327
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4dbdd0
Capabilities:
Check if file exists
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e965f
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x5211e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x58
call fcn.0041d466
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4dbe27
push 0x58
push 0
push esi
call fcn.004b2d00
add esp, 0xc
mov ecx, esi
call fcn.004db190
mov esi, eax
jmp 0x4dbe29
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], 0xffffffff
cmp dword [edi + 0x14], 8
jb 0x4dbe3b
mov edi, dword [edi]
test edi, edi
je 0x4dbed8
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4dbed8
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x4dbed8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x14], eax
cmp eax, 0x16
jb 0x4dbed8
push 0
push 0
push 0
push 2
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
cmp dword [esi + 4], 0
mov dword [esi + 8], eax
je 0x4dbed8
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [esi + 0xc], eax
test eax, eax
je 0x4dbed8
push dword [esi + 0x14]
mov ecx, esi
push eax
call fcn.004db650
test eax, eax
je 0x4dbed8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x4dbeee
mov ecx, esi
call fcn.004db310
push 0x58
push esi
call fcn.0041d496
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4dc4a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
test edx, edx
je 0x4dc59f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4dc59f
or eax, 0xffffffff
cmp esi, 8
jb 0x4dc577
push edi
mov edi, esi
shr edi, 3
nop dword [eax]
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50cd28]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50cd28]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50cd28]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50cd28]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50cd28]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50cd28]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50cd28]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50cd28]
sub edi, 1
jne 0x4dc4d0
pop edi
test esi, esi
je 0x4dc59a
nop dword [eax + eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x50cd28]
sub esi, 1
jne 0x4dc580
not eax
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4010a9
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3e58
call fcn.00407cf0
mov dword [ebp - 0x3d48], 0
lea eax, [ebp - 0x1418]
push eax
call fcn.00404888
add esp, 4
lea ecx, [ebp - 0x1418]
push ecx
lea edx, [ebp - 0x3d4c]
push edx
call fcn.00404bf2
add esp, 8
lea eax, [ebp - 0x2830]
push eax
call fcn.00403abb
add esp, 4
lea ecx, [ebp - 0x2830]
push ecx
lea edx, [ebp - 0x3d4c]
push edx
call fcn.00403ef7
add esp, 8
mov dword [ebp - 0x3d50], 0
jmp 0x401125
mov eax, dword [ebp - 0x3d50]
add eax, 1
mov dword [ebp - 0x3d50], eax
mov ecx, dword [ebp - 0x3d50]
cmp ecx, dword [ebp - 0x282c]
jge 0x4011d6
mov dword [ebp - 0x3d54], 0
jmp 0x401152
mov edx, dword [ebp - 0x3d54]
add edx, 1
mov dword [ebp - 0x3d54], edx
mov eax, dword [ebp - 0x3d50]
imul eax, eax, 0x504
mov ecx, dword [ebp - 0x3d54]
cmp ecx, dword [ebp + eax - 0x2578]
jge 0x4011d1
lea edx, [ebp - 0x3e58]
push edx
mov eax, dword [ebp - 0x3d50]
imul eax, eax, 0x504
lea ecx, [ebp + eax - 0x242a]
push ecx
call fcn.00401c82
add esp, 8
lea edx, [ebp - 0x3e58]
push edx
mov eax, dword [ebp - 0x3d54]
push eax
mov ecx, dword [str.EnumMF_]
push ecx
push 0x40d178
lea edx, [ebp - 0x2934]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x2934]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x401143
jmp 0x401116
mov dword [ebp - 0x3d50], 0
jmp 0x4011f1
mov ecx, dword [ebp - 0x3d50]
add ecx, 1
mov dword [ebp - 0x3d50], ecx
mov edx, dword [ebp - 0x3d50]
cmp edx, dword [ebp - 0x1414]
jge 0x4012a2
mov dword [ebp - 0x3d54], 0
jmp 0x40121e
mov eax, dword [ebp - 0x3d54]
add eax, 1
mov dword [ebp - 0x3d54], eax
mov ecx, dword [ebp - 0x3d50]
imul ecx, ecx, 0x504
mov edx, dword [ebp - 0x3d54]
cmp edx, dword [ebp + ecx - 0x1160]
jge 0x40129d
lea eax, [ebp - 0x3e58]
push eax
mov ecx, dword [ebp - 0x3d50]
imul ecx, ecx, 0x504
lea edx, [ebp + ecx - 0x1300]
push edx
call fcn.00401c82
add esp, 8
lea eax, [ebp - 0x3e58]
push eax
mov ecx, dword [ebp - 0x3d54]
push ecx
mov edx, dword [str.EnumMF_]
push edx
push 0x40d18c
lea eax, [ebp - 0x2934]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea ecx, [ebp - 0x2934]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x40120f
jmp 0x4011e2
push str.SystemCurrentControlSetServicesVxDMXSIDRV
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov edx, dword [str.EnumRootMoxaAsync]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [0x40dd98]
push eax
mov ecx, dword [str.SystemCurrentControlSetServicesClass_]
push ecx
push 0x40d1d0
lea edx, [ebp - 0x2934]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x2934]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
push 0x40d1d8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esp, ebp
pop ebp
ret
Function at 0x40130c
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push 0x104
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x104
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x20c], 0
jmp 0x401354
mov edx, dword [ebp - 0x20c]
add edx, 1
mov dword [ebp - 0x20c], edx
cmp dword [ebp - 0x20c], 7
jge 0x401396
mov eax, dword [ebp - 0x20c]
mov ecx, dword [eax*4 + 0x40d03c]
push ecx
lea edx, [ebp - 0x310]
push edx
push 0x40d218
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x401345
push str.mxsibrd.inf
lea edx, [ebp - 0x104]
push edx
push 0x40d22c
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.Moxa_TechnologiesMxSIBRD.inf
lea edx, [ebp - 0x104]
push edx
push 0x40d258
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esp, ebp
pop ebp
ret

Function at 0x4013f6
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
je 0x40140d
jmp 0x401484
lea eax, [ebp - 4]
push eax
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
push 0x40d268
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x40d278
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esp, ebp
pop ebp
ret
Function at 0x401488
Capabilities:
Delete file
Get common file path
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
push 0
lea eax, [ebp - 0x630]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionUninstallMoxaAsync
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [str.MOXA_Smartio_Industio_Driver]
push ecx
lea edx, [ebp - 0x62c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x62c]
push ecx
push 1
push 0
push str.DisplayName
mov edx, dword [ebp - 0x630]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0x104
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.mxsishl.exe_2
lea ecx, [ebp - 0x528]
push ecx
push 0x40d304
lea edx, [ebp - 0x62c]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x62c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x62c]
push ecx
push 1
push 0
push str.UninstallString
mov edx, dword [ebp - 0x630]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x630]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
je 0x401572
jmp 0x40166a
lea ecx, [ebp - 0x31c]
push ecx
push 2
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
lea edx, [ebp - 0x318]
push edx
mov eax, dword [ebp - 0x31c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
lea ecx, [ebp - 0x318]
push ecx
lea edx, [ebp - 0x424]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.MOXA_Utilities
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x424]
push ecx
call fcn.0040166e
add esp, 4
lea edx, [ebp - 0x424]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Moxa_SmartioIndustio_Configuration_Panel.lnk
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x104
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.mxsiadm.exe
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4118f4
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00401694
add esp, 0xc
lea eax, [ebp - 0x424]
push eax
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.MOXA_C102_C104_C168_Configuration_Panel.lnk
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov esp, ebp
pop ebp
ret