joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425cd5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00425c51
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x425e44
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x425e44
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x425df9
jg 0x425d31
test eax, eax
je 0x425def
push 1
push 0x1000
call fcn.0041c8da
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x425d54
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x425de6
push 0x8000
push ebx
call fcn.004180b5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x425d7d
jg 0x425d78
cmp ecx, 0x1000
jb 0x425d7d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041ade6
add esp, 0x10
cmp eax, 0xffffffff
je 0x425dc2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x425d78
jl 0x425da9
test ecx, ecx
jne 0x425d6a
push dword [ebp - 0xc]
push ebx
call fcn.004180b5
push esi
call fcn.00418900
add esp, 0xc
xor ebx, ebx
jmp 0x425e52
cmp byte [edi + 0x24], 0
je 0x425dd9
cmp dword [edi + 0x20], 5
jne 0x425dd9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x425de4
mov ebx, dword [edi + 0x18]
jmp 0x425de6
xor ebx, ebx
push esi
call fcn.00418900
pop ecx
jmp 0x425e52
test ecx, ecx
jg 0x425dbb
jl 0x425df9
test eax, eax
jae 0x425dbb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a2aa
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x425e19
cmp byte [edi + 0x1c], 0
je 0x425dbb
jmp 0x425e4a
push ebx
call fcn.00416e12
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x425dbb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x425e52
cmp byte [edi + 0x1c], 0
je 0x425e4f
mov ebx, dword [edi + 0x18]
jmp 0x425e52
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041a2aa
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x427ac0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x427aed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x427aed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401750
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov edx, eax
cmp word [edx], 0x5a4d
je 0x401775
or eax, 0xffffffff
jmp 0x401822
mov eax, dword [edx + 0x3c]
mov ecx, edx
add eax, ecx
mov ecx, eax
cmp dword [ecx], 0x4550
je 0x40178e
or eax, 0xffffffff
jmp 0x401822
mov eax, dword [ecx + 0x78]
mov edx, dword [ebp - 0x10]
lea ecx, [edx + eax]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x20]
add eax, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x4017b6
or eax, 0xffffffff
jmp 0x401822
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x24]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0xc], eax
xor esi, esi
or edi, 0xffffffff
test ebx, ebx
jle 0x401808
mov eax, dword [ebp - 4]
mov eax, dword [eax + esi*4]
mov edx, dword [ebp - 0x10]
add eax, edx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp + 0xc]
xor eax, eax
mov al, byte [edx]
mov ah, byte [ecx]
sub ah, al
jne 0x4017f3
test al, al
je 0x4017f8
inc edx
inc ecx
jmp 0x4017e3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401800
mov edi, esi
jmp 0x401808
inc esi
or edi, 0xffffffff
cmp esi, ebx
jl 0x4017cd
cmp edi, 0xffff
jne 0x401815
or eax, 0xffffffff
jmp 0x401822
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + edi*2]
mov edx, dword [ebp - 8]
add eax, dword [edx + 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x401830
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, eax
mov ebx, ecx
cmp word [ebx], 0x5a4d
je 0x40184a
xor eax, eax
jmp 0x40188e
mov eax, dword [ebx + 0x3c]
mov esi, ebx
add eax, esi
mov esi, eax
cmp dword [esi], 0x4550
je 0x40185f
xor eax, eax
jmp 0x40188e
mov eax, dword [esi + 0x78]
mov ebx, ecx
lea esi, [ebx + eax]
mov eax, dword [esi + 0x1c]
add eax, ebx
mov ebx, eax
mov eax, dword [esi + 0x10]
cmp edx, eax
jb 0x40187e
neg eax
add eax, edx
cmp eax, dword [esi + 0x14]
jbe 0x401882
xor eax, eax
jmp 0x40188e
mov eax, edx
sub eax, dword [esi + 0x10]
mov eax, dword [ebx + eax*4]
mov edi, ecx
add eax, edi
pop edi
pop esi
pop ebx
ret 8
Function at 0x402ba0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebx
call fcn.00402980
test eax, eax
jle 0x402bfa
call fcn.00402af0
mov edi, eax
add dword [0x414e3c], edi
push esi
call fcn.00402a70
cmp eax, dword [0x414e3c]
je 0x402bec
push 0
push esi
push ebx
call dword [0x407044]
mov eax, dword [0x414e38]
push eax
call dword [0x407070]
jmp 0x402c04
push 0
push esi
push ebx
call dword [0x407044]
lea ecx, [ebp - 0x800]
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x402c0f
pop eax
lea edx, [ebp - 0x800]
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x402c23
mov edi, eax
jmp 0x402c2f
dec edi
cmp byte [ebp + edi - 0x801], 0x5c
jne 0x402c2e
lea ecx, [ebp + edi - 0x800]
mov edx, 0x414edc
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x402c48
pop eax
push 0x32
lea eax, [ebp - 0x400]
push eax
push 0x1002
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x400]
mov dword [0x414e38], eax
lea edx, [ebp - 0x400]
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x402c80
mov dword [0x414e3c], eax
lea eax, [ebp - 0x800]
push eax
call fcn.00402a70
push str.aa1vd2apeJUt
push esi
call fcn.00402440
test eax, eax
je 0x402cbb
push str.JUth1naac2uvdSdSapee
push esi
call fcn.00401f40
test eax, eax
je 0x402cbb
call fcn.00402770
push esi
call fcn.004023a0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4042b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4064e0
push 0x404458
push dword fs:[0]
mov dword fs:[0], esp
sub esp, 0x50
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x2000000
call fcn.00404e20
pop ecx
mov dword [0x4072a0], eax
call fcn.004046f0
test eax, eax
jne 0x4042f7
push 1
call fcn.00404440
pop ecx
mov dword [ebp - 4], 0
call fcn.004043d0
call fcn.004047e0
call fcn.00404830
call fcn.00404c10
call fcn.00404cb0
mov ebx, 0x406748
jmp 0x404323
call dword [ebx]
add ebx, 4
cmp ebx, 0x406748
jb 0x40431e
mov dword [ebp - 0x34], 0
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
call fcn.00404d70
test byte [ebp - 0x34], 1
je 0x404357
movzx edx, word [ebp - 0x30]
jmp 0x40435c
mov edx, 0xa
push edx
push eax
push 0
push ebx
call fcn.00403120
mov ebx, eax
mov esi, 0x406748
jmp 0x404374
call dword [esi]
add esi, 4
cmp esi, 0x406748
jb 0x40436f
push ebx
call fcn.00404250
pop ecx
jmp 0x4043ad
or dword [ebp - 4], 0xffffffff
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x404c10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov ebx, eax
cmp byte [ebx], 0
jne 0x404c42
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push ebx
call fcn.00404a80
add esp, 0x14
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
lea eax, [edx + eax*4]
push eax
call fcn.004053f0
pop ecx
mov esi, eax
test esi, esi
jne 0x404c75
push 1
call fcn.00404440
pop ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 4]
lea eax, [esi + eax*4]
push eax
push esi
push ebx
call fcn.00404a80
add esp, 0x14
mov eax, dword [ebp - 4]
dec eax
mov dword [0x407288], eax
mov dword [0x40728c], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404cb0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test eax, eax
jne 0x404ccb
mov ebx, dword [0x407358]
mov esi, ebx
xor ecx, ecx
jmp 0x404cee
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404cd6
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404ce9
add ecx, dword [ebp - 4]
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404cd1
lea eax, [ecx + 1]
push eax
call fcn.004053f0
pop ecx
mov edi, eax
mov dword [0x407294], eax
cmp dword [0x407294], 0
jne 0x404d15
push 1
call fcn.00404440
pop ecx
mov esi, ebx
jmp 0x404d4a
mov edx, esi
or eax, 0xffffffff
inc eax
cmp byte [edx + eax], 0
jne 0x404d1e
inc eax
mov dword [ebp - 4], eax
cmp byte [esi], 0x3d
je 0x404d45
mov ecx, edi
mov edx, esi
push ecx
sub ecx, edx
mov al, byte [edx]
mov byte [ecx + edx], al
inc edx
test al, al
jne 0x404d35
pop eax
mov eax, dword [ebp - 4]
add edi, eax
mov eax, dword [ebp - 4]
add esi, eax
cmp byte [esi], 0
jne 0x404d19
mov byte [edi], 0
cmp ebx, dword [0x407358]
je 0x404d61
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402840
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x28
mov eax, 0x45a2f3
call fcn.0043d961
lea ecx, [ebp - 0x18]
call fcn.0042eacc
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
call fcn.00402ab8
or dword [ebp - 4], 0xffffffff
call fcn.0042eae2
and dword [ebp - 0x14], 0
push 0x21
push 1
mov edi, 0x400000
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x402969
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x402960
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
cmp eax, ebx
je 0x402969
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, ebx
je 0x402969
mov dword [ebp - 4], 3
shr esi, 1
lea edi, [eax + esi*2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, edi
je 0x402906
cmp word [esi], bx
jne 0x402902
cmp dword [ebp - 0x1c], ebx
je 0x4028fc
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.00402a20
lea eax, [esi + 2]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], ebx
jmp 0x402902
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
inc esi
inc esi
jmp 0x4028d2
or dword [ebp - 4], 0xffffffff
jmp 0x402967
mov dword [ebp - 0x14], 1
jmp 0x402971
call fcn.00403116
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
jmp 0x40299a
call fcn.0043da06
ret 4
Function at 0x409032
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x45b406
call fcn.0043d92e
push 0x4641c0
mov ecx, 0x47e0f0
call fcn.004029a2
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x40906f
push 0xbd3
lea eax, [ebp - 0x24]
push eax
call fcn.00404773
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x24]
jmp 0x40ea55
lea ecx, [ebp - 0x38]
call fcn.0043468b
mov dword [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4641d4
lea edi, [ebp - 0x38]
call fcn.0040151c
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x10]
call fcn.0040151c
mov byte [ebp - 4], 3
mov byte [ebp - 4], 1
call fcn.0041718e
cmp dword [ebp - 0x30], ebx
pop ecx
pop ecx
jle 0x409169
mov edi, 0x47e0c4
push 0x4641d8
mov ecx, edi
call fcn.00423160
test eax, eax
je 0x40914e
push str.LI_SKIP_EULA
mov ecx, edi
call fcn.00423160
test eax, eax
je 0x40914e
cmp dword [ebp - 0x30], 1
jle 0x40914e
cmp dword [ebp - 0x30], ebx
jg 0x4090f0
jmp fcn.0042e9c1
mov ecx, dword [ebp - 0x34]
push 0x464208
call fcn.0040440a
test eax, eax
jne 0x40914e
cmp dword [ebp - 0x30], 1
jle 0x4090eb
mov eax, dword [ebp - 0x34]
add eax, 4
push eax
lea ecx, [esi + 0x98]
call fcn.0040a0f8
push ebx
mov byte [esi + 0xac], 1
mov eax, dword [0x47e004]
push ebx
push 0x400
push dword [eax + 0x30]
mov dword [eax + 0x58], ebx
call dword [sym.imp.USER32.dll_PostThreadMessageW]
mov eax, dword [0x47e0c0]
cmp eax, ebx
je 0x40914e
push ebx
push ebx
push 0x464180
push eax
call fcn.00415c74
cmp byte [esi + 0xac], bl
jne 0x409169
cmp dword [ebp - 0x30], ebx
jle 0x4090eb
push dword [ebp - 0x34]
lea ecx, [esi + 0x98]
call fcn.0040a0f8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0043483c
call fcn.0043da06
ret
Function at 0x40917b
Capabilities:
Terminate process

