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 0x4e7a72
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x53f1e4]
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.00401410
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.00401410
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.00401410
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.004b1c2d
mov esp, ebp
pop ebp
ret 8
Function at 0x402600
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5852
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [0x53f1e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 5
mov dword [ebp - 4], edi
push edi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor ecx, ecx
lea eax, [ebp - 0x218]
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x402667
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x218]
push edx
mov ecx, esi
call fcn.00404960
mov dword [ebp - 4], edi
push 3
mov eax, 0x506264
mov ecx, esi
mov dword [ebp - 0x21c], 1
call fcn.00403f00
cmp dword [esi + 0x14], 8
jb 0x4026aa
mov eax, dword [esi]
jmp 0x4026ac
mov eax, esi
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x404bf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8d46
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x53f1e4]
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 0x404d72
cmp dword [esi + 0x14], 8
jb 0x404c37
mov eax, dword [esi]
jmp 0x404c39
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404d72
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.004041e0
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x404c77
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 [0x53ef48]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ef48
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 0x404cb5
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.00406b00
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x404cdc
mov esi, dword [esi]
mov eax, dword [ebp - 0x150]
push esi
push eax
lea edi, [ebp - 0x154]
call fcn.00408a70
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x14c]
add esp, 8
cmp eax, ecx
je 0x404d0b
push eax
call fcn.004b3515
add esp, 4
mov esi, dword [ebp - 0x154]
push esi
call fcn.00404f50
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 0x404d3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x34], ebx
jb 0x404d4b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1c22
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], ebx
jb 0x404d6e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1c22
add esp, 4
mov al, 1
jmp 0x404d82
push 7
push 0x5066a4
mov ecx, edi
call fcn.00404960
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.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x404da0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x14c
mov eax, dword [0x53f1e4]
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 0x404f22
cmp dword [esi + 0x14], 8
jb 0x404de7
mov eax, dword [esi]
jmp 0x404de9
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404f22
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.004041e0
mov dword [ebp - 4], ebx
mov ecx, dword [ebp - 0x2c]
mov ebx, 0x10
cmp dword [ebp - 0x18], ebx
jae 0x404e27
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 [0x53ef48]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ef48
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 0x404e65
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.00406b00
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x404e8c
mov esi, dword [esi]
mov eax, dword [ebp - 0x150]
push esi
push eax
lea edi, [ebp - 0x154]
call fcn.00408a70
mov eax, dword [ebp - 0x150]
lea ecx, [ebp - 0x14c]
add esp, 8
cmp eax, ecx
je 0x404ebb
push eax
call fcn.004b3515
add esp, 4
mov esi, dword [ebp - 0x154]
push esi
call fcn.00404f50
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 0x404eea
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [ebp - 0x34], ebx
jb 0x404efb
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1c22
add esp, 4
mov dword [ebp - 0x34], 0xf
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x18], ebx
jb 0x404f1e
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1c22
add esp, 4
mov al, 1
jmp 0x404f32
push 7
push 0x5066a4
mov ecx, edi
call fcn.00404960
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.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x404f50
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 0x404f9d
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 0x404fc9
inc esi
cmp esi, 5
je 0x404fc9
mov eax, dword [ebp - 0x14]
push 0x7530
push eax
call edi
test eax, eax
jne 0x404fb4
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 0x405180
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x53f1e4]
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.004b9c60
add esp, 0xc
cmp byte [ebp + 8], 0
push 0x104
je 0x4051d4
lea edx, [ebp - 0x20c]
push edx
push str._ProgramW6432_
jmp 0x4051e0
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 0x405202
sub eax, edx
sar eax, 1
push eax
lea edx, [ebp - 0x20c]
push edx
mov ecx, esi
call fcn.00404960
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004b1c2d
mov esp, ebp
pop ebp
ret

