joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011c0
Capabilities:
Contain obfuscated stackstrings
Decode data using base64 via vbmi lookup table

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efb02
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x54b1b4]
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 edi, ecx
mov eax, dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 0x94], eax
xor eax, eax
mov dword [ebp - 0x9c], eax
lea ecx, [eax + 0xf]
mov dword [esi + 0x14], ecx
mov dword [esi + 0x10], eax
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], 0x3e000000
mov dword [ebp - 0x60], 0x3f000000
mov dword [ebp - 0x5c], 0x37363534
mov dword [ebp - 0x58], 0x3b3a3938
mov dword [ebp - 0x54], 0x3d3c
mov dword [ebp - 0x50], eax
lea edx, [eax + 1]
mov dword [ebp - 0x4c], 0x2010000
mov dword [ebp - 0x48], 0x6050403
mov dword [ebp - 0x44], 0xa090807
mov dword [ebp - 0x40], 0xe0d0c0b
mov dword [ebp - 0x3c], 0x1211100f
mov dword [ebp - 0x38], 0x16151413
mov dword [ebp - 0x34], 0x191817
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x1c1b1a00
mov dword [ebp - 0x28], 0x201f1e1d
mov dword [ebp - 0x24], 0x24232221
mov dword [ebp - 0x20], 0x28272625
mov dword [ebp - 0x1c], 0x2c2b2a29
mov dword [ebp - 0x18], 0x302f2e2d
mov word [ebp - 0x14], 0x3231
mov byte [ebp - 0x12], 0x33
mov byte [esi], al
mov dword [ebp - 4], eax
mov dword [ebp - 0x9c], edx
mov dword [ebp - 0x90], eax
cmp dword [ebp + 8], eax
jle 0x4013be
mov al, byte [edi]
cmp al, 0xd
je 0x4013a7
cmp al, 0xa
je 0x4013a7
cmp al, 0x20
je 0x4013a7
cmp al, 9
je 0x4013a7
movsx ecx, al
movsx eax, byte [edi + edx]
movsx ebx, byte [ebp + ecx - 0x8c]
movsx ecx, byte [ebp + eax - 0x8c]
add edi, edx
shl ebx, 0x12
shl ecx, 0xc
add ebx, ecx
mov dword [ebp - 0x98], ebx
sar ebx, 0x10
add edi, edx
call fcn.00401e10
mov eax, dword [ebp - 0x94]
inc dword [eax]
mov al, byte [edi]
cmp al, 0x3d
je 0x401399
mov ebx, dword [ebp - 0x98]
movsx edx, al
movsx eax, byte [ebp + edx - 0x8c]
shl eax, 6
add ebx, eax
mov dword [ebp - 0x98], ebx
sar ebx, 8
inc edi
call fcn.00401e10
mov eax, dword [ebp - 0x94]
inc dword [eax]
mov al, byte [edi]
cmp al, 0x3d
je 0x401399
mov ebx, dword [ebp - 0x98]
movsx ecx, al
movsx edx, byte [ebp + ecx - 0x8c]
add ebx, edx
inc edi
call fcn.00401e10
mov eax, dword [ebp - 0x94]
inc dword [eax]
add dword [ebp - 0x90], 4
mov edx, 1
jmp 0x4013af
add edi, edx
add dword [ebp - 0x90], edx
mov eax, dword [ebp - 0x90]
cmp eax, dword [ebp + 8]
jl 0x4012e4
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.004ba3af
mov esp, ebp
pop ebp
ret 8
Function at 0x401ff0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1806
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x54b1b4]
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 esi, ecx
xor ebx, ebx
mov edi, edx
cmp dword [esi + 0x10], ebx
je 0x402172
cmp dword [esi + 0x14], 8
jb 0x402037
mov eax, dword [esi]
jmp 0x402039
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402172
push 0x18
push str.UmVnc3ZyMzIgL3MgIiVzIg
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407c70
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x402077
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x154]
push eax
push edx
lea edx, [ebp - 0x48]
call fcn.004011c0
mov byte [ebp - 4], 1
mov eax, dword [0x54af28]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af28
call edx
add eax, 0x10
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x4020b5
lea eax, [ebp - 0x48]
push 3
push eax
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x14c]
push edx
mov dword [ebp - 0x150], ecx
call fcn.00404e70
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x4020dc
mov esi, dword [esi]
mov eax, dword [ebp - 0x150]
push esi
push eax
lea edi, [ebp - 0x154]
call fcn.00407bd0
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x14c]
add esp, 8
cmp eax, ecx
je 0x40210b
push eax
call fcn.004bba29
add esp, 4
mov esi, dword [ebp - 0x154]
push esi
call fcn.00402350
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40213a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x34], ebx
jb 0x40214b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], ebx
jb 0x40216e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
add esp, 4
mov al, 1
jmp 0x402182
push 7
push 0x510200
mov ecx, edi
call fcn.00408440
xor al, al
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.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x4021a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f17b6
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x54b1b4]
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 esi, ecx
xor ebx, ebx
mov edi, edx
cmp dword [esi + 0x10], ebx
je 0x402322
cmp dword [esi + 0x14], 8
jb 0x4021e7
mov eax, dword [esi]
jmp 0x4021e9
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402322
push 0x1c
push str.UmVnc3ZyMzIgL3UgL3MgIiVzIg
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
call fcn.00407c70
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x402227
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 0x154]
push eax
push edx
lea edx, [ebp - 0x48]
call fcn.004011c0
mov byte [ebp - 4], 1
mov eax, dword [0x54af28]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af28
call edx
add eax, 0x10
mov dword [ebp - 0x154], eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x402265
lea eax, [ebp - 0x48]
push 3
push eax
lea edx, [ebp - 0x150]
lea ecx, [ebp - 0x14c]
push edx
mov dword [ebp - 0x150], ecx
call fcn.00404e70
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x40228c
mov esi, dword [esi]
mov eax, dword [ebp - 0x150]
push esi
push eax
lea edi, [ebp - 0x154]
call fcn.00407bd0
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x14c]
add esp, 8
cmp eax, ecx
je 0x4022bb
push eax
call fcn.004bba29
add esp, 4
mov esi, dword [ebp - 0x154]
push esi
call fcn.00402350
lea eax, [esi - 0x10]
add esp, 4
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4022ea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x34], ebx
jb 0x4022fb
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], ebx
jb 0x40231e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
add esp, 4
mov al, 1
jmp 0x402332
push 7
push 0x510200
mov ecx, edi
call fcn.00408440
xor al, al
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.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x402350
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
push edi
lea eax, [ebp - 0x5c]
push eax
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
xor ecx, ecx
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x5c]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
push ecx
mov word [ebp - 0x2c], cx
mov ecx, dword [ebp + 8]
push ecx
push 0
mov dword [ebp - 0x30], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40239d
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x7530
push edx
xor esi, esi
call edi
test eax, eax
je 0x4023c9
inc esi
cmp esi, 5
je 0x4023c9
mov eax, dword [ebp - 0x14]
push 0x7530
push eax
call edi
test eax, eax
jne 0x4023b4
mov ecx, dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call esi
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4023f0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov dword [ebp - 0x210], 0
mov word [ebp - 0x20c], ax
call fcn.004c24e0
add esp, 0xc
cmp byte [ebp + 8], 0
push 0x104
je 0x402444
lea edx, [ebp - 0x20c]
push edx
push str._ProgramW6432_
jmp 0x402450
lea eax, [ebp - 0x20c]
push eax
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
lea eax, [ebp - 0x20c]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402472
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.00408440
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004ba3af
mov esp, ebp
pop ebp
ret