Disassembly:
push 0x2c
mov eax, 0x45b406
call fcn.0043d92e
push 0x4641c0
mov ecx, 0x47e0f0
call fcn.004029a2
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x4091b7
push 0xbd3
lea eax, [ebp - 0x24]
push eax
call fcn.00404773
and dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
jmp 0x40ea55
lea ecx, [ebp - 0x38]
call fcn.0043468b
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push 0x4641d4
lea edi, [ebp - 0x38]
call fcn.0040151c
mov byte [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push dword [ebp - 0x10]
call fcn.0040151c
mov byte [ebp - 4], 3
mov byte [ebp - 4], bl
call fcn.0041718e
cmp byte [esi + 0xac], 0
pop ecx
pop ecx
mov edi, ebx
je 0x409206
push 2
pop edi
mov ebx, dword [ebp - 0x30]
jmp 0x409251
test edi, edi
jl 0x409267
cmp edi, dword [ebp - 0x30]
jge 0x409267
mov eax, dword [ebp - 0x34]
lea eax, [eax + edi*4]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], 0
je 0x409250
push str.CProgressPage
push eax
call fcn.00409d73
test al, al
pop ecx
pop ecx
je 0x409239
push esi
call fcn.004093b0
cmp edi, dword [ebp - 0x30]
jge 0x409267
mov eax, dword [ebp - 0x34]
lea eax, [eax + edi*4]
push eax
lea ecx, [esi + 0x98]
call fcn.0040a0f8
inc edi
cmp edi, ebx
jb 0x40920b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.0043483c
call fcn.0043da06
ret
jmp fcn.0042e9c1
test ecx, ecx
je 0x40ea62
mov eax, dword [ecx]
push 0
push 0
call dword [eax + 0x14]
push 1
call fcn.0043c706
int3
Function at 0x40c7c5
Capabilities:
Move file