Function at 0x4052f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x53f1e4]
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 0x405326
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004b1c2d
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.004b9c60
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x405382
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop
lea edx, [ebp - 0x20c]
push edx
push ebx
call fcn.004b2d12
add esp, 8
test eax, eax
je 0x40539b
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x405360
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.004b1c2d
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.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x405440
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
mov eax, dword [0x53f1e4]
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.004b9c60
add esp, 0xc
push esi
lea edx, [ebp - 0x41c]
push 0x506820
push edx
call fcn.004b2d9d
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 0x4055d5
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x212]
push eax
mov word [ebp - 0x214], dx
call fcn.004b9c60
add esp, 0xc
lea ecx, [ebp - 0x66c]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x4055ce
mov edi, edi
mov ecx, 0x506ae0
lea eax, [ebp - 0x640]
jmp 0x4054f0
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405516
test dx, dx
je 0x405512
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405516
add eax, 4
add ecx, 4
test dx, dx
jne 0x4054f0
xor eax, eax
jmp 0x40551b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4055b8
mov ecx, 0x50682c
lea eax, [ebp - 0x640]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405556
test dx, dx
je 0x405552
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405556
add eax, 4
add ecx, 4
test dx, dx
jne 0x405530
xor eax, eax
jmp 0x40555b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4055b8
push 0x104
lea edx, [ebp - 0x214]
push 0
push edx
call fcn.004b9c60
add esp, 0xc
lea eax, [ebp - 0x640]
push eax
push esi
lea ecx, [ebp - 0x214]
push 0x506834
push ecx
call fcn.004b2d9d
add esp, 0x10
test byte [ebp - 0x66c], 0x10
je 0x4055ab
lea edx, [ebp - 0x214]
push edx
call fcn.00405440
add esp, 4
jmp 0x4055b8
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 0x4054e0
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.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x4055f0
Capabilities:
Hash data with md5
Print debug messages
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8ca0
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x53f1e4]
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 0x405649
mov eax, dword [eax]
push 0x506840
push eax
call fcn.004b302f
mov edi, eax
add esp, 8
cmp edi, ebx
jne 0x405690
push 0x506848
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.00401de0
cmp dword [ebp - 0x18], 0x10
jb 0x405780
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x405778
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.004b30cc
push edi
mov ebx, eax
call fcn.004b3160
add esp, 8
test eax, eax
jne 0x405700
push edi
push 0x100000
push 1
push ebx
call fcn.004b3417
add esp, 0x10
test eax, eax
je 0x405700
push ebx
lea esi, [ebp - 0xb4]
call fcn.0042e920
push edi
call fcn.004b3160
add esp, 4
test eax, eax
je 0x4056d2
push edi
call fcn.004b34a1
push ebx
call fcn.004b3515
add esp, 8
lea ecx, [ebp - 0xb4]
call fcn.0042e9e0
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0xb4]
call fcn.0042eb70
mov edi, eax
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00401de0
mov ebx, 0x10
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], ebx
jb 0x405750
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.004b1c22
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.00401de0
cmp dword [ebp - 0x18], ebx
jb 0x405780
mov edx, dword [ebp - 0x2c]
push edx
call fcn.004b1c22
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.004b1c2d
mov esp, ebp
pop ebp
ret
Function at 0x4057d0
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 0x4057e7
mov eax, dword [esi]
jmp 0x4057e9
mov eax, esi
push 0x506840
push eax
call fcn.004b302f
mov edi, eax
add esp, 8
test edi, edi
jne 0x40583f
mov ecx, dword [ebp + 0xc]
push 8
push 0x50686c
call fcn.00404960
cmp dword [esi + 0x14], 8
jb 0x405814
mov esi, dword [esi]
push esi
push str.UncmpZipFile
push str.PublicCommonCommonFun.cpp
mov edx, 0xed
mov esi, 2
mov eax, 0x5430d8
call fcn.0042b3c0
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.004b3417
push edi
call fcn.004b34a1
mov ecx, dword [ebp + 0x10]
add esp, 0x14
cmp dword [ecx], 0
jne 0x405954
mov ax, word [ebp - 4]
cmp al, 0x37
jne 0x40587d
cmp ah, 0x7a
jne 0x40588a
mov ecx, 8
cmp dword [ebx + 0x14], ecx
jb 0x4058a2
mov eax, dword [ebx]
jmp 0x4058a4
cmp al, 0x50
jne 0x40588a
cmp ah, 0x4b
je 0x405913
mov ecx, dword [ebp + 0xc]
push 8
push str._rN_e
call fcn.00404960
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
cmp dword [esi + 0x14], ecx
jb 0x4058ad
mov edx, dword [esi]
jmp 0x4058af
mov edx, esi
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
push eax
mov ecx, edi
call fcn.00462940
add esp, 8
test al, al
jne 0x405954
push edi
mov edx, 0x506904
call fcn.00404090
mov eax, 8
cmp dword [ebx + 0x14], eax
jb 0x4058e0
mov ebx, dword [ebx]
cmp dword [esi + 0x14], eax
jb 0x4058e7
mov esi, dword [esi]
push ebx
push esi
push 0x50691c
push str.PublicCommonCommonFun.cpp
mov edx, 0x100
mov esi, 2
mov eax, 0x5430d8
call fcn.0042b3c0
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 0x40591f
mov ebx, dword [ebx]
cmp dword [esi + 0x14], eax
jb 0x405926
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.00449be0
add esp, 0xc
test al, al
jne 0x405954
mov edx, dword [ebp + 0xc]
push edx
mov edx, 0x50695c
call fcn.00404090
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 0x407fe0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x407ff8
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40802a
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x408026
cmp esi, eax
jae 0x40802a
dec edi
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x408018
cmp esi, eax
jb 0x408030
pop esi
xor eax, eax
pop edi
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x408b10
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e6d78
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x53f1e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x53ef48]
mov edx, dword [eax + 0xc]
mov ecx, 0x53ef48
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 0x506ae4
lea edi, [ebp - 0x10]
call fcn.00408a70
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 0x408b99
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 0x408ef0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7970
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x53f1e4]
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.00404960
push ebx
push esi
or eax, 0xffffffff
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.00403e00
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 0x408f79
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 0x408fd6
push str.RegWriteUpdateexeVersion
call fcn.00408b10
add esp, 4
cmp dword [ebp - 0x18], esi
jb 0x408fb4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.004b1c22
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 0x408fd2
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x40902c
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x408ffb
cmp dword [edi + 0x14], esi
jb 0x408fe4
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 0x40900c
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004b1c22
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 0x40902a
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.004b1c2d
mov esp, ebp
pop ebp
ret