Function at 0x4024a0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4024d6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
push edi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call fcn.004c24e0
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402532
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea edx, [ebp - 0x20c]
push edx
push ebx
call fcn.004bb226
add esp, 8
test eax, eax
je 0x40254b
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x402510
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x228]
pop edi
xor ecx, ebp
pop esi
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x402580
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x54b1b4]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x41a]
push ecx
mov word [ebp - 0x41c], ax
call fcn.004c24e0
add esp, 0xc
push esi
lea edx, [ebp - 0x41c]
push 0x51028c
push edx
call fcn.004bb2b1
add esp, 0xc
lea eax, [ebp - 0x66c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402715
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.004c24e0
add esp, 0xc
lea ecx, [ebp - 0x66c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40270e
mov edi, edi
mov ecx, 0x510890
lea eax, [ebp - 0x640]
jmp 0x402630
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402656
test dx, dx
je 0x402652
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402656
add eax, 4
add ecx, 4
test dx, dx
jne 0x402630
xor eax, eax
jmp 0x40265b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4026f8
mov ecx, 0x510298
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402696
test dx, dx
je 0x402692
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402696
add eax, 4
add ecx, 4
test dx, dx
jne 0x402670
xor eax, eax
jmp 0x40269b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4026f8
push 0x104
lea edx, [ebp - 0x214]
push 0
push edx
call fcn.004c24e0
add esp, 0xc
lea eax, [ebp - 0x640]
push eax
push esi
lea ecx, [ebp - 0x214]
push 0x5102a0
push ecx
call fcn.004bb2b1
add esp, 0x10
test byte [ebp - 0x66c], 0x10
je 0x4026eb
lea edx, [ebp - 0x214]
push edx
call fcn.00402580
add esp, 4
jmp 0x4026f8
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x66c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402620
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x402730
Capabilities:
Hash data with md5
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1760
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x54b1b4]
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 eax, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0xb8], esi
mov dword [ebp - 0xbc], ebx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 8
jb 0x402789
mov eax, dword [eax]
push 0x5102ac
push eax
call fcn.004bb543
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x4027d0
push 0x5102b4
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
lea edi, [ebp - 0x2c]
mov byte [esi], 0
call fcn.004015f0
cmp dword [ebp - 0x18], 0x10
jb 0x4028c0
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x4028b8
push 0x100000
mov byte [ebp - 0xb4], 0
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], 0x67452301
mov dword [ebp - 0x64], 0xefcdab89
mov dword [ebp - 0x60], 0x98badcfe
mov dword [ebp - 0x5c], 0x10325476
call fcn.004bb5e0
push edi
mov ebx, eax
call fcn.004bb674
add esp, 8
test eax, eax
jne 0x402840
push edi
push 0x100000
push 1
push ebx
call fcn.004bb92b
add esp, 0x10
test eax, eax
je 0x402840
push ebx
lea esi, [ebp - 0xb4]
call fcn.0042f8f0
push edi
call fcn.004bb674
add esp, 4
test eax, eax
je 0x402812
push edi
call fcn.004bb9b5
push ebx
call fcn.004bba29
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.0042f9b0
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0xb4]
call fcn.0042fb40
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.004015f0
mov ebx, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x402890
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004ba3a4
add esp, 4
mov esi, dword [ebp - 0xb8]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
lea edi, [ebp - 0x2c]
mov byte [esi], 0
call fcn.004015f0
cmp dword [ebp - 0x18], ebx
jb 0x4028c0
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004ba3a4
add esp, 4
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.004ba3af
mov esp, ebp
pop ebp
ret
Function at 0x402910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
push edi
mov ebx, eax
jb 0x402927
mov eax, dword [esi]
jmp 0x402929
mov eax, esi
push 0x5102ac
push eax
call fcn.004bb543
mov edi, eax
add esp, 8
test edi, edi
jne 0x40297f
mov ecx, dword [ebp + 0xc]
push 8
push 0x5102d8
call fcn.00408440
cmp dword [esi + 0x14], 8
jb 0x402954
mov esi, dword [esi]
push esi
push str.UncmpZipFile
push str.PublicCommonCommonFun.cpp
mov edx, 0xb6
mov esi, 2
mov eax, 0x54eee0
call fcn.0042bb60
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push edi
push 2
lea eax, [ebp - 4]
push 1
push eax
call fcn.004bb92b
push edi
call fcn.004bb9b5
mov ecx, dword [ebp + 0x10]
add esp, 0x14
cmp dword [ecx], 0
jne 0x402a94
mov ax, word [ebp - 4]
cmp al, 0x37
jne 0x4029bd
cmp ah, 0x7a
jne 0x4029ca
mov ecx, 8
cmp dword [ebx + 0x14], ecx
jb 0x4029e2
mov eax, dword [ebx]
jmp 0x4029e4
cmp al, 0x50
jne 0x4029ca
cmp ah, 0x4b
je 0x402a53
mov ecx, dword [ebp + 0xc]
push 8
push str._rN_e
call fcn.00408440
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
cmp dword [esi + 0x14], ecx
jb 0x4029ed
mov edx, dword [esi]
jmp 0x4029ef
mov edx, esi
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.0046af80
add esp, 8
test al, al
jne 0x402a94
push edi
mov edx, 0x510370
call fcn.00408590
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x402a20
mov ebx, dword [ebx]
cmp dword [esi + 0x14], eax
jb 0x402a27
mov esi, dword [esi]
push ebx
push esi
push 0x510388
push str.PublicCommonCommonFun.cpp
mov edx, 0xc9
mov esi, 2
mov eax, 0x54eee0
call fcn.0042bb60
add esp, 0x10
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x402a5f
mov ebx, dword [ebx]
cmp dword [esi + 0x14], eax
jb 0x402a66
mov esi, dword [esi]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
push ecx
mov ecx, dword [eax]
push ebx
push esi
call fcn.0044c350
add esp, 0xc
test al, al
jne 0x402a94
mov edx, dword [ebp + 0xc]
push edx
mov edx, 0x5103c8
call fcn.00408590
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403ff0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4efab8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x54b1b4]
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 edx, 0x54c674
lea ecx, [ebp - 0x5c]
call fcn.0040eef0
push eax
xor esi, esi
mov eax, str.config.ini
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], esi
call fcn.00406d60
add esp, 4
mov ebx, 8
mov byte [ebp - 4], 2
cmp dword [ebp - 0x48], ebx
jb 0x404058
mov eax, dword [ebp - 0x5c]
push eax
call fcn.004ba3a4
add esp, 4
xor eax, eax
xor ecx, ecx
xor edx, edx
mov edi, 7
mov dword [ebp - 0x22], eax
mov dword [ebp - 0x1e], eax
mov dword [ebp - 0x1a], eax
mov dword [ebp - 0x16], eax
mov word [ebp - 0x12], ax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], esi
mov word [ebp - 0x5c], cx
mov word [ebp - 0x24], dx
cmp dword [ebp - 0x64], ebx
jae 0x40408c
lea eax, [ebp - 0x78]
push eax
push 9
lea eax, [ebp - 0x24]
push eax
push 0x5105f8
push 0x5105fc
push 0x510614
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], cx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x4040c0
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x24]
push edx
lea ecx, [ebp - 0x40]
call fcn.00408440
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x30]
push 0x5105f8
mov edi, 1
lea ecx, [ebp - 0x40]
call fcn.00405fc0
test eax, eax
mov edi, 8
setne bl
cmp dword [ebp - 0x2c], edi
jb 0x404110
mov eax, dword [ebp - 0x40]
push eax
call fcn.004ba3a4
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], esi
mov word [ebp - 0x40], cx
cmp dword [ebp - 0x64], edi
jb 0x404131
mov edx, dword [ebp - 0x78]
push edx
call fcn.004ba3a4
add esp, 4
mov al, bl
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.004ba3af
mov esp, ebp
pop ebp
ret