Disassembly:
push 0x20
mov eax, 0x45beaf
call fcn.0043d961
lea ecx, [ebp - 0x2c]
call fcn.0042eacc
and dword [ebp - 4], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.0041966f
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
call fcn.004081cc
mov byte [ebp - 4], 3
lea eax, [ebp - 0x1c]
push eax
push 0x464d04
lea ecx, [ebp - 0x18]
call fcn.00416c8f
pop ecx
pop ecx
mov dword [ebp - 0x20], eax
test eax, eax
jge 0x40c83e
mov byte [ebp - 4], 2
lea eax, [ebp - 0x18]
push eax
call fcn.00418c35
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00401b66
or dword [ebp - 4], 0xffffffff
call fcn.0042eae2
mov eax, dword [ebp - 0x20]
jmp 0x40c8c1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x14]
call fcn.00425970
mov dword [ebp - 0x20], eax
test eax, eax
jl 0x40c814
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40c867
and dword [ebp - 0x18], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea eax, [ebp - 0x1c]
push eax
mov esi, dword [ebp + 0x18]
mov ecx, esi
call fcn.00401b01
push str..exe
mov ecx, esi
call fcn.004086e8
push dword [esi]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x40c814
call fcn.00403116
mov dword [ebp - 0x20], eax
jmp 0x40c814
call fcn.0043da06
ret 0x14
Function at 0x40e4a6
Capabilities:
Get common file path
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
mov eax, dword [0x478030]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push str.Calling_SetDllDirectory_n
call ebx
push 0x462e4c
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e506
push 0x800
call eax
test eax, eax
jne 0x40e4ff
push str.Failed_to_SetDefaultDlLDirectories_n
jmp 0x40e50b
push str.Succeeded_to_SetDefaultDlLDirectories_n
jmp 0x40e50b
push str.Failed_to_load_SetDefaultDlLDirectories_n
call ebx
push 0x104
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40e67f
push esi
push edi
lea esi, [ebp + eax*2 - 0x428]
mov edi, 0x103
sub edi, eax
mov word [esi], 0x5c
inc esi
inc esi
and dword [ebp - 0x42c], 0
mov dword [ebp - 0x430], edi
mov dword [ebp - 0x434], esi
mov dword [ebp - 0x468], str.BCRYPT.DLL
mov dword [ebp - 0x464], str.RSAENH.DLL
mov dword [ebp - 0x460], str.CRYPT32.DLL
mov dword [ebp - 0x45c], str.MSASN1.DLL
mov dword [ebp - 0x458], str.USERENV.DLL
mov dword [ebp - 0x454], str.WINTRUST.DLL
mov dword [ebp - 0x450], str.GDIPLUS.DLL
mov dword [ebp - 0x44c], str.MSI.DLL
mov dword [ebp - 0x448], str.OLEACC.DLL
mov dword [ebp - 0x444], str.OLEDLG.DLL
mov dword [ebp - 0x440], str.RICHED20.DLL
mov dword [ebp - 0x43c], str.VERSION.DLL
mov dword [ebp - 0x438], str.WINHTTP.DLL
mov eax, dword [ebp - 0x42c]
push dword [ebp + eax*4 - 0x468]
push edi
push esi
call fcn.0043b9fb
add esp, 0xc
test eax, eax
jne 0x40e663
mov esi, str.Loading
lea edi, [ebp - 0x220]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x20a
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x20e]
push eax
movsw word es:[edi], word [esi]
call fcn.0043da40
lea eax, [ebp - 0x428]
push eax
mov esi, 0x10e
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043bd2e
push 0x465238
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.0043bd2e
add esp, 0x24
lea eax, [ebp - 0x220]
push eax
call ebx
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [ebp - 0x434]
mov edi, dword [ebp - 0x430]
jmp 0x40e66a
push str.Failed_to_append_filename_on_system_path_n
call ebx
inc dword [ebp - 0x42c]
cmp dword [ebp - 0x42c], 0xd
jb 0x40e5d3
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00439777
leave
ret
Function at 0x40e6c3
Capabilities:
Set registry value

Disassembly:
push 0x30
mov eax, 0x45c08d
call fcn.0043d997
cmp byte [ebx + 0xc8], 0
jne 0x40e819
mov eax, dword [ebx + 0xa8]
test eax, eax
jne 0x40e812
lea ecx, [ebp - 0x38]
call fcn.0041966f
and dword [ebp - 4], 0
push dword [ebx + 0xb8]
lea eax, [ebp - 0x38]
push str.SOFTWARESlimWare_Utilities_Inc_sRegistration
push eax
call fcn.00402026
and dword [ebp - 0x34], 0
add esp, 0xc
mov byte [ebp - 4], 1
push dword [ebp - 0x38]
lea edi, [ebp - 0x34]
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00408666
test eax, eax
jne 0x40e7e2
push 0x10
pop esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x20]
push eax
push str.InstallationID
mov eax, edi
push eax
mov dword [ebp - 0x3c], esi
call fcn.00411ade
test eax, eax
jne 0x40e751
cmp dword [ebp - 0x3c], esi
je 0x40e75d
mov esi, 0x46288c
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebx + 0xdc]
push 4
pop ecx
lea edi, [ebp - 0x20]
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
je 0x40e776
lea esi, [ebp - 0x20]
jmp 0x40e7cc
push 0x4641d8
mov ecx, 0x47e0c4
call fcn.00423160
test eax, eax
je 0x40e79d
push 4
pop ecx
mov edi, 0x46288c
lea esi, [ebx + 0xdc]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x40e7e2
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x10
lea eax, [ebp - 0x30]
push eax
push 3
push 0
push str.InstallationID
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40e7e2
lea esi, [ebp - 0x30]
lea eax, [ebx + 0xdc]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [0x47e0c0]
test ecx, ecx
je 0x40e7fa
push eax
call fcn.00415bd8
mov eax, dword [0x47e0c0]
test eax, eax
je 0x40e7fa
push 0
push 1
push str.InstallerFinished
push eax
call fcn.00415c74
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004085b5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00401b66
mov byte [ebx + 0xc8], 1
call fcn.0043da1a
ret