Function at 0x4085f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef9d8
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x54b1b4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x54af28]
mov edx, dword [eax + 0xc]
mov ecx, 0x54af28
call edx
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp + 8]
push eax
push 0x510f34
lea edi, [ebp - 0x10]
call fcn.00407bd0
mov esi, dword [ebp - 0x10]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [esi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408679
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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 0x408a00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f1530
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x54b1b4]
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
xor ebx, ebx
mov esi, ecx
mov edi, edx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], ebx
push 0x34
xor eax, eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00408440
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00407350
movzx eax, byte [ebp + 8]
mov ecx, dword [ebp - 0x2c]
neg eax
sbb eax, eax
and eax, 0x100
mov esi, 8
add eax, 0xf003f
cmp dword [ebp - 0x18], esi
jae 0x408a89
lea ecx, [ebp - 0x2c]
lea edx, [ebp - 0x34]
push edx
lea edx, [ebp - 0x30]
push edx
push ebx
push eax
push ebx
push ebx
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x408ae6
push str.RegWriteUpdateexeVersion
call fcn.004085f0
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x408ac4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004ba3a4
add esp, 4
mov eax, dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], cx
cmp eax, ebx
je 0x408ae2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x408b3c
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x408b0b
cmp dword [edi + 0x14], esi
jb 0x408af4
mov edi, dword [edi]
lea edx, [eax + eax]
mov eax, dword [ebp - 0x30]
push edx
push edi
push 1
push ebx
push str.UpdateExeVersion
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 0x18], esi
jb 0x408b1c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004ba3a4
add esp, 4
mov eax, dword [ebp - 0x30]
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp eax, ebx
je 0x408b3a
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
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.004ba3af
mov esp, ebp
pop ebp
ret