Function at 0x40e81f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
call fcn.00433968
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x40e840
xor eax, eax
jmp 0x40e853
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40e83c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop esi
pop ebp
ret 8
Function at 0x40f685
Capabilities:
Terminate process

Disassembly:
push 0x40c
mov eax, 0x45bf93
call fcn.0043d997
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x414], ecx
mov dword [ebp - 0x418], eax
je 0x40f74e
mov eax, dword [0x47e0c0]
cmp eax, ebx
je 0x40f6c3
push ebx
push ebx
push eax
mov esi, edi
call fcn.00415f28
push 0x45e500
mov ecx, edi
call fcn.0042fbe4
test eax, eax
jne 0x40f6e3
push 0x463334
mov ecx, edi
call fcn.0042fbe4
test eax, eax
je 0x40f74e
mov eax, dword [edi]
push ebx
push 0x200
lea ecx, [ebp - 0x410]
push ecx
mov ecx, edi
call dword [eax + 0xc]
xor esi, esi
inc esi
test eax, eax
lea eax, [ebp - 0x414]
push eax
push 0x47df48
je 0x40f720
call fcn.0040e68c
mov dword [ebp - 4], ebx
mov eax, dword [eax]
push 0x10
push eax
lea eax, [ebp - 0x410]
push eax
jmp 0x40f732
call fcn.0040e68c
mov dword [ebp - 4], esi
mov eax, dword [eax]
push 0x10
push eax
push str.Out_of_memory_
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x414]
call fcn.00401b66
push esi
call fcn.0043c706
mov eax, dword [ebp - 0x414]
xor esi, esi
inc esi
mov dword [eax + 0xa4], esi
mov dword [0x47dff0], esi
mov esi, dword [0x47df68]
call fcn.00408eda
cmp edi, ebx
je 0x40f786
push dword [ebp - 0x418]
mov ecx, dword [ebp - 0x414]
push edi
call fcn.00435672
mov ebx, eax
mov eax, ebx
call fcn.0043da1a
ret